Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/usb/cdns3/cdns3-ep0.c
- drivers/usb/cdns3/cdns3-gadget.c
- drivers/usb/cdns3/cdns3-trace.h, line 266
Smatch caller information:
drivers/usb/cdns3/cdns3-gadget.c cdns3_gadget_ep_dequeue() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | (-104) |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ctx->ctx_lock | ||
| HALF_LOCKED2 | &epdata->dev->lock | ||
| HALF_LOCKED2 | &epdata->lock | ||
| HALF_LOCKED2 | &epfile->dmabufs_mutex | ||
| HALF_LOCKED2 | &epfile->ffs->eps_lock | ||
| HALF_LOCKED2 | &ffs->eps_lock | ||
| HALF_LOCKED2 | &port->port_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-gadget.c cdns3_gadget_ep_disable() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev->regs | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | (-108) |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| PARAM_COMPARE | 0 | &priv_ep->pending_req_list | != $0->pending_req_list.next |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &ep->lock | ||
| HALF_LOCKED2 | &func->ffs->eps_lock | ||
| HALF_LOCKED2 | &port->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-gadget.c cdns3_gadget_ep_disable() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev->regs | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | (-108) |
| CAPPED_DATA | 0 | &priv_ep->deferred_req_list | 1 |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| CAPPED_DATA | 0 | &priv_ep->wa2_descmiss_req_list | 1 |
| PARAM_COMPARE | 0 | &priv_ep->deferred_req_list | != $0->deferred_req_list.next |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &ep->lock | ||
| HALF_LOCKED2 | &func->ffs->eps_lock | ||
| HALF_LOCKED2 | &port->lock | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-gadget.c cdns3_transfer_completed() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev->regs | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | 0 |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| CAPPED_DATA | 1 | priv_req->end_trb | 1 |
| CAPPED_DATA | 1 | priv_req->num_of_trb | 1 |
| DATA_SOURCE | 0 | priv_ep | $1 |
| PARAM_COMPARE | 0 | &priv_ep->pending_req_list | != $0->pending_req_list.next |
| PARAM_COMPARE | 1 | priv_req->end_trb | <= $1->start_trb |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | bh | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-gadget.c cdns3_transfer_completed() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev->regs | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->stream_sg_idx | 0 |
| PARAM_VALUE | 0 | priv_ep->trb_pool | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | 0 |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| DATA_SOURCE | 0 | priv_ep | $1 |
| PARAM_COMPARE | 0 | &priv_ep->pending_req_list | != $0->pending_req_list.next |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | bh | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-gadget.c cdns3_wa2_gadget_ep_queue() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->cdns3_dev->dev_ver | 0-148747 |
| PARAM_VALUE | 0 | priv_ep->pending_req_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->pending_req_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->pending_req_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->pending_req_list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req->request.list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req->request.sg | 0,4096-ptr_max |
| PARAM_VALUE | 1 | priv_req->request.status | (-12) |
| PARAM_VALUE | 2 | status | (-12) |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| CAPPED_DATA | 0 | &priv_ep->wa2_descmiss_req_list | 1 |
| DATA_SOURCE | 0 | priv_ep | $1 |
| DATA_SOURCE | 1 | priv_req | $2 |
| FUZZY_MAX | 0 | priv_ep->cdns3_dev->dev_ver | 148747 |
| PARAM_COMPARE | 0 | &priv_ep->pending_req_list | == $0->pending_req_list.next |
| PARAM_COMPARE | 0 | &priv_ep->wa2_descmiss_req_list | != $0->wa2_descmiss_req_list.next |
| BIT_INFO | 0 | priv_ep->flags | 0x2000,0xffffffffffffffff |
| BIT_INFO | 1 | priv_req->flags | 0x0,0xfffffffd |
| HARD_MAX | 0 | priv_ep->cdns3_dev->dev_ver | 148747 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | status | unit_byte |
| LOCK2 | &priv_dev->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | flags | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-ep0.c cdns3_ep0_setup_phase() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->dir | 0,128 |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | (-104) |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| PARAM_COMPARE | 0 | &priv_ep->pending_req_list | != $0->pending_req_list.next |
| BIT_INFO | 0 | priv_ep->dir | 0x0,0x80 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | bh | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct cdns3_device)->lock |
drivers/usb/cdns3/cdns3-ep0.c cdns3_transfer_completed() -> cdns3_gadget_giveback()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | priv_ep | 4096-ptr_max |
| PARAM_VALUE | 0 | priv_ep->dir | 0,128 |
| PARAM_VALUE | 0 | priv_ep->trb_pool | 4096-ptr_max |
| PARAM_VALUE | 1 | priv_req | 4096-ptr_max |
| PARAM_VALUE | 2 | status | 0 |
| CAPPED_DATA | 0 | priv_ep->dir | 1 |
| CAPPED_DATA | 0 | &priv_ep->pending_req_list | 1 |
| PARAM_COMPARE | 0 | &priv_ep->pending_req_list | != $0->pending_req_list.next |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv_dev->lock | ||
| LOCK2 | bh | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct cdns3_device)->lock |