Lines Matching refs:n

128 #define DWC3_GUSB2PHYCFG(n)	(0xc200 + ((n) * 0x04))  argument
129 #define DWC3_GUSB2I2CCTL(n) (0xc240 + ((n) * 0x04)) argument
131 #define DWC3_GUSB2PHYACC(n) (0xc280 + ((n) * 0x04)) argument
133 #define DWC3_GUSB3PIPECTL(n) (0xc2c0 + ((n) * 0x04)) argument
135 #define DWC3_GTXFIFOSIZ(n) (0xc300 + ((n) * 0x04)) argument
136 #define DWC3_GRXFIFOSIZ(n) (0xc380 + ((n) * 0x04)) argument
138 #define DWC3_GEVNTADRLO(n) (0xc400 + ((n) * 0x10)) argument
139 #define DWC3_GEVNTADRHI(n) (0xc404 + ((n) * 0x10)) argument
140 #define DWC3_GEVNTSIZ(n) (0xc408 + ((n) * 0x10)) argument
141 #define DWC3_GEVNTCOUNT(n) (0xc40c + ((n) * 0x10)) argument
157 #define DWC3_DEP_BASE(n) (0xc800 + ((n) * 0x10)) argument
163 #define DWC3_DEV_IMOD(n) (0xca00 + ((n) * 0x4)) argument
187 #define DWC3_GDBGLSPMUX_HOSTSELECT(n) ((n) & 0x3fff) argument
188 #define DWC3_GDBGLSPMUX_DEVSELECT(n) (((n) & 0xf) << 4) argument
189 #define DWC3_GDBGLSPMUX_EPSELECT(n) ((n) & 0xf) argument
192 #define DWC3_GDBGFIFOSPACE_NUM(n) ((n) & 0x1f) argument
193 #define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0) argument
194 #define DWC3_GDBGFIFOSPACE_SPACE_AVAILABLE(n) (((n) >> 16) & 0xffff) argument
207 #define DWC3_GRXTHRCFG_MAXRXBURSTSIZE(n) (((n) & 0x1f) << 19) argument
208 #define DWC3_GRXTHRCFG_RXPKTCNT(n) (((n) & 0xf) << 24) argument
212 #define DWC31_GRXTHRCFG_MAXRXBURSTSIZE(n) (((n) & 0x1f) << 16) argument
213 #define DWC31_GRXTHRCFG_RXPKTCNT(n) (((n) & 0x1f) << 21) argument
216 #define DWC31_RXTHRNUMPKT_HS_PRD(n) (((n) & 0x3) << 13) argument
218 #define DWC31_RXTHRNUMPKT_PRD(n) (((n) & 0x1f) << 5) argument
219 #define DWC31_MAXRXBURSTSIZE_PRD(n) ((n) & 0x1f) argument
222 #define DWC31_GTXTHRCFG_MAXTXBURSTSIZE(n) (((n) & 0x1f) << 16) argument
223 #define DWC31_GTXTHRCFG_TXPKTCNT(n) (((n) & 0x1f) << 21) argument
226 #define DWC31_TXTHRNUMPKT_HS_PRD(n) (((n) & 0x3) << 13) argument
228 #define DWC31_TXTHRNUMPKT_PRD(n) (((n) & 0x1f) << 5) argument
229 #define DWC31_MAXTXBURSTSIZE_PRD(n) ((n) & 0x1f) argument
232 #define DWC3_GCTL_PWRDNSCALE(n) ((n) << 19) argument
240 #define DWC3_GCTL_PRTCAP(n) (((n) & (3 << 12)) >> 12) argument
241 #define DWC3_GCTL_PRTCAPDIR(n) ((n) << 12) argument
248 #define DWC3_GCTL_SCALEDOWN(n) ((n) << 4) argument
272 #define DWC3_GSTS_CURMOD(n) ((n) & 0x3) argument
282 #define DWC3_GUSB2PHYCFG_PHYIF(n) (n << 3) argument
284 #define DWC3_GUSB2PHYCFG_USBTRDTIM(n) (n << 10) argument
296 #define DWC3_GUSB2PHYACC_ADDR(n) (n << 16) argument
297 #define DWC3_GUSB2PHYACC_EXTEND_ADDR(n) (n << 8) argument
298 #define DWC3_GUSB2PHYACC_DATA(n) (n & 0xff) argument
306 #define DWC3_GUSB3PIPECTL_DEP1P2P3(n) ((n) << 19) argument
314 #define DWC3_GUSB3PIPECTL_TX_DEEPH(n) ((n) << 1) argument
318 #define DWC31_GTXFIFOSIZ_TXFDEP(n) ((n) & 0x7fff) /* DWC_usb31 only */ argument
319 #define DWC3_GTXFIFOSIZ_TXFDEP(n) ((n) & 0xffff) argument
320 #define DWC3_GTXFIFOSIZ_TXFSTADDR(n) ((n) & 0xffff0000) argument
323 #define DWC31_GRXFIFOSIZ_RXFDEP(n) ((n) & 0x7fff) /* DWC_usb31 only */ argument
324 #define DWC3_GRXFIFOSIZ_RXFDEP(n) ((n) & 0xffff) argument
328 #define DWC3_GEVNTSIZ_SIZE(n) ((n) & 0xffff) argument
331 #define DWC3_GHWPARAMS0_MODE(n) ((n) & 0x3) argument
335 #define DWC3_GHWPARAMS0_MBUS_TYPE(n) (((n) >> 3) & 0x7) argument
336 #define DWC3_GHWPARAMS0_SBUS_TYPE(n) (((n) >> 6) & 0x3) argument
337 #define DWC3_GHWPARAMS0_MDWIDTH(n) (((n) >> 8) & 0xff) argument
338 #define DWC3_GHWPARAMS0_SDWIDTH(n) (((n) >> 16) & 0xff) argument
339 #define DWC3_GHWPARAMS0_AWIDTH(n) (((n) >> 24) & 0xff) argument
342 #define DWC3_GHWPARAMS1_EN_PWROPT(n) (((n) & (3 << 24)) >> 24) argument
346 #define DWC3_GHWPARAMS1_PWROPT(n) ((n) << 24) argument
351 #define DWC3_GHWPARAMS3_SSPHY_IFC(n) ((n) & 3) argument
355 #define DWC3_GHWPARAMS3_HSPHY_IFC(n) (((n) & (3 << 2)) >> 2) argument
360 #define DWC3_GHWPARAMS3_FSPHY_IFC(n) (((n) & (3 << 4)) >> 4) argument
365 #define DWC3_GHWPARAMS4_HIBER_SCRATCHBUFS(n) (((n) & (0x0f << 13)) >> 13) argument
377 #define DWC3_GHWPARAMS6_MDWIDTH(n) ((n) & (0x3 << 8)) argument
380 #define DWC3_GHWPARAMS7_RAM1_DEPTH(n) ((n) & 0xffff) argument
381 #define DWC3_GHWPARAMS7_RAM2_DEPTH(n) (((n) >> 16) & 0xffff) argument
401 #define DWC3_DCFG_NUMLANES(n) (((n) & 0x3) << 30) /* DWC_usb32 only */ argument
413 #define DWC3_DCFG_NUMP(n) (((n) >> DWC3_DCFG_NUMP_SHIFT) & 0x1f) argument
424 #define DWC3_DCTL_HIRD_THRES(n) ((n) << 24) argument
430 #define DWC3_DCTL_TRGTULST(n) ((n) << 17) argument
438 #define DWC3_DCTL_NYET_THRES(n) (((n) & 0xf) << 20) argument
452 #define DWC3_DCTL_ULSTCHNGREQ(n) (((n) << 5) & DWC3_DCTL_ULSTCHNGREQ_MASK) argument
476 #define DWC3_DSTS_CONNLANES(n) (((n) >> 30) & 0x3) /* DWC_usb32 only */ argument
492 #define DWC3_DSTS_USBLNKST(n) (((n) & DWC3_DSTS_USBLNKST_MASK) >> 18) argument
497 #define DWC3_DSTS_SOFFN(n) (((n) & DWC3_DSTS_SOFFN_MASK) >> 3) argument
521 #define DWC3_DGCMD_STATUS(n) (((n) >> 12) & 0x0F) argument
527 #define DWC3_DGCMDPAR_FIFO_NUM(n) ((n) << 0) argument
559 #define DWC3_DALEPENA_EP(n) BIT(n) argument
804 #define DWC3_TRB_SIZE_LENGTH(n) ((n) & DWC3_TRB_SIZE_MASK) argument
805 #define DWC3_TRB_SIZE_PCM1(n) (((n) & 0x03) << 24) argument
806 #define DWC3_TRB_SIZE_TRBSTS(n) (((n) & (0x0f << 28)) >> 28) argument
818 #define DWC3_TRB_CTRL_TRBCTL(n) (((n) & 0x3f) << 4) argument
821 #define DWC3_TRB_CTRL_SID_SOFN(n) (((n) & 0xffff) << 14) argument
822 #define DWC3_TRB_CTRL_GET_SID_SOFN(n) (((n) & (0xffff << 14)) >> 14) argument
824 #define DWC3_TRBCTL_TYPE(n) ((n) & (0x3f << 4)) argument
875 #define DWC3_MODE(n) ((n) & 0x7) argument
878 #define DWC3_NUM_INT(n) (((n) & (0x3f << 15)) >> 15) argument
889 #define DWC3_RAM1_DEPTH(n) ((n) & 0xffff) argument
1377 #define DEPEVT_STATUS_CONTROL_PHASE(n) ((n) & 3) argument
1386 #define DEPEVT_PARAMETER_CMD(n) (((n) & (0xf << 8)) >> 8) argument