Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/gpio/gpiolib.c, line 453 (as a function)
- include/linux/gpio/consumer.h, line 335 (as a function)
Referenced in 8 files:
- drivers/gpio/gpio-aggregator.c, line 274
- drivers/gpio/gpio-shared-proxy.c
- drivers/gpio/gpio-virtuser.c
- drivers/gpio/gpiolib-kunit.c, line 799
- drivers/gpio/gpiolib-sysfs.c, line 133
- drivers/gpio/gpiolib.c
- drivers/i2c/i2c-core-base.c, line 449
- drivers/tty/serial/mxs-auart.c, line 1523
Smatch caller information:
drivers/gpio/gpio-virtuser.c gpio_virtuser_direction_do_read() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|
drivers/gpio/gpio-virtuser.c gpio_virtuser_do_get_direction_atomic() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|
drivers/gpio/gpiolib-kunit.c gpio_hog_assert() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| DATA_SOURCE | 0 | desc | r gpio_device_get_desc |
drivers/i2c/i2c-core-base.c i2c_init_recovery() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpio/gpiolib-sysfs.c direction_show() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpio/gpio-aggregator.c gpio_fwd_get_direction() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/gpio/gpiolib.c gpiochip_lock_as_irq() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| DATA_SOURCE | 0 | desc | r gpiochip_get_desc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/gpio/gpiolib.c gpiod_request_commit() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| PARAM_VALUE | 0 | desc->gdev | 4096-ptr_max |
| BUF_SIZE | 0 | desc | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | desc | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | desc | $0 |
| STR_LEN | 0 | desc | (-1),5-6 |
| STR_LEN | 0 | desc | (-1),5-6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock |
drivers/gpio/gpiolib.c gpiolib_dbg_show() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 4096-ptr_max |
| DATA_SOURCE | 0 | desc | r gpiochip_get_desc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &s->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/gpio/gpio-shared-proxy.c gpio_shared_proxy_direction_input() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | _T->flags |
drivers/gpio/gpio-shared-proxy.c gpio_shared_proxy_direction_output() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock |
drivers/gpio/gpio-shared-proxy.c gpio_shared_proxy_get_direction() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/tty/serial/mxs-auart.c mxs_auart_init_gpios() -> gpiod_get_direction()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | desc | 1-u64max |
| DATA_SOURCE | 0 | desc | r mctrl_gpio_to_gpiod |
| RX_PATH | |||
| TASK_NOT_RUNNING |