Lines Matching +full:sel +full:- +full:clk

1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/io-64-nonatomic-hi-lo.h>
81 #define ASP_RX_FILTER_MDA_CFG(sel) (((sel) * 0x14) + 0x100) argument
83 #define ASP_RX_FILTER_MDA_CFG_UMC_SEL(sel) ((sel) > 1 ? BIT(17) : \ argument
84 BIT((sel) + 9))
85 #define ASP_RX_FILTER_MDA_PAT_H(sel) (((sel) * 0x14) + 0x104) argument
86 #define ASP_RX_FILTER_MDA_PAT_L(sel) (((sel) * 0x14) + 0x108) argument
87 #define ASP_RX_FILTER_MDA_MSK_H(sel) (((sel) * 0x14) + 0x10c) argument
88 #define ASP_RX_FILTER_MDA_MSK_L(sel) (((sel) * 0x14) + 0x110) argument
89 #define ASP_RX_FILTER_MDA_CFG(sel) (((sel) * 0x14) + 0x100) argument
90 #define ASP_RX_FILTER_MDA_PAT_H(sel) (((sel) * 0x14) + 0x104) argument
91 #define ASP_RX_FILTER_MDA_PAT_L(sel) (((sel) * 0x14) + 0x108) argument
92 #define ASP_RX_FILTER_MDA_MSK_H(sel) (((sel) * 0x14) + 0x10c) argument
93 #define ASP_RX_FILTER_MDA_MSK_L(sel) (((sel) * 0x14) + 0x110) argument
94 #define ASP_RX_FILTER_NET_CFG(sel) (((sel) * 0xa04) + 0x400) argument
95 #define ASP_RX_FILTER_NET_CFG_CH(sel) ((sel) << 0) argument
100 #define ASP_RX_FILTER_NET_CFG_L3_FRM(sel) ((sel) << 13) argument
101 #define ASP_RX_FILTER_NET_CFG_L4_FRM(sel) ((sel) << 15) argument
102 #define ASP_RX_FILTER_NET_CFG_UMC(sel) BIT((sel) + 19) argument
106 #define ASP_RX_FILTER_NET_PAT(sel, block, off) \ argument
107 (((sel) * 0xa04) + ((block) * 0x200) + (off) + 0x600)
108 #define ASP_RX_FILTER_NET_MASK(sel, block, off) \ argument
109 (((sel) * 0xa04) + ((block) * 0x200) + (off) + 0x700)
111 #define ASP_RX_FILTER_NET_OFFSET(sel) (((sel) * 0xa04) + 0xe00) argument
201 /* 39:0 (TX/RX) bits 0-39 of buf addr
209 * 60:57 (RX) rx_port_num (0-unicmac0, 1-unimac1)
392 struct clk *clk; member
429 return intf->ops->rx_desc_read(intf); in bcmasp_intf_rx_desc_read()
435 intf->ops->rx_buffer_write(intf, addr); in bcmasp_intf_rx_buffer_write()
441 intf->ops->rx_desc_write(intf, addr); in bcmasp_intf_rx_desc_write()
446 return intf->ops->tx_read(intf); in bcmasp_intf_tx_read()
452 intf->ops->tx_write(intf, addr); in bcmasp_intf_tx_write()
458 u32 reg = readl_relaxed(intf->m + off); \
463 writel_relaxed(val, intf->m + off); \
483 u64 reg = readq_relaxed(intf->m + off); \
488 writeq_relaxed(val, intf->m + off); \
531 u32 reg = readl_relaxed(priv->base + (offset) + off); \
537 writel_relaxed(val, priv->base + (offset) + off); \