Defined in 2 files as a function:
- drivers/usb/cdns3/cdnsp-ring.c, line 1723 (as a function)
- drivers/usb/host/xhci-ring.c, line 3364 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/usb/host/xhci-ring.c xhci_queue_bulk_tx() -> count_trbs_needed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | preq | 4096-ptr_max |
| PARAM_VALUE | 0 | preq->transfer_buffer_length | 0-s32max |
| CAPPED_DATA | 0 | preq->dev | 1 |
| CAPPED_DATA | 0 | preq->dev->slot_id | 1 |
| CAPPED_DATA | 0 | preq->transfer_buffer_length | 1 |
| DATA_SOURCE | 0 | preq | $2 |
| FUZZY_MAX | 0 | preq->transfer_buffer_length | 1 |
| NO_OVERFLOW_SIMPLE | 0 | preq->num_mapped_sgs | |
| LOCK2 | &xhci->lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct xhci_hcd)->lock |
drivers/usb/cdns3/cdnsp-ring.c cdnsp_queue_bulk_tx() -> count_trbs_needed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | preq | 4096-ptr_max |
| DATA_SOURCE | 0 | preq | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &pdev->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct cdnsp_device)->lock |
drivers/usb/cdns3/cdnsp-ring.c cdnsp_queue_isoc_tx() -> count_trbs_needed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | preq | 4096-ptr_max |
| DATA_SOURCE | 0 | preq | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &pdev->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct cdnsp_device)->lock |