Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/usb/cdns3/cdns3-gadget.c cdns3_gadget_ep_enable() -> cdns3_allocate_trb_pool()

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->gadget.speed 0-5
PARAM_VALUE 0 priv_ep->endpoint.comp_desc 0,4096-ptr_max
PARAM_VALUE 0 priv_ep->endpoint.desc 4096-ptr_max
PARAM_VALUE 0 priv_ep->endpoint.desc->bDescriptorType 5
PARAM_VALUE 0 priv_ep->endpoint.desc->wMaxPacketSize 1-u16max
PARAM_VALUE 0 priv_ep->type 0-3
BUF_SIZE 0 priv_ep->endpoint.desc (-1),9
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 priv_ep->endpoint.desc->bDescriptorType 5[u]
USER_DATA 0 priv_ep->endpoint.desc->bEndpointAddress 0-255
USER_DATA 0 priv_ep->endpoint.desc->bInterval 0-255
USER_DATA 0 priv_ep->endpoint.desc->bLength 0-255
USER_DATA 0 priv_ep->endpoint.desc->bRefresh 0-255
USER_DATA 0 priv_ep->endpoint.desc->bSynchAddress 0-255
USER_DATA 0 priv_ep->endpoint.desc->bmAttributes 0-255
USER_DATA 0 priv_ep->endpoint.desc->wMaxPacketSize 1-u16max
USER_DATA 0 priv_ep->type 0,2-3[c]
USER_PTR 0 priv_ep->endpoint.desc
LOCK2 &priv_dev->lock
LOCK2 flags
HALF_LOCKED2 &data->dev->lock
HALF_LOCKED2 &data->lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &func->ffs->eps_lock
HALF_LOCKED2 &port->lock
HALF_LOCKED2 &udc->connect_lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
TYPE_LOCK (struct cdns3_device)->lock

drivers/usb/cdns3/cdns3-ep0.c cdns3_init_ep0() -> cdns3_allocate_trb_pool()

Type Parameter Key Value
PARAM_VALUE 0 priv_ep 4096-ptr_max
PARAM_VALUE 0 priv_ep->alloc_ring_size 0
PARAM_VALUE 0 priv_ep->cdns3_dev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->aligned_buf_list.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->aligned_buf_list.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->dev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->eps_dma_pool 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.bus 7270825433333444608
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.devres_head.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.dma_io_tlb_mem 1473117533515866112
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.dma_io_tlb_pools.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.dma_pools.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.dma_pools.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.kobj.kref.refcount.refs.counter 1
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.kobj.ktype 5399513539053756416
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.kobj.state_initialized 1
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.links.consumers.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.links.consumers.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.links.defer_sync.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.links.defer_sync.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.links.suppliers.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.links.suppliers.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.numa_node (-1)
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.parent 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.disable_depth 1
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.early_init 1
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.entry.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.entry.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.last_status (-1)
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.runtime_auto 1
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.runtime_status 2
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.wait_queue.head.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.power.wait_queue.head.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.dev.release 1-u64max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.ep_list.next 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.ep_list.prev 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.max_speed 2-3,5
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.name 7104171300211212288
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.ops 3405233180705476608
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.quirk_avoids_skb_reserve 1
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.speed 0
PARAM_VALUE 0 priv_ep->cdns3_dev->gadget.teardown 0
PARAM_VALUE 0 priv_ep->cdns3_dev->onchip_buffers 1-u16max
PARAM_VALUE 0 priv_ep->cdns3_dev->regs 4096-ptr_max
PARAM_VALUE 0 priv_ep->cdns3_dev->sysdev 4096-ptr_max
PARAM_VALUE 0 priv_ep->deferred_req_list.next 0
PARAM_VALUE 0 priv_ep->deferred_req_list.prev 0
PARAM_VALUE 0 priv_ep->dir 0
PARAM_VALUE 0 priv_ep->endpoint.address 0
PARAM_VALUE 0 priv_ep->endpoint.caps.dir_in 1
PARAM_VALUE 0 priv_ep->endpoint.caps.dir_out 1
PARAM_VALUE 0 priv_ep->endpoint.caps.type_bulk 0
PARAM_VALUE 0 priv_ep->endpoint.caps.type_control 1
PARAM_VALUE 0 priv_ep->endpoint.caps.type_int 0
PARAM_VALUE 0 priv_ep->endpoint.caps.type_iso 0
PARAM_VALUE 0 priv_ep->endpoint.desc 6056449484047020032
PARAM_VALUE 0 priv_ep->endpoint.ep_list.next 0
PARAM_VALUE 0 priv_ep->endpoint.ep_list.prev 0
PARAM_VALUE 0 priv_ep->endpoint.max_streams 0
PARAM_VALUE 0 priv_ep->endpoint.maxburst 1
PARAM_VALUE 0 priv_ep->endpoint.maxpacket 512
PARAM_VALUE 0 priv_ep->endpoint.maxpacket_limit 512
PARAM_VALUE 0 priv_ep->endpoint.name 0
PARAM_VALUE 0 priv_ep->endpoint.ops 8672691517813542912
PARAM_VALUE 0 priv_ep->flags 0
PARAM_VALUE 0 priv_ep->name 0
PARAM_VALUE 0 priv_ep->num 0
PARAM_VALUE 0 priv_ep->num_trbs 0
PARAM_VALUE 0 priv_ep->pending_req_list.next 0
PARAM_VALUE 0 priv_ep->pending_req_list.prev 0
PARAM_VALUE 0 priv_ep->trb_pool 0
PARAM_VALUE 0 priv_ep->type 0
PARAM_VALUE 0 priv_ep->wa2_descmiss_req_list.next 0
PARAM_VALUE 0 priv_ep->wa2_descmiss_req_list.prev 0
BUF_SIZE 0 priv_ep 256
BUF_SIZE 0 priv_ep->cdns3_dev 2504
BUF_SIZE 0 priv_ep->endpoint.desc 9
BUF_SIZE 0 priv_ep->endpoint.ops 88
CAPPED_DATA 0 priv_ep->cdns3_dev->gadget.max_speed 1
DATA_SOURCE 0 priv_ep $1
STR_LEN 0 priv_ep->cdns3_dev->gadget.name 13
STR_LEN 0 priv_ep->endpoint.name (-1)
STR_LEN 0 priv_ep->name (-1)
TERMINATED 0 priv_ep->cdns3_dev->gadget.name 1
MEM_ZERO 0 priv_ep
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 priv_ep->cdns3_dev->gadget.irq s32min-s32max
HOST_DATA 0 priv_ep->cdns3_dev->onchip_buffers 1-255
HOST_DATA 0 priv_ep->endpoint.maxpacket 512[c]
HOST_DATA 0 priv_ep->endpoint.maxpacket_limit 512[c]
NO_OVERFLOW_SIMPLE 0 priv_ep->cdns3_dev->gadget.irq
NO_OVERFLOW_SIMPLE 0 priv_ep->name
LOCK2 &cdns->mutex
HALF_LOCKED2 &cdns->lock
HALF_LOCKED2 &sw->lock
TYPE_LOCK (struct cdns)->mutex