/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | hwif.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 13 u32 reg = readl(priv->ioaddr + id_reg); in stmmac_get_id() 16 dev_info(priv->device, "Version ID not available\n"); in stmmac_get_id() 20 dev_info(priv->device, "User ID: 0x%x, Synopsys ID: 0x%x\n", in stmmac_get_id() 28 u32 reg = readl(priv->ioaddr + id_reg); in stmmac_get_dev_id() 31 dev_info(priv->device, "Version ID not available\n"); in stmmac_get_dev_id() 40 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local 42 if (priv->chain_mode) { in stmmac_dwmac_mode_quirk() 43 dev_info(priv->device, "Chain mode enabled\n"); in stmmac_dwmac_mode_quirk() 44 priv->mode = STMMAC_CHAIN_MODE; in stmmac_dwmac_mode_quirk() [all …]
|
H A D | hwif.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ 13 int __result = -EINVAL; \ 14 if ((__priv)->hw->__module && (__priv)->hw->__module->__cname) { \ 15 (__priv)->hw->__module->__cname((__arg0), ##__args); \ 22 int __result = -EINVAL; \ 23 if ((__priv)->hw->__module && (__priv)->hw->__module->__cname) \ 24 __result = (__priv)->hw->__module->__cname((__arg0), ##__args); \ 38 void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode, 41 void (*init_tx_desc)(struct dma_desc *p, int mode, int end); 44 bool csum_flag, int mode, bool tx_own, bool ls, [all …]
|
H A D | dwmac100.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 MAC 10/100 Header File 5 Copyright (C) 2007-2009 STMicroelectronics Ltd 17 /*---------------------------------------------------------------------------- 18 * MAC BLOCK defines 19 *---------------------------------------------------------------------------*/ 20 /* MAC CSR offset */ 21 #define MAC_CONTROL 0x00000000 /* MAC Control */ 22 #define MAC_ADDR_HIGH 0x00000004 /* MAC Address High */ 23 #define MAC_ADDR_LOW 0x00000008 /* MAC Address Low */ [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | rtw_cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 45 u8 *cmd_buf; /* shall be non-paged, and 4 bytes aligned */ 47 u8 *rsp_buf; /* shall be non-paged, and 4 bytes aligned */ 66 u8 *evt_buf; /* shall be non-paged, and 4 bytes aligned */ 75 INIT_LIST_HEAD(&pcmd->list);\ 76 pcmd->cmdcode = code;\ 77 pcmd->parmbuf = (u8 *)(pparm);\ 78 pcmd->cmdsz = sizeof(*pparm);\ 79 pcmd->rsp = NULL;\ [all …]
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | rtl871x_cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. 45 u8 *cmd_buf; /*shall be non-paged, and 4 bytes aligned*/ 47 u8 *rsp_buf; /*shall be non-paged, and 4 bytes aligned*/ 66 u8 *evt_buf; /*shall be non-paged, and 4 bytes aligned*/ 73 INIT_LIST_HEAD(&pcmd->list);\ 74 pcmd->cmdcode = code;\ 75 pcmd->parmbuf = (u8 *)(pparm);\ 76 pcmd->cmdsz = sizeof(*pparm);\ 77 pcmd->rsp = NULL;\ [all …]
|
/openbmc/linux/include/linux/ |
H A D | phylink.h | 22 MLO_AN_FIXED, /* Fixed-link mode */ 23 MLO_AN_INBAND, /* In-band protocol */ 25 /* PCS "negotiation" mode. 26 * PHYLINK_PCS_NEG_NONE - protocol has no inband capability 27 * PHYLINK_PCS_NEG_OUTBAND - some out of band or fixed link setting 28 * PHYLINK_PCS_NEG_INBAND_DISABLED - inband mode disabled, e.g. 29 * 1000base-X with autoneg off 30 * PHYLINK_PCS_NEG_INBAND_ENABLED - inband mode enabled 32 * PHYLINK_PCS_NEG_INBAND - inband mode selected 33 * PHYLINK_PCS_NEG_ENABLED - negotiation mode enabled [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | sfp-phylink.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 phylink is a mechanism to support hot-pluggable networking modules 11 directly connected to a MAC without needing to re-initialise the 12 adapter on hot-plug events. 14 phylink supports conventional phylib-based setups, fixed link setups 23 1. PHY mode 25 In PHY mode, we use phylib to read the current link settings from 26 the PHY, and pass them to the MAC driver. We expect the MAC driver 30 2. Fixed mode 32 Fixed mode is the same as PHY mode as far as the MAC driver is [all …]
|
/openbmc/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 | ingenic,mac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/ingenic,mac.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MAC in Ingenic SoCs 10 - 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> 18 - ingenic,jz4775-mac 19 - ingenic,x1000-mac 20 - ingenic,x1600-mac 21 - ingenic,x1830-mac [all …]
|
H A 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 …]
|
H A D | cpsw.txt | 2 ------------------------------------------------------ 5 - compatible : Should be one of the below:- 7 "ti,am335x-cpsw" for AM335x controllers 8 "ti,am4372-cpsw" for AM437x controllers 9 "ti,dra7-cpsw" for DRA7x controllers 10 - reg : physical base address and size of the cpsw 12 - interrupts : property with a value describing the interrupt 14 - cpdma_channels : Specifies number of channels in CPDMA 15 - ale_entries : Specifies No of entries ALE can hold 16 - bd_ram_size : Specifies internal descriptor RAM size [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 | 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_fltr.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2018-2020, Intel Corporation. */ 8 * ice_fltr_free_list - free filter lists helper 20 list_del(&e->list_entry); in ice_fltr_free_list() 26 * ice_fltr_add_entry_to_list - allocate and add filter entry to list 29 * @list: pointer to the list which contains MAC filters entry 39 return -ENOMEM; in ice_fltr_add_entry_to_list() 41 entry->fltr_info = *info; in ice_fltr_add_entry_to_list() 43 INIT_LIST_HEAD(&entry->list_entry); in ice_fltr_add_entry_to_list() 44 list_add(&entry->list_entry, list); in ice_fltr_add_entry_to_list() [all …]
|
/openbmc/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() 36 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; 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 71 hw->mac.reset_while_pending++; in fm10k_reset_hw_vf() 91 * fm10k_init_hw_vf - VF hardware initialization [all …]
|
H A D | fm10k_pf.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 9 * fm10k_reset_hw_pf - PF hardware reset 39 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf() 68 * fm10k_is_ari_hierarchy_pf - Indicate ARI hierarchy support 81 * fm10k_init_hw_pf - PF hardware initialization 107 fm10k_write_reg(hw, FM10K_ITR2(i), i - 1); in fm10k_init_hw_pf() 114 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf() 117 /* configure rings for 256 Queue / 32 Descriptor cache mode */ in fm10k_init_hw_pf() 139 switch (hw->bus.speed) { in fm10k_init_hw_pf() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_mac.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2014-2015 Hisilicon Limited. 37 /* check mac addr broadcast */ 42 /* check mac addr is 01-00-5e-xx-xx-xx*/ 47 /*check the mac addr is 0 in all bit*/ 52 /*check mac addr multicast*/ 56 void *mac; member 67 /*mac interface keyword */ 82 /*mac mode */ 84 /**< Invalid Ethernet mode */ [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 65 bool mpfs; /* UC MAC was added to MPFs */ 66 /* A flag indicating that mac was added due to mc promiscuous vport */ 73 return -EOPNOTSUPP; in mlx5_eswitch_check() 76 return -EOPNOTSUPP; in mlx5_eswitch_check() 92 return dev->priv.eswitch; in __mlx5_devlink_eswitch_get() 112 return ERR_PTR(-EPERM); in mlx5_eswitch_get_vport() 114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport() 116 esw_debug(esw->dev, "vport out of range: num(0x%x)\n", vport_num); in mlx5_eswitch_get_vport() [all …]
|
/openbmc/linux/drivers/net/ethernet/wiznet/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 26 W5100 is a single chip with integrated 10/100 Ethernet MAC, 28 the MAC and PHY functions only, onchip TCP/IP is unused. 39 W5300 is a single chip with integrated 10/100 Ethernet MAC, 41 the MAC and PHY functions only, onchip TCP/IP is unused. 47 prompt "WIZnet interface mode" 52 bool "Direct address bus mode" 54 In direct address mode host system can directly access all registers 55 after mapping to Memory-Mapped I/O space. 58 bool "Indirect address bus mode" [all …]
|
/openbmc/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 …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_xdp_redirect_multi.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # - - - - - - - - - - - - - - - - - - - 7 # - -| - - - - - - | - - - - - - | - - 8 # --------- --------- --------- 10 # --------- --------- --------- 19 # ns1 -> gw: ns1, ns2, ns3, should receive the arp request 22 # ns1 -> gw: ns1 should not receive, ns2, ns3 should receive redirects. 24 # ping test: ns1 -> ns2 (block), echo requests will be redirect back 26 # all src mac should be egress interface's mac 34 LOG_DIR=$(mktemp -d) [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 5 #include <linux/pcs-lynx.h> 9 #include "dpaa2-eth.h" 10 #include "dpaa2-mac.h" 20 static int dpaa2_mac_cmp_ver(struct dpaa2_mac *mac, in dpaa2_mac_cmp_ver() argument 23 if (mac->ver_major == ver_major) in dpaa2_mac_cmp_ver() 24 return mac->ver_minor - ver_minor; in dpaa2_mac_cmp_ver() 25 return mac->ver_major - ver_major; in dpaa2_mac_cmp_ver() 28 static void dpaa2_mac_detect_features(struct dpaa2_mac *mac) in dpaa2_mac_detect_features() argument 30 mac->features = 0; in dpaa2_mac_detect_features() [all …]
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | eth.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2009-2012 Freescale Semiconductor, Inc. 40 bus.priv = priv->mac->phyregs; in dtsec_configure_serdes() 41 bool sgmii_2500 = (priv->enet_if == in dtsec_configure_serdes() 46 /* SGMII IF mode + AN enable only for 1G SGMII, not for 2.5G */ in dtsec_configure_serdes() 80 if ((priv->enet_if == PHY_INTERFACE_MODE_QSGMII) && (i < 3)) { in dtsec_configure_serdes() 85 struct dtsec *regs = priv->mac->base; in dtsec_configure_serdes() 86 struct tsec_mii_mng *phyregs = priv->mac->phyregs; in dtsec_configure_serdes() 92 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, TBI_TBICON, in dtsec_configure_serdes() 94 tsec_local_mdio_write(phyregs, in_be32(®s->tbipa), 0, TBI_ANA, in dtsec_configure_serdes() [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/net/ |
H A D | ethernet.txt | 3 - local-mac-address: array of 6 bytes, specifies the MAC address that was 5 - mac-address: array of 6 bytes, specifies the MAC address that was last used by 6 the boot program; should be used in cases where the MAC address assigned to 7 the device by the boot program is different from the "local-mac-address" 9 - max-speed: number, specifies maximum speed in Mbit/s supported by the device; 10 - max-frame-size: number, maximum transfer unit (IEEE defined MTU), rather than 12 - phy-mode: string, operation mode of the PHY interface; supported values are 13 "mii", "gmii", "sgmii", "qsgmii", "tbi", "rev-mii", "rmii", "rgmii", "rgmii-id", 14 "rgmii-rxid", "rgmii-txid", "rtbi", "smii", "xgmii"; this is now a de-facto 16 - phy-connection-type: the same as "phy-mode" property but described in ePAPR; [all …]
|
/openbmc/linux/Documentation/firmware-guide/acpi/dsd/ |
H A D | phy.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 for connecting PHYs on the MDIO bus [dsd-properties-rules] to the MAC layer. 17 Properties UUID For _DSD" [dsd-guide] document and the 18 daffd814-6eba-4d8c-8a91-bc9bbf4aa301 UUID must be used in the Device 21 phy-handle 22 ---------- 23 For each MAC node, a device property "phy-handle" is used to reference 25 network interfaces that have PHYs connected to MAC via MDIO bus. 30 .. code-block:: none 43 Later, during the MAC driver initialization, the registered PHY devices [all …]
|