Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/gpio/gpio-nomadik.c, line 431
- drivers/gpio/gpiolib-acpi-core.c, line 145
- drivers/gpio/gpiolib-cdev.c
- drivers/gpio/gpiolib-kunit.c, line 796
- drivers/gpio/gpiolib-swnode.c, line 96
- drivers/gpio/gpiolib-sysfs.c, line 546
- drivers/gpio/gpiolib.c
- drivers/pinctrl/pinctrl-da9062.c, line 142
- drivers/platform/cznic/turris-omnia-mcu-gpio.c, line 1117
Smatch caller information:
drivers/gpio/gpiolib-kunit.c gpio_hog_assert() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| PARAM_VALUE | 1 | hwnum | 0-2 |
| DATA_SOURCE | 0 | gdev | r gpio_device_find_by_label |
| DATA_SOURCE | 1 | hwnum | $1 |
| HARD_MAX | 1 | hwnum | 2 |
drivers/gpio/gpio-nomadik.c nmk_gpio_dbg_show_one() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| CAPPED_DATA | 0 | gdev->ngpio | 1 |
| DATA_SOURCE | 1 | hwnum | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &pctldev->mutex | ||
| LOCK2 | &s->lock | ||
| TYPE_LOCK | (struct pinctrl_dev)->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/gpio/gpiolib-acpi-core.c acpi_get_gpiod() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| PARAM_VALUE | 1 | hwnum | 0-u16max |
| DATA_SOURCE | 0 | gdev | r gpio_device_find |
| DATA_SOURCE | 1 | hwnum | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctrl->lock | ||
| HALF_LOCKED2 | global &acpi_link_lock | ||
| HALF_LOCKED2 | global &ioapic_list_lock |
drivers/gpio/gpiolib-swnode.c swnode_find_gpio() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| DATA_SOURCE | 0 | gdev | r swnode_get_gpio_device |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &consumer->mutex |
drivers/gpio/gpiolib-sysfs.c do_chip_export_store() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | hwnum | |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpio/gpiolib-cdev.c lineevent_create() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| DATA_SOURCE | 0 | gdev | $0 |
| USER_DATA | 1 | hwnum | 0-u32max |
| LOCK2 | _T->lock |
drivers/gpio/gpiolib-cdev.c linehandle_create() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| DATA_SOURCE | 0 | gdev | $0 |
| USER_DATA | 1 | hwnum | 0-u32max |
| LOCK2 | _T->lock |
drivers/gpio/gpiolib-cdev.c lineinfo_get() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| USER_DATA | 1 | hwnum | 0-u32max |
| LOCK2 | _T->lock |
drivers/gpio/gpiolib-cdev.c lineinfo_get_v1() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| USER_DATA | 1 | hwnum | 0-u32max |
| LOCK2 | _T->lock |
drivers/gpio/gpiolib-cdev.c linereq_create() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| DATA_SOURCE | 0 | gdev | $0 |
| USER_DATA | 1 | hwnum | 0-u32max |
| LOCK2 | _T->lock |
drivers/pinctrl/pinctrl-da9062.c da9062_gpio_direction_input() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| DATA_SOURCE | 1 | hwnum | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->flags | ||
| HALF_LOCKED2 | _T->lock |
drivers/gpio/gpiolib.c gpio_desc_table_match() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gdev | 4096-ptr_max |
| PARAM_VALUE | 1 | hwnum | 0-65534 |
| CAPPED_DATA | 0 | gdev->chip | 1 |
| CAPPED_DATA | 1 | hwnum | 1 |
| DATA_SOURCE | 0 | gdev | r gpio_device_find_by_label |
| CONSTRAINT | 1 | hwnum | <90 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &dev->mutex |
drivers/gpio/gpiolib.c gpiochip_get_desc() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | gdev | (-1),2416 |
| BUF_SIZE | 0 | gdev | (-1),2416 |
| DATA_SOURCE | 1 | hwnum | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | hwnum | |
| UNITS | 1 | hwnum | unit_array_size |
| HALF_LOCKED2 | &s->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/cznic/turris-omnia-mcu-gpio.c omnia_mcu_request_irq() -> gpio_device_get_desc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | hwnum | 4-7,11-14,16,28-47 |
| RX_PATH | |||
| TASK_NOT_RUNNING |