/linux/net/core/ |
H A D | of_net.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/nvmem-consumer.h> 18 * of_get_phy_mode - Get phy mode for given device_node 22 * The function gets phy interface string from property 'phy-mode' or 23 * 'phy-connection-type'. The index in phy_modes table is set in 25 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV. 34 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode() 36 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode() 46 return -ENODEV; in of_get_phy_mode() 54 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr() [all …]
|
/linux/arch/m68k/include/uapi/asm/ |
H A D | bootinfo-mac.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions 11 * Macintosh-specific tags (all __be32) 14 #define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */ 15 #define BI_MAC_VADDR 0x8001 /* Mac video base address */ 16 #define BI_MAC_VDEPTH 0x8002 /* Mac video depth */ 17 #define BI_MAC_VROW 0x8003 /* Mac video rowbytes */ 18 #define BI_MAC_VDIM 0x8004 /* Mac video dimensions */ 19 #define BI_MAC_VLOGICAL 0x8005 /* Mac video logical base */ 20 #define BI_MAC_SCCBASE 0x8006 /* Mac SCC base address */ [all …]
|
/linux/net/ethernet/ |
H A D | eth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Ethernet-type device handling. 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-consume 540 const void *mac; nvmem_get_mac_address() local [all...] |
/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 1 // SPDX-License-Identifier: GPL-2.0 4 /* Driver for Vitesse VSC7326 (Schaumburg) MAC */ 16 * interface is down (MAC port disabled). This is a workaround 17 * for disabling the T2/MAC flow-control. When the interface is 40 spin_lock_bh(&adapter->mac_lock); in vsc_read() 50 pr_err("Invalid tpi read from MAC, breaking loop.\n"); in vsc_read() 60 spin_unlock_bh(&adapter->mac_lock); in vsc_read() 65 spin_lock_bh(&adapter->mac_lock); in vsc_write() 71 spin_unlock_bh(&adapter->mac_lock); in vsc_write() 74 /* Hard reset the MAC. This wipes out *all* configuration. */ [all …]
|
/linux/drivers/net/ethernet/intel/igbvf/ |
H A D | vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009 - 2018 Intel Corporation. */ 22 * e1000_init_mac_params_vf - Inits MAC params 27 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local 29 /* VF's have no MTA Registers - PF feature only */ in e1000_init_mac_params_vf() 30 mac->mta_reg_count = 128; in e1000_init_mac_params_vf() 32 mac->rar_entry_count = 1; in e1000_init_mac_params_vf() 36 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf() 38 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf() 40 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf() [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | keystone-netcp.txt | 6 switch sub-module to send and receive packets. NetCP also includes a packet 13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates 16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP 17 sub-modules exist as a loadable kernel module which plug in to the netcp core. 18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is 19 mandatory to have the ethernet switch sub-module for the ethernet interface to 20 be operational. Any other sub-module like the PA is optional. 24 ----------------------------- 26 ----------------------------- 28 |-> NetCP Devices -> | [all …]
|
H A D | engleder,tsnep.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: TSN endpoint Ethernet MAC 10 - Gerhard Engleder <gerhard@engleder-embedded.com> 13 - $ref: ethernet-controller.yaml# 26 interrupt-names: 29 - const: mac 30 - const: txrx-1 31 - const: txrx-2 [all …]
|
H A D | hisilicon-femac.txt | 1 Hisilicon Fast Ethernet MAC controller 4 - compatible: should contain one of the following version strings: 5 * "hisilicon,hisi-femac-v1" 6 * "hisilicon,hisi-femac-v2" 7 and the soc string "hisilicon,hi3516cv300-femac". 8 - reg: specifies base physical address(s) and size of the device registers. 9 The first region is the MAC core register base and size. 10 The second region is the global MAC control register. 11 - interrupts: should contain the MAC interrupt. 12 - clocks: A phandle to the MAC main clock. [all …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 9 * e1000e_get_bus_info_pcie - Get PCIe bus information 18 struct pci_dev *pdev = hw->adapter->pdev; in e1000e_get_bus_info_pcie() 19 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local 20 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 24 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 27 bus->width = (enum e1000_bus_width)FIELD_GET(PCI_EXP_LNKSTA_NLW, in e1000e_get_bus_info_pcie() 31 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie() 37 * e1000_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices [all …]
|
/linux/drivers/net/ethernet/altera/ |
H A D | altera_tse.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Altera Triple-Speed Ethernet MAC driver 3 * Copyright (C) 2008-2014 Altera Corporation. All rights reserved 48 /* MAC function configuration default settings */ 55 /* MAC Command_Config Register Bit Definitions 113 /* MDIO registers within MAC register Space 120 u32 auto_negotiation_advertisement; /* Auto-negotiation 154 /* MAC register Space. Note that some of these registers may or may not be 169 * MAC block 172 /* 32-bit primary MAC address word 0 bits 0 to 31 of the primary [all …]
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2024 Intel Corporation. */ 7 /* On Hyper-V, to reset, we need to read from this offset 9 * Hyper-V to support PF/VF communication. 25 * ixgbevf_start_hw_vf - Prepare hardware for Tx/Rx 29 * all on chip counters, initializes receive address registers, multicast 36 hw->adapter_stopped = false; in ixgbevf_start_hw_vf() 42 * ixgbevf_init_hw_vf - virtual function hardware initialization 50 s32 status = hw->mac.ops.start_hw(hw); in ixgbevf_init_hw_vf() 52 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf() [all …]
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_vf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 8 * fm10k_stop_hw_vf - Stop Tx/Rx units 14 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 24 /* If permanent address is set then we need to restore it */ in fm10k_stop_hw_vf() 36 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf() 39 * update their base address registers in fm10k_stop_hw_vf() 41 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 46 /* Restore ITR scale in software-defined mechanism in TDLEN in fm10k_stop_hw_vf() 58 * fm10k_reset_hw_vf - VF hardware reset [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_mac_profiles_occ.sh | 2 # SPDX-License-Identifier: GPL-2.0 18 # Disable IPv6 on the two interfaces to avoid IPv6 link-local addresses 37 # Reload in order to clean all the RIFs and RIF MAC profiles created 50 cat >> $batch_file <<-EOF 52 address 00:$m:$m:$m:$m:$m type vlan id $vlan 53 address add 192.0.$m.1/24 dev $h1.$vlan 57 ip -b $batch_file &> /dev/null 58 rm -f $batch_file 67 ip link set $h1.10 address 00:12:34:56:78:99 70 log_test "RIF MAC profile replacement" [all …]
|
H A D | rif_mac_profiles.sh | 2 # SPDX-License-Identifier: GPL-2.0 53 ip address add 192.0.2.2/24 dev $rp1 54 ip address add 198.51.100.2/24 dev $rp2 59 ip address del 198.51.100.2/24 dev $rp2 60 ip address del 192.0.2.2/24 dev $rp1 111 # match on source MAC because it is not set in eACL after routing 117 # source MAC 122 $MZ $h1 -a own -b $(mac_get $rp1) -t udp "sp=12345,dp=54321" \ 123 -A 192.0.2.1 -B 198.51.100.1 -c 10 -p 100 -d 1msec -q 129 check_err $? "packets not forwarded with correct source mac" [all …]
|
/linux/Documentation/networking/ |
H A D | oa-tc6-framework.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 4 OPEN Alliance 10BASE-T1x MAC-PHY Serial Interface (TC6) Framework Support 8 ------------ 11 single pair of conductors. The 10BASE-T1L (Clause 146) is a long reach 12 PHY supporting full duplex point-to-point operation over 1 km of single 13 balanced pair of conductors. The 10BASE-T1S (Clause 147) is a short reach 14 PHY supporting full / half duplex point-to-point operation over 15 m of 21 works in conjunction with the 10BASE-T1S PHY operating in multidrop mode. 23 The aforementioned PHYs are intended to cover the low-speed / low-cost 29 The MAC-PHY solution integrates an IEEE Clause 4 MAC and a 10BASE-T1x PHY [all …]
|
/linux/drivers/net/ethernet/sun/ |
H A D | sungem.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 39 * This auto-clearing does not occur when the alias at GREG_STAT2 52 #define GREG_STAT_TXMAC 0x00004000 /* TX MAC signalled interrupt */ 53 #define GREG_STAT_RXMAC 0x00008000 /* RX MAC signalled interrupt */ 54 #define GREG_STAT_MAC 0x00010000 /* MAC Control signalled irq */ 69 * signalled to the cpu. GREG_IACK can be used to clear specific top-level 121 #define TXDMA_FADDR 0x2104UL /* TX FIFO Address */ 130 * This 13-bit register is programmed by the driver to hold the descriptor 136 * This 13-bit register is updated by GEM to hold to descriptor entry index 146 * maximum value of 0x4ff, else one risks getting TX MAC Underrun errors. [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 19 * igb_get_bus_info_pcie - Get PCIe bus information 28 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie() 33 bus->type = e1000_bus_type_pci_express; in igb_get_bus_info_pcie() 39 bus->width = e1000_bus_width_unknown; in igb_get_bus_info_pcie() 40 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() 44 bus->speed = e1000_bus_speed_2500; in igb_get_bus_info_pcie() 47 bus->speed = e1000_bus_speed_5000; in igb_get_bus_info_pcie() 50 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | brcm,nvram.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9 20 - Rafał Miłecki <rafal@milecki.pl> 23 - $ref: nvmem.yaml# 38 description: First Ethernet interface's MAC address 40 "#nvmem-cell-cells": 41 description: The first argument is a MAC address offset. 47 description: Second Ethernet interface's MAC address [all …]
|
/linux/net/netfilter/ipset/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 38 tristate "bitmap:ip,mac set support" 41 This option adds the bitmap:ip,mac set type support, by which one 42 can store IPv4 address and (source) MAC address pairs from a range. 70 can store IPv4/IPv6 address and mark pairs. 79 can store IPv4/IPv6 address and protocol/port pairs. 88 one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6 89 address triples in a set. 98 one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6 99 network address/prefix triples in a set. [all …]
|
/linux/drivers/net/ethernet/agere/ |
H A D | et131x.h | 52 /* LBCIF Register Groups (addressed via 32-bit offsets) */ 56 /* LBCIF Registers (addressed via 8-bit offsets) */ 78 /* START OF GLOBAL REGISTER ADDRESS MAP */ 81 * Tx queue start address reg in global address map at address 0x0000 82 * tx queue end address reg in global address map at address 0x0004 83 * rx queue start address reg in global address map at address 0x0008 84 * rx queue end address reg in global address map at address 0x000C 87 /* structure for power management control status reg in global address map 88 * located at address 0x0010 103 /* Interrupt status reg at address 0x0018 [all …]
|
/linux/arch/mips/boot/dts/cavium-octeon/ |
H A D | octeon_3xxx.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 * use. Because of this, it contains a super-set of the available 15 phy0: ethernet-phy@0 { 17 marvell,reg-init = 21 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */ 22 /* irq, blink-activity, blink-link */ 23 <3 0x10 0 0x0242>; /* Reg 3,16 <- 0x0242 */ 27 phy1: ethernet-phy@1 { 29 marvell,reg-init = 33 <3 0x11 0 0x442a>, /* Reg 3,17 <- 0442a */ [all …]
|
/linux/drivers/net/ethernet/microchip/lan865x/ |
H A D | lan865x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Microchip's LAN865x 10BASE-T1S MAC-PHY driver 15 /* MAC Network Control Register */ 20 /* MAC Network Configuration Reg */ 26 /* MAC Hash Register Bottom */ 28 /* MAC Hash Register Top */ 30 /* MAC Specific Addr 1 Bottom Reg */ 32 /* MAC Specific Addr 1 Top Reg */ 42 static int lan865x_set_hw_macaddr_low_bytes(struct oa_tc6 *tc6, const u8 *mac) in lan865x_set_hw_macaddr_low_bytes() argument 46 regval = (mac[3] << 24) | (mac[2] << 16) | (mac[1] << 8) | mac[0]; in lan865x_set_hw_macaddr_low_bytes() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * igc_disable_pcie_master - Disables PCI-express master access 14 * Returns 0 (0) if successful, else returns -10 15 * (-IGC_ERR_MASTER_REQUESTS_PENDING) if master disable bit has not caused 18 * Disables PCI-Express master access and verifies there are no pending 36 timeout--; in igc_disable_pcie_master() 41 ret_val = -IGC_ERR_MASTER_REQUESTS_PENDING; in igc_disable_pcie_master() 50 * igc_init_rx_addrs - Initialize receive addresses 52 * @rar_count: receive address registers 54 * Setup the receive address registers by setting the base receive address [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/layouts/ |
H A D | kontron,sl28-vpd.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM layout of the Kontron SMARC-sAL28 vital product data 10 - Michael Walle <michael@walle.cc> 14 number and a base MAC address. The actual MAC addresses for the 15 on-board ethernet devices are derived from this base MAC address by 22 const: kontron,sl28-vpd 24 serial-number: [all …]
|
/linux/net/bridge/netfilter/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 50 (iptables-nft). 91 The ebtables nat table is used to define rules that alter the MAC 92 source address (MAC SNAT) or the MAC destination address (MAC DNAT). 109 This option adds the among match, which allows matching the MAC source 110 and/or destination address on a list of addresses. Optionally, 111 MAC/IP address pairs can be matched, f.e. for anti-spoofing rules. 200 This option adds the MAC DNAT target, which allows altering the MAC 201 destination address of frames. 218 This option adds the MAC redirect target, which allows altering the MAC [all …]
|