Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/usb/gadget/udc/core.c, line 331 (as a function)
- include/linux/usb/gadget.h, line 281 (as a function)
Referenced in 13 files:
- drivers/usb/gadget/composite.c
- drivers/usb/gadget/function/f_ecm.c, line 922
- drivers/usb/gadget/function/f_fs.c
- drivers/usb/gadget/function/f_mass_storage.c
- drivers/usb/gadget/function/f_midi2.c, line 1131
- drivers/usb/gadget/function/f_ncm.c, line 1750
- drivers/usb/gadget/function/f_tcm.c
- drivers/usb/gadget/function/u_audio.c
- drivers/usb/gadget/function/u_serial.c, line 1073
- drivers/usb/gadget/legacy/inode.c
- drivers/usb/gadget/legacy/raw_gadget.c
- drivers/usb/gadget/udc/core.c, line 340
- drivers/usb/gadget/udc/trace.h, line 279
Smatch caller information:
drivers/usb/gadget/function/f_mass_storage.c handle_exception() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
drivers/usb/gadget/function/f_mass_storage.c handle_exception() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
drivers/usb/gadget/legacy/inode.c ep_aio_cancel() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 1-u64max |
| PARAM_VALUE | 1 | req | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctx->ctx_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct kioctx)->ctx_lock |
drivers/usb/gadget/legacy/inode.c ep_io() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 4096-ptr_max |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->buf | 16,4096-ptr_max |
| PARAM_VALUE | 1 | req->complete | 1240551096769953792 |
| PARAM_VALUE | 1 | req->context | 6913620756908961792 |
| PARAM_VALUE | 1 | req->length | 0-4000000 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &epdata->dev->lock | ||
| LOCK2 | &epdata->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct dev_data)->lock | ||
| TYPE_LOCK | (struct ep_data)->lock |
drivers/usb/gadget/legacy/raw_gadget.c dev_free() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/legacy/raw_gadget.c raw_process_ep0_io() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 4096-ptr_max |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->buf | 1-ptr_max |
| BUF_SIZE | 1 | req->buf | 0-4194304 |
| NOCHECK_CALL | |||
| USER_DATA | 1 | req->length | 0-u32max |
| USER_DATA | 1 | req->zero | 0-1[c] |
| USER_PTR | 1 | req->buf |
drivers/usb/gadget/legacy/raw_gadget.c raw_process_ep_io() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 4096-ptr_max |
| PARAM_VALUE | 0 | ep->desc | 4096-ptr_max |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->buf | 1-ptr_max |
| PARAM_VALUE | 1 | req->complete | 3409482950797250560 |
| PARAM_VALUE | 1 | req->context | 8218976021924872192 |
| BUF_SIZE | 1 | req->buf | 0-4194304 |
| BUF_SIZE | 1 | req->context | 96 |
| NOCHECK_CALL | |||
| USER_DATA | 1 | req->length | 0-u32max |
| USER_DATA | 1 | req->zero | 0-1[c] |
| USER_PTR | 1 | req->buf |
drivers/usb/gadget/function/f_ecm.c ecm_unbind() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/function/u_audio.c free_ep() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 1-u64max |
| DATA_SOURCE | 0 | ep | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/u_audio.c free_ep_fback() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 1-u64max |
| PARAM_VALUE | 1 | req | 1-u64max |
| DATA_SOURCE | 0 | ep | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/f_tcm.c usbg_aborted_task() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->status | (-115) |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/f_tcm.c usbg_aborted_task() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->status | (-115) |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/f_tcm.c usbg_aborted_task() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->status | (-115) |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/f_ncm.c ncm_unbind() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/function/u_serial.c gs_console_disconnect() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 1-u64max |
| BUF_SIZE | 0 | ep | 64,664,1792 |
| BUF_SIZE | 0 | ep | 64,664,1792 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &port->port_lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &serial_port_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct gs_port)->port_lock |
drivers/usb/gadget/function/f_fs.c __ffs_ep0_queue_wait() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 4096-ptr_max |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->buf | 1-ptr_max |
| PARAM_VALUE | 1 | req->length | 0-u16max |
| BUF_SIZE | 1 | req->buf | (-1)-1000000000,2147479552 |
| CAPPED_DATA | 1 | req->length | 1 |
| NOSPEC | 1 | req->length | |
| NOCHECK_CALL | |||
| USER_DATA | 1 | req->length | 0-65534[c] |
| USER_DATA | 1 | req->zero | 0-1 |
| USER_PTR | 1 | req->buf | |
| HALF_LOCKED2 | &ffs->mutex |
drivers/usb/gadget/function/f_fs.c ffs_aio_cancel() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 1-u64max |
| PARAM_VALUE | 1 | req | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctx->ctx_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct kioctx)->ctx_lock |
drivers/usb/gadget/function/f_fs.c ffs_dmabuf_detach() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 1-u64max |
| PARAM_VALUE | 1 | req | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &epfile->dmabufs_mutex | ||
| LOCK2 | &ffs->eps_lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct ffs_data)->eps_lock | ||
| TYPE_LOCK | (struct ffs_epfile)->dmabufs_mutex |
drivers/usb/gadget/function/f_fs.c ffs_epfile_io() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 4096-ptr_max |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| PARAM_VALUE | 1 | req->buf | 0,16,4096-ptr_max |
| PARAM_VALUE | 1 | req->complete | 1702283603500187648 |
| PARAM_VALUE | 1 | req->context | 4096-ptr_max |
| BUF_SIZE | 1 | req->buf | s32min-s32max |
| BUF_SIZE | 1 | req->context | 312 |
| NOSPEC | 1 | req->length | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | req->length | 0-u32max |
| LOCK2 | &epfile->ffs->eps_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &epfile->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ffs_data)->eps_lock |
drivers/usb/gadget/function/f_fs.c ffs_epfile_release() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 1-u64max |
| PARAM_VALUE | 1 | req | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &epfile->dmabufs_mutex | ||
| LOCK2 | &ffs->eps_lock | ||
| LOCK2 | irq | ||
| TYPE_LOCK | (struct ffs_data)->eps_lock | ||
| TYPE_LOCK | (struct ffs_epfile)->dmabufs_mutex |
drivers/usb/gadget/function/f_fs.c functionfs_unbind() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/composite.c composite_dev_cleanup() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/composite.c composite_dev_cleanup() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/usb/gadget/function/f_midi2.c f_midi2_drop_reqs() -> usb_ep_dequeue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ep | 1-u64max |
| PARAM_VALUE | 1 | req | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |