Home
last modified time | relevance | path

Searched full:eth (Results 1 – 25 of 822) sorted by relevance

12345678910>>...33

/linux-6.15/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c288 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32() argument
290 __raw_writel(val, eth->base + reg); in mtk_w32()
293 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() argument
295 return __raw_readl(eth->base + reg); in mtk_r32()
298 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned int reg) in mtk_m32() argument
302 val = mtk_r32(eth, reg); in mtk_m32()
305 mtk_w32(eth, val, reg); in mtk_m32()
309 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait() argument
314 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait()
321 dev_err(eth->dev, "mdio: MDIO timeout\n"); in mtk_mdio_busy_wait()
[all …]
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) in set_mux_gdm1_to_gmac1_esw() argument
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()
76 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, u64 path) in set_mux_gmac2_gmac0_to_gephy() argument
91 regmap_update_bits(eth->infra, INFRA_MISC2, GEPHY_MAC_SEL, val); in set_mux_gmac2_gmac0_to_gephy()
93 dev_dbg(eth->dev, "path %s in %s updated = %d\n", in set_mux_gmac2_gmac0_to_gephy()
99 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, u64 path) in set_mux_u3_gmac2_to_qphy() argument
106 if (MTK_HAS_CAPS(eth->soc->caps, MTK_U3_COPHY_V2)) { in set_mux_u3_gmac2_to_qphy()
[all …]
Dmtk_ppe_offload.c17 struct ethhdr eth; member
57 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr() argument
60 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress, 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() argument
69 return mtk_foe_entry_set_ipv6_tuple(eth, foe, in mtk_flow_set_ipv6_addr()
75 mtk_flow_offload_mangle_eth(const struct flow_action_entry *act, void *eth) in mtk_flow_offload_mangle_eth() argument
77 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth()
189 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device() argument
197 mtk_foe_entry_set_wdma(eth, foe, info.wdma_idx, info.queue, in mtk_flow_set_output_device()
199 if (mtk_is_netsys_v2_or_greater(eth)) { in mtk_flow_set_output_device()
[all …]
Dmtk_ppe.c61 static u32 mtk_eth_timestamp(struct mtk_eth *eth) in mtk_eth_timestamp() argument
63 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp()
112 if (mtk_is_netsys_v3_or_greater(ppe->eth)) { in mtk_mib_entry_read()
144 static u32 mtk_ppe_hash_entry(struct mtk_eth *eth, struct mtk_foe_entry *e) in mtk_ppe_hash_entry() argument
149 switch (mtk_get_ib1_pkt_type(eth, e->ib1)) { in mtk_ppe_hash_entry()
178 hash <<= (ffs(eth->soc->hash_offset) - 1); in mtk_ppe_hash_entry()
185 mtk_foe_entry_l2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_l2() argument
187 int type = mtk_get_ib1_pkt_type(eth, entry->ib1); in mtk_foe_entry_l2()
199 mtk_foe_entry_ib2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_ib2() argument
201 int type = mtk_get_ib1_pkt_type(eth, entry->ib1); in mtk_foe_entry_ib2()
[all …]
/linux-6.15/drivers/net/ethernet/airoha/
Dairoha_eth.c81 struct airoha_eth *eth = port->qdma->eth; in airoha_set_macaddr() local
87 airoha_fe_wr(eth, reg, val); in airoha_set_macaddr()
90 airoha_fe_wr(eth, REG_FE_MAC_LMIN(reg), val); in airoha_set_macaddr()
91 airoha_fe_wr(eth, REG_FE_MAC_LMAX(reg), val); in airoha_set_macaddr()
94 static void airoha_set_gdm_port_fwd_cfg(struct airoha_eth *eth, u32 addr, in airoha_set_gdm_port_fwd_cfg() argument
97 airoha_fe_rmw(eth, addr, GDM_OCFQ_MASK, in airoha_set_gdm_port_fwd_cfg()
99 airoha_fe_rmw(eth, addr, GDM_MCFQ_MASK, in airoha_set_gdm_port_fwd_cfg()
101 airoha_fe_rmw(eth, addr, GDM_BCFQ_MASK, in airoha_set_gdm_port_fwd_cfg()
103 airoha_fe_rmw(eth, addr, GDM_UCFQ_MASK, in airoha_set_gdm_port_fwd_cfg()
110 struct airoha_eth *eth = port->qdma->eth; in airoha_set_vip_for_gdm_port() local
[all …]
Dairoha_ppe.c27 static bool airoha_ppe2_is_enabled(struct airoha_eth *eth) in airoha_ppe2_is_enabled() argument
29 return airoha_fe_rr(eth, REG_PPE_GLO_CFG(1)) & PPE_GLO_CFG_EN_MASK; in airoha_ppe2_is_enabled()
34 u16 timestamp = airoha_fe_rr(ppe->eth, REG_FE_FOE_TS); in airoha_ppe_get_timestamp()
42 struct airoha_eth *eth = ppe->eth; in airoha_ppe_hw_init() local
51 airoha_fe_wr(eth, REG_PPE_TB_BASE(i), in airoha_ppe_hw_init()
54 airoha_fe_rmw(eth, REG_PPE_BND_AGE0(i), in airoha_ppe_hw_init()
59 airoha_fe_rmw(eth, REG_PPE_BND_AGE1(i), in airoha_ppe_hw_init()
65 airoha_fe_rmw(eth, REG_PPE_TB_HASH_CFG(i), in airoha_ppe_hw_init()
78 airoha_fe_rmw(eth, REG_PPE_TB_CFG(i), in airoha_ppe_hw_init()
84 airoha_fe_wr(eth, REG_PPE_HASH_SEED(i), PPE_HASH_SEED); in airoha_ppe_hw_init()
[all …]
/linux-6.15/samples/bpf/
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()
75 struct iphdr *iph = data + sizeof(*eth); in _l2_to_iptun_ingress_forward()
77 if (data + sizeof(*eth) + sizeof(*iph) > data_end) in _l2_to_iptun_ingress_forward()
86 } else if (eth->h_proto == htons(ETH_P_IPV6)) { in _l2_to_iptun_ingress_forward()
88 struct ipv6hdr *ip6h = data + sizeof(*eth); in _l2_to_iptun_ingress_forward()
90 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) 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()
[all …]
/linux-6.15/tools/testing/selftests/tc-testing/tc-tests/qdiscs/
Dtaprio.json15 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2…
17 "verifyCmd": "$TC qdisc show dev $ETH",
37 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2…
39 "verifyCmd": "$TC qdisc show dev $ETH",
59 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2…
61 "verifyCmd": "$TC qdisc show dev $ETH",
80 …"$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 queues …
82 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:",
84 "verifyCmd": "$TC qdisc show dev $ETH",
104 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: taprio num_tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2…
[all …]
Dmq.json15 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq",
17 "verifyCmd": "$TC qdisc show dev $ETH",
37 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq",
39 "verifyCmd": "$TC qdisc show dev $ETH",
58 "$TC qdisc add dev $ETH root handle 1: mq"
60 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mq",
62 "verifyCmd": "$TC qdisc show dev $ETH",
82 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: mq",
84 "verifyCmd": "$TC qdisc show dev $ETH",
103 "$TC qdisc add dev $ETH root handle 1: mq",
[all …]
Dmultiq.json15 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq",
17 "verifyCmd": "$TC qdisc show dev $ETH",
37 "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq",
39 "verifyCmd": "$TC class show dev $ETH",
59 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: multiq",
61 "verifyCmd": "$TC qdisc show dev $ETH",
80 "$TC qdisc add dev $ETH root handle 1: multiq",
81 "$TC qdisc del dev $ETH root handle 1:"
83 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:",
85 "verifyCmd": "$TC qdisc show dev $ETH",
[all …]
Dmqprio.json15 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues …
17 "verifyCmd": "$TC qdisc show dev $ETH",
37 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: mqprio",
39 "verifyCmd": "$TC qdisc show dev $ETH",
58 …"$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 …
59 "$TC qdisc del dev $ETH root handle 1:"
61 "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:",
63 "verifyCmd": "$TC qdisc show dev $ETH",
83 …"cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: mqprio num_tc 8 map 0 1 2 3 4 5 6 7 queues …
85 "verifyCmd": "$TC qdisc show dev $ETH",
[all …]
/linux-6.15/tools/testing/selftests/bpf/progs/
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()
43 eth->h_proto == bpf_htons(ETH_P_8021Q))) 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()
[all …]
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()
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 …]
/linux-6.15/Documentation/devicetree/bindings/net/
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
26 - qca,ar9340-eth # Atheros AR9340
27 - qca,qca9530-eth # Qualcomm Atheros QCA9530
28 - qca,qca9550-eth # Qualcomm Atheros QCA9550
29 - qca,qca9560-eth # Qualcomm Atheros QCA9560
[all …]
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
130 - mediatek,mt2701-eth
[all …]
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";
/linux-6.15/drivers/net/ethernet/freescale/dpaa2/
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/tools/testing/selftests/tc-testing/tc-tests/actions/
Dpedit.json672 "name": "Add pedit action with LAYERED_OP eth set src",
689 "cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66",
692 …rder [0-9]+: pedit action pass keys 2.*key #0 at eth\\+4: val 00001122 mask ffff0000.*key #1 at…
700 "name": "Add pedit action with LAYERED_OP eth set src & dst",
717 …"cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66 munge eth dst…
720 …"matchPattern": "eth\\+4: val 00001122 mask ffff0000.*eth\\+8: val 33445566 mask 00000000.*eth\\+0…
728 "name": "Add pedit action with LAYERED_OP eth set dst",
745 "cmdUnderTest": "$TC actions add action pedit ex munge eth dst set 11:22:33:44:55:66",
748 …rder [0-9]+: pedit action pass keys 2.*key #0 at eth\\+0: val 11223344 mask 00000000.*key #1 at…
756 "name": "Add pedit action with LAYERED_OP eth set src (INVALID)",
[all …]
/linux-6.15/drivers/infiniband/hw/mlx4/
Dah.c93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah()
94 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()
118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | 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()
123 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + in create_iboe_ah()
125 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah()
[all …]
/linux-6.15/tools/testing/selftests/net/openvswitch/
Dopenvswitch.sh21 arp_ping eth-arp: Basic arp ping between two NS
261 'in_port(1),eth(),eth_type(0x0806),arp()' 'psample(group=1)' &> /dev/null
273 min_key='in_port(1),eth(),eth_type(0x0800),ipv4()'
291 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
293 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
297 "in_port(1),eth(),eth_type(0x0800),ipv4()" \
307 "in_port(2),eth(),eth_type(0x0800),ipv4()" \
359 'in_port(1),eth(),eth_type(0x0806),arp()' 'drop(10)' 2>/dev/null
370 'in_port(1),eth(),eth_type(0x0806),arp()' '2' || return 1
372 'in_port(2),eth(),eth_type(0x0806),arp()' '1' || return 1
[all …]
/linux-6.15/arch/mips/pci/
Dfixup-sni.c23 #define ETH PCIMT_IRQ_ETHERNET macro
47 { ETH, ETH, ETH, ETH, ETH }, /* Ethernet */
81 #undef ETH
93 #define ETH PCIT_IRQ_ETHERNET macro
104 { ETH, ETH, ETH, ETH, ETH }, /* Ethernet */
/linux-6.15/net/ethernet/
Deth.c9 * Version: @(#)eth.c 1.0.7 05/25/93
83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local
86 eth->h_proto = htons(type); in eth_header()
88 eth->h_proto = htons(len); in eth_header()
96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header()
99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header()
108 eth_zero_addr(eth->h_dest); in eth_header()
128 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() local
132 if (unlikely(len < sizeof(*eth))) in eth_get_headlen()
137 eth->h_proto, sizeof(*eth), in eth_get_headlen()
[all …]
/linux-6.15/drivers/scsi/fnic/
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/arch/arm64/boot/dts/amlogic/
Dmeson-gxbb-odroidc2.dts294 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk",
295 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2",
296 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En",
297 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3",
298 "Eth PHY nRESET", "Eth PHY Intc",

12345678910>>...33