Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/gpio/gpiolib.c, line 4576 (as a function)
- include/linux/gpio/machine.h, line 87 (as a function)
Referenced in 58 files:
- arch/arm/mach-omap1/board-ams-delta.c, line 753
- arch/arm/mach-omap1/board-nokia770.c
- arch/arm/mach-omap1/board-osk.c
- arch/arm/mach-omap1/board-palmte.c, line 240
- arch/arm/mach-omap1/board-sx1.c, line 339
- arch/arm/mach-omap2/board-n8x0.c
- arch/arm/mach-omap2/pdata-quirks.c
- arch/arm/mach-orion5x/board-d2net.c, line 103
- arch/arm/mach-orion5x/dns323-setup.c
- arch/arm/mach-orion5x/mv2120-setup.c, line 234
- arch/arm/mach-orion5x/net2big-setup.c, line 297
- arch/arm/mach-orion5x/ts409-setup.c, line 311
- arch/arm/mach-s3c/mach-crag6410-module.c
- arch/arm/mach-s3c/mach-crag6410.c
- arch/arm/mach-sa1100/assabet.c
- arch/arm/mach-sa1100/collie.c
- arch/arm/mach-sa1100/generic.c, line 235
- arch/arm/mach-sa1100/h3xxx.c
- arch/arm/mach-sa1100/jornada720.c
- arch/arm/mach-sa1100/neponset.c
- arch/mips/rb532/devices.c, line 338
- arch/mips/txx9/generic/setup.c, line 676
- arch/mips/txx9/rbtx4927/setup.c
- arch/sh/boards/board-sh7785lcr.c, line 291
- arch/sh/boards/mach-ap325rxa/setup.c, line 525
- arch/sh/boards/mach-ecovec24/setup.c
- arch/sh/boards/mach-kfr2r09/setup.c, line 598
- arch/sh/boards/mach-migor/setup.c
- drivers/bluetooth/hci_bcm.c, line 1132
- drivers/gpib/gpio/gpib_bitbang.c
- drivers/gpio/gpio-aggregator.c
- drivers/gpio/gpio-ath79.c, line 255
- drivers/gpio/gpio-virtuser.c, line 1406
- drivers/gpio/gpiolib-shared.c, line 492
- drivers/gpio/gpiolib.c, line 4580
- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c
- drivers/gpu/drm/i915/display/intel_dsi_vbt.c
- drivers/i2c/busses/i2c-i801.c, line 1337
- drivers/leds/simatic/simatic-ipc-leds-gpio-core.c
- drivers/mfd/arizona-spi.c, line 71
- drivers/mfd/sm501.c, line 1118
- drivers/misc/eeprom/digsy_mtc_eeprom.c, line 83
- drivers/mmc/host/sdhci-pci-core.c, line 2111
- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c, line 2638
- drivers/platform/x86/asus-tf103c-dock.c, line 735
- drivers/platform/x86/intel/atomisp2/led.c, line 87
- drivers/platform/x86/intel/int3472/discrete.c
- drivers/platform/x86/intel/int3472/tps68470.c, line 203
- drivers/platform/x86/lenovo/yogabook.c
- drivers/platform/x86/sel3350-platform.c, line 218
- drivers/platform/x86/siemens/simatic-ipc-batt.c, line 173
- drivers/platform/x86/x86-android-tablets/core.c, line 62
- drivers/spi/spi-bcm2835.c, line 1327
- drivers/usb/dwc3/dwc3-pci.c, line 261
- drivers/usb/gadget/udc/pch_udc.c, line 2945
- drivers/video/fbdev/via/via-gpio.c, line 255
- sound/soc/intel/boards/sof_wm8804.c, line 227
- sound/soc/samsung/speyside.c, line 362
Smatch caller information:
drivers/i2c/busses/i2c-i801.c i801_add_mux() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 1384758214027743232 |
| PARAM_VALUE | 0 | table->table | 0 |
| BUF_SIZE | 0 | table | 24-u64max |
| BUF_SIZE | 0 | table | 24-u64max |
| BUF_SIZE | 0 | table->dev_id | 13 |
| DATA_SOURCE | 0 | table | r devm_kzalloc |
| STR_LEN | 0 | table->dev_id | 12 |
| TERMINATED | 0 | table->dev_id | 1 |
| MEM_ZERO | 0 | table | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpio/gpio-virtuser.c gpio_virtuser_make_lookup_table() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 1-u64max |
| BUF_SIZE | 0 | table | 24-u64max |
| BUF_SIZE | 0 | table | 24-u64max |
| BUF_SIZE | 0 | table->dev_id | 0-s32max |
| CAPPED_DATA | 0 | table->dev_id | 1 |
| DATA_SOURCE | 0 | table | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |
drivers/gpio/gpio-ath79.c ath79_gpio_register_wifi_descriptors() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 0 |
| BUF_SIZE | 0 | table | 1344 |
| BUF_SIZE | 0 | table | 1344 |
| BUF_SIZE | 0 | table->table | 1320 |
| DATA_SOURCE | 0 | table | r devm_kzalloc |
| MEM_ZERO | 0 | table | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/siemens/simatic-ipc-batt.c simatic_ipc_batt_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 324460403047092224,4909549302123003904,6201541713896419328,7920184352058236928,9003870604466151424 |
| BUF_SIZE | 0 | table | (-1),24 |
| BUF_SIZE | 0 | table | (-1),24 |
| BUF_SIZE | 0 | table->dev_id | 1-s32max |
| DATA_SOURCE | 0 | table | $1 |
| BIT_INFO | 0 | table | 0x0,0x7ffefffcffdff000 |
| BIT_INFO | 0 | table | 0x0,0x7ffefffcffdff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/leds/simatic/simatic-ipc-leds-gpio-core.c simatic_ipc_leds_gpio_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 156435302335979520,3513131204656402432,4112498188731367424,8066035166123409408 |
| BUF_SIZE | 0 | table | (-1),24 |
| BUF_SIZE | 0 | table | (-1),24 |
| DATA_SOURCE | 0 | table | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/leds/simatic/simatic-ipc-leds-gpio-core.c simatic_ipc_leds_gpio_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 1108753769377054720,2602810007779610624 |
| BUF_SIZE | 0 | table | (-1)-0,24 |
| BUF_SIZE | 0 | table | (-1)-0,24 |
| BUF_SIZE | 0 | table->dev_id | 1-s32max |
| DATA_SOURCE | 0 | table | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/udc/pch_udc.c pch_vbus_gpio_add_table() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 6034302586165260288 |
| DATA_SOURCE | 0 | table | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c pch_gbe_gpio_add_table() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 2748457470990344192 |
| DATA_SOURCE | 0 | table | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/intel/atomisp2/led.c atomisp2_led_init() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | table | 9 |
| BUF_SIZE | 0 | table | 9 |
| NOCHECK_CALL |
drivers/video/fbdev/via/via-gpio.c viafb_gpio_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 1946603374321504256 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c isp_v4_1_1_hw_init() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 2735341051239927808 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c isp_v4_1_1_hw_init() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 5314564375712677888 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/spi/spi-bcm2835.c bcm2835_spi_setup() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->table | 4096-ptr_max |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table->dev_id | (-1),1-s32max |
| DATA_SOURCE | 0 | table | r _kzalloc_noprof |
| STR_LEN | 0 | table->dev_id | (-1),49 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/usb/dwc3/dwc3-pci.c dwc3_pci_quirks() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 6823073660437213184 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/x86-android-tablets/core.c x86_android_tablet_get_gpiod() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 1707557320553422848 |
| PARAM_VALUE | 0 | table->table | 4096-ptr_max |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table->dev_id | 20 |
| DATA_SOURCE | 0 | table | r _kzalloc_noprof |
| STR_LEN | 0 | table->dev_id | 19 |
| TERMINATED | 0 | table->dev_id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/mfd/sm501.c sm501_register_gpio_i2c_instance() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 392638496427126784 |
| BUF_SIZE | 0 | table | 144 |
| BUF_SIZE | 0 | table | 144 |
| BUF_SIZE | 0 | table->dev_id | 9 |
| BUF_SIZE | 0 | table->table | 120 |
| DATA_SOURCE | 0 | table | r devm_kzalloc |
| STR_LEN | 0 | table->dev_id | 8 |
| TERMINATED | 0 | table->dev_id | 1 |
| MEM_ZERO | 0 | table | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpio/gpiolib-shared.c gpio_shared_add_proxy_lookup() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table | 104 |
| STR_LEN | 0 | table->dev_id | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &consumer->mutex |
drivers/mmc/host/sdhci-pci-core.c sdhci_pci_add_gpio_lookup_table() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 1-u64max |
| PARAM_VALUE | 0 | table->table | 4096-ptr_max |
| BUF_SIZE | 0 | table | s32min-s32max |
| DATA_SOURCE | 0 | table | r kmemdup_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/intel/int3472/discrete.c int3472_discrete_parse_crs() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 1-u64max |
| BUF_SIZE | 0 | table | 184 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/intel/int3472/discrete.c skl_int3472_gpiod_get_from_temp_lookup() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->table | 4096-ptr_max |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table->dev_id | 1-s32max |
| DATA_SOURCE | 0 | table | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ctrl->lock | ||
| HALF_LOCKED2 | global &acpi_link_lock | ||
| HALF_LOCKED2 | global &ioapic_list_lock |
sound/soc/intel/boards/sof_wm8804.c sof_wm8804_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 784071627657379840 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/lenovo/yogabook.c yogabook_pdev_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 7456793135533887488 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/lenovo/yogabook.c yogabook_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 612040088167919616 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpio/gpio-aggregator.c gpio_aggregator_activate() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 1-u64max |
| BUF_SIZE | 0 | table | 64,u64max |
| BUF_SIZE | 0 | table | 64,u64max |
| BUF_SIZE | 0 | table->dev_id | 0-s32max |
| CAPPED_DATA | 0 | table->dev_id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |
drivers/gpio/gpio-aggregator.c gpio_aggregator_new_device_store() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/mfd/arizona-spi.c arizona_spi_acpi_windows_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->table | 0 |
| BUF_SIZE | 0 | table | 144 |
| BUF_SIZE | 0 | table | 144 |
| BUF_SIZE | 0 | table->dev_id | 1-s32max |
| BUF_SIZE | 0 | table->table | 120 |
| DATA_SOURCE | 0 | table | r devm_kzalloc |
| MEM_ZERO | 0 | table | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/sel3350-platform.c sel3350_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 3220613774775939072 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpib/gpio/gpib_bitbang.c allocate_gpios() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| BUF_SIZE | 0 | table->dev_id | 1-s32max |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL | |||
| LOCK2 | &board->big_gpib_mutex | ||
| TYPE_LOCK | (struct gpib_board)->big_gpib_mutex |
drivers/gpib/gpio/gpib_bitbang.c allocate_gpios() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| BUF_SIZE | 0 | table->dev_id | 1-s32max |
| CAPABLE | 0 | 21 | |
| NOCHECK_CALL | |||
| LOCK2 | &board->big_gpib_mutex | ||
| TYPE_LOCK | (struct gpib_board)->big_gpib_mutex |
sound/soc/samsung/speyside.c speyside_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 6900523631530672128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/bluetooth/hci_bcm.c bcm_get_resources() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 1-u64max |
| BUF_SIZE | 0 | table | 9 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/i915/display/intel_dsi_vbt.c intel_dsi_vbt_gpio_init() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 5798978685897465856,7910121523011321856 |
| BUF_SIZE | 0 | table | 24 |
| BIT_INFO | 0 | table | 0x4042040190420000,0x7dfe7dfffdfbe000 |
| BIT_INFO | 0 | table | 0x4042040190420000,0x7dfe7dfffdfbe000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pdev->dev.mutex |
drivers/gpu/drm/i915/display/intel_dsi_vbt.c soc_opaque_gpio_set_value() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 4096-ptr_max |
| PARAM_VALUE | 0 | table->dev_id | 4144483785996349440 |
| PARAM_VALUE | 0 | table->table | 4096-ptr_max |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table | 104 |
| BUF_SIZE | 0 | table->dev_id | 13 |
| DATA_SOURCE | 0 | table | r _kzalloc_noprof |
| STR_LEN | 0 | table->dev_id | 12 |
| TERMINATED | 0 | table->dev_id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/intel/int3472/tps68470.c skl_int3472_tps68470_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/x86/asus-tf103c-dock.c tf103c_dock_probe() -> gpiod_add_lookup_table()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | table | 5966042644092968960 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |