Home
last modified time | relevance | path

Searched refs:mtk_eth (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/mediatek/
H A DMakefile6 obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth.o
7 mtk_eth-y := mtk_eth_soc.o mtk_eth_path.o mtk_ppe.o mtk_ppe_debugfs.o mtk_ppe_offload.o
8 mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed.o mtk_wed_mcu.o mtk_wed_wo.o
10 mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_debugfs.o
H A Dmtk_eth_soc.h688 struct mtk_eth;
1294 struct mtk_eth { struct
1377 struct mtk_eth *hw; argument
1388 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth) in mtk_is_netsys_v1()
1393 static inline bool mtk_is_netsys_v2_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v2_or_greater()
1398 static inline bool mtk_is_netsys_v3_or_greater(struct mtk_eth *eth) in mtk_is_netsys_v3_or_greater()
1411 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *eth) in mtk_get_ib1_ts_mask()
1419 static inline u32 mtk_get_ib1_ppoe_mask(struct mtk_eth *eth) in mtk_get_ib1_ppoe_mask()
1427 static inline u32 mtk_get_ib1_vlan_tag_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_tag_mask()
1435 static inline u32 mtk_get_ib1_vlan_layer_mask(struct mtk_eth *eth) in mtk_get_ib1_vlan_layer_mask()
[all …]
H A Dmtk_eth_soc.c290 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32()
295 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32()
300 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg) in mtk_m32()
311 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
327 static int _mtk_mdio_write_c22(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg, in _mtk_mdio_write_c22()
351 static int _mtk_mdio_write_c45(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_write_c45()
387 static int _mtk_mdio_read_c22(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg) in _mtk_mdio_read_c22()
409 static int _mtk_mdio_read_c45(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_read_c45()
447 struct mtk_eth *eth = bus->priv; in mtk_mdio_write_c22()
455 struct mtk_eth *et in mtk_mdio_write_c45()
[all...]
H A Dmtk_ppe_offload.c57 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr()
66 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr()
200 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device()
257 mtk_flow_is_valid_idev(const struct mtk_eth *eth, const struct net_device *idev) in mtk_flow_is_valid_idev()
276 mtk_flow_offload_replace(struct mtk_eth *eth, struct flow_cls_offload *f, in mtk_flow_offload_replace()
530 mtk_flow_offload_destroy(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_destroy()
550 mtk_flow_offload_stats(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_stats()
576 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls, in mtk_flow_offload_cmd()
607 struct mtk_eth *eth; in mtk_eth_setup_tc_block_cb()
625 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block()
[all …]
H A Dmtk_ppe.c61 static u32 mtk_eth_timestamp(struct mtk_eth *eth) in mtk_eth_timestamp()
144 static u32 mtk_ppe_hash_entry(struct mtk_eth *eth, struct mtk_foe_entry *e) in mtk_ppe_hash_entry()
185 mtk_foe_entry_l2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_l2()
199 mtk_foe_entry_ib2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_ib2()
212 int mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry, in mtk_foe_entry_prepare()
279 int mtk_foe_entry_set_pse_port(struct mtk_eth *eth, in mtk_foe_entry_set_pse_port()
297 int mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth, in mtk_foe_entry_set_ipv4_tuple()
337 int mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth, in mtk_foe_entry_set_ipv6_tuple()
370 int mtk_foe_entry_set_dsa(struct mtk_eth *eth, struct mtk_foe_entry *entry, in mtk_foe_entry_set_dsa()
387 int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry, in mtk_foe_entry_set_vlan()
[all …]
H A Dmtk_wed.c1962 struct mtk_eth *eth = dev->hw->eth; in mtk_wed_ppe_check()
2706 struct mtk_eth *eth = hw->eth; in mtk_wed_setup_tc_block()
2777 void mtk_wed_add_hw(struct device_node *np, struct mtk_eth *eth, in mtk_wed_add_hw()