Lines Matching refs:mtk_eth

642 struct mtk_eth;
1232 struct mtk_eth { struct
1314 struct mtk_eth *hw; argument
1325 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth) 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()
1335 static inline bool mtk_is_netsys_v3_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v3_or_greater()
1348 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *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()
1364 static inline u32 mtk_get_ib1_vlan_tag_mask(struct mtk_eth *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()
1380 static inline u32 mtk_prep_ib1_vlan_layer(struct mtk_eth *eth, u32 val) 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()
1396 static inline u32 mtk_get_ib1_pkt_type_mask(struct mtk_eth *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()
1412 static inline u32 mtk_get_ib2_multicast_mask(struct mtk_eth *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);