Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/usb/dwc2/gadget.c dwc2_hsotg_epint() -> index_to_ep()

Type Parameter Key Value
DATA_SOURCE 0 hsotg $0
DATA_SOURCE 1 ep_index $1
DATA_SOURCE 2 dir_in $2

drivers/usb/dwc2/gadget.c dwc2_hsotg_irq_fifoempty() -> index_to_ep()

Type Parameter Key Value
PARAM_VALUE 0 hsotg 4096-ptr_max
PARAM_VALUE 1 ep_index 0-254
PARAM_VALUE 2 dir_in 1
CAPPED_DATA 1 ep_index 1
DATA_SOURCE 0 hsotg $0
PARAM_COMPARE 1 ep_index < $0->num_of_eps

drivers/usb/dwc2/gadget.c dwc2_hsotg_set_ep_maxpacket() -> index_to_ep()

Type Parameter Key Value
PARAM_VALUE 0 hsotg 4096-ptr_max
PARAM_VALUE 1 ep_index 0-255
PARAM_VALUE 2 dir_in 0-1
CAPPED_DATA 1 ep_index 1
CAPPED_DATA 2 dir_in 1
DATA_SOURCE 0 hsotg $0
DATA_SOURCE 1 ep_index $1
DATA_SOURCE 2 dir_in $4
HARD_MAX 2 dir_in 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &hsotg->lock

drivers/usb/dwc2/gadget.c ep_from_windex() -> index_to_ep()

Type Parameter Key Value
PARAM_VALUE 0 hsotg 4096-ptr_max
PARAM_VALUE 0 hsotg->eps_out 4096-ptr_max
PARAM_VALUE 1 ep_index 0-127
PARAM_VALUE 2 dir_in 0-1
CAPPED_DATA 1 ep_index 1
DATA_SOURCE 0 hsotg $0
PARAM_COMPARE 0 hsotg->num_of_eps >= $1
PARAM_COMPARE 1 ep_index <= $0->num_of_eps
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 ep_index 1-127[c]
LOCK2 0 &hsotg->lock
HALF_LOCKED2 &cdev->lock
HALF_LOCKED2 &pdev->lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &priv_dev->lock
HALF_LOCKED2 &udc->lock
HALF_LOCKED2 cdev_flags
HALF_LOCKED2 flags
TYPE_LOCK (struct dwc2_hsotg)->lock