Lines Matching full:lookup

106 	struct i2c_acpi_lookup *lookup = data;  in i2c_acpi_fill_info()  local
107 struct i2c_board_info *info = lookup->info; in i2c_acpi_fill_info()
114 if (lookup->index != -1 && lookup->n++ != lookup->index) in i2c_acpi_fill_info()
117 status = acpi_get_handle(lookup->device_handle, in i2c_acpi_fill_info()
119 &lookup->adapter_handle); in i2c_acpi_fill_info()
124 lookup->speed = sb->connection_speed; in i2c_acpi_fill_info()
146 struct i2c_acpi_lookup *lookup) in i2c_acpi_do_lookup() argument
148 struct i2c_board_info *info = lookup->info; in i2c_acpi_do_lookup()
162 lookup->device_handle = acpi_device_handle(adev); in i2c_acpi_do_lookup()
167 i2c_acpi_fill_info, lookup); in i2c_acpi_do_lookup()
237 struct i2c_acpi_lookup lookup; in i2c_acpi_get_info() local
240 memset(&lookup, 0, sizeof(lookup)); in i2c_acpi_get_info()
241 lookup.info = info; in i2c_acpi_get_info()
242 lookup.index = -1; in i2c_acpi_get_info()
247 ret = i2c_acpi_do_lookup(adev, &lookup); in i2c_acpi_get_info()
253 if (ACPI_HANDLE(&adapter->dev) != lookup.adapter_handle) in i2c_acpi_get_info()
259 adapter_adev = acpi_fetch_acpi_dev(lookup.adapter_handle); in i2c_acpi_get_info()
269 *adapter_handle = lookup.adapter_handle; in i2c_acpi_get_info()
361 struct i2c_acpi_lookup *lookup = data; in i2c_acpi_lookup_speed() local
364 if (!adev || i2c_acpi_do_lookup(adev, lookup)) in i2c_acpi_lookup_speed()
367 if (lookup->search_handle != lookup->adapter_handle) in i2c_acpi_lookup_speed()
370 if (lookup->speed <= lookup->min_speed) in i2c_acpi_lookup_speed()
371 lookup->min_speed = lookup->speed; in i2c_acpi_lookup_speed()
374 lookup->force_speed = I2C_MAX_FAST_MODE_FREQ; in i2c_acpi_lookup_speed()
390 struct i2c_acpi_lookup lookup; in i2c_acpi_find_bus_speed() local
397 memset(&lookup, 0, sizeof(lookup)); in i2c_acpi_find_bus_speed()
398 lookup.search_handle = ACPI_HANDLE(dev); in i2c_acpi_find_bus_speed()
399 lookup.min_speed = UINT_MAX; in i2c_acpi_find_bus_speed()
400 lookup.info = &dummy; in i2c_acpi_find_bus_speed()
401 lookup.index = -1; in i2c_acpi_find_bus_speed()
406 &lookup, NULL); in i2c_acpi_find_bus_speed()
413 if (lookup.force_speed) { in i2c_acpi_find_bus_speed()
414 if (lookup.force_speed != lookup.min_speed) in i2c_acpi_find_bus_speed()
416 lookup.min_speed, lookup.force_speed); in i2c_acpi_find_bus_speed()
417 return lookup.force_speed; in i2c_acpi_find_bus_speed()
418 } else if (lookup.min_speed != UINT_MAX) { in i2c_acpi_find_bus_speed()
419 return lookup.min_speed; in i2c_acpi_find_bus_speed()
522 struct i2c_acpi_lookup lookup; in i2c_acpi_new_device_by_fwnode() local
532 memset(&lookup, 0, sizeof(lookup)); in i2c_acpi_new_device_by_fwnode()
533 lookup.info = info; in i2c_acpi_new_device_by_fwnode()
534 lookup.device_handle = acpi_device_handle(adev); in i2c_acpi_new_device_by_fwnode()
535 lookup.index = index; in i2c_acpi_new_device_by_fwnode()
538 i2c_acpi_fill_info, &lookup); in i2c_acpi_new_device_by_fwnode()
547 adapter = i2c_acpi_find_adapter_by_handle(lookup.adapter_handle); in i2c_acpi_new_device_by_fwnode()