Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/gpio/gpio-rcar.c, line 620
- drivers/gpio/gpiolib-cdev.c, line 2217
- drivers/gpio/gpiolib-sysfs.c, line 482
- drivers/gpio/gpiolib.c
- drivers/pinctrl/qcom/pinctrl-msm.c
- drivers/pinctrl/stm32/pinctrl-stm32.c
Smatch caller information:
drivers/gpio/gpio-rcar.c gpio_rcar_resume() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-65534 |
| CAPPED_DATA | 1 | offset | 1 |
| CONSTRAINT | 1 | offset | <90 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpio/gpiolib-sysfs.c export_gpio_desc() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 1-u64max |
| DATA_SOURCE | 1 | offset | r gpiod_hwgpio |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpio/gpiolib-cdev.c gpio_desc_to_lineinfo() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 1-u64max |
| DATA_SOURCE | 1 | offset | r gpiod_hwgpio |
| BIT_INFO | 1 | offset | 0x0,0x7fffffff |
| LOCK2 | _T->lock |
drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pconf_dbg_show() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| PARAM_VALUE | 0 | gc->gpiodev | 4096-ptr_max |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 1 | offset | r stm32_gpio_pin |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &pctldev->mutex | ||
| LOCK2 | &s->lock | ||
| TYPE_LOCK | (struct pinctrl_dev)->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pconf_parse_conf() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| PARAM_VALUE | 0 | gc->gpiodev | 4096-ptr_max |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 1 | offset | r stm32_gpio_pin |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pctldev->mutex |
drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pinctrl_restore_gpio_regs() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| PARAM_VALUE | 0 | gc->gpiodev | 4096-ptr_max |
| DATA_SOURCE | 1 | offset | r stm32_gpio_pin |
| BIT_INFO | 1 | offset | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pmx_request() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | offset | r stm32_gpio_pin |
| BIT_INFO | 1 | offset | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pctldev->mutex |
drivers/gpio/gpiolib.c gpiochip_add_data_with_key() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| PARAM_VALUE | 0 | gc->gpiodev | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-65534 |
| BUF_SIZE | 0 | gc | (-1),512 |
| BUF_SIZE | 0 | gc | (-1),512 |
| BUF_SIZE | 0 | gc->fwnode | (-1),64 |
| BUF_SIZE | 0 | gc->gpiodev | 2416 |
| BUF_SIZE | 0 | gc->label | s32min,(-10),(-1)-s32max |
| BUF_SIZE | 0 | gc->names | (-1)-s32max |
| BUF_SIZE | 0 | gc->parent | (-1)-0,24-s32max |
| CAPPED_DATA | 0 | gc->base | 1 |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 0 | gc | $0 |
| STR_LEN | 0 | gc->label | (-1),9-10,12,15 |
| PARAM_COMPARE | 1 | offset | < $0->ngpio |
| CONSTRAINT | 1 | offset | <90 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | gc->ngpio | 1-u16max[c] |
| NO_OVERFLOW_SIMPLE | 0 | gc->ngpio | |
| NO_OVERFLOW_SIMPLE | 1 | offset | |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &bank->deferred_lock | ||
| HALF_LOCKED2 | &card->mutex | ||
| HALF_LOCKED2 | &hdev->driver_input_lock |
drivers/gpio/gpiolib.c gpiochip_irqchip_irq_valid() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | gc | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | gc | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | gc->fwnode | (-1)-0,64 |
| BUF_SIZE | 0 | gc->label | (-1),12 |
| BUF_SIZE | 0 | gc->parent | (-1),1616 |
| DATA_SOURCE | 0 | gc | $0 |
| DATA_SOURCE | 1 | offset | $1 |
| STR_LEN | 0 | gc->label | (-1),11 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | gc->irq.domain->hwirq_max | |
| NO_OVERFLOW_SIMPLE | 0 | gc->irq.domain->revmap_size | |
| NO_OVERFLOW_SIMPLE | 0 | gc->ngpio | |
| NO_OVERFLOW_SIMPLE | 1 | offset | |
| UNITS | 0 | gc | unit_byte |
| HALF_LOCKED2 | &d->root->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/gpio/gpiolib.c gpiod_request_commit() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 1-u64max |
| DATA_SOURCE | 1 | offset | r gpiod_hwgpio |
| BIT_INFO | 1 | offset | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/pinctrl/qcom/pinctrl-msm.c msm_config_group_get() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-s32max |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 1 | offset | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &pctldev->mutex | ||
| LOCK2 | &s->lock | ||
| HALF_LOCKED2 | &pctldev->mutex | ||
| TYPE_LOCK | (struct pinctrl_dev)->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/pinctrl/qcom/pinctrl-msm.c msm_gpio_dbg_show_one() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 3758046457494695936 |
| PARAM_VALUE | 0 | gc->gpiodev | 4096-ptr_max |
| DATA_SOURCE | 0 | gc | $2 |
| DATA_SOURCE | 1 | offset | $3 |
| CONSTRAINT | 1 | offset | <90 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &s->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/pinctrl/qcom/pinctrl-msm.c msm_pinmux_request() -> gpiochip_line_is_valid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gc | 4096-ptr_max |
| BUF_SIZE | 0 | gc | 512 |
| DATA_SOURCE | 1 | offset | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pctldev->mutex |