Lines Matching full:eth

332 #define TX_DMA_PLEN0(x)		(((x) & eth->soc->tx.dma_max_len) << eth->soc->tx.dma_len_offset)
333 #define TX_DMA_PLEN1(x) ((x) & eth->soc->tx.dma_max_len)
353 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->rx.dma_max_len) << eth->soc->rx.dma_len_offset)
354 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->rx.dma_len_offset) & eth->soc->rx.dma_max_len)
1325 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth) in mtk_is_netsys_v1() argument
1327 return eth->soc->version == 1; in mtk_is_netsys_v1()
1330 static inline bool mtk_is_netsys_v2_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v2_or_greater() argument
1332 return eth->soc->version > 1; in mtk_is_netsys_v2_or_greater()
1335 static inline bool mtk_is_netsys_v3_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v3_or_greater() argument
1337 return eth->soc->version > 2; in mtk_is_netsys_v3_or_greater()
1343 const struct mtk_soc_data *soc = ppe->eth->soc; in mtk_foe_get_entry()
1348 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *eth) in mtk_get_ib1_ts_mask() argument
1350 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ts_mask()
1356 static inline u32 mtk_get_ib1_ppoe_mask(struct mtk_eth *eth) in mtk_get_ib1_ppoe_mask() argument
1358 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ppoe_mask()
1364 static inline u32 mtk_get_ib1_vlan_tag_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_tag_mask() argument
1366 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_tag_mask()
1372 static inline u32 mtk_get_ib1_vlan_layer_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_layer_mask() argument
1374 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_layer_mask()
1380 static inline u32 mtk_prep_ib1_vlan_layer(struct mtk_eth *eth, u32 val) in mtk_prep_ib1_vlan_layer() argument
1382 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_prep_ib1_vlan_layer()
1388 static inline u32 mtk_get_ib1_vlan_layer(struct mtk_eth *eth, u32 val) in mtk_get_ib1_vlan_layer() argument
1390 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_layer()
1396 static inline u32 mtk_get_ib1_pkt_type_mask(struct mtk_eth *eth) in mtk_get_ib1_pkt_type_mask() argument
1398 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_pkt_type_mask()
1404 static inline u32 mtk_get_ib1_pkt_type(struct mtk_eth *eth, u32 val) in mtk_get_ib1_pkt_type() argument
1406 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_pkt_type()
1412 static inline u32 mtk_get_ib2_multicast_mask(struct mtk_eth *eth) in mtk_get_ib2_multicast_mask() argument
1414 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib2_multicast_mask()
1423 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
1424 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
1425 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg);
1427 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
1428 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
1429 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
1431 int mtk_eth_offload_init(struct mtk_eth *eth, u8 id);
1434 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls,
1436 void mtk_flow_offload_cleanup(struct mtk_eth *eth, struct list_head *list);
1437 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev);