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-ring.c count_isoc_trbs_needed() -> count_trbs()

Type Parameter Key Value
PARAM_VALUE 1 len 0-u32max
UNITS 0 addr unit_byte
UNITS 1 len unit_byte
LOCK2 &xhci->lock
LOCK2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c count_sg_trbs_needed() -> count_trbs()

Type Parameter Key Value
NO_OVERFLOW_SIMPLE 1 len
UNITS 0 addr unit_byte
UNITS 1 len unit_byte
LOCK2 &xhci->lock
LOCK2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c count_trbs_needed() -> count_trbs()

Type Parameter Key Value
PARAM_VALUE 1 len 0-s32max
FUZZY_MAX 1 len 1
NO_OVERFLOW_SIMPLE 1 len
UNITS 0 addr unit_byte
UNITS 1 len unit_byte
LOCK2 &xhci->lock
LOCK2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-dbgcap.c xhci_dbc_queue_bulk_tx() -> count_trbs()

Type Parameter Key Value
PARAM_VALUE 0 addr 0-18446744073709551614
PARAM_VALUE 1 len 1-u32max
BIT_INFO 1 len 0x0,0x7fffffff
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dbc->lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_dbc)->lock