Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/usb/musb/musb_core.c, line 587
- drivers/usb/musb/musb_gadget.c, line 386
- drivers/usb/musb/musb_gadget_ep0.c
- drivers/usb/musb/musb_host.c
- drivers/usb/musb/tusb6010_omap.c, line 143
Smatch caller information:
drivers/usb/musb/musb_gadget_ep0.c ep0_txstate() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-64 |
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| BUF_SIZE | 0 | hw_ep | 6528 |
| CAPPED_DATA | 1 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| LOCK2 | &musb->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | lockflags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/musb/musb_gadget_ep0.c service_tx_status_request() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-2 |
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| BUF_SIZE | 0 | hw_ep | 6528 |
| BUF_SIZE | 2 | src | 2 |
| FUZZY_MAX | 1 | len | 2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| 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_ep_program() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->tx_channel | 0 |
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| CAPPED_DATA | 1 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| HALF_LOCKED2 | &musb->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/musb/musb_host.c musb_ep_program() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->tx_channel | 0 |
| PARAM_VALUE | 1 | len | 1-u16max |
| PARAM_VALUE | 2 | src | 1-u64max |
| BUF_SIZE | 2 | src | s32min-(-1),1-s32max |
| BUF_SIZE | 2 | src | s32min-(-1),1-s32max |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 2 | src | $4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| HALF_LOCKED2 | &musb->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/musb/musb_host.c musb_h_ep0_continue() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->ep_in.current_epnum | 0-254 |
| PARAM_VALUE | 0 | hw_ep->ep_in.dma | 0 |
| PARAM_VALUE | 0 | hw_ep->ep_in.hw_ep | 0-254 |
| PARAM_VALUE | 0 | hw_ep->ep_in.is_in | 0-1 |
| PARAM_VALUE | 0 | hw_ep->ep_in.packet_sz | 0-2047 |
| PARAM_VALUE | 0 | hw_ep->ep_in.type | 0-3 |
| PARAM_VALUE | 0 | hw_ep->ep_in.wedged | 0-1 |
| PARAM_VALUE | 0 | hw_ep->ep_out.current_epnum | 0-254 |
| PARAM_VALUE | 0 | hw_ep->ep_out.dma | 0 |
| PARAM_VALUE | 0 | hw_ep->ep_out.hw_ep | 0-254 |
| PARAM_VALUE | 0 | hw_ep->ep_out.is_in | 0-1 |
| PARAM_VALUE | 0 | hw_ep->ep_out.packet_sz | 0-2047 |
| PARAM_VALUE | 0 | hw_ep->ep_out.type | 0-3 |
| PARAM_VALUE | 0 | hw_ep->ep_out.wedged | 0-1 |
| PARAM_VALUE | 0 | hw_ep->in_qh | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->rx_channel | 0 |
| PARAM_VALUE | 0 | hw_ep->rx_reinit | 0-1 |
| PARAM_VALUE | 0 | hw_ep->tx_channel | 0 |
| PARAM_VALUE | 0 | hw_ep->tx_reinit | 1 |
| PARAM_VALUE | 1 | len | 1-u16max |
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| BUF_SIZE | 0 | hw_ep | 6528 |
| BUF_SIZE | 0 | hw_ep | 6528 |
| CAPPED_DATA | 1 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| 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() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->out_qh | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->out_qh->sg_miter.addr | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->out_qh->sg_miter.consumed | 0-u32max |
| PARAM_VALUE | 0 | hw_ep->out_qh->sg_miter.length | 0-u32max |
| PARAM_VALUE | 0 | hw_ep->out_qh->sg_miter.piter.sg | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->tx_channel | 0 |
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| CAPPED_DATA | 1 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| 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() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->out_qh | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->tx_channel | 0 |
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| CAPPED_DATA | 1 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| LOCK2 | &musb->lock | ||
| HALF_LOCKED2 | &desc->request_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/musb/musb_gadget.c txstate() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | src | 4096-ptr_max |
| CAPPED_DATA | 1 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| UNITS | 2 | src | unit_byte |
| LOCK2 | &musb->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct musb)->lock |
drivers/usb/musb/musb_core.c musb_load_testpacket() -> musb_write_fifo()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hw_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | hw_ep->ep_in.current_epnum | 0-254 |
| PARAM_VALUE | 0 | hw_ep->ep_in.is_in | 0-1 |
| PARAM_VALUE | 0 | hw_ep->ep_in.packet_sz | 0-2047 |
| PARAM_VALUE | 0 | hw_ep->ep_in.type | 0-3 |
| PARAM_VALUE | 0 | hw_ep->ep_in.wedged | 0-1 |
| PARAM_VALUE | 0 | hw_ep->ep_out.current_epnum | 0-254 |
| PARAM_VALUE | 0 | hw_ep->ep_out.is_in | 0-1 |
| PARAM_VALUE | 0 | hw_ep->ep_out.packet_sz | 0-2047 |
| PARAM_VALUE | 0 | hw_ep->ep_out.type | 0-3 |
| PARAM_VALUE | 0 | hw_ep->ep_out.wedged | 0-1 |
| PARAM_VALUE | 0 | hw_ep->rx_reinit | 0-1 |
| PARAM_VALUE | 0 | hw_ep->tx_reinit | 1 |
| PARAM_VALUE | 1 | len | 53 |
| PARAM_VALUE | 2 | src | 2993839023197515776 |
| BUF_SIZE | 0 | hw_ep | 6528 |
| BUF_SIZE | 2 | src | 53 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | len | unit_byte |
| HALF_LOCKED2 | &musb->lock | ||
| HALF_LOCKED2 | flags |