Lines Matching defs:mtk_eth

640 struct mtk_eth;
1194 /* struct mtk_eth - This is the main datasructure for holding the state
1240 struct mtk_eth {
1321 struct mtk_eth *hw;
1332 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth)
1337 static inline bool mtk_is_netsys_v2_or_greater(struct mtk_eth *eth)
1342 static inline bool mtk_is_netsys_v3_or_greater(struct mtk_eth *eth)
1355 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *eth)
1363 static inline u32 mtk_get_ib1_ppoe_mask(struct mtk_eth *eth)
1371 static inline u32 mtk_get_ib1_vlan_tag_mask(struct mtk_eth *eth)
1379 static inline u32 mtk_get_ib1_vlan_layer_mask(struct mtk_eth *eth)
1387 static inline u32 mtk_prep_ib1_vlan_layer(struct mtk_eth *eth, u32 val)
1395 static inline u32 mtk_get_ib1_vlan_layer(struct mtk_eth *eth, u32 val)
1403 static inline u32 mtk_get_ib1_pkt_type_mask(struct mtk_eth *eth)
1411 static inline u32 mtk_get_ib1_pkt_type(struct mtk_eth *eth, u32 val)
1419 static inline u32 mtk_get_ib2_multicast_mask(struct mtk_eth *eth)
1430 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
1431 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
1432 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg);
1434 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
1435 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
1436 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
1438 int mtk_eth_offload_init(struct mtk_eth *eth);
1441 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls,
1443 void mtk_flow_offload_cleanup(struct mtk_eth *eth, struct list_head *list);
1444 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev);