Lines Matching refs:mtk_eth

640 struct mtk_eth;
1237 struct mtk_eth { struct
1318 struct mtk_eth *hw; argument
1329 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth) in mtk_is_netsys_v1()
1334 static inline bool mtk_is_netsys_v2_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v2_or_greater()
1339 static inline bool mtk_is_netsys_v3_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v3_or_greater()
1352 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *eth) in mtk_get_ib1_ts_mask()
1360 static inline u32 mtk_get_ib1_ppoe_mask(struct mtk_eth *eth) in mtk_get_ib1_ppoe_mask()
1368 static inline u32 mtk_get_ib1_vlan_tag_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_tag_mask()
1376 static inline u32 mtk_get_ib1_vlan_layer_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_layer_mask()
1384 static inline u32 mtk_prep_ib1_vlan_layer(struct mtk_eth *eth, u32 val) in mtk_prep_ib1_vlan_layer()
1392 static inline u32 mtk_get_ib1_vlan_layer(struct mtk_eth *eth, u32 val) in mtk_get_ib1_vlan_layer()
1400 static inline u32 mtk_get_ib1_pkt_type_mask(struct mtk_eth *eth) in mtk_get_ib1_pkt_type_mask()
1408 static inline u32 mtk_get_ib1_pkt_type(struct mtk_eth *eth, u32 val) in mtk_get_ib1_pkt_type()
1416 static inline u32 mtk_get_ib2_multicast_mask(struct mtk_eth *eth) in mtk_get_ib2_multicast_mask()
1427 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
1428 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
1429 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg);
1431 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
1432 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
1433 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
1435 int mtk_eth_offload_init(struct mtk_eth *eth);
1438 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls,
1440 void mtk_flow_offload_cleanup(struct mtk_eth *eth, struct list_head *list);
1441 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev);