Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/usb/chipidea/host.c, line 458
- drivers/usb/core/hcd.c
- drivers/usb/dwc2/hcd.c, line 2531
- drivers/usb/host/octeon-hcd.c, line 510
- drivers/usb/host/xhci.c, line 1440
- drivers/usb/musb/musb_host.c
Smatch caller information:
drivers/usb/chipidea/host.c ci_hdrc_unmap_urb_for_dma() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver->unmap_urb_for_dma | 1-u64max |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->hcpriv | 0 |
| PARAM_VALUE | 1 | urb->iso_frame_desc->actual_length | 0-4294967295 |
| BUF_SIZE | 1 | urb->context | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | hcd | 1 |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| NOSPEC | 1 | urb->transfer_buffer_length | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | urb->start_frame | 0-s32max |
| USER_DATA | 1 | urb->actual_length | 0-u32max[c][u] |
| USER_DATA | 1 | urb->transfer_buffer_length | 1-s32max |
| NO_OVERFLOW_SIMPLE | 1 | urb->actual_length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->num_mapped_sgs | |
| NO_OVERFLOW_SIMPLE | 1 | urb->setup_dma | |
| NO_OVERFLOW_SIMPLE | 1 | urb->sg->length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_dma |
drivers/usb/dwc2/hcd.c dwc2_unmap_urb_for_dma() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver->unmap_urb_for_dma | 1-u64max |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->hcpriv | 0 |
| PARAM_VALUE | 1 | urb->iso_frame_desc->actual_length | 0-4294967295 |
| BUF_SIZE | 1 | urb->context | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | hcd | 1 |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| NOSPEC | 1 | urb->transfer_buffer_length | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | urb->start_frame | 0-s32max |
| USER_DATA | 1 | urb->actual_length | 0-u32max[c][u] |
| USER_DATA | 1 | urb->transfer_buffer_length | 1-s32max |
| NO_OVERFLOW_SIMPLE | 1 | urb->actual_length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->num_mapped_sgs | |
| NO_OVERFLOW_SIMPLE | 1 | urb->setup_dma | |
| NO_OVERFLOW_SIMPLE | 1 | urb->sg->length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_dma |
drivers/usb/host/xhci.c xhci_unmap_urb_for_dma() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver->unmap_urb_for_dma | 1-u64max |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->hcpriv | 0 |
| PARAM_VALUE | 1 | urb->iso_frame_desc->actual_length | 0-4294967295 |
| BUF_SIZE | 1 | urb->context | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | hcd | 1 |
| CAPPED_DATA | 0 | hcd->primary_hcd | 1 |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| PARAM_COMPARE | 0 | hcd | >= $0->primary_hcd |
| PARAM_COMPARE | 0 | hcd | >= $0->primary_hcd |
| NOSPEC | 1 | urb->transfer_buffer_length | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | urb->start_frame | 0-s32max |
| USER_DATA | 1 | urb->actual_length | 0-u32max[c][u] |
| USER_DATA | 1 | urb->transfer_buffer_length | 1-s32max |
| NO_OVERFLOW_SIMPLE | 1 | urb->actual_length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->num_mapped_sgs | |
| NO_OVERFLOW_SIMPLE | 1 | urb->setup_dma | |
| NO_OVERFLOW_SIMPLE | 1 | urb->sg->length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_dma |
drivers/usb/musb/musb_host.c musb_host_rx() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->status | (-115) |
| DATA_SOURCE | 1 | urb | r next_urb |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &musb->lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/musb/musb_host.c musb_host_tx() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->status | (-115) |
| DATA_SOURCE | 1 | urb | r next_urb |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &musb->lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/core/hcd.c unmap_urb_for_dma() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver->unmap_urb_for_dma | 0 |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->hcpriv | 0 |
| PARAM_VALUE | 1 | urb->iso_frame_desc->actual_length | 0-4294967295 |
| BUF_SIZE | 1 | urb->context | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | hcd | 1 |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| NOSPEC | 1 | urb->transfer_buffer_length | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | urb->start_frame | 0-s32max |
| USER_DATA | 1 | urb->actual_length | 0-u32max[c][u] |
| USER_DATA | 1 | urb->transfer_buffer_length | 1-s32max |
| NO_OVERFLOW_SIMPLE | 1 | urb->actual_length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->num_mapped_sgs | |
| NO_OVERFLOW_SIMPLE | 1 | urb->setup_dma | |
| NO_OVERFLOW_SIMPLE | 1 | urb->sg->length | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_buffer | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_dma |
drivers/usb/core/hcd.c usb_hcd_map_urb_for_dma() -> usb_hcd_unmap_urb_for_dma()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hcd | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | hcd->self.sysdev->dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 1 | urb | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->actual_length | 0 |
| PARAM_VALUE | 1 | urb->complete | 1-u64max |
| PARAM_VALUE | 1 | urb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->ep | 4096-ptr_max |
| PARAM_VALUE | 1 | urb->ep->desc.bmAttributes | 1-255 |
| PARAM_VALUE | 1 | urb->status | (-115) |
| PARAM_VALUE | 1 | urb->transfer_buffer_length | 1-s32max |
| PARAM_VALUE | 1 | urb->transfer_flags | 1048576-u32max |
| BUF_SIZE | 1 | urb->context | (-1),96 |
| BUF_SIZE | 1 | urb->ep | (-1),88 |
| BUF_SIZE | 1 | urb->setup_packet | (-1),8 |
| BUF_SIZE | 1 | urb->transfer_buffer | (-1),18 |
| CAPPED_DATA | 0 | hcd | 1 |
| DATA_SOURCE | 0 | hcd | $0 |
| DATA_SOURCE | 1 | urb | $1 |
| BIT_INFO | 1 | urb->transfer_flags | 0x0,0xfffffffb |
| RX_PATH | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | urb->num_mapped_sgs | |
| NO_OVERFLOW_SIMPLE | 1 | urb->transfer_buffer_length |