Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/usb/host/xhci-mem.c xhci_copy_ep0_dequeue_into_input_ctx() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->mutex
TYPE_LOCK (struct xhci_hcd)->mutex

drivers/usb/host/xhci-mem.c xhci_endpoint_copy() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 1 ctx $2
DATA_SOURCE 2 ep_index $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 flags
HALF_LOCKED2 0 &xhci->lock

drivers/usb/host/xhci-mem.c xhci_endpoint_copy() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 1 ctx $1
DATA_SOURCE 2 ep_index $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 flags
HALF_LOCKED2 0 &xhci->lock

drivers/usb/host/xhci-mem.c xhci_endpoint_init() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci-mem.c xhci_endpoint_zero() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 hcd->bandwidth_mutex

drivers/usb/host/xhci-mem.c xhci_setup_addressable_virt_dev() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &xhci->mutex

drivers/usb/host/xhci-mem.c xhci_update_bw_info() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 1-30
DATA_SOURCE 0 xhci $0
DATA_SOURCE 1 ctx $1
BIT_INFO 0 xhci->quirks 0x100,0xffffffffffffffff
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 xhci->medium_streams_pool->allocation
NO_OVERFLOW_SIMPLE 0 xhci->small_streams_pool->allocation
LOCK2 flags
LOCK2 0 &xhci->lock
HALF_LOCKED2 hcd->bandwidth_mutex
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-hub.c xhci_stop_device() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 1-30
DATA_SOURCE 0 xhci $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &xhci->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c finish_td() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
DATA_SOURCE 0 xhci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c handle_tx_event() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30
DATA_SOURCE 0 xhci $0
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffc
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c prepare_transfer() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 ep_index $2
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
LOCK2 flags
LOCK2 0 &xhci->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c process_ctrl_td() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
DATA_SOURCE 0 xhci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_get_hw_deq() -> xhci_get_ep_ctx()

Type Parameter Key Value
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 ep_index $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &xhci->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_handle_cmd_config_ep() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
CAPPED_DATA 0 xhci->cmd_ring->deq_seg->trbs 1
CAPPED_DATA 0 xhci->cmd_ring->dequeue 1
DATA_SOURCE 0 xhci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_handle_cmd_reset_ep() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30
CAPPED_DATA 0 xhci->cmd_ring->deq_seg->trbs 1
CAPPED_DATA 0 xhci->cmd_ring->dequeue 1
DATA_SOURCE 0 xhci $0
HARD_MAX 2 ep_index 30
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_handle_cmd_set_deq() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30
CAPPED_DATA 0 xhci->cmd_ring->deq_seg->trbs 1
CAPPED_DATA 0 xhci->cmd_ring->dequeue 1
DATA_SOURCE 0 xhci $0
HARD_MAX 2 ep_index 30
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_handle_cmd_stop_ep() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30
CAPPED_DATA 0 xhci->cmd_ring->deq_seg->trbs 1
CAPPED_DATA 0 xhci->cmd_ring->dequeue 1
DATA_SOURCE 0 xhci $0
HARD_MAX 2 ep_index 30
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xhci->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_queue_intr_tx() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 ep_index $4
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
LOCK2 flags
LOCK2 0 &xhci->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-ring.c xhci_queue_isoc_tx_prepare() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci $0
DATA_SOURCE 2 ep_index $4
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
LOCK2 flags
LOCK2 0 &xhci->lock
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci-mtk-sch.c add_ep_quirk() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci-mtk-sch.c xhci_mtk_check_bandwidth() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_add_endpoint() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_alloc_streams() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->bytes 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 0-30,u32max
CAPPED_DATA 0 xhci->device_pool->size 1
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
BIT_INFO 0 xhci->quirks 0x0,0xfffffffffff7ffff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->dev.mutex

drivers/usb/host/xhci.c xhci_check_ep0_maxpacket() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_check_ep0_maxpacket() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 0
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_drop_endpoint() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
BIT_INFO 0 xhci->xhc_state 0x0,0xfffffffe
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci.c xhci_free_streams() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 0-30,u32max
DATA_SOURCE 0 xhci r hcd_to_xhci
DATA_SOURCE 2 ep_index r xhci_get_endpoint_index
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &xhci->lock
HALF_LOCKED2 &dev->dev.mutex
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci.c xhci_stop_endpoint_sync() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
DATA_SOURCE 0 xhci $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 xhci->segment_pool->allocation
LOCK2 _T->lock
LOCK2 flags
LOCK2 0 &xhci->lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &qdev_mutex
TYPE_LOCK (struct xhci_hcd)->lock

drivers/usb/host/xhci.c xhci_zero_in_ctx() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 0 xhci 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 ctx->type 2
PARAM_VALUE 2 ep_index 1-30
DATA_SOURCE 0 xhci $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 hcd->bandwidth_mutex
HALF_LOCKED2 &udev->dev.mutex

drivers/usb/host/xhci-debugfs.c xhci_endpoint_context_show() -> xhci_get_ep_ctx()

Type Parameter Key Value
PARAM_VALUE 2 ep_index 0-30
DATA_SOURCE 0 xhci r hcd_to_xhci
RX_PATH
TASK_NOT_RUNNING
LOCK2 &s->lock
TYPE_LOCK (struct seq_file)->lock