Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/usb/host/xhci-mem.c xhci_create_secondary_interrupter() -> xhci_add_interrupter()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->interrupters 4096-ptr_max
PARAM_VALUE 0 xhci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 xhci->max_interrupters 2-u16max
PARAM_VALUE 1 intr_num 1-65534
CAPPED_DATA 0 xhci->segment_pool->size 1
CAPPED_DATA 1 intr_num 1
DATA_SOURCE 0 xhci r hcd_to_xhci
FUZZY_MAX 0 xhci->max_interrupters 2
PARAM_COMPARE 1 intr_num < $0->max_interrupters
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &pool->lock
LOCK2 _T->lock
LOCK2 global &qdev_mutex
LOCK2 irq
LOCK2 0 &xhci->lock
HALF_LOCKED2 &txn->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-mem.c xhci_create_secondary_interrupter() -> xhci_add_interrupter()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->interrupters 4096-ptr_max
PARAM_VALUE 0 xhci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 xhci->max_interrupters 2-u16max
PARAM_VALUE 1 intr_num 1-65534
CAPPED_DATA 0 xhci->segment_pool->size 1
CAPPED_DATA 1 intr_num 1
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 1 intr_num $3
FUZZY_MAX 0 xhci->max_interrupters 2
PARAM_COMPARE 1 intr_num < $0->max_interrupters
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &pool->lock
LOCK2 _T->lock
LOCK2 global &qdev_mutex
LOCK2 irq
LOCK2 0 &xhci->lock
HALF_LOCKED2 &txn->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci.c xhci_init() -> xhci_add_interrupter()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 0 xhci->cap_regs 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring->cycle_state 1
PARAM_VALUE 0 xhci->cmd_ring->deq_seg 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring->enq_seg 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring->first_seg 4096-ptr_max
PARAM_VALUE 0 xhci->cmd_ring_reserved_trbs 1
PARAM_VALUE 0 xhci->interrupters 4096-ptr_max
PARAM_VALUE 0 xhci->op_regs 4096-ptr_max
PARAM_VALUE 1 intr_num 0
DATA_SOURCE 0 xhci r hcd_to_xhci
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL