/linux-6.3-rc2/drivers/net/ethernet/mediatek/ |
A D | mtk_eth_soc.c | 818 eth->mii_bus->priv = eth; in mtk_mdio_init() 819 eth->mii_bus->parent = eth->dev; in mtk_mdio_init() 2119 dim_update_sample(eth->rx_events, eth->rx_packets, eth->rx_bytes, in mtk_poll_rx() 2272 dim_update_sample(eth->tx_events, eth->tx_packets, eth->tx_bytes, in mtk_poll_tx() 4442 eth->netdev[id]->irq = eth->irq[0]; in mtk_add_mac() 4560 eth->sgmii = devm_kzalloc(eth->dev, sizeof(*eth->sgmii), in mtk_probe() 4610 eth->irq[i] = eth->irq[0]; in mtk_probe() 4664 dev_name(eth->dev), eth); in mtk_probe() 4668 dev_name(eth->dev), eth); in mtk_probe() 4674 dev_name(eth->dev), eth); in mtk_probe() [all …]
|
A D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, int path); 63 val = mtk_r32(eth, MTK_MAC_MISC); in set_mux_gdm1_to_gmac1_esw() 65 mtk_w32(eth, val, MTK_MAC_MISC); in set_mux_gdm1_to_gmac1_esw() 68 dev_dbg(eth->dev, "path %s in %s updated = %d\n", in set_mux_gdm1_to_gmac1_esw() 163 regmap_read(eth->ethsys, ETHSYS_SYSCFG0, &val); in set_mux_gmac12_to_gephy_sgmii() 217 if (!MTK_HAS_CAPS(eth->soc->caps, path)) { in mtk_eth_mux_setup() 223 if (!MTK_HAS_CAPS(eth->soc->caps, MTK_MUX)) in mtk_eth_mux_setup() 229 err = mtk_eth_muxc[i].set_path(eth, path); in mtk_eth_mux_setup() 250 return mtk_eth_mux_setup(eth, path); in mtk_gmac_sgmii_path_setup() 264 return mtk_eth_mux_setup(eth, path); in mtk_gmac_gephy_path_setup() [all …]
|
A D | mtk_ppe_offload.c | 17 struct ethhdr eth; member 75 void *dest = eth + act->mangle.offset; in mtk_flow_offload_mangle_eth() 216 if (dev == eth->netdev[0]) in mtk_flow_set_output_device() 218 else if (dev == eth->netdev[1]) in mtk_flow_set_output_device() 229 mtk_foe_entry_set_queue(eth, foe, queue); in mtk_flow_set_output_device() 357 data.eth.h_source, data.eth.h_dest); in mtk_flow_offload_replace() 440 err = mtk_flow_set_output_device(eth, &foe, odev, data.eth.h_dest, in mtk_flow_offload_replace() 521 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block_cb() local 539 err = mtk_flow_offload_stats(eth, cls); in mtk_eth_setup_tc_block_cb() 554 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block() local [all …]
|
A D | mtk_ppe.c | 59 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp() 125 hash <<= (ffs(eth->soc->hash_offset) - 1); in mtk_ppe_hash_entry() 192 val |= mtk_get_ib2_multicast_mask(eth); in mtk_foe_entry_prepare() 345 mtk_prep_ib1_vlan_layer(eth, 1); in mtk_foe_entry_set_vlan() 474 u16 now = mtk_eth_timestamp(ppe->eth); in __mtk_foe_entry_idle_time() 549 struct mtk_eth *eth = ppe->eth; in __mtk_foe_entry_commit() local 550 u16 timestamp = mtk_eth_timestamp(eth); in __mtk_foe_entry_commit() 634 l2 = mtk_foe_entry_l2(ppe->eth, &foe); in mtk_foe_entry_commit_subflow() 763 struct device *dev = eth->dev; in mtk_ppe_init() 778 ppe->eth = eth; in mtk_ppe_init() [all …]
|
A D | mtk_eth_soc.h | 321 #define TX_DMA_PLEN0(x) (((x) & eth->soc->txrx.dma_max_len) << eth->soc->txrx.dma_len_offset) 334 #define RX_DMA_PREP_PLEN0(x) (((x) & eth->soc->txrx.dma_max_len) << eth->soc->txrx.dma_len_offset) 335 #define RX_DMA_GET_PLEN0(x) (((x) >> eth->soc->txrx.dma_len_offset) & eth->soc->txrx.dma_max_len) 1227 const struct mtk_soc_data *soc = ppe->eth->soc; in mtk_foe_get_entry() 1234 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_ts_mask() 1242 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_ppoe_mask() 1250 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_vlan_tag_mask() 1258 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_get_ib1_vlan_layer_mask() 1266 if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) in mtk_prep_ib1_vlan_layer() 1308 u32 mtk_r32(struct mtk_eth *eth, unsigned reg); [all …]
|
A D | mtk_ppe.h | 289 struct mtk_eth *eth; member 306 struct mtk_ppe *mtk_ppe_init(struct mtk_eth *eth, void __iomem *base, 308 void mtk_ppe_deinit(struct mtk_eth *eth); 335 int mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry, 338 int mtk_foe_entry_set_pse_port(struct mtk_eth *eth, 340 int mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth, 344 int mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth, 348 int mtk_foe_entry_set_dsa(struct mtk_eth *eth, struct mtk_foe_entry *entry, 350 int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry, 352 int mtk_foe_entry_set_pppoe(struct mtk_eth *eth, struct mtk_foe_entry *entry, [all …]
|
/linux-6.3-rc2/samples/bpf/ |
A D | tc_l2_redirect_kern.c | 63 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 D | xdp_redirect_cpu.bpf.c | 58 offset = sizeof(*eth); in parse_eth() 62 eth_type = eth->h_proto; in parse_eth() 173 struct ethhdr *eth = data; in xdp_prognum1_touch_data() local 187 if (eth + 1 > data_end) in xdp_prognum1_touch_data() 196 eth_type = eth->h_proto; in xdp_prognum1_touch_data() 260 struct ethhdr *eth = data; in xdp_prognum3_proto_separate() local 326 struct ethhdr *eth = data; in xdp_prognum4_ddos_filter_pktgen() local 443 struct ethhdr *eth = data; in xdp_prognum5_lb_hash_ip_pairs() local 499 struct ethhdr *eth = data; in xdp_redirect_cpu_devmap() local 502 nh_off = sizeof(*eth); in xdp_redirect_cpu_devmap() [all …]
|
A D | parse_simple.c | 30 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 D | xdp_adjust_tail_kern.c | 50 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 D | test_cgrp2_tc.bpf.c | 31 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-6.3-rc2/net/ethernet/ |
A D | eth.c | 86 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() 132 if (unlikely(len < sizeof(*eth))) in eth_get_headlen() 137 eth->h_proto, sizeof(*eth), in eth_get_headlen() 159 const struct ethhdr *eth; in eth_type_trans() local 189 return eth->h_proto; in eth_type_trans() 231 struct ethhdr *eth; in eth_header_cache() local 234 eth = (struct ethhdr *) in eth_header_cache() 240 eth->h_proto = type; in eth_header_cache() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/ |
A D | Makefile | 6 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.3-rc2/drivers/infiniband/hw/mlx4/ |
A D | ah.c | 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() 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.3-rc2/Documentation/devicetree/bindings/net/ |
A D | qca,ar71xx.yaml | 20 - 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 D | mediatek,net.yaml | 20 - mediatek,mt2701-eth 21 - mediatek,mt7623-eth 22 - mediatek,mt7622-eth 23 - mediatek,mt7629-eth 24 - mediatek,mt7986-eth 25 - ralink,rt5350-eth 100 - mediatek,mt2701-eth 101 - mediatek,mt7623-eth 130 const: mediatek,mt7622-eth 260 const: mediatek,eth-mac [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | xdping_kern.c | 63 struct ethhdr *eth = data; in icmp_check() local 67 if (data + sizeof(*eth) + sizeof(*iph) + ICMP_ECHO_LEN > data_end) in icmp_check() 70 if (eth->h_proto != bpf_htons(ETH_P_IP)) in icmp_check() 73 iph = data + sizeof(*eth); in icmp_check() 81 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() 158 struct ethhdr *eth = data; in xdping_server() local 169 iph = data + sizeof(*eth); in xdping_server() [all …]
|
A D | xdp_hw_metadata.c | 25 struct ethhdr *eth = NULL; in rx() local 33 eth = data; in rx() 34 if (eth + 1 < data_end) { in rx() 35 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx() 36 iph = (void *)(eth + 1); in rx() 40 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in rx() 41 ip6h = (void *)(eth + 1); in rx()
|
A D | xdp_redirect_multi_kern.c | 43 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-6.3-rc2/drivers/net/ethernet/sgi/ |
A D | meth.c | 109 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-6.3-rc2/drivers/net/wireless/marvell/mwifiex/ |
A D | sta_rx.c | 27 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 104 eth = (struct ethhdr *) in mwifiex_process_rx_packet() 112 memcpy(eth->h_source, rx_pkt_hdr->eth803_hdr.h_source, in mwifiex_process_rx_packet() 113 sizeof(eth->h_source)); in mwifiex_process_rx_packet() 114 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet() 115 sizeof(eth->h_dest)); in mwifiex_process_rx_packet() 119 hdr_chop = (u8 *) eth - (u8 *) local_rx_pd; in mwifiex_process_rx_packet()
|
/linux-6.3-rc2/arch/mips/cavium-octeon/ |
A D | octeon-platform.c | 628 _octeon_rx_tx_delay(eth, 0xc, 0x0c); in octeon_rx_tx_delay() 632 _octeon_rx_tx_delay(eth, 0x0, 0x0); in octeon_rx_tx_delay() 639 _octeon_rx_tx_delay(eth, 0x0, 0x10); in octeon_rx_tx_delay() 651 int eth; in octeon_fdt_pip_port() local 658 if (eth < 0) in octeon_fdt_pip_port() 662 octeon_fdt_rm_ethernet(eth); in octeon_fdt_pip_port() 671 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port() 678 octeon_rx_tx_delay(eth, i, p); in octeon_fdt_pip_port() 753 int eth; in octeon_fill_mac_addresses() local 759 if (eth < 0) in octeon_fill_mac_addresses() [all …]
|
/linux-6.3-rc2/arch/arm/mach-at91/ |
A D | pm.c | 325 if (!eth->np) in at91_pm_eth_quirk_is_valid() 332 if (!eth->dev) { in at91_pm_eth_quirk_is_valid() 337 eth->dev = &pdev->dev; in at91_pm_eth_quirk_is_valid() 342 put_device(eth->dev); in at91_pm_eth_quirk_is_valid() 366 eth = &soc_pm.quirks.eth[i]; in at91_pm_config_quirks() 400 eth->dev = NULL; in at91_pm_config_quirks() 411 eth->clks); in at91_pm_config_quirks() 418 put_device(eth->dev); in at91_pm_config_quirks() 419 eth->dev = NULL; in at91_pm_config_quirks() 432 eth = &soc_pm.quirks.eth[j]; in at91_pm_config_quirks() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/ocrdma/ |
A D | ocrdma_ah.c | 78 struct ocrdma_eth_vlan eth; in set_av_attr() local 90 memset(ð, 0, sizeof(eth)); in set_av_attr() 108 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr() 109 eth.roce_eth_type = cpu_to_be16(proto_num); in set_av_attr() 111 eth.vlan_tag = cpu_to_be16(vlan_tag); in set_av_attr() 115 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr() 119 memcpy(ð.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in set_av_attr() 120 status = ocrdma_resolve_dmac(dev, attr, ð.dmac[0]); in set_av_attr() 126 memcpy(&ah->av->eth_hdr, ð, eth_sz); in set_av_attr()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | flow_dissector.c | 45 struct ethhdr eth; member 51 struct ethhdr eth; member 58 struct ethhdr eth; member 66 struct ethhdr eth; member 72 struct ethhdr eth; member 84 struct ethhdr eth; member 115 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 137 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 205 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 232 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|