Lines Matching defs:p

197 #define USB_STS_CFGSTS(p)	((p) & USB_STS_CFGSTS_MASK)  argument
204 #define USB_STS_OV(p) ((p) & USB_STS_OV_MASK) argument
211 #define USB_STS_USB3CONS(p) ((p) & USB_STS_USB3CONS_MASK) argument
219 #define USB_STS_DTRANS(p) ((p) & USB_STS_DTRANS_MASK) argument
229 #define USB_STS_USBSPEED(p) (((p) & USB_STS_USBSPEED_MASK) >> 4) argument
234 #define DEV_UNDEFSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == (0x0 << 4)) argument
235 #define DEV_LOWSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_LS) argument
236 #define DEV_FULLSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_FS) argument
237 #define DEV_HIGHSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_HS) argument
238 #define DEV_SUPERSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_SS) argument
245 #define USB_STS_ENDIAN(p) ((p) & USB_STS_ENDIAN_MASK) argument
253 #define USB_STS_CLK2OFF(p) ((p) & USB_STS_CLK2OFF_MASK) argument
261 #define USB_STS_CLK3OFF(p) ((p) & USB_STS_CLK3OFF_MASK) argument
268 #define USB_STS_IN_RST(p) ((p) & USB_STS_IN_RST_MASK) argument
282 #define USB_STS_DEVS(p) ((p) & USB_STS_DEVS_MASK) argument
289 #define USB_STS_ADDRESSED(p) ((p) & USB_STS_ADDRESSED_MASK) argument
296 #define USB_STS_L1ENS(p) ((p) & USB_STS_L1ENS_MASK) argument
303 #define USB_STS_VBUSS(p) ((p) & USB_STS_VBUSS_MASK) argument
312 #define DEV_L0_STATE(p) (((p) & USB_STS_LPMST_MASK) == (0x0 << 18)) argument
313 #define DEV_L1_STATE(p) (((p) & USB_STS_LPMST_MASK) == (0x1 << 18)) argument
314 #define DEV_L2_STATE(p) (((p) & USB_STS_LPMST_MASK) == (0x2 << 18)) argument
315 #define DEV_L3_STATE(p) (((p) & USB_STS_LPMST_MASK) == (0x3 << 18)) argument
322 #define USB_STS_USB2CONS(p) ((p) & USB_STS_USB2CONS_MASK) argument
329 #define USB_STS_DISABLE_HS(p) ((p) & USB_STS_DISABLE_HS_MASK) argument
336 #define USB_STS_U1ENS(p) ((p) & USB_STS_U1ENS_MASK) argument
343 #define USB_STS_U2ENS(p) ((p) & USB_STS_U2ENS_MASK) argument
367 #define USB_STS_DMAOFF(p) ((p) & USB_STS_DMAOFF_MASK) argument
374 #define USB_STS_ENDIAN2(p) ((p) & USB_STS_ENDIAN2_MASK) argument
387 #define USB_CMD_FADDR(p) (((p) << 1) & USB_CMD_FADDR_MASK) argument
394 #define USB_STS_TMODE_SEL(p) (((p) << 10) & USB_STS_TMODE_SEL_MASK) argument
404 #define USB_STS_DNFW_INT(p) (((p) << 16) & USB_CMD_DNFW_INT_MASK) argument
410 #define USB_STS_DNLTM_BELT(p) (((p) << 16) & USB_CMD_DNLTM_BELT_MASK) argument
419 #define USB_ITPN(p) ((p) & USB_ITPN_MASK) argument
424 #define USB_LPM_HIRD(p) ((p) & USB_LPM_HIRD_MASK) argument
532 #define EP_SEL_EPNO(p) ((p) & EP_SEL_EPNO_MASK) argument
541 #define EP_TRADDR_TRADDR(p) ((p)) argument
553 #define EP_CFG_EPTYPE(p) (((p) << 1) & EP_CFG_EPTYPE_MASK) argument
564 #define EP_CFG_MAXBURST(p) (((p) << 8) & EP_CFG_MAXBURST_MASK) argument
567 #define EP_CFG_MULT(p) (((p) << 14) & EP_CFG_MULT_MASK) argument
570 #define EP_CFG_MAXPKTSIZE(p) (((p) << 16) & EP_CFG_MAXPKTSIZE_MASK) argument
573 #define EP_CFG_BUFFERING(p) (((p) << 27) & EP_CFG_BUFFERING_MASK) argument
601 #define EP_CMD_TDL_SET(p) (((p) << 9) & EP_CMD_TDL_MASK) argument
602 #define EP_CMD_TDL_GET(p) (((p) & EP_CMD_TDL_MASK) >> 9) argument
606 #define EP_CMD_ERDY_SID(p) (((p) << 16) & EP_CMD_ERDY_SID_MASK) argument
612 #define EP_STS_STALL(p) ((p) & BIT(1)) argument
630 #define EP_STS_BUFFEMPTY(p) ((p) & BIT(10)) argument
632 #define EP_STS_CCS(p) ((p) & BIT(11)) argument
642 #define EP_STS_HOSTPP(p) ((p) & BIT(16)) argument
645 #define EP_STS_SPSMST_DISABLED(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
646 #define EP_STS_SPSMST_IDLE(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
647 #define EP_STS_SPSMST_START_STREAM(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
648 #define EP_STS_SPSMST_MOVE_DATA(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
653 #define EP_STS_OUTQ_NO(p) (((p) & EP_STS_OUTQ_NO_MASK) >> 24) argument
656 #define EP_STS_OUTQ_VAL(p) ((p) & EP_STS_OUTQ_VAL_MASK) argument
663 #define EP_STS_SID(p) ((p) & EP_STS_SID_MASK) argument
752 #define DEV_SFR_TYPE_OCP(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x0) argument
753 #define DEV_SFR_TYPE_AHB(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x1) argument
754 #define DEV_SFR_TYPE_PLB(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x2) argument
755 #define DEV_SFR_TYPE_AXI(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x3) argument
766 #define DEV_SFR_WIDTH_8(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x0 << 4)) argument
767 #define DEV_SFR_WIDTH_16(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x1 << 4)) argument
768 #define DEV_SFR_WIDTH_32(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x2 << 4)) argument
769 #define DEV_SFR_WIDTH_64(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x3 << 4)) argument
780 #define DEV_DMA_TYPE_OCP(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x0 << 8)) argument
781 #define DEV_DMA_TYPE_AHB(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x1 << 8)) argument
782 #define DEV_DMA_TYPE_PLB(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x2 << 8)) argument
783 #define DEV_DMA_TYPE_AXI(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x3 << 8)) argument
794 #define DEV_DMA_WIDTH_32(p) (((p) & USB_CAP1_DMA_WIDTH_MASK) == (0x2 << 12)) argument
795 #define DEV_DMA_WIDTH_64(p) (((p) & USB_CAP1_DMA_WIDTH_MASK) == (0x3 << 12)) argument
804 #define DEV_U3PHY_PIPE(p) (((p) & USB_CAP1_U3PHY_TYPE_MASK) == (0x0 << 16)) argument
805 #define DEV_U3PHY_RMMI(p) (((p) & USB_CAP1_U3PHY_TYPE_MASK) == (0x1 << 16)) argument
818 #define DEV_U3PHY_WIDTH_8(p) \ argument
820 #define DEV_U3PHY_WIDTH_16(p) \ argument
822 #define DEV_U3PHY_WIDTH_32(p) \ argument
824 #define DEV_U3PHY_WIDTH_64(p) \ argument
833 #define USB_CAP1_U2PHY_EN(p) ((p) & BIT(24)) argument
840 #define DEV_U2PHY_ULPI(p) ((p) & BIT(25)) argument
848 #define DEV_U2PHY_WIDTH_16(p) ((p) & BIT(26)) argument
854 #define USB_CAP1_OTG_READY(p) ((p) & BIT(27)) argument
861 #define USB_CAP1_TDL_FROM_TRB(p) ((p) & BIT(28)) argument
869 #define USB_CAP2_ACTUAL_MEM_SIZE(p) ((p) & GENMASK(7, 0)) argument
884 #define USB_CAP2_MAX_MEM_SIZE(p) ((p) & GENMASK(11, 8)) argument
897 #define GET_DEV_BASE_VERSION(p) ((p) & GENMASK(23, 0)) argument
899 #define GET_DEV_CUSTOM_VERSION(p) ((p) & GENMASK(31, 24)) argument
911 #define DBG_LINK1_LFPS_MIN_DET_U1_EXIT(p) ((p) & GENMASK(7, 0)) argument
917 #define DBG_LINK1_LFPS_MIN_GEN_U1_EXIT(p) (((p) << 8) & GENMASK(15, 8)) argument
928 #define DBG_LINK1_LFPS_GEN_PING(p) (((p) << 17) & GENMASK(21, 17)) argument
956 #define DMA_AXI_CTRL_MARPROT(p) ((p) & GENMASK(2, 0)) argument
958 #define DMA_AXI_CTRL_MAWPROT(p) (((p) & GENMASK(2, 0)) << 16) argument
1009 #define TRB_TYPE(p) ((p) << 10) argument
1010 #define TRB_FIELD_TO_TYPE(p) (((p) & TRB_TYPE_BITMASK) >> 10) argument
1046 #define TRB_STREAM_ID(p) ((p) << 16) argument
1047 #define TRB_FIELD_TO_STREAMID(p) (((p) & TRB_STREAM_ID_BITMASK) >> 16) argument
1050 #define TRB_TDL_HS_SIZE(p) (((p) << 16) & GENMASK(31, 16)) argument
1051 #define TRB_TDL_HS_SIZE_GET(p) (((p) & GENMASK(31, 16)) >> 16) argument
1054 #define TRB_LEN(p) ((p) & GENMASK(16, 0)) argument
1057 #define TRB_TDL_SS_SIZE(p) (((p) << 17) & GENMASK(23, 17)) argument
1058 #define TRB_TDL_SS_SIZE_GET(p) (((p) & GENMASK(23, 17)) >> 17) argument
1061 #define TRB_BURST_LEN(p) (((p) << 24) & GENMASK(31, 24)) argument
1062 #define TRB_BURST_LEN_GET(p) (((p) & GENMASK(31, 24)) >> 24) argument
1065 #define TRB_BUFFER(p) ((p) & GENMASK(31, 0)) argument