Lines Matching defs:state
66 * dwc3_gadget_get_link_state - gets current state of usb link
70 * return the link state on success (>= 0) or -ETIMEDOUT.
82 * dwc3_gadget_set_link_state - sets usb link to a particular state
84 * @state: the state to put link into
89 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state)
114 /* set no action before sending new link state change */
117 /* set requested state */
118 reg |= DWC3_DCTL_ULSTCHNGREQ(state);
133 if (DWC3_DSTS_USBLNKST(reg) == state)
316 * Initiate remote wakeup if the link state is in U3 when
318 * link state is in U1/U2, no remote wakeup is needed. The Start
2007 * be issued only when the device is in early suspend state.
2201 * suspended state during gadget disconnect. DWC3 gadget was already
2505 * which would cause metastability state on Run/Stop
3146 * If the host can properly transition the endpoint state from
3169 * state. When the host is ready (buffer added/updated), it will
3173 * endpoint in the idle state. No prime will come despite host
3735 * USB_STATE_CONFIGURED state.
3737 if (dwc->gadget->state >= USB_STATE_CONFIGURED)