Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/gpio/gpiolib.c, line 5093 (as a function)
- include/linux/gpio/consumer.h, line 227 (as a function)
Referenced in 4 files:
- drivers/gpio/gpiolib.c
- drivers/mtd/nand/raw/nand_base.c, line 5482
- drivers/regulator/lm363x-regulator.c
- drivers/regulator/lp8788-ldo.c, line 505
Smatch caller information:
drivers/regulator/lp8788-ldo.c lp8788_config_ldo_enable_mode() -> gpiod_get_index_optional()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | con_id | 6521256557487935488 |
| PARAM_VALUE | 2 | index | 0-5 |
| PARAM_VALUE | 3 | flags | 23 |
| BUF_SIZE | 1 | con_id | 7 |
| FUZZY_MAX | 2 | index | 5 |
| STR_LEN | 0 | dev | 6 |
| TERMINATED | 1 | con_id | 1 |
| HARD_MAX | 2 | index | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/regulator/lm363x-regulator.c lm363x_regulator_of_get_enable_gpio() -> gpiod_get_index_optional()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | con_id | 6521256557487935488 |
| PARAM_VALUE | 2 | index | 0 |
| PARAM_VALUE | 3 | flags | 19 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | con_id | 7 |
| DATA_SOURCE | 0 | dev | $0 |
| STR_LEN | 0 | dev | 6 |
| TERMINATED | 1 | con_id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/regulator/lm363x-regulator.c lm363x_regulator_of_get_enable_gpio() -> gpiod_get_index_optional()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | con_id | 6521256557487935488 |
| PARAM_VALUE | 2 | index | 1 |
| PARAM_VALUE | 3 | flags | 19 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | con_id | 7 |
| DATA_SOURCE | 0 | dev | $0 |
| STR_LEN | 0 | dev | 6 |
| TERMINATED | 1 | con_id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mtd/nand/raw/nand_base.c rawnand_dt_parse_gpio_cs() -> gpiod_get_index_optional()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | con_id | 6646491993383280640 |
| PARAM_VALUE | 2 | index | 0-s32max |
| PARAM_VALUE | 3 | flags | 7 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | con_id | 3 |
| CAPPED_DATA | 2 | index | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| STR_LEN | 0 | dev | 2 |
| TERMINATED | 1 | con_id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | index | |
| UNITS | 2 | index | unit_array_size |
drivers/gpio/gpiolib.c gpiod_get_optional() -> gpiod_get_index_optional()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | con_id | 0,4096-ptr_max |
| PARAM_VALUE | 2 | index | 0 |
| PARAM_VALUE | 3 | flags | 1,3,7,17,19,23 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 1 | con_id | (-1),3-8,10-13,15-18,128 |
| BUF_SIZE | 1 | con_id | (-1),3-8,10-13,15-18,128 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | con_id | $1 |
| DATA_SOURCE | 3 | flags | $2 |
| FUZZY_MAX | 3 | flags | 23 |
| STR_LEN | 0 | dev | (-1),2-7,9-12,14-17,127 |
| STR_LEN | 0 | dev | (-1),2-7,9-12,14-17,127 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | &led->trigger_lock | ||
| HALF_LOCKED2 | _T->lock |