Searched refs:eth (Results 1 - 25 of 265) sorted by relevance

1234567891011

/linux-master/net/ethernet/
H A DMakefile6 obj-y += eth.o
H A Deth.c9 * Version: @(#)eth.c 1.0.7 05/25/93
83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); local
86 eth->h_proto = htons(type);
88 eth->h_proto = htons(len);
96 memcpy(eth->h_source, saddr, ETH_ALEN);
99 memcpy(eth->h_dest, daddr, ETH_ALEN);
108 eth_zero_addr(eth->h_dest);
128 const struct ethhdr *eth = (const struct ethhdr *)data; local
132 if (unlikely(len < sizeof(*eth)))
137 eth
159 const struct ethhdr *eth; local
215 const struct ethhdr *eth = eth_hdr(skb); local
231 struct ethhdr *eth; local
276 const struct ethhdr *eth = eth_hdr(skb); local
[all...]
/linux-master/drivers/net/ethernet/sgi/
H A DMakefile7 obj-$(CONFIG_SGI_IOC3_ETH) += ioc3-eth.o
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c283 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) argument
285 __raw_writel(val, eth->base + reg);
288 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) argument
290 return __raw_readl(eth->base + reg);
293 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg) argument
297 val = mtk_r32(eth, reg);
300 mtk_w32(eth, val, reg);
304 static int mtk_mdio_busy_wait(struct mtk_eth *eth) argument
309 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS))
316 dev_err(eth
320 _mtk_mdio_write_c22(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg, u32 write_data) argument
344 _mtk_mdio_write_c45(struct mtk_eth *eth, u32 phy_addr, u32 devad, u32 phy_reg, u32 write_data) argument
380 _mtk_mdio_read_c22(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg) argument
402 _mtk_mdio_read_c45(struct mtk_eth *eth, u32 phy_addr, u32 devad, u32 phy_reg) argument
440 struct mtk_eth *eth = bus->priv; local
448 struct mtk_eth *eth = bus->priv; local
455 struct mtk_eth *eth = bus->priv; local
463 struct mtk_eth *eth = bus->priv; local
468 mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, phy_interface_t interface) argument
482 mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, phy_interface_t interface) argument
498 mtk_setup_bridge_switch(struct mtk_eth *eth) argument
516 struct mtk_eth *eth = mac->hw; local
535 struct mtk_eth *eth = mac->hw; local
667 struct mtk_eth *eth = mac->hw; local
700 mtk_set_queue_speed(struct mtk_eth *eth, unsigned int idx, int speed) argument
817 mtk_mdio_init(struct mtk_eth *eth) argument
880 mtk_mdio_cleanup(struct mtk_eth *eth) argument
888 mtk_tx_irq_disable(struct mtk_eth *eth, u32 mask) argument
899 mtk_tx_irq_enable(struct mtk_eth *eth, u32 mask) argument
910 mtk_rx_irq_disable(struct mtk_eth *eth, u32 mask) argument
921 mtk_rx_irq_enable(struct mtk_eth *eth, u32 mask) argument
936 struct mtk_eth *eth = mac->hw; local
967 struct mtk_eth *eth = mac->hw; local
1032 mtk_stats_update(struct mtk_eth *eth) argument
1100 mtk_rx_get_desc(struct mtk_eth *eth, struct mtk_rx_dma_v2 *rxd, struct mtk_rx_dma_v2 *dma_rxd) argument
1130 mtk_init_fq_dma(struct mtk_eth *eth) argument
1214 mtk_tx_unmap(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, struct xdp_frame_bulk *bq, bool napi) argument
1268 setup_tx_buf(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, struct mtk_tx_dma *txd, dma_addr_t mapped_addr, size_t size, int idx) argument
1295 struct mtk_eth *eth = mac->hw; local
1326 struct mtk_eth *eth = mac->hw; local
1381 struct mtk_eth *eth = mac->hw; local
1404 struct mtk_eth *eth = mac->hw; local
1541 mtk_cal_txd_req(struct mtk_eth *eth, struct sk_buff *skb) argument
1559 mtk_queue_stopped(struct mtk_eth *eth) argument
1573 mtk_wake_queue(struct mtk_eth *eth) argument
1587 struct mtk_eth *eth = mac->hw; local
1643 mtk_get_rx_ring(struct mtk_eth *eth) argument
1667 mtk_update_rx_cpu_idx(struct mtk_eth *eth) argument
1686 mtk_page_pool_enabled(struct mtk_eth *eth) argument
1691 mtk_create_page_pool(struct mtk_eth *eth, struct xdp_rxq_info *xdp_q, int id, int size) argument
1754 mtk_xdp_frame_map(struct mtk_eth *eth, struct net_device *dev, struct mtk_tx_dma_desc_info *txd_info, struct mtk_tx_dma *txd, struct mtk_tx_buf *tx_buf, void *data, u16 headroom, int index, bool dma_map) argument
1791 mtk_xdp_submit_frame(struct mtk_eth *eth, struct xdp_frame *xdpf, struct net_device *dev, bool dma_map) argument
1916 struct mtk_eth *eth = mac->hw; local
1936 mtk_xdp_run(struct mtk_eth *eth, struct mtk_rx_ring *ring, struct xdp_buff *xdp, struct net_device *dev) argument
1999 mtk_poll_rx(struct napi_struct *napi, int budget, struct mtk_eth *eth) argument
2229 mtk_poll_tx_done(struct mtk_eth *eth, struct mtk_poll_state *state, u8 mac, struct sk_buff *skb) argument
2259 mtk_poll_tx_qdma(struct mtk_eth *eth, int budget, struct mtk_poll_state *state) argument
2309 mtk_poll_tx_pdma(struct mtk_eth *eth, int budget, struct mtk_poll_state *state) argument
2347 mtk_poll_tx(struct mtk_eth *eth, int budget) argument
2372 mtk_handle_status_irq(struct mtk_eth *eth) argument
2385 struct mtk_eth *eth = container_of(napi, struct mtk_eth, tx_napi); local
2415 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); local
2448 mtk_tx_alloc(struct mtk_eth *eth) argument
2561 mtk_tx_clean(struct mtk_eth *eth) argument
2588 mtk_rx_alloc(struct mtk_eth *eth, int ring_no, int rx_flag) argument
2735 mtk_rx_clean(struct mtk_eth *eth, struct mtk_rx_ring *ring, bool in_sram) argument
2777 mtk_hwlro_rx_init(struct mtk_eth *eth) argument
2837 mtk_hwlro_rx_uninit(struct mtk_eth *eth) argument
2863 mtk_hwlro_val_ipaddr(struct mtk_eth *eth, int idx, __be32 ip) argument
2878 mtk_hwlro_inval_ipaddr(struct mtk_eth *eth, int idx) argument
2909 struct mtk_eth *eth = mac->hw; local
2933 struct mtk_eth *eth = mac->hw; local
2952 struct mtk_eth *eth = mac->hw; local
3043 mtk_dma_busy_wait(struct mtk_eth *eth) argument
3063 mtk_dma_init(struct mtk_eth *eth) argument
3117 mtk_dma_free(struct mtk_eth *eth) argument
3145 mtk_hw_reset_check(struct mtk_eth *eth) argument
3157 struct mtk_eth *eth = mac->hw; local
3173 struct mtk_eth *eth = _eth; local
3186 struct mtk_eth *eth = _eth; local
3199 struct mtk_eth *eth = _eth; local
3220 struct mtk_eth *eth = mac->hw; local
3230 mtk_start_dma(struct mtk_eth *eth) argument
3269 mtk_gdm_config(struct mtk_eth *eth, u32 config) argument
3316 struct mtk_eth *eth = mac->hw; local
3358 struct mtk_eth *eth = mac->hw; local
3432 mtk_stop_dma(struct mtk_eth *eth, u32 glo_cfg) argument
3458 struct mtk_eth *eth = mac->hw; local
3497 struct mtk_eth *eth = mac->hw; local
3535 ethsys_reset(struct mtk_eth *eth, u32 reset_bits) argument
3548 mtk_clk_disable(struct mtk_eth *eth) argument
3556 mtk_clk_enable(struct mtk_eth *eth) argument
3578 struct mtk_eth *eth = container_of(dim, struct mtk_eth, rx_dim); local
3609 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); local
3639 struct mtk_eth *eth = mac->hw; local
3661 mtk_hw_reset(struct mtk_eth *eth) argument
3697 mtk_hw_reset_read(struct mtk_eth *eth) argument
3705 mtk_hw_warm_reset(struct mtk_eth *eth) argument
3752 mtk_hw_check_dma_hang(struct mtk_eth *eth) argument
3833 struct mtk_eth *eth = container_of(del_work, struct mtk_eth, local
3848 mtk_hw_init(struct mtk_eth *eth, bool reset) argument
4022 mtk_hw_deinit(struct mtk_eth *eth) argument
4038 struct mtk_eth *eth = mac->hw; local
4049 struct mtk_eth *eth = mac->hw; local
4079 mtk_prepare_for_reset(struct mtk_eth *eth) argument
4112 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); local
4175 mtk_free_dev(struct mtk_eth *eth) argument
4194 mtk_unreg_dev(struct mtk_eth *eth) argument
4211 mtk_sgmii_destroy(struct mtk_eth *eth) argument
4219 mtk_cleanup(struct mtk_eth *eth) argument
4326 mtk_ethtool_pp_stats(struct mtk_eth *eth, u64 *data) argument
4484 mtk_add_mac(struct mtk_eth *eth, struct device_node *np) argument
4667 mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev) argument
4696 mtk_sgmii_init(struct mtk_eth *eth) argument
4730 struct mtk_eth *eth; local
5013 struct mtk_eth *eth = platform_get_drvdata(pdev); local
[all...]
H A Dmtk_eth_path.c18 int (*set_path)(struct mtk_eth *eth, u64 path);
43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, u64 path) argument
62 if (mtk_is_netsys_v3_or_greater(eth))
68 mtk_m32(eth, mask, set, reg);
70 dev_dbg(eth->dev, "path %s in %s updated = %d\n",
76 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, u64 path) argument
91 regmap_update_bits(eth->infra, INFRA_MISC2, GEPHY_MAC_SEL, val);
93 dev_dbg(eth->dev, "path %s in %s updated = %d\n",
99 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, u64 path) argument
106 if (MTK_HAS_CAPS(eth
130 set_mux_gmac1_gmac2_to_sgmii_rgmii(struct mtk_eth *eth, u64 path) argument
168 set_mux_gmac12_to_gephy_sgmii(struct mtk_eth *eth, u64 path) argument
223 mtk_eth_mux_setup(struct mtk_eth *eth, u64 path) argument
252 mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id) argument
263 mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id) argument
277 mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id) argument
[all...]
H A Dmtk_ppe_offload.c17 struct ethhdr eth; member in struct:mtk_flow_data
55 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, argument
58 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress,
64 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, argument
67 return mtk_foe_entry_set_ipv6_tuple(eth, foe,
73 mtk_flow_offload_mangle_eth(const struct flow_action_entry *act, void *eth) argument
75 void *dest = eth + act->mangle.offset;
187 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, argument
195 mtk_foe_entry_set_wdma(eth, foe, info.wdma_idx, info.queue,
197 if (mtk_is_netsys_v2_or_greater(eth)) {
244 mtk_flow_offload_replace(struct mtk_eth *eth, struct flow_cls_offload *f, int ppe_index) argument
485 mtk_flow_offload_destroy(struct mtk_eth *eth, struct flow_cls_offload *f) argument
505 mtk_flow_offload_stats(struct mtk_eth *eth, struct flow_cls_offload *f) argument
531 mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls, int ppe_index) argument
562 struct mtk_eth *eth; local
580 struct mtk_eth *eth = mac->hw; local
636 mtk_eth_offload_init(struct mtk_eth *eth) argument
[all...]
H A Dmtk_ppe.c58 static u32 mtk_eth_timestamp(struct mtk_eth *eth) argument
60 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth);
109 if (mtk_is_netsys_v3_or_greater(ppe->eth)) {
141 static u32 mtk_ppe_hash_entry(struct mtk_eth *eth, struct mtk_foe_entry *e) argument
146 switch (mtk_get_ib1_pkt_type(eth, e->ib1)) {
175 hash <<= (ffs(eth->soc->hash_offset) - 1);
182 mtk_foe_entry_l2(struct mtk_eth *eth, struct mtk_foe_entry *entry) argument
184 int type = mtk_get_ib1_pkt_type(eth, entry->ib1);
196 mtk_foe_entry_ib2(struct mtk_eth *eth, struc argument
209 mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry, int type, int l4proto, u8 pse_port, u8 *src_mac, u8 *dest_mac) argument
276 mtk_foe_entry_set_pse_port(struct mtk_eth *eth, struct mtk_foe_entry *entry, u8 port) argument
294 mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth, struct mtk_foe_entry *entry, bool egress, __be32 src_addr, __be16 src_port, __be32 dest_addr, __be16 dest_port) argument
334 mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth, struct mtk_foe_entry *entry, __be32 *src_addr, __be16 src_port, __be32 *dest_addr, __be16 dest_port) argument
370 mtk_foe_entry_set_dsa(struct mtk_eth *eth, struct mtk_foe_entry *entry, int port) argument
387 mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry, int vid) argument
412 mtk_foe_entry_set_pppoe(struct mtk_eth *eth, struct mtk_foe_entry *entry, int sid) argument
427 mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry, int wdma_idx, int txq, int bss, int wcid, bool amsdu_en) argument
464 mtk_foe_entry_set_queue(struct mtk_eth *eth, struct mtk_foe_entry *entry, unsigned int queue) argument
483 mtk_flow_entry_match(struct mtk_eth *eth, struct mtk_flow_entry *entry, struct mtk_foe_entry *data) argument
620 struct mtk_eth *eth = ppe->eth; local
877 mtk_ppe_init(struct mtk_eth *eth, void __iomem *base, int index) argument
943 mtk_ppe_deinit(struct mtk_eth *eth) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dxdp_hw_metadata.c35 struct ethhdr *eth; local
40 eth = data;
42 if (eth + 1 < data_end && (eth->h_proto == bpf_htons(ETH_P_8021AD) ||
43 eth->h_proto == bpf_htons(ETH_P_8021Q)))
44 eth = (void *)eth + sizeof(struct vlan_hdr);
46 if (eth + 1 < data_end && eth->h_proto == bpf_htons(ETH_P_8021Q))
47 eth
[all...]
H A Dtest_tc_link.c24 struct ethhdr eth = {}; local
28 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth)))
30 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP);
H A Dload_bytes_relative.c23 struct ethhdr eth; local
30 if (bpf_skb_load_bytes_relative(skb, 0, &eth, sizeof(eth),
H A Dskb_pkt_end.c16 struct ethhdr *eth; local
21 eth = (void *)(long)skb->data;
22 ip = (void *)(eth + 1);
H A Dxdp_redirect_multi_kern.c43 struct ethhdr *eth = data; local
47 nh_off = sizeof(*eth);
51 h_proto = eth->h_proto;
79 struct ethhdr *eth = data; local
83 nh_off = sizeof(*eth);
89 __builtin_memcpy(eth->h_source, mac, ETH_ALEN);
H A Dxdping_kern.c64 struct ethhdr *eth = data; local
68 if (data + sizeof(*eth) + sizeof(*iph) + ICMP_ECHO_LEN > data_end)
71 if (eth->h_proto != bpf_htons(ETH_P_IP))
74 iph = data + sizeof(*eth);
82 icmph = data + sizeof(*eth) + sizeof(*iph);
95 struct ethhdr *eth = data; local
109 iph = data + sizeof(*eth);
110 icmph = data + sizeof(*eth) + sizeof(*iph);
157 struct ethhdr *eth = data; local
168 iph = data + sizeof(*eth);
[all...]
H A Dvrf_socket_lookup.c20 struct ethhdr *eth = data; local
26 if (eth + 1 > data_end)
29 if (eth->h_proto != bpf_htons(ETH_P_IP))
32 iph = (struct iphdr *)(eth + 1);
H A Dxdp_metadata.c35 struct ethhdr *eth = NULL; local
44 eth = data;
45 if (eth + 1 < data_end) {
46 if (eth->h_proto == bpf_htons(ETH_P_IP)) {
47 iph = (void *)(eth + 1);
51 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
52 ip6h = (void *)(eth + 1);
H A Dtest_pkt_access.c107 struct ethhdr *eth = (struct ethhdr *)(data); local
112 if (eth + 1 > data_end)
115 if (eth->h_proto == bpf_htons(ETH_P_IP)) {
116 struct iphdr *iph = (struct iphdr *)(eth + 1);
123 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
124 struct ipv6hdr *ip6h = (struct ipv6hdr *)(eth + 1);
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A DMakefile6 obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o
10 fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o dpaa2-mac.o dpmac.o dpaa2-eth-devlink.o dpaa2-xsk.o
11 fsl-dpaa2-eth-${CONFIG_FSL_DPAA2_ETH_DCB} += dpaa2-eth-dcb.o
12 fsl-dpaa2-eth-${CONFIG_DEBUG_FS} += dpaa2-eth-debugfs.o
17 CFLAGS_dpaa2-eth.o := -I$(src)
/linux-master/samples/bpf/
H A Dtc_l2_redirect_kern.c63 struct eth_hdr *eth = data; local
69 if (data + sizeof(*eth) > data_end)
76 if (eth->h_proto == htons(ETH_P_IP)) {
78 struct iphdr *iph = data + sizeof(*eth);
80 if (data + sizeof(*eth) + sizeof(*iph) > data_end)
89 } else if (eth->h_proto == htons(ETH_P_IPV6)) {
91 struct ipv6hdr *ip6h = data + sizeof(*eth);
93 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end)
114 struct eth_hdr *eth = data; local
120 if (data + sizeof(*eth) > data_en
155 struct eth_hdr *eth = data; local
210 struct eth_hdr *eth = data; local
[all...]
H A Dparse_simple.c30 struct eth_hdr *eth = data; local
31 struct iphdr *iph = data + sizeof(*eth);
32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph);
36 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end)
39 if (eth->h_proto != htons(ETH_P_IP))
H A Dtest_cgrp2_tc.bpf.c31 struct eth_hdr *eth = data; local
32 struct ipv6hdr *ip6h = data + sizeof(*eth);
39 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end)
42 if (eth->h_proto != bpf_htons(ETH_P_IPV6) ||
45 eth->h_proto, ip6h->nexthdr);
H A Dxdp_adjust_tail_kern.c50 struct ethhdr *eth; local
52 eth = data;
53 memcpy(eth->h_source, orig_eth->h_dest, ETH_ALEN);
54 memcpy(eth->h_dest, orig_eth->h_source, ETH_ALEN);
55 eth->h_proto = orig_eth->h_proto;
141 struct ethhdr *eth = data; local
144 if (eth + 1 > data_end)
147 h_proto = eth->h_proto;
/linux-master/tools/testing/selftests/drivers/net/dsa/
H A Dtest_bridge_fdb_stress.sh32 eth=${NETIFS[p1]}
35 ip link add br0 type bridge && ip link set $eth master br0
38 bridge fdb add 00:01:02:03:04:05 dev $eth master static
39 bridge fdb del 00:01:02:03:04:05 dev $eth master static
/linux-master/drivers/infiniband/hw/mlx4/
H A Dah.c93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN);
94 eth_zero_addr(ah->av.eth.s_mac);
103 &ah->av.eth.s_mac[0]);
110 ah->av.eth.gid_index = ret;
113 ah->av.eth.gid_index = ah_attr->grh.sgid_index;
118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn |
120 ah->av.eth.vlan = cpu_to_be16(vlan_tag);
121 ah->av.eth.hop_limit = grh->hop_limit;
123 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) +
125 while (ah->av.eth
[all...]
/linux-master/tools/testing/selftests/drivers/net/bonding/
H A Dbond_topo_3d1c.sh38 ip -n ${s_ns} link add eth${i} type veth peer name s${i} netns ${g_ns}
41 ip -n ${s_ns} link set eth${i} master bond0
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpedit.h10 struct ethhdr eth; member in struct:pedit_headers

Completed in 265 milliseconds

1234567891011