Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/usb/dwc3/debugfs.c dwc3_link_state_write() -> dwc3_gadget_set_link_state()

Type Parameter Key Value
PARAM_VALUE 0 dwc 4096-ptr_max
PARAM_VALUE 0 dwc->dev 4096-ptr_max
PARAM_VALUE 0 dwc->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 dwc->dev->class 0,4096-ptr_max
PARAM_VALUE 0 dwc->dev->power.request 0-4
PARAM_VALUE 0 dwc->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 dwc->dev->power.wakeirq 0,4096-ptr_max
PARAM_VALUE 0 dwc->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dwc->dev->type 0,4096-ptr_max
PARAM_VALUE 1 state 4-6,8,10-11
BUF_SIZE 0 dwc s32min-(-2),1-s32max
BUF_SIZE 0 dwc s32min-(-2),1-s32max
FUZZY_MAX 1 state 11
HARD_MAX 1 state 11
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
UNITS 0 dwc unit_array_size
LOCK2 flags
LOCK2 0 &dwc->lock
TYPE_LOCK (struct dwc3)->lock

drivers/usb/dwc3/gadget.c __dwc3_gadget_wakeup() -> dwc3_gadget_set_link_state()

Type Parameter Key Value
PARAM_VALUE 0 dwc 4096-ptr_max
PARAM_VALUE 0 dwc->wakeup_configured 1
PARAM_VALUE 1 state 8
BUF_SIZE 0 dwc 1-s32max
BUF_SIZE 0 dwc 1-s32max
DATA_SOURCE 0 dwc $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 0 &dwc->lock
TYPE_LOCK (struct dwc3)->lock

drivers/usb/dwc3/gadget.c dwc3_gadget_disconnect_interrupt() -> dwc3_gadget_set_link_state()

Type Parameter Key Value
PARAM_VALUE 0 dwc 4096-ptr_max
PARAM_VALUE 0 dwc->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dwc->suspended 0
PARAM_VALUE 1 state 5
DATA_SOURCE 0 dwc $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dwc->speed 0-7
HOST_DATA 0 dwc->u1u2 0,512-7680[c]
LOCK2 &dwc->lock
LOCK2 bh
LOCK2 flags
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct dwc3)->lock