Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- arch/powerpc/kernel/pci-common.c, line 1630
- drivers/pci/hotplug/cpci_hotplug_pci.c
- drivers/pci/pci.c, line 503
Smatch caller information:
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_check_and_clear_ins() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | bus | unit_byte |
| LOCK2 | global &list_rwsem |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_check_ext() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops->read | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 6 |
| UNITS | 0 | bus | unit_byte |
| LOCK2 | global &list_rwsem |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_clear_ext() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | bus | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | global &list_rwsem | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_get_attention_status() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | bus | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_get_hs_csr() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops->read | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 6 |
| UNITS | 0 | bus | unit_byte |
| LOCK2 | global &list_rwsem |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_led_off() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops->read | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 6 |
| UNITS | 0 | bus | unit_byte |
| LOCK2 | global &list_rwsem |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_led_on() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | bus->ops->read | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | bus | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | global &list_rwsem | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/pci/hotplug/cpci_hotplug_pci.c cpci_set_attention_status() -> pci_bus_find_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | bus | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |