Lines Matching +full:parameter +full:- +full:less
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * gadget.h - DesignWare USB3 DRD Gadget Header
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com
20 #define gadget_to_dwc(g) (dev_get_platdata(&g->dev))
22 /* DEPCFG parameter 1 */
35 /* DEPCFG parameter 0 */
48 /* DEPXFERCFG parameter 0 */
52 #define DWC3_DEFAULT_U1_DEV_EXIT_LAT 0x0A /* Less then 10 microsec */
55 #define DWC3_DEFAULT_U2_DEV_EXIT_LAT 0x1FF /* Less then 511 microsec */
59 /* -------------------------------------------------------------------------- */
64 * next_request - gets the next request on the given list
76 * dwc3_gadget_move_started_request - move @req to the started_list
84 struct dwc3_ep *dep = req->dep; in dwc3_gadget_move_started_request()
86 req->status = DWC3_REQUEST_STATUS_STARTED; in dwc3_gadget_move_started_request()
87 list_move_tail(&req->list, &dep->started_list); in dwc3_gadget_move_started_request()
91 * dwc3_gadget_move_cancelled_request - move @req to the cancelled_list
101 struct dwc3_ep *dep = req->dep; in dwc3_gadget_move_cancelled_request()
103 req->status = reason; in dwc3_gadget_move_cancelled_request()
104 list_move_tail(&req->list, &dep->cancelled_list); in dwc3_gadget_move_cancelled_request()
125 * dwc3_gadget_ep_get_transfer_index - Gets transfer index from HW
135 res_id = dwc3_readl(dep->regs, DWC3_DEPCMD); in dwc3_gadget_ep_get_transfer_index()
136 dep->resource_index = DWC3_DEPCMD_GET_RSC_IDX(res_id); in dwc3_gadget_ep_get_transfer_index()
140 * dwc3_gadget_dctl_write_safe - write to DCTL safe from link state change
144 * Use this function when doing read-modify-write to DCTL. It will not
150 dwc3_writel(dwc->regs, DWC3_DCTL, value); in dwc3_gadget_dctl_write_safe()