Lines Matching +full:2 +full:- +full:channel

1 /* SPDX-License-Identifier: GPL-2.0+ */
43 #define STRAP_READ_RGMII_TXC_DELAY_EN_ BIT(2)
69 #define PMT_CTL_ETH_PHY_WAKE_EN_ BIT(2)
113 #define SYS_LOCK_REG_UART_SS_LOCK_ BIT(2)
152 #define FCT_RX_CTL_EN_(channel) BIT(28 + (channel)) argument
153 #define FCT_RX_CTL_DIS_(channel) BIT(24 + (channel)) argument
154 #define FCT_RX_CTL_RESET_(channel) BIT(20 + (channel)) argument
157 #define FCT_TX_CTL_EN_(channel) BIT(28 + (channel)) argument
158 #define FCT_TX_CTL_DIS_(channel) BIT(24 + (channel)) argument
159 #define FCT_TX_CTL_RESET_(channel) BIT(20 + (channel)) argument
161 #define FCT_FLOW(rx_channel) (0xE0 + ((rx_channel) << 2))
177 #define MAC_CR_CFG_H_ BIT(2)
205 #define MAC_MII_ACC_MDC_CYCLE_12_5MHZ_ (2)
240 #define MAC_WUCSR_WAKE_EN_ BIT(2)
283 /* offset 0x400 - 0x500, x may range from 0 to 32, for a total of 33 entries */
287 /* offset 0x404 - 0x504, x may range from 0 to 32, for a total of 33 entries */
310 #define RFE_RSS_CFG_RSS_QUEUE_ENABLE_ BIT(2)
314 #define RFE_HASH_KEY(index) (0x558 + (index << 2))
316 #define RFE_INDX(index) (0x580 + (index << 2))
358 #define VR_MII_DIG_CTRL1_EN_2_5G_MODE_ BIT(2)
366 #define VR_MII_AN_CTRL_SGMII_MODE_ (2)
369 #define VR_MII_AN_CTRL_PCS_MODE_MASK_ GENMASK(2, 1)
373 #define VR_MII_AN_INTR_STS_SPEED_MASK_ GENMASK(3, 2)
375 #define VR_MII_AN_INTR_STS_100_MBPS_ BIT(2)
382 #define VR_MII_DIG_STS_PSEQ_STATE_MASK_ GENMASK(4, 2)
383 #define VR_MII_DIG_STS_PSEQ_STATE_POS_ (2)
396 #define VR_MII_CTRL1_RX_RATE_0_MASK_ GENMASK(3, 2)
397 #define VR_MII_CTRL1_RX_RATE_0_SHIFT_ (2)
401 #define VR_MII_MPLL_BAUD_CLK_DIV_4 (2)
404 #define INT_BIT_DMA_RX_(channel) BIT(24 + (channel)) argument
406 #define INT_BIT_DMA_TX_(channel) BIT(16 + (channel)) argument
427 #define INT_VEC_MAP0_RX_VEC_(channel, vector) \ argument
428 (((u32)(vector)) << ((channel) << 2))
431 #define INT_VEC_MAP1_TX_VEC_(channel, vector) \ argument
432 (((u32)(vector)) << ((channel) << 2))
459 #define PTP_CMD_CTL_PTP_ENABLE_ BIT(2)
463 #define PTP_GENERAL_CONFIG_CLOCK_EVENT_X_MASK_(channel) \ argument
464 (0x7 << (1 + ((channel) << 2)))
467 #define PTP_GENERAL_CONFIG_CLOCK_EVENT_100US_ (2)
472 #define PTP_GENERAL_CONFIG_CLOCK_EVENT_X_SET_(channel, value) \ argument
473 (((value) & 0x7) << (1 + ((channel) << 2)))
474 #define PTP_GENERAL_CONFIG_RELOAD_ADD_X_(channel) (BIT((channel) << 2)) argument
477 #define HS_PTP_GENERAL_CONFIG_CLOCK_EVENT_X_MASK_(channel) \ argument
478 (0xf << (4 + ((channel) << 2)))
481 #define HS_PTP_GENERAL_CONFIG_CLOCK_EVENT_1US_ (2)
495 #define HS_PTP_GENERAL_CONFIG_CLOCK_EVENT_X_SET_(channel, value) \ argument
496 (((value) & 0xf) << (4 + ((channel) << 2)))
497 #define HS_PTP_GENERAL_CONFIG_EVENT_POL_X_(channel) (BIT(1 + ((channel) * 2))) argument
498 #define HS_PTP_GENERAL_CONFIG_RELOAD_ADD_X_(channel) (BIT((channel) * 2)) argument
503 #define PTP_INT_IO_FE_SET_(channel) BIT(24 + (channel)) argument
506 #define PTP_INT_IO_RE_SET_(channel) BIT(16 + (channel)) argument
515 #define PTP_INT_EN_FE_EN_SET_(channel) BIT(24 + (channel)) argument
516 #define PTP_INT_EN_RE_EN_SET_(channel) BIT(16 + (channel)) argument
517 #define PTP_INT_EN_TIMER_SET_(channel) BIT(channel) argument
519 #define PTP_INT_EN_FE_EN_CLR_(channel) BIT(24 + (channel)) argument
520 #define PTP_INT_EN_RE_EN_CLR_(channel) BIT(16 + (channel)) argument
534 #define PTP_CLOCK_TARGET_SEC_X(channel) (0x0A30 + ((channel) << 4)) argument
535 #define PTP_CLOCK_TARGET_NS_X(channel) (0x0A34 + ((channel) << 4)) argument
536 #define PTP_CLOCK_TARGET_RELOAD_SEC_X(channel) (0x0A38 + ((channel) << 4)) argument
537 #define PTP_CLOCK_TARGET_RELOAD_NS_X(channel) (0x0A3C + ((channel) << 4)) argument
585 #define PTP_IO_CAP_CONFIG_LOCK_FE_(channel) BIT(24 + (channel)) argument
586 #define PTP_IO_CAP_CONFIG_LOCK_RE_(channel) BIT(16 + (channel)) argument
587 #define PTP_IO_CAP_CONFIG_FE_CAP_EN_(channel) BIT(8 + (channel)) argument
588 #define PTP_IO_CAP_CONFIG_RE_CAP_EN_(channel) BIT(0 + (channel)) argument
594 #define PTP_IO_EVENT_OUTPUT_CFG_SEL_(channel) BIT(16 + (channel)) argument
595 #define PTP_IO_EVENT_OUTPUT_CFG_EN_(channel) BIT(0 + (channel)) argument
597 #define PTP_IO_PIN_CFG_OBUF_TYPE_(channel) BIT(0 + (channel)) argument
663 #define DMAC_CMD_TX_SWR_(channel) BIT(24 + (channel)) argument
664 #define DMAC_CMD_START_T_(channel) BIT(20 + (channel)) argument
665 #define DMAC_CMD_STOP_T_(channel) BIT(16 + (channel)) argument
666 #define DMAC_CMD_RX_SWR_(channel) BIT(8 + (channel)) argument
667 #define DMAC_CMD_START_R_(channel) BIT(4 + (channel)) argument
668 #define DMAC_CMD_STOP_R_(channel) BIT(0 + (channel)) argument
673 #define DMAC_INT_BIT_RXFRM_(channel) BIT(16 + (channel)) argument
674 #define DMAC_INT_BIT_TX_IOC_(channel) BIT(0 + (channel)) argument
676 #define RX_CFG_A(channel) (0xC40 + ((channel) << 6)) argument
689 #define RX_CFG_B(channel) (0xC44 + ((channel) << 6)) argument
700 #define RX_BASE_ADDRH(channel) (0xC48 + ((channel) << 6)) argument
702 #define RX_BASE_ADDRL(channel) (0xC4C + ((channel) << 6)) argument
704 #define RX_HEAD_WRITEBACK_ADDRH(channel) (0xC50 + ((channel) << 6)) argument
706 #define RX_HEAD_WRITEBACK_ADDRL(channel) (0xC54 + ((channel) << 6)) argument
708 #define RX_HEAD(channel) (0xC58 + ((channel) << 6)) argument
710 #define RX_TAIL(channel) (0xC5C + ((channel) << 6)) argument
714 #define RX_CFG_C(channel) (0xC64 + ((channel) << 6)) argument
720 #define TX_CFG_A(channel) (0xD40 + ((channel) << 6)) argument
734 #define TX_CFG_B(channel) (0xD44 + ((channel) << 6)) argument
738 #define TX_BASE_ADDRH(channel) (0xD48 + ((channel) << 6)) argument
740 #define TX_BASE_ADDRL(channel) (0xD4C + ((channel) << 6)) argument
742 #define TX_HEAD_WRITEBACK_ADDRH(channel) (0xD50 + ((channel) << 6)) argument
744 #define TX_HEAD_WRITEBACK_ADDRL(channel) (0xD54 + ((channel) << 6)) argument
746 #define TX_HEAD(channel) (0xD58 + ((channel) << 6)) argument
748 #define TX_TAIL(channel) (0xD5C + ((channel) << 6)) argument
753 #define TX_CFG_C(channel) (0xD64 + ((channel) << 6)) argument
904 #define LAN743X_VECTOR_FLAG_SOURCE_STATUS_R2C BIT(2)
959 #define GPIO_TX_COMPLETION (2)
1091 #define LAN743X_COMPONENT_FLAG_RX(channel) BIT(20 + (channel)) argument
1116 (((start_bit) ? 2 : 0) | ((stop_bit) ? 1 : 0))
1149 #define TX_BUFFER_INFO_FLAG_IGNORE_SYNC BIT(2)
1175 #if ((NET_IP_ALIGN != 0) && (NET_IP_ALIGN != 2))
1176 #error NET_IP_ALIGN must be 0 or 2