Home
last modified time | relevance | path

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

12345678910>>...20

/linux/drivers/net/ethernet/mediatek/
A Dmtk_eth_soc.c855 eth->mii_bus->priv = eth; in mtk_mdio_init()
856 eth->mii_bus->parent = eth->dev; in mtk_mdio_init()
1148 eth->scratch_ring = eth->sram_base; in mtk_init_fq_dma()
2228 dim_update_sample(eth->rx_events, eth->rx_packets, eth->rx_bytes, in mtk_poll_rx()
2378 dim_update_sample(eth->tx_events, eth->tx_packets, eth->tx_bytes, in mtk_poll_tx()
4692 eth->netdev[id]->irq = eth->irq[0]; in mtk_add_mac()
4924 eth->irq[i] = eth->irq[0]; in mtk_probe()
4978 dev_name(eth->dev), eth); in mtk_probe()
4982 dev_name(eth->dev), eth); in mtk_probe()
4988 dev_name(eth->dev), eth); in mtk_probe()
[all …]
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 …]
A Dairoha_eth.c916 struct airoha_eth *eth = port->qdma->eth; in airoha_set_macaddr() local
1407 struct airoha_eth *eth = qdma->eth; in airoha_qdma_fill_rx_queue() local
1476 struct airoha_eth *eth = qdma->eth; in airoha_qdma_rx_process() local
1566 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_rx_queue() local
1612 struct airoha_eth *eth = q->qdma->eth; in airoha_qdma_cleanup_rx_queue() local
1657 eth = qdma->eth; in airoha_qdma_tx_napi_poll()
1742 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_tx_queue() local
1781 struct airoha_eth *eth = qdma->eth; in airoha_qdma_tx_irq_init() local
1827 struct airoha_eth *eth = q->qdma->eth; in airoha_qdma_cleanup_tx_queue() local
1846 struct airoha_eth *eth = qdma->eth; in airoha_qdma_init_hfwd_queues() local
[all …]
A Dmtk_ppe_offload.c17 struct ethhdr eth; member
220 if (dev == eth->netdev[0]) in mtk_flow_set_output_device()
222 else if (dev == eth->netdev[1]) in mtk_flow_set_output_device()
224 else if (dev == eth->netdev[2]) in mtk_flow_set_output_device()
379 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 …]
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 …]
A Dmtk_eth_soc.h332 #define TX_DMA_PLEN0(x) (((x) & eth->soc->tx.dma_max_len) << eth->soc->tx.dma_len_offset)
353 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->rx.dma_max_len) << eth->soc->rx.dma_len_offset)
354 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->rx.dma_len_offset) & eth->soc->rx.dma_max_len)
1327 return eth->soc->version == 1; in mtk_is_netsys_v1()
1332 return eth->soc->version > 1; in mtk_is_netsys_v2_or_greater()
1337 return eth->soc->version > 2; in mtk_is_netsys_v3_or_greater()
1350 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ts_mask()
1358 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_ppoe_mask()
1366 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_tag_mask()
1374 if (mtk_is_netsys_v2_or_greater(eth)) in mtk_get_ib1_vlan_layer_mask()
[all …]
A Dmtk_ppe.h325 struct mtk_eth *eth; member
348 void mtk_ppe_deinit(struct mtk_eth *eth);
375 int mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry,
378 int mtk_foe_entry_set_pse_port(struct mtk_eth *eth,
380 int mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth,
384 int mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth,
388 int mtk_foe_entry_set_dsa(struct mtk_eth *eth, struct mtk_foe_entry *entry,
390 int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry,
392 int mtk_foe_entry_set_pppoe(struct mtk_eth *eth, struct mtk_foe_entry *entry,
394 int mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry,
[all …]
/linux/samples/bpf/
A Dtc_l2_redirect_kern.c63 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_forward() local
69 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_forward()
76 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward()
114 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_redirect() local
120 if (data + sizeof(*eth) > data_end) in _l2_to_iptun_ingress_redirect()
127 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect()
155 struct eth_hdr *eth = data; in _l2_to_ip6tun_ingress_redirect() local
159 if (data + sizeof(*eth) > data_end) in _l2_to_ip6tun_ingress_redirect()
166 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect()
210 struct eth_hdr *eth = data; in _drop_non_tun_vip() local
[all …]
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()
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()
141 struct ethhdr *eth = data; in _xdp_icmp() local
144 if (eth + 1 > data_end) in _xdp_icmp()
147 h_proto = eth->h_proto; in _xdp_icmp()
A Dtest_cgrp2_tc.bpf.c31 struct eth_hdr *eth = data; in handle_egress() local
32 struct ipv6hdr *ip6h = data + sizeof(*eth); in handle_egress()
39 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) in handle_egress()
42 if (eth->h_proto != bpf_htons(ETH_P_IPV6) || in handle_egress()
45 eth->h_proto, ip6h->nexthdr); in handle_egress()
/linux/tools/testing/selftests/bpf/progs/
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 …]
A Dtest_tc_link.c31 struct ethhdr eth = {}; in tc1() local
35 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth))) in tc1()
37 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP); in tc1()
40 eth.h_dest[0] = 4; in tc1()
41 if (bpf_skb_store_bytes(skb, 0, &eth, sizeof(eth), 0)) in tc1()
89 struct ethhdr eth = {}; in tc7() local
93 if (bpf_skb_load_bytes(skb, 0, &eth, sizeof(eth))) in tc7()
95 if (eth.h_dest[0] == 4 && set_type) { in tc7()
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 …]
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()
A Dxdp_redirect_multi_kern.c43 struct ethhdr *eth = data; in xdp_redirect_map_multi_prog() local
47 nh_off = sizeof(*eth); in xdp_redirect_map_multi_prog()
51 h_proto = eth->h_proto; in xdp_redirect_map_multi_prog()
79 struct ethhdr *eth = data; in xdp_devmap_prog() local
83 nh_off = sizeof(*eth); in xdp_devmap_prog()
89 __builtin_memcpy(eth->h_source, mac, ETH_ALEN); in xdp_devmap_prog()
/linux/net/ethernet/
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/drivers/net/ethernet/freescale/dpaa2/
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/drivers/infiniband/hw/mlx4/
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/Documentation/devicetree/bindings/net/
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 …]
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";
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/drivers/net/ethernet/sgi/
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 …]
/linux/drivers/net/wireless/marvell/mwifiex/
A Dsta_rx.c27 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp() local
31 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp()
32 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp()
78 struct ethhdr *eth; in mwifiex_process_rx_packet() local
115 eth = (struct ethhdr *) in mwifiex_process_rx_packet()
123 memcpy(eth->h_source, rx_pkt_hdr->eth803_hdr.h_source, in mwifiex_process_rx_packet()
124 sizeof(eth->h_source)); in mwifiex_process_rx_packet()
125 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
126 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
130 hdr_chop = (u8 *) eth - (u8 *) local_rx_pd; in mwifiex_process_rx_packet()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c44 struct ethhdr eth; member
50 struct ethhdr eth; member
57 struct ethhdr eth; member
65 struct ethhdr eth; member
71 struct ethhdr eth; member
83 struct ethhdr eth; member
114 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
136 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
204 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
231 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
[all …]

Completed in 79 milliseconds

12345678910>>...20