Lines Matching refs:eth
321 #define TX_DMA_PLEN0(x) (((x) & eth->soc->txrx.dma_max_len) << eth->soc->txrx.dma_len_offset)
322 #define TX_DMA_PLEN1(x) ((x) & eth->soc->txrx.dma_max_len)
334 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->txrx.dma_max_len) << eth->soc->txrx.dma_len_offset)
335 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->txrx.dma_len_offset) & eth->soc->txrx.dma_max_len)
1227 const struct mtk_soc_data *soc = ppe->eth->soc; in mtk_foe_get_entry()
1232 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *eth) in mtk_get_ib1_ts_mask() argument
1234 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_ts_mask()
1240 static inline u32 mtk_get_ib1_ppoe_mask(struct mtk_eth *eth) in mtk_get_ib1_ppoe_mask() argument
1242 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_ppoe_mask()
1248 static inline u32 mtk_get_ib1_vlan_tag_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_tag_mask() argument
1250 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_vlan_tag_mask()
1256 static inline u32 mtk_get_ib1_vlan_layer_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_layer_mask() argument
1258 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_vlan_layer_mask()
1264 static inline u32 mtk_prep_ib1_vlan_layer(struct mtk_eth *eth, u32 val) in mtk_prep_ib1_vlan_layer() argument
1266 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_prep_ib1_vlan_layer()
1272 static inline u32 mtk_get_ib1_vlan_layer(struct mtk_eth *eth, u32 val) in mtk_get_ib1_vlan_layer() argument
1274 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_vlan_layer()
1280 static inline u32 mtk_get_ib1_pkt_type_mask(struct mtk_eth *eth) in mtk_get_ib1_pkt_type_mask() argument
1282 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_pkt_type_mask()
1288 static inline u32 mtk_get_ib1_pkt_type(struct mtk_eth *eth, u32 val) in mtk_get_ib1_pkt_type() argument
1290 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_pkt_type()
1296 static inline u32 mtk_get_ib2_multicast_mask(struct mtk_eth *eth) in mtk_get_ib2_multicast_mask() argument
1298 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib2_multicast_mask()
1307 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
1308 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
1314 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
1315 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
1316 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
1318 int mtk_eth_offload_init(struct mtk_eth *eth);
1321 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev);