| /kernel/linux/linux-4.19/drivers/staging/mt7621-eth/ |
| D | mdio.c | 27 struct mtk_eth *eth = netdev_priv(dev); in mtk_phy_link_adjust() local 31 spin_lock_irqsave(ð->phy->lock, flags); in mtk_phy_link_adjust() 33 if (eth->phy->phy_node[i]) { in mtk_phy_link_adjust() 34 struct phy_device *phydev = eth->phy->phy[i]; in mtk_phy_link_adjust() 38 if (eth->phy->duplex[i] != phydev->duplex || in mtk_phy_link_adjust() 39 eth->phy->speed[i] != phydev->speed) in mtk_phy_link_adjust() 42 if (phydev->link != eth->link[i]) in mtk_phy_link_adjust() 49 eth->link[i] = phydev->link; in mtk_phy_link_adjust() 50 eth->phy->duplex[i] = phydev->duplex; in mtk_phy_link_adjust() 51 eth->phy->speed[i] = phydev->speed; in mtk_phy_link_adjust() [all …]
|
| D | mtk_eth_soc.c | 85 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned int reg) in mtk_w32() argument 87 __raw_writel(val, eth->base + reg); in mtk_w32() 90 u32 mtk_r32(struct mtk_eth *eth, unsigned int reg) in mtk_r32() argument 92 return __raw_readl(eth->base + reg); in mtk_r32() 95 static void mtk_reg_w32(struct mtk_eth *eth, u32 val, enum mtk_reg reg) in mtk_reg_w32() argument 97 mtk_w32(eth, val, mtk_reg_table[reg]); in mtk_reg_w32() 100 static u32 mtk_reg_r32(struct mtk_eth *eth, enum mtk_reg reg) in mtk_reg_r32() argument 102 return mtk_r32(eth, mtk_reg_table[reg]); in mtk_reg_r32() 110 void mtk_reset(struct mtk_eth *eth, u32 reset_bits) in mtk_reset() argument 114 regmap_read(eth->ethsys, SYSC_REG_RSTCTRL, &val); in mtk_reset() [all …]
|
| D | mdio_mt7620.c | 83 struct mtk_eth *eth = bus->priv; in mt7620_mdio_write() local 84 struct mt7620_gsw *gsw = (struct mt7620_gsw *)eth->sw_priv; in mt7620_mdio_write() 91 struct mtk_eth *eth = bus->priv; in mt7620_mdio_read() local 92 struct mt7620_gsw *gsw = (struct mt7620_gsw *)eth->sw_priv; in mt7620_mdio_read() 144 int mt7620_has_carrier(struct mtk_eth *eth) in mt7620_has_carrier() argument 146 struct mt7620_gsw *gsw = (struct mt7620_gsw *)eth->sw_priv; in mt7620_has_carrier() 155 void mt7620_print_link_state(struct mtk_eth *eth, int port, int link, in mt7620_print_link_state() argument 158 struct mt7620_gsw *gsw = eth->sw_priv; in mt7620_print_link_state() 168 void mt7620_mdio_link_adjust(struct mtk_eth *eth, int port) in mt7620_mdio_link_adjust() argument 170 mt7620_print_link_state(eth, port, eth->link[port], in mt7620_mdio_link_adjust() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/mediatek/ |
| D | mtk_eth_soc.c | 61 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32() argument 63 __raw_writel(val, eth->base + reg); in mtk_w32() 66 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() argument 68 return __raw_readl(eth->base + reg); in mtk_r32() 71 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait() argument 76 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait() 83 dev_err(eth->dev, "mdio: MDIO timeout\n"); in mtk_mdio_busy_wait() 87 static u32 _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_write() argument 90 if (mtk_mdio_busy_wait(eth)) in _mtk_mdio_write() 95 mtk_w32(eth, PHY_IAC_ACCESS | PHY_IAC_START | PHY_IAC_WRITE | in _mtk_mdio_write() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mediatek/ |
| D | mtk_eth_soc.c | 58 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32() argument 60 __raw_writel(val, eth->base + reg); in mtk_w32() 63 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() argument 65 return __raw_readl(eth->base + reg); in mtk_r32() 68 static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) in mtk_m32() argument 72 val = mtk_r32(eth, reg); in mtk_m32() 75 mtk_w32(eth, val, reg); in mtk_m32() 79 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait() argument 84 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait() 91 dev_err(eth->dev, "mdio: MDIO timeout\n"); in mtk_mdio_busy_wait() [all …]
|
| D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, int path); 43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, int path) in set_mux_gdm1_to_gmac1_esw() argument 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() 74 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, int path) in set_mux_gmac2_gmac0_to_gephy() argument 89 regmap_update_bits(eth->infra, INFRA_MISC2, GEPHY_MAC_SEL, val); in set_mux_gmac2_gmac0_to_gephy() 91 dev_dbg(eth->dev, "path %s in %s updated = %d\n", in set_mux_gmac2_gmac0_to_gephy() 97 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, int path) in set_mux_u3_gmac2_to_qphy() argument 112 regmap_update_bits(eth->infra, INFRA_MISC2, CO_QPHY_SEL, val); in set_mux_u3_gmac2_to_qphy() [all …]
|
| /kernel/linux/linux-5.10/samples/bpf/ |
| 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() 78 struct iphdr *iph = data + sizeof(*eth); in _l2_to_iptun_ingress_forward() 80 if (data + sizeof(*eth) + sizeof(*iph) > data_end) in _l2_to_iptun_ingress_forward() 89 } else if (eth->h_proto == htons(ETH_P_IPV6)) { in _l2_to_iptun_ingress_forward() 91 struct ipv6hdr *ip6h = data + sizeof(*eth); in _l2_to_iptun_ingress_forward() 93 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) 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() [all …]
|
| /kernel/linux/linux-4.19/samples/bpf/ |
| 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() 78 struct iphdr *iph = data + sizeof(*eth); in _l2_to_iptun_ingress_forward() 80 if (data + sizeof(*eth) + sizeof(*iph) > data_end) in _l2_to_iptun_ingress_forward() 89 } else if (eth->h_proto == htons(ETH_P_IPV6)) { in _l2_to_iptun_ingress_forward() 91 struct ipv6hdr *ip6h = data + sizeof(*eth); in _l2_to_iptun_ingress_forward() 93 if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
| D | Makefile | 6 obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o 9 fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o dpaa2-mac.o dpmac.o dpaa2-eth-devlink.o 10 fsl-dpaa2-eth-${CONFIG_FSL_DPAA2_ETH_DCB} += dpaa2-eth-dcb.o 11 fsl-dpaa2-eth-${CONFIG_DEBUG_FS} += dpaa2-eth-debugfs.o 15 CFLAGS_dpaa2-eth.o := -I$(src)
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| 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 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 …]
|
| D | ralink,rt2880-net.txt | 13 - compatible: Should be one of "ralink,rt2880-eth", "ralink,rt3050-eth", 14 "ralink,rt3050-eth", "ralink,rt3883-eth", "ralink,rt5350-eth", 15 "mediatek,mt7620-eth", "mediatek,mt7621-eth" 26 - compatible: Should be "ralink,eth-port" 41 compatible = "ralink,rt2880-eth"; 54 compatible = "ralink,eth-port";
|
| D | mediatek-net.txt | 11 "mediatek,mt2701-eth": for MT2701 SoC 12 "mediatek,mt7623-eth", "mediatek,mt2701-eth": for MT7623 SoC 13 "mediatek,mt7622-eth": for MT7622 SoC 14 "mediatek,mt7629-eth": for MT7629 SoC 15 "ralink,rt5350-eth": for Ralink Rt5350F and MT7628/88 SoC 47 - compatible: Should be "mediatek,eth-mac" 56 eth: ethernet@1b100000 { 57 compatible = "mediatek,mt7623-eth"; 69 reset-names = "eth"; 76 compatible = "mediatek,eth-mac"; [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/net/ |
| D | ralink,rt2880-net.txt | 13 - compatible: Should be one of "ralink,rt2880-eth", "ralink,rt3050-eth", 14 "ralink,rt3050-eth", "ralink,rt3883-eth", "ralink,rt5350-eth", 15 "mediatek,mt7620-eth", "mediatek,mt7621-eth" 26 - compatible: Should be "ralink,eth-port" 41 compatible = "ralink,rt2880-eth"; 54 compatible = "ralink,eth-port";
|
| D | mediatek-net.txt | 11 "mediatek,mt2701-eth": for MT2701 SoC 12 "mediatek,mt7623-eth", "mediatek,mt2701-eth": for MT7623 SoC 13 "mediatek,mt7622-eth": for MT7622 SoC 36 - compatible: Should be "mediatek,eth-mac" 45 eth: ethernet@1b100000 { 46 compatible = "mediatek,mt7623-eth"; 58 reset-names = "eth"; 65 compatible = "mediatek,eth-mac"; 71 compatible = "mediatek,eth-mac";
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| D | pedit.json | 603 "name": "Add pedit action with LAYERED_OP eth set src", 617 "cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66", 620 …rder [0-9]+: pedit action pass keys 2.*key #0 at eth\\+4: val 00001122 mask ffff0000.*key #1 at… 628 "name": "Add pedit action with LAYERED_OP eth set src & dst", 642 …"cmdUnderTest": "$TC actions add action pedit ex munge eth src set 11:22:33:44:55:66 munge eth dst… 645 …"matchPattern": "eth\\+4: val 00001122 mask ffff0000.*eth\\+8: val 33445566 mask 00000000.*eth\\+0… 653 "name": "Add pedit action with LAYERED_OP eth set dst", 667 "cmdUnderTest": "$TC actions add action pedit ex munge eth dst set 11:22:33:44:55:66", 670 …rder [0-9]+: pedit action pass keys 2.*key #0 at eth\\+0: val 11223344 mask 00000000.*key #1 at… 678 "name": "Add pedit action with LAYERED_OP eth set src (INVALID)", [all …]
|
| /kernel/linux/linux-5.10/net/ethernet/ |
| D | eth.c | 9 * 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 …]
|
| /kernel/linux/linux-4.19/net/ethernet/ |
| D | eth.c | 8 * Version: @(#)eth.c 1.0.7 05/25/93 86 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local 89 eth->h_proto = htons(type); in eth_header() 91 eth->h_proto = htons(len); in eth_header() 99 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header() 102 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header() 111 eth_zero_addr(eth->h_dest); in eth_header() 130 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() local 134 if (unlikely(len < sizeof(*eth))) in eth_get_headlen() 138 if (!skb_flow_dissect_flow_keys_basic(NULL, &keys, data, eth->h_proto, in eth_get_headlen() [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
| D | ah.c | 93 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 …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/mlx4/ |
| D | ah.c | 97 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah() 98 eth_zero_addr(ah->av.eth.s_mac); in create_iboe_ah() 108 memcpy(ah->av.eth.s_mac, gid_attr->ndev->dev_addr, ETH_ALEN); in create_iboe_ah() 112 ah->av.eth.gid_index = ret; in create_iboe_ah() 115 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah() 120 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | in create_iboe_ah() 122 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah() 123 ah->av.eth.hop_limit = grh->hop_limit; in create_iboe_ah() 125 ah->av.eth.stat_rate = rdma_ah_get_static_rate(ah_attr) + in create_iboe_ah() 127 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah() [all …]
|
| /kernel/linux/linux-4.19/arch/arm64/boot/dts/amlogic/ |
| D | meson-gxbb-odroidc2.dts | 202 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk", 203 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2", 204 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En", 205 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3", 206 "Eth PHY nRESET", "Eth PHY Intc",
|
| D | meson-gxbb-nanopi-k2.dts | 206 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk", 207 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2", 208 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En", 209 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3", 210 "Eth PHY nRESET", "Eth PHY Intc",
|
| /kernel/linux/linux-5.10/arch/mips/pci/ |
| D | fixup-sni.c | 23 #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 */
|
| /kernel/linux/linux-4.19/arch/mips/pci/ |
| D | fixup-sni.c | 23 #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 */
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/amlogic/ |
| D | meson-gxbb-nanopi-k2.dts | 208 "Eth MDIO", "Eth MDC", "Eth RGMII RX Clk", 209 "Eth RX DV", "Eth RX D0", "Eth RX D1", "Eth RX D2", 210 "Eth RX D3", "Eth RGMII TX Clk", "Eth TX En", 211 "Eth TX D0", "Eth TX D1", "Eth TX D2", "Eth TX D3", 212 "Eth PHY nRESET", "Eth PHY Intc",
|