| /kernel/linux/linux-5.10/drivers/net/ethernet/mediatek/ |
| D | mtk_eth_soc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org> 5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org> 6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com> 25 static int mtk_msg_level = -1; 27 MODULE_PARM_DESC(msg_level, "Message level (-1=defaults,0=none,...,16=all)"); 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
| D | mtk_eth_soc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org> 5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org> 6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com> 24 #include <linux/pcs/pcs-mtk-lynxi.h> 34 static int mtk_msg_level = -1; 36 MODULE_PARM_DESC(msg_level, "Message level (-1=defaults,0=none,...,16=all)"); 282 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32() argument 284 __raw_writel(val, eth->base + reg); in mtk_w32() 287 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() argument [all …]
|
| D | mtk_ppe_offload.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 struct ethhdr eth; member 55 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr() argument 58 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress, in mtk_flow_set_ipv4_addr() 59 data->v4.src_addr, data->src_port, in mtk_flow_set_ipv4_addr() 60 data->v4.dst_addr, data->dst_port); in mtk_flow_set_ipv4_addr() 64 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr() argument 67 return mtk_foe_entry_set_ipv6_tuple(eth, foe, in mtk_flow_set_ipv6_addr() 68 data->v6.src_addr.s6_addr32, data->src_port, in mtk_flow_set_ipv6_addr() 69 data->v6.dst_addr.s6_addr32, data->dst_port); in mtk_flow_set_ipv6_addr() [all …]
|
| /kernel/linux/linux-6.6/net/ethernet/ |
| D | eth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Ethernet-type device handling. 9 * Version: @(#)eth.c 1.0.7 05/25/93 14 * Florian La Roche, <rzsfl@rz.uni-sb.de> 29 * Alan Cox : MAC layer pointers/new format. 34 * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup(). 46 #include <linux/nvmem-consumer.h> 67 * eth_header - create the Ethernet header 73 * @len: packet length (<= skb->len) 83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | mediatek-net.txt | 10 - compatible: Should be 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 16 - reg: Address and length of the register set for the device 17 - interrupts: Should contain the three frame engines interrupts in numeric 19 - clocks: the clock used by the core 20 - clock-names: the names of the clock listed in the clocks property. These are [all …]
|
| D | qca,ar71xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: QCA AR71XX MAC 10 - $ref: ethernet-controller.yaml# 13 - Oleksij Rempel <o.rempel@pengutronix.de> 18 - items: 19 - enum: 20 - qca,ar7100-eth # Atheros AR7100 21 - qca,ar7240-eth # Atheros AR7240 [all …]
|
| D | stm32-dwmac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: "http://devicetree.org/schemas/net/stm32-dwmac.yaml#" 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - Alexandre Torgue <alexandre.torgue@st.com> 12 - Christophe Roullier <christophe.roullier@st.com> 23 - st,stm32-dwmac 24 - st,stm32mp1-dwmac 26 - compatible 29 - $ref: "snps,dwmac.yaml#" [all …]
|
| /kernel/linux/linux-5.10/net/ethernet/ |
| D | eth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Ethernet-type device handling. 9 * Version: @(#)eth.c 1.0.7 05/25/93 14 * Florian La Roche, <rzsfl@rz.uni-sb.de> 29 * Alan Cox : MAC layer pointers/new format. 34 * Andrew Morton : 26Feb01: kill ether_setup() - use netdev_boot_setup(). 46 #include <linux/nvmem-consumer.h> 67 * eth_header - create the Ethernet header 73 * @len: packet length (<= skb->len) 83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() local [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | qca,ar71xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: QCA AR71XX MAC 10 - $ref: ethernet-controller.yaml# 13 - Oleksij Rempel <o.rempel@pengutronix.de> 18 - items: 19 - enum: 20 - qca,ar7100-eth # Atheros AR7100 21 - qca,ar7240-eth # Atheros AR7240 [all …]
|
| D | mediatek,net.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lorenzo Bianconi <lorenzo@kernel.org> 11 - Felix Fietkau <nbd@nbd.name> 20 - mediatek,mt2701-eth 21 - mediatek,mt7623-eth 22 - mediatek,mt7621-eth 23 - mediatek,mt7622-eth 24 - mediatek,mt7629-eth [all …]
|
| D | stm32-dwmac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/net/stm32-dwmac.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Alexandre Torgue <alexandre.torgue@foss.st.com> 12 - Christophe Roullier <christophe.roullier@foss.st.com> 23 - st,stm32-dwmac 24 - st,stm32mp1-dwmac 26 - compatible 29 - $ref: snps,dwmac.yaml# [all …]
|
| /kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
| D | mac-phy-support.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 DPAA2 MAC / PHY support 11 -------- 13 The DPAA2 MAC / PHY support consists of a set of APIs that help DPAA2 network 14 drivers (dpaa2-eth, dpaa2-ethsw) interract with the PHY library. 17 --------------------------- 19 Among other DPAA2 objects, the fsl-mc bus exports DPNI objects (abstracting a 20 network interface) and DPMAC objects (abstracting a MAC). The dpaa2-eth driver 26 directly by the dpaa2-eth driver or by phylink. 28 .. code-block:: none [all …]
|
| /kernel/linux/linux-6.6/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
| D | mac-phy-support.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 DPAA2 MAC / PHY support 11 -------- 13 The DPAA2 MAC / PHY support consists of a set of APIs that help DPAA2 network 14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library. 17 --------------------------- 19 Among other DPAA2 objects, the fsl-mc bus exports DPNI objects (abstracting a 20 network interface) and DPMAC objects (abstracting a MAC). The dpaa2-eth driver 26 directly by the dpaa2-eth driver or by phylink. 28 .. code-block:: none [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| D | test_tc_tunnel.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # In-place tunneling 10 readonly ns_prefix="ns-$$-" 35 ip netns exec "${ns1}" ethtool -K veth1 tso off 37 ip -netns "${ns1}" link set veth1 up 38 ip -netns "${ns2}" link set veth2 up 40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1 41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2 42 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad 43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| D | xdp_redirect_multi_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 29 /* map to store egress interfaces mac addresses */ 40 void *data_end = (void *)(long)ctx->data_end; in xdp_redirect_map_multi_prog() 41 void *data = (void *)(long)ctx->data; in xdp_redirect_map_multi_prog() 42 int if_index = ctx->ingress_ifindex; in xdp_redirect_map_multi_prog() 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() 76 void *data_end = (void *)(long)ctx->data_end; in xdp_devmap_prog() 77 void *data = (void *)(long)ctx->data; in xdp_devmap_prog() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o 7 obj-$(CONFIG_FSL_DPAA2_PTP_CLOCK) += fsl-dpaa2-ptp.o 8 obj-$(CONFIG_FSL_DPAA2_SWITCH) += fsl-dpaa2-switch.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 13 fsl-dpaa2-ptp-objs := dpaa2-ptp.o dprtc.o 14 fsl-dpaa2-switch-objs := dpaa2-switch.o dpaa2-switch-ethtool.o dpsw.o dpaa2-switch-flower.o dpaa2-m… 17 CFLAGS_dpaa2-eth.o := -I$(src)
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
| D | test_tc_tunnel.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # In-place tunneling 9 readonly ns_prefix="ns-$$-" 34 ip netns exec "${ns1}" ethtool -K veth1 tso off 36 ip -netns "${ns1}" link set veth1 up 37 ip -netns "${ns2}" link set veth2 up 39 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1 40 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2 41 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad 42 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad [all …]
|
| /kernel/linux/linux-6.6/samples/bpf/ |
| D | xdp_router_ipv4.bpf.c | 31 __be64 mac; member 38 __be64 mac; member 76 void *data_end = (void *)(long)ctx->data_end; in xdp_router_ipv4_prog() 77 void *data = (void *)(long)ctx->data; in xdp_router_ipv4_prog() 78 struct ethhdr *eth = data; in xdp_router_ipv4_prog() local 79 u64 nh_off = sizeof(*eth); in xdp_router_ipv4_prog() 86 NO_TEAR_INC(rec->processed); in xdp_router_ipv4_prog() 91 h_proto = eth->h_proto; in xdp_router_ipv4_prog() 101 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog() 107 NO_TEAR_INC(rec->xdp_pass); in xdp_router_ipv4_prog() [all …]
|
| /kernel/linux/linux-6.6/Documentation/networking/ |
| D | statistics.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 - standard interface statistics based on 16 - protocol-specific statistics; and 17 - driver-defined statistics available via ethtool. 20 ----------------------------- 25 $ ip -s -s link show dev ens4u1u1 38 Note that `-s` has been specified twice to see all members of 40 If `-s` is specified once the detailed errors won't be shown. 42 `ip` supports JSON formatting via the `-j` option. 44 Protocol-specific statistics [all …]
|
| /kernel/linux/linux-5.10/arch/mips/cavium-octeon/ |
| D | octeon-platform.c | 6 * Copyright (C) 2004-2017 Cavium, Inc. 16 #include <asm/octeon/cvmx-helper-board.h> 22 #include <asm/octeon/cvmx-uctlx-defs.h> 76 if (dev->of_node) { in octeon2_usb_clocks_start() 80 uctl_node = of_get_parent(dev->of_node); in octeon2_usb_clocks_start() 86 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start() 88 dev_err(dev, "No UCTL \"refclk-frequency\"\n"); in octeon2_usb_clocks_start() 93 "refclk-type", &clock_type); in octeon2_usb_clocks_start() 201 * Step 4: Program the power-on reset field in the UCTL in octeon2_usb_clocks_start() 202 * clock-reset-control register. in octeon2_usb_clocks_start() [all …]
|
| /kernel/linux/linux-6.6/arch/mips/cavium-octeon/ |
| D | octeon-platform.c | 6 * Copyright (C) 2004-2017 Cavium, Inc. 18 #include <asm/octeon/cvmx-helper-board.h> 24 #include <asm/octeon/cvmx-uctlx-defs.h> 78 if (dev->of_node) { in octeon2_usb_clocks_start() 82 uctl_node = of_get_parent(dev->of_node); in octeon2_usb_clocks_start() 88 "refclk-frequency", &clock_rate); in octeon2_usb_clocks_start() 90 dev_err(dev, "No UCTL \"refclk-frequency\"\n"); in octeon2_usb_clocks_start() 95 "refclk-type", &clock_type); in octeon2_usb_clocks_start() 203 * Step 4: Program the power-on reset field in the UCTL in octeon2_usb_clocks_start() 204 * clock-reset-control register. in octeon2_usb_clocks_start() [all …]
|
| /kernel/linux/linux-5.10/arch/um/drivers/ |
| D | net_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 28 #define DRIVER_NAME "uml-netdev" 56 err = -ENOMEM; in update_drop_skb() 80 skb = dev_alloc_skb(lp->max_packet); in uml_net_rx() 82 drop_skb->dev = dev; in uml_net_rx() 84 (*lp->read)(lp->fd, drop_skb, lp); in uml_net_rx() 85 dev->stats.rx_dropped++; in uml_net_rx() 89 skb->dev = dev; in uml_net_rx() 90 skb_put(skb, lp->max_packet); in uml_net_rx() [all …]
|
| /kernel/linux/linux-6.6/arch/um/drivers/ |
| D | net_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 28 #define DRIVER_NAME "uml-netdev" 56 err = -ENOMEM; in update_drop_skb() 80 skb = dev_alloc_skb(lp->max_packet); in uml_net_rx() 82 drop_skb->dev = dev; in uml_net_rx() 84 (*lp->read)(lp->fd, drop_skb, lp); in uml_net_rx() 85 dev->stats.rx_dropped++; in uml_net_rx() 89 skb->dev = dev; in uml_net_rx() 90 skb_put(skb, lp->max_packet); in uml_net_rx() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/gdm724x/ |
| D | gdm_lte.c | 1 // SPDX-License-Identifier: GPL-2.0 64 if (dev->flags & IFF_UP) in gdm_lte_set_config() 65 return -EBUSY; in gdm_lte_set_config() 73 if (netif_queue_stopped(nic->netdev)) in tx_complete() 74 netif_wake_queue(nic->netdev); in tx_complete() 81 len = skb->len + ETH_HLEN; in gdm_lte_rx() 84 nic->stats.rx_dropped++; in gdm_lte_rx() 86 nic->stats.rx_packets++; in gdm_lte_rx() 87 nic->stats.rx_bytes += len; in gdm_lte_rx() 95 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/gdm724x/ |
| D | gdm_lte.c | 1 // SPDX-License-Identifier: GPL-2.0 64 if (dev->flags & IFF_UP) in gdm_lte_set_config() 65 return -EBUSY; in gdm_lte_set_config() 73 if (netif_queue_stopped(nic->netdev)) in tx_complete() 74 netif_wake_queue(nic->netdev); in tx_complete() 81 len = skb->len + ETH_HLEN; in gdm_lte_rx() 84 nic->stats.rx_dropped++; in gdm_lte_rx() 86 nic->stats.rx_packets++; in gdm_lte_rx() 87 nic->stats.rx_bytes += len; in gdm_lte_rx() 95 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp() [all …]
|