Lines Matching refs: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
349 #define DEV_LST_U0 (((p) & USB_STS_LST_MASK) == (0x0 << 26))
350 #define DEV_LST_U1 (((p) & USB_STS_LST_MASK) == (0x1 << 26))
351 #define DEV_LST_U2 (((p) & USB_STS_LST_MASK) == (0x2 << 26))
352 #define DEV_LST_U3 (((p) & USB_STS_LST_MASK) == (0x3 << 26))
353 #define DEV_LST_DISABLED (((p) & USB_STS_LST_MASK) == (0x4 << 26))
354 #define DEV_LST_RXDETECT (((p) & USB_STS_LST_MASK) == (0x5 << 26))
355 #define DEV_LST_INACTIVE (((p) & USB_STS_LST_MASK) == (0x6 << 26))
356 #define DEV_LST_POLLING (((p) & USB_STS_LST_MASK) == (0x7 << 26))
357 #define DEV_LST_RECOVERY (((p) & USB_STS_LST_MASK) == (0x8 << 26))
358 #define DEV_LST_HOT_RESET (((p) & USB_STS_LST_MASK) == (0x9 << 26))
359 #define DEV_LST_COMP_MODE (((p) & USB_STS_LST_MASK) == (0xa << 26))
360 #define DEV_LST_LB_STATE (((p) & USB_STS_LST_MASK) == (0xb << 26))
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
536 #define select_ep_in(nr) (EP_SEL_EPNO(p) | EP_SEL_DIR)
537 #define select_ep_out (EP_SEL_EPNO(p))
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
568 #define EP_CFG_MULT(p) (((p) << 14) & EP_CFG_MULT_MASK) argument
572 #define EP_CFG_MAXPKTSIZE(p) (((p) << 16) & EP_CFG_MAXPKTSIZE_MASK) argument
575 #define EP_CFG_BUFFERING(p) (((p) << 27) & EP_CFG_BUFFERING_MASK) argument
604 #define EP_CMD_TDL_SET(p) (((p) << 9) & EP_CMD_TDL_MASK) argument
605 #define EP_CMD_TDL_GET(p) (((p) & EP_CMD_TDL_MASK) >> 9) argument
610 #define EP_CMD_ERDY_SID(p) (((p) << 16) & EP_CMD_ERDY_SID_MASK) argument
616 #define EP_STS_STALL(p) ((p) & BIT(1)) argument
634 #define EP_STS_BUFFEMPTY(p) ((p) & BIT(10)) argument
636 #define EP_STS_CCS(p) ((p) & BIT(11)) argument
646 #define EP_STS_HOSTPP(p) ((p) & BIT(16)) argument
649 #define EP_STS_SPSMST_DISABLED(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
650 #define EP_STS_SPSMST_IDLE(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
651 #define EP_STS_SPSMST_START_STREAM(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
652 #define EP_STS_SPSMST_MOVE_DATA(p) (((p) & EP_STS_SPSMST_MASK) >> 17) argument
657 #define EP_STS_OUTQ_NO(p) (((p) & EP_STS_OUTQ_NO_MASK) >> 24) argument
660 #define EP_STS_OUTQ_VAL(p) ((p) & EP_STS_OUTQ_VAL_MASK) argument
667 #define EP_STS_SID(p) ((p) & EP_STS_SID_MASK) argument
756 #define DEV_SFR_TYPE_OCP(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x0) argument
757 #define DEV_SFR_TYPE_AHB(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x1) argument
758 #define DEV_SFR_TYPE_PLB(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x2) argument
759 #define DEV_SFR_TYPE_AXI(p) (((p) & USB_CAP1_SFR_TYPE_MASK) == 0x3) argument
770 #define DEV_SFR_WIDTH_8(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x0 << 4)) argument
771 #define DEV_SFR_WIDTH_16(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x1 << 4)) argument
772 #define DEV_SFR_WIDTH_32(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x2 << 4)) argument
773 #define DEV_SFR_WIDTH_64(p) (((p) & USB_CAP1_SFR_WIDTH_MASK) == (0x3 << 4)) argument
784 #define DEV_DMA_TYPE_OCP(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x0 << 8)) argument
785 #define DEV_DMA_TYPE_AHB(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x1 << 8)) argument
786 #define DEV_DMA_TYPE_PLB(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x2 << 8)) argument
787 #define DEV_DMA_TYPE_AXI(p) (((p) & USB_CAP1_DMA_TYPE_MASK) == (0x3 << 8)) argument
798 #define DEV_DMA_WIDTH_32(p) (((p) & USB_CAP1_DMA_WIDTH_MASK) == (0x2 << 12)) argument
799 #define DEV_DMA_WIDTH_64(p) (((p) & USB_CAP1_DMA_WIDTH_MASK) == (0x3 << 12)) argument
808 #define DEV_U3PHY_PIPE(p) (((p) & USB_CAP1_U3PHY_TYPE_MASK) == (0x0 << 16)) argument
809 #define DEV_U3PHY_RMMI(p) (((p) & USB_CAP1_U3PHY_TYPE_MASK) == (0x1 << 16)) argument
822 #define DEV_U3PHY_WIDTH_8(p) \ argument
823 (((p) & USB_CAP1_U3PHY_WIDTH_MASK) == (0x0 << 20))
824 #define DEV_U3PHY_WIDTH_16(p) \ argument
825 (((p) & USB_CAP1_U3PHY_WIDTH_MASK) == (0x1 << 16))
826 #define DEV_U3PHY_WIDTH_32(p) \ argument
827 (((p) & USB_CAP1_U3PHY_WIDTH_MASK) == (0x2 << 20))
828 #define DEV_U3PHY_WIDTH_64(p) \ argument
829 (((p) & USB_CAP1_U3PHY_WIDTH_MASK) == (0x3 << 16))
837 #define USB_CAP1_U2PHY_EN(p) ((p) & BIT(24)) argument
844 #define DEV_U2PHY_ULPI(p) ((p) & BIT(25)) argument
852 #define DEV_U2PHY_WIDTH_16(p) ((p) & BIT(26)) argument
858 #define USB_CAP1_OTG_READY(p) ((p) & BIT(27)) argument
865 #define USB_CAP1_TDL_FROM_TRB(p) ((p) & BIT(28)) argument
873 #define USB_CAP2_ACTUAL_MEM_SIZE(p) ((p) & GENMASK(7, 0)) argument
888 #define USB_CAP2_MAX_MEM_SIZE(p) ((p) & GENMASK(11, 8)) argument
901 #define GET_DEV_BASE_VERSION(p) ((p) & GENMASK(23, 0)) argument
903 #define GET_DEV_CUSTOM_VERSION(p) ((p) & GENMASK(31, 24)) argument
915 #define DBG_LINK1_LFPS_MIN_DET_U1_EXIT(p) ((p) & GENMASK(7, 0)) argument
921 #define DBG_LINK1_LFPS_MIN_GEN_U1_EXIT(p) (((p) << 8) & GENMASK(15, 8)) argument
932 #define DBG_LINK1_LFPS_GEN_PING(p) (((p) << 17) & GENMASK(21, 17)) argument
960 #define DMA_AXI_CTRL_MARPROT(p) ((p) & GENMASK(2, 0)) argument
962 #define DMA_AXI_CTRL_MAWPROT(p) (((p) & GENMASK(2, 0)) << 16) argument
1022 #define TRB_TYPE(p) ((p) << 10) argument
1023 #define TRB_FIELD_TO_TYPE(p) (((p) & TRB_TYPE_BITMASK) >> 10) argument
1064 #define TRB_STREAM_ID(p) ((p) << 16) argument
1065 #define TRB_FIELD_TO_STREAMID(p) (((p) & TRB_STREAM_ID_BITMASK) >> 16) argument
1068 #define TRB_TDL_HS_SIZE(p) (((p) << 16) & GENMASK(31, 16)) argument
1069 #define TRB_TDL_HS_SIZE_GET(p) (((p) & GENMASK(31, 16)) >> 16) argument
1072 #define TRB_LEN(p) ((p) & GENMASK(16, 0)) argument
1075 #define TRB_TDL_SS_SIZE(p) (((p) << 17) & GENMASK(23, 17)) argument
1076 #define TRB_TDL_SS_SIZE_GET(p) (((p) & GENMASK(23, 17)) >> 17) argument
1079 #define TRB_BURST_LEN(p) ((unsigned int)((p) << 24) & GENMASK(31, 24)) argument
1080 #define TRB_BURST_LEN_GET(p) (((p) & GENMASK(31, 24)) >> 24) argument
1083 #define TRB_BUFFER(p) ((p) & GENMASK(31, 0)) argument