Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/usb/host/xhci-mem.c xhci_alloc_command_with_ctx() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3072,3264,10240
DATA_SOURCE 0 xhci $0
DATA_SOURCE 1 allocate_completion $1
DATA_SOURCE 2 mem_flags $2
HARD_MAX 2 mem_flags 10240
RX_PATH
TASK_NOT_RUNNING

drivers/usb/host/xhci-hub.c xhci_stop_device() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 0 xhci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3072
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING

drivers/usb/host/xhci-hub.c xhci_stop_device() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 0 xhci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 allocate_completion 0
PARAM_VALUE 2 mem_flags 10240
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &xhci->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_handle_cmd_stop_ep() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring->deq_seg 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring->dequeue 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring->dequeue->generic.field 4096-ptr_max
PARAM_VALUE 0 xhci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 xhci->max_slots 1-255
PARAM_VALUE 1 allocate_completion 0
PARAM_VALUE 2 mem_flags 2080
CAPPED_DATA 0 xhci->cmd_ring->deq_seg->trbs 1
CAPPED_DATA 0 xhci->cmd_ring->dequeue 1
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_move_dequeue_past_td() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 0 xhci->max_slots 1-255
PARAM_VALUE 1 allocate_completion 0
PARAM_VALUE 2 mem_flags 2080
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &xhci->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_reset_halted_ep() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->max_slots 1-255
PARAM_VALUE 1 allocate_completion 0
PARAM_VALUE 2 mem_flags 2080
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci.c xhci_alloc_dev() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
DATA_SOURCE 0 xhci r hcd_to_xhci
RX_PATH
TASK_NOT_RUNNING

drivers/usb/host/xhci.c xhci_check_bandwidth() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
DATA_SOURCE 0 xhci r hcd_to_xhci
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffa
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_check_ep0_maxpacket() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_disable_slot() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING

drivers/usb/host/xhci.c xhci_discover_or_reset_device() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3072
DATA_SOURCE 0 xhci r hcd_to_xhci
BIT_INFO 0 xhci->quirks 0x0,0xfffdffffffffffff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &hdev->dev.mutex
HALF_LOCKED2 &port_dev->status_lock

drivers/usb/host/xhci.c xhci_endpoint_reset() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 0 xhci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 10240
DATA_SOURCE 0 xhci r hcd_to_xhci
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_get_port_bandwidth() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->main_hcd->self.controller->power.request 0-4
PARAM_VALUE 0 xhci->main_hcd->self.controller->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 xhci->main_hcd->self.controller->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 xhci->port_bw_pool->dev->cma_area->alloc_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 xhci->port_bw_pool->dev->cma_area->alloc_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 xhci->port_bw_pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 xhci->port_bw_pool->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 xhci->port_bw_pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 xhci->port_bw_pool->size 0-s32max
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
BUF_SIZE 0 xhci s32min-(-2),1-s32max
BUF_SIZE 0 xhci s32min-(-2),1-s32max
CAPPED_DATA 0 xhci->port_bw_pool->size 1
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 xhci unit_array_size
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock

drivers/usb/host/xhci.c xhci_run() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->interrupters 4096-ptr_max
PARAM_VALUE 1 allocate_completion 0
PARAM_VALUE 2 mem_flags 3264
DATA_SOURCE 0 xhci r hcd_to_xhci
BIT_INFO 0 xhci->quirks 0x4,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING

drivers/usb/host/xhci.c xhci_setup_device() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 0 xhci->mutex.dep_map->name 0-255
PARAM_VALUE 0 xhci->mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 xhci->mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 xhci->mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 xhci->mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 xhci->mutex.wait_lock.owner (-1)
PARAM_VALUE 0 xhci->mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 xhci->xhc_state 0
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
CAPPED_DATA 0 &xhci->mutex 1
DATA_SOURCE 0 xhci r hcd_to_xhci
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->mutex
TYPE_LOCK (struct xhci_hcd)->mutex

drivers/usb/host/xhci.c xhci_stop_endpoint_sync() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 1 allocate_completion 1
PARAM_VALUE 2 mem_flags 3264
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 mem_flags $3
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 xhci->segment_pool->allocation
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &qdev_mutex

drivers/usb/host/xhci.c xhci_urb_dequeue() -> xhci_alloc_command()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->devs 4096-ptr_max
PARAM_VALUE 0 xhci->op_regs 4096-ptr_max
PARAM_VALUE 1 allocate_completion 0
PARAM_VALUE 2 mem_flags 2080
DATA_SOURCE 0 xhci r hcd_to_xhci
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffc
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &xhci->lock
HALF_LOCKED2 irq
TYPE_LOCK (struct xhci_hcd)->lock