Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 505) sorted by relevance

12345678910>>...21

/linux-6.15/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c910 eth->mii_bus->priv = eth; in mtk_mdio_init()
911 eth->mii_bus->parent = eth->dev; in mtk_mdio_init()
1192 eth->scratch_ring = eth->sram_base; in mtk_init_fq_dma()
2279 dim_update_sample(eth->rx_events, eth->rx_packets, eth->rx_bytes, in mtk_poll_rx()
2429 dim_update_sample(eth->tx_events, eth->tx_packets, eth->tx_bytes, in mtk_poll_tx()
4785 eth->netdev[id]->irq = eth->irq[0]; in mtk_add_mac()
5017 eth->irq[i] = eth->irq[0]; in mtk_probe()
5071 dev_name(eth->dev), eth); in mtk_probe()
5075 dev_name(eth->dev), eth); in mtk_probe()
5081 dev_name(eth->dev), eth); in mtk_probe()
[all …]
H A Dmtk_eth_path.c18 int (*set_path)(struct mtk_eth *eth, u64 path);
62 if (mtk_is_netsys_v3_or_greater(eth)) in set_mux_gdm1_to_gmac1_esw()
68 mtk_m32(eth, mask, set, reg); in set_mux_gdm1_to_gmac1_esw()
70 dev_dbg(eth->dev, "path %s in %s updated = %d\n", in set_mux_gdm1_to_gmac1_esw()
173 regmap_read(eth->ethsys, ETHSYS_SYSCFG0, &val); in set_mux_gmac12_to_gephy_sgmii()
227 if (!MTK_HAS_CAPS(eth->soc->caps, path)) { in mtk_eth_mux_setup()
233 if (!MTK_HAS_CAPS(eth->soc->caps, MTK_MUX)) in mtk_eth_mux_setup()
239 err = mtk_eth_muxc[i].set_path(eth, path); in mtk_eth_mux_setup()
260 return mtk_eth_mux_setup(eth, path); in mtk_gmac_sgmii_path_setup()
274 return mtk_eth_mux_setup(eth, path); in mtk_gmac_gephy_path_setup()
[all …]
H A Dmtk_ppe_offload.c17 struct ethhdr eth; member
222 if (dev == eth->netdev[0]) in mtk_flow_set_output_device()
224 else if (dev == eth->netdev[1]) in mtk_flow_set_output_device()
226 else if (dev == eth->netdev[2]) in mtk_flow_set_output_device()
382 data.eth.h_source, data.eth.h_dest); in mtk_flow_offload_replace()
462 err = mtk_flow_set_output_device(eth, &foe, odev, data.eth.h_dest, in mtk_flow_offload_replace()
577 struct mtk_eth *eth; in mtk_eth_setup_tc_block_cb() local
580 eth = mac->hw; in mtk_eth_setup_tc_block_cb()
595 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block() local
600 if (!eth->soc->offload_version) in mtk_eth_setup_tc_block()
[all …]
H A Dmtk_ppe.c63 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp()
221 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_foe_entry_prepare()
285 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_foe_entry_set_pse_port()
434 switch (eth->soc->version) { in mtk_foe_entry_set_wdma()
545 u16 now = mtk_eth_timestamp(ppe->eth); in __mtk_foe_entry_idle_time()
620 struct mtk_eth *eth = ppe->eth; in __mtk_foe_entry_commit() local
641 if (mtk_is_netsys_v2_or_greater(eth)) in __mtk_foe_entry_commit()
645 *mtk_foe_entry_ib2(eth, hwe) |= val; in __mtk_foe_entry_commit()
882 struct device *dev = eth->dev; in mtk_ppe_init()
898 ppe->eth = eth; in mtk_ppe_init()
[all …]
H A Dmtk_eth_soc.h340 #define TX_DMA_PLEN0(x) (((x) & eth->soc->tx.dma_max_len) << eth->soc->tx.dma_len_offset)
361 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->rx.dma_max_len) << eth->soc->rx.dma_len_offset)
362 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->rx.dma_len_offset) & eth->soc->rx.dma_max_len)
1347 return eth->soc->version == 1; in mtk_is_netsys_v1()
1352 return eth->soc->version > 1; in mtk_is_netsys_v2_or_greater()
1357 return eth->soc->version > 2; in mtk_is_netsys_v3_or_greater()
1370 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ts_mask()
1378 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ppoe_mask()
1386 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_tag_mask()
1394 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_layer_mask()
[all …]
/linux-6.15/drivers/net/ethernet/airoha/
H A Dairoha_eth.c81 struct airoha_eth *eth = port->qdma->eth; in airoha_set_macaddr() local
110 struct airoha_eth *eth = port->qdma->eth; in airoha_set_vip_for_gdm_port() local
540 struct airoha_eth *eth = qdma->eth; in airoha_qdma_fill_rx_queue() local
609 struct airoha_eth *eth = qdma->eth; in airoha_qdma_rx_process() local
739 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_rx_queue() local
786 struct airoha_eth *eth = q->qdma->eth; in airoha_qdma_cleanup_rx_queue() local
832 eth = qdma->eth; in airoha_qdma_tx_napi_poll()
933 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_tx_queue() local
976 struct airoha_eth *eth = qdma->eth; in airoha_qdma_tx_irq_init() local
1041 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_hfwd_queues() local
[all …]
H A Dairoha_ppe.c42 struct airoha_eth *eth = ppe->eth; in airoha_ppe_hw_init() local
402 struct airoha_eth *eth = ppe->eth; in airoha_ppe_foe_get_entry() local
414 10, 100, false, eth, in airoha_ppe_foe_get_entry()
419 hwe[i] = airoha_fe_rr(eth, in airoha_ppe_foe_get_entry()
449 struct airoha_eth *eth = ppe->eth; in airoha_ppe_foe_commit_entry() local
543 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_flow_offload_replace() local
738 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_flow_offload_destroy() local
831 struct airoha_eth *eth = port->qdma->eth; in airoha_ppe_setup_tc_block_cb() local
839 if (!eth->npu) in airoha_ppe_setup_tc_block_cb()
880 ppe->eth = eth; in airoha_ppe_init()
[all …]
H A Dairoha_eth.h395 struct ethhdr eth; member
436 struct airoha_eth *eth; member
478 struct airoha_eth *eth; member
513 #define airoha_fe_rr(eth, offset) \ argument
514 airoha_rr((eth)->fe_regs, (offset))
515 #define airoha_fe_wr(eth, offset, val) \ argument
516 airoha_wr((eth)->fe_regs, (offset), (val))
519 #define airoha_fe_set(eth, offset, val) \ argument
520 airoha_rmw((eth)->fe_regs, (offset), 0, (val))
521 #define airoha_fe_clear(eth, offset, val) \ argument
[all …]
/linux-6.15/samples/bpf/
H A Dtc_l2_redirect_kern.c62 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_forward() local
66 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_forward()
73 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward()
111 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_redirect() local
115 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_redirect()
122 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect()
150 struct eth_hdr *eth = data; in _l2_to_ip6tun_ingress_redirect() local
154 if (data + sizeof(*eth) > data_end) in _l2_to_ip6tun_ingress_redirect()
161 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect()
204 struct eth_hdr *eth = data; in _drop_non_tun_vip() local
[all …]
H A Dparse_simple.c30 struct eth_hdr *eth = data; in handle_ingress() local
31 struct iphdr *iph = data + sizeof(*eth); in handle_ingress()
32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress()
36 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end) in handle_ingress()
39 if (eth->h_proto != htons(ETH_P_IP)) in handle_ingress()
H A Dxdp_adjust_tail_kern.c50 struct ethhdr *eth; in swap_mac() local
52 eth = data; in swap_mac()
53 memcpy(eth->h_source, orig_eth->h_dest, ETH_ALEN); in swap_mac()
54 memcpy(eth->h_dest, orig_eth->h_source, ETH_ALEN); in swap_mac()
55 eth->h_proto = orig_eth->h_proto; in swap_mac()
142 struct ethhdr *eth = data; in _xdp_icmp() local
145 if (eth + 1 > data_end) in _xdp_icmp()
148 h_proto = eth->h_proto; in _xdp_icmp()
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dxdp_hw_metadata.c35 struct ethhdr *eth; in rx() local
40 eth = data; in rx()
42 if (eth + 1 < data_end && (eth->h_proto == bpf_htons(ETH_P_8021AD) || in rx()
44 eth = (void *)eth + sizeof(struct vlan_hdr); in rx()
46 if (eth + 1 < data_end && eth->h_proto == bpf_htons(ETH_P_8021Q)) in rx()
47 eth = (void *)eth + sizeof(struct vlan_hdr); in rx()
49 if (eth + 1 < data_end) { in rx()
50 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
51 iph = (void *)(eth + 1); in rx()
55 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in rx()
[all …]
H A Dtest_tc_link.c36 struct ethhdr eth = {}; in tc1() local
40 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth))) in tc1()
42 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP); in tc1()
45 eth.h_dest[0] = 4; in tc1()
46 if (bpf_skb_store_bytes(skb, 0, &eth, sizeof(eth), 0)) in tc1()
94 struct ethhdr eth = {}; in tc7() local
98 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth))) in tc7()
100 if (eth.h_dest[0] == 4 && set_type) { in tc7()
H A Dxdping_kern.c64 struct ethhdr *eth = data; in icmp_check() local
68 if (data + sizeof(*eth) + sizeof(*iph) + ICMP_ECHO_LEN > data_end) in icmp_check()
71 if (eth->h_proto != bpf_htons(ETH_P_IP)) in icmp_check()
74 iph = data + sizeof(*eth); in icmp_check()
82 icmph = data + sizeof(*eth) + sizeof(*iph); in icmp_check()
95 struct ethhdr *eth = data; in xdping_client() local
109 iph = data + sizeof(*eth); in xdping_client()
110 icmph = data + sizeof(*eth) + sizeof(*iph); in xdping_client()
157 struct ethhdr *eth = data; in xdping_server() local
168 iph = data + sizeof(*eth); in xdping_server()
[all …]
H A Dtest_btf_skc_cls_ingress.c66 static int handle_ip_tcp(struct ethhdr *eth, struct __sk_buff *skb) in handle_ip_tcp() argument
79 switch (eth->h_proto) { in handle_ip_tcp()
81 ip4h = (struct iphdr *)(eth + 1); in handle_ip_tcp()
98 ip6h = (struct ipv6hdr *)(eth + 1); in handle_ip_tcp()
180 struct ethhdr *eth; in cls_ingress() local
185 eth = (struct ethhdr *)(long)(skb->data); in cls_ingress()
186 if (eth + 1 > data_end) in cls_ingress()
189 if (eth->h_proto != bpf_htons(ETH_P_IP) && in cls_ingress()
190 eth->h_proto != bpf_htons(ETH_P_IPV6)) in cls_ingress()
193 return handle_ip_tcp(eth, skb); in cls_ingress()
H A Dxdp_metadata.c35 struct ethhdr *eth = NULL; in rx() local
44 eth = data; in rx()
45 if (eth + 1 < data_end) { in rx()
46 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
47 iph = (void *)(eth + 1); in rx()
51 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in rx()
52 ip6h = (void *)(eth + 1); in rx()
H A Dxdp_redirect_map.c45 struct ethhdr *eth = data; in xdp_count() local
48 if (data + sizeof(*eth) > data_end) in xdp_count()
51 if (bpf_htons(eth->h_proto) == ETH_P_IP) { in xdp_count()
90 struct ethhdr *eth = data; in store_mac() local
94 if (data + sizeof(*eth) > data_end) in store_mac()
98 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in store_mac()
99 __builtin_memcpy(&mac, eth->h_source, ETH_ALEN); in store_mac()
/linux-6.15/net/ethernet/
H A Deth.c86 eth->h_proto = htons(type); in eth_header()
88 eth->h_proto = htons(len); in eth_header()
108 eth_zero_addr(eth->h_dest); in eth_header()
137 eth->h_proto, sizeof(*eth), in eth_get_headlen()
159 const struct ethhdr *eth; in eth_type_trans() local
164 eth = eth_skb_pull_mac(skb); in eth_type_trans()
177 return eth->h_proto; in eth_type_trans()
219 struct ethhdr *eth; in eth_header_cache() local
222 eth = (struct ethhdr *) in eth_header_cache()
228 eth->h_proto = type; in eth_header_cache()
[all …]
/linux-6.15/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 dp…
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-6.15/drivers/infiniband/hw/mlx4/
H A Dah.c94 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah()
103 &ah->av.eth.s_mac[0]); in create_iboe_ah()
110 ah->av.eth.gid_index = ret; in create_iboe_ah()
113 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah()
120 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
121 ah->av.eth.hop_limit = grh->hop_limit; in create_iboe_ah()
127 --ah->av.eth.stat_rate; in create_iboe_ah()
129 ah->av.eth.sl_tclass_flowlabel |= in create_iboe_ah()
138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah()
188 memcpy(mah->av.eth.s_mac, s_mac, 6); in mlx4_ib_create_ah_slave()
[all …]
/linux-6.15/Documentation/devicetree/bindings/net/
H A Dqca,ar71xx.yaml20 - qca,ar7100-eth # Atheros AR7100
21 - qca,ar7240-eth # Atheros AR7240
22 - qca,ar7241-eth # Atheros AR7241
23 - qca,ar7242-eth # Atheros AR7242
24 - qca,ar9130-eth # Atheros AR9130
25 - qca,ar9330-eth # Atheros AR9330
44 - const: eth
77 compatible = "qca,ar9330-eth";
83 clock-names = "eth", "mdio";
89 compatible = "qca,ar9330-eth";
[all …]
H A Dcirrus,ep9301-eth.yaml4 $id: http://devicetree.org/schemas/net/cirrus,ep9301-eth.yaml#
19 - const: cirrus,ep9301-eth
22 - cirrus,ep9302-eth
23 - cirrus,ep9307-eth
24 - cirrus,ep9312-eth
25 - cirrus,ep9315-eth
26 - const: cirrus,ep9301-eth
54 compatible = "cirrus,ep9301-eth";
H A Dmediatek,net.yaml20 - mediatek,mt2701-eth
21 - mediatek,mt7623-eth
22 - mediatek,mt7621-eth
23 - mediatek,mt7622-eth
24 - mediatek,mt7629-eth
25 - mediatek,mt7981-eth
26 - mediatek,mt7986-eth
27 - mediatek,mt7988-eth
28 - ralink,rt5350-eth
394 const: mediatek,eth-mac
[all …]
/linux-6.15/drivers/scsi/fnic/
H A Dfip.h51 struct ethhdr eth; member
62 struct ethhdr eth; member
69 struct ethhdr eth; member
94 struct ethhdr eth; member
107 struct ethhdr eth; member
138 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument
141 struct fip_header *fiph = (struct fip_header *)(eth + 1); in fnic_debug_dump_fip_frame()
149 fnic_debug_dump(fnic, (uint8_t *)eth, len); in fnic_debug_dump_fip_frame()
155 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame() argument
/linux-6.15/drivers/net/ethernet/sgi/
H A Dmeth.c109 mace->eth.mac_addr = macaddr; in load_eaddr()
126 mace->eth.phy_trans_go = 1; in mdio_read()
195 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link()
204 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link()
276 mace->eth.mac_ctrl = SGI_MAC_RESET; in meth_reset()
278 mace->eth.mac_ctrl = 0; in meth_reset()
295 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_reset()
303 mace->eth.dma_ctrl = priv->dma_ctrl; in meth_reset()
342 mace->eth.dma_ctrl = priv->dma_ctrl; in meth_open()
579 status = mace->eth.int_stat; in meth_interrupt()
[all …]

12345678910>>...21