Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/usb/core/port.c disable_store() -> usb_hub_set_port_power()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->actconfig 4096-ptr_max
PARAM_VALUE 0 hdev->maxchild s32min-(-1),1-s32max
PARAM_VALUE 1 hub 4096-ptr_max
PARAM_VALUE 1 hub->disconnected 0
PARAM_VALUE 2 port1 0-255
BUF_SIZE 1 hub s32min-(-2),1-s32max
BUF_SIZE 1 hub s32min-(-2),1-s32max
DATA_SOURCE 1 hub r usb_hub_to_struct_hub
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 0 &hdev->dev.mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/core/port.c usb_port_runtime_resume() -> usb_hub_set_port_power()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->actconfig 4096-ptr_max
PARAM_VALUE 0 hdev->maxchild s32min-(-1),1-s32max
PARAM_VALUE 1 hub 4096-ptr_max
PARAM_VALUE 1 hub->in_reset 0
PARAM_VALUE 2 port1 0-255
PARAM_VALUE 3 set 1
BUF_SIZE 1 hub s32min-(-2),1-s32max
BUF_SIZE 1 hub s32min-(-2),1-s32max
DATA_SOURCE 1 hub r usb_hub_to_struct_hub

drivers/usb/core/port.c usb_port_runtime_suspend() -> usb_hub_set_port_power()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->actconfig 4096-ptr_max
PARAM_VALUE 0 hdev->maxchild s32min-(-1),1-s32max
PARAM_VALUE 1 hub 4096-ptr_max
PARAM_VALUE 1 hub->in_reset 0
PARAM_VALUE 2 port1 0-255
PARAM_VALUE 3 set 0
BUF_SIZE 1 hub s32min-(-2),1-s32max
BUF_SIZE 1 hub s32min-(-2),1-s32max
DATA_SOURCE 1 hub r usb_hub_to_struct_hub

drivers/usb/core/hub.c hub_port_connect() -> usb_hub_set_port_power()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->bus 4096-ptr_max
PARAM_VALUE 0 hdev->bus->sysdev 4096-ptr_max
PARAM_VALUE 1 hub 4096-ptr_max
PARAM_VALUE 1 hub->change_bits 4096-ptr_max
PARAM_VALUE 1 hub->event_bits 4096-ptr_max
PARAM_VALUE 1 hub->hdev->bus 4096-ptr_max
PARAM_VALUE 1 hub->hdev->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 hub->removed_bits 4096-ptr_max
PARAM_VALUE 1 hub->status_mutex.dep_map->name 0-255
PARAM_VALUE 1 hub->status_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 hub->status_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 1 hub->wakeup_bits 4096-ptr_max
PARAM_VALUE 1 *hub->hdev->toggle 0-4294967295
PARAM_VALUE 2 port1 1-s32max
PARAM_VALUE 3 set 0
CAPPED_DATA 0 hdev->maxchild 1
CAPPED_DATA 2 port1 1
DATA_SOURCE 1 hub $0
DATA_SOURCE 2 port1 $1 [m]
CONSTRAINT 2 port1 <=3318
NOCHECK_CALL
UNITS 2 port1 unit_array_size
LOCK2 &hdev->dev.mutex
LOCK2 &port_dev->status_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex

drivers/usb/core/hub.c hub_port_connect() -> usb_hub_set_port_power()

Type Parameter Key Value
PARAM_VALUE 0 hdev 4096-ptr_max
PARAM_VALUE 0 hdev->bus 4096-ptr_max
PARAM_VALUE 0 hdev->bus->sysdev 4096-ptr_max
PARAM_VALUE 1 hub 4096-ptr_max
PARAM_VALUE 1 hub->change_bits 4096-ptr_max
PARAM_VALUE 1 hub->descriptor 4096-ptr_max
PARAM_VALUE 1 hub->event_bits 4096-ptr_max
PARAM_VALUE 1 hub->hdev 4096-ptr_max
PARAM_VALUE 1 hub->hdev->bus 4096-ptr_max
PARAM_VALUE 1 hub->hdev->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 hub->removed_bits 4096-ptr_max
PARAM_VALUE 1 hub->status_mutex.dep_map->name 0-255
PARAM_VALUE 1 hub->status_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 hub->status_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 hub->status_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 1 hub->wakeup_bits 4096-ptr_max
PARAM_VALUE 1 *hub->hdev->toggle 0-4294967295
PARAM_VALUE 2 port1 1-s32max
PARAM_VALUE 3 set 1
CAPPED_DATA 0 hdev->maxchild 1
CAPPED_DATA 2 port1 1
DATA_SOURCE 1 hub $0
DATA_SOURCE 2 port1 $1 [m]
CONSTRAINT 2 port1 <=3318
NOCHECK_CALL
UNITS 2 port1 unit_array_size
LOCK2 &hdev->dev.mutex
LOCK2 &port_dev->status_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex