| /kernel/linux/linux-5.10/drivers/staging/vt6655/ |
| D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * File: mac.c 8 * Purpose: MAC routines 15 * MACbIsRegBitsOff - Test if All test Bits Off 16 * MACbIsIntDisable - Test if MAC interrupt disable 17 * MACvSetShortRetryLimit - Set 802.11 Short Retry limit 18 * MACvSetLongRetryLimit - Set 802.11 Long Retry limit 19 * MACvSetLoopbackMode - Set MAC Loopback Mode 20 * MACvSaveContext - Save Context of MAC Registers 21 * MACvRestoreContext - Restore Context of MAC Registers [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/vt6655/ |
| D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Purpose: MAC routines 13 * vt6655_mac_is_reg_bits_off - Test if All test Bits Off 14 * vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit 15 * MACvSetLongRetryLimit - Set 802.11 Long Retry limit 16 * vt6655_mac_set_loopback_mode - Set MAC Loopback Mode 17 * vt6655_mac_save_context - Save Context of MAC Registers 18 * vt6655_mac_restore_context - Restore Context of MAC Registers 19 * MACbSoftwareReset - Software Reset MAC 20 * vt6655_mac_safe_rx_off - Turn Off MAC Rx [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | smsc911x.txt | 1 * Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller 4 - compatible : Should be "smsc,lan<model>", "smsc,lan9115" 5 - reg : Address and length of the io space for SMSC LAN 6 - interrupts : one or two interrupt specifiers 7 - The first interrupt is the SMSC LAN interrupt line 8 - The second interrupt (if present) is the PME (power 11 - phy-mode : See ethernet.txt file in the same directory 14 - reg-shift : Specify the quantity to shift the register offsets by 15 - reg-io-width : Specify the size (in bytes) of the IO accesses that 18 - smsc,irq-active-high : Indicates the IRQ polarity is active-high [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/allwinner/ |
| D | sun4i-emac.c | 4 * Copyright 2012-2013 Stefan Roese <sr@denx.de> 5 * Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 33 #include "sun4i-emac.h" 35 #define DRV_NAME "sun4i-emac" 40 static int debug = -1; /* defaults above */; 49 /* EMAC register address locking. 51 * The EMAC uses an address register to control where data written 52 * to the data register goes. This means that the address register 56 * protect the system, but the calls themselves save the address 57 * in the address register in case they are interrupting another [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | smsc,lan9115.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: Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller 10 - Shawn Guo <shawnguo@kernel.org> 13 - $ref: ethernet-controller.yaml# 18 - const: smsc,lan9115 19 - items: 20 - enum: 21 - smsc,lan89218 [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/api/ |
| D | mac-cfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2019, 2021-2022 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 10 #include "mac.h" 13 * enum iwl_mac_conf_subcmd_ids - mac configuration command IDs 84 * struct iwl_p2p_noa_attr - NOA attr contained in probe resp FW notification 90 * @ctwin: GO's ct window and pwer save capability 107 * struct iwl_probe_resp_data_notif - notification with NOA and CSA counter 109 * @mac_id: the mac which should send the probe response [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/ |
| D | csr.h | 8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 70 * low power states due to driver-invoked device resets 71 * (e.g. CSR_RESET_REG_FLAG_SW_RESET) or uCode-driven power-saving modes. 74 * these provide simple PCI bus access, without waking up the MAC. 77 * The MAC (uCode processor, etc.) does not need to be powered up for accessing 86 #define CSR_INT_COALESCING (CSR_BASE+0x004) /* accum ints, 32-usec units */ 100 * 31-8: Reserved 101 * 7-4: Type of device: see CSR_HW_REV_TYPE_xxx definitions [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlegacy/ |
| D | csr.h | 8 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 29 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 33 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 70 * low power states due to driver-invoked device resets 71 * (e.g. CSR_RESET_REG_FLAG_SW_RESET) or uCode-driven power-saving modes. 74 * these provide simple PCI bus access, without waking up the MAC. 77 * The MAC (uCode processor, etc.) does not need to be powered up for accessing 86 #define CSR_INT_COALESCING (CSR_BASE+0x004) /* accum ints, 32-usec units */ 100 * 31-8: Reserved 101 * 7-4: Type of device: see CSR_HW_REV_TYPE_xxx definitions [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sunplus/ |
| D | spl2sw_driver.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/nvmem-consumer.h> 27 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_open() local 28 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_open() 31 netdev_dbg(ndev, "Open port = %x\n", mac->lan_port); in spl2sw_ethernet_open() 33 comm->enable |= mac->lan_port; in spl2sw_ethernet_open() 38 mask = readl(comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_ethernet_open() 40 writel(mask, comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_ethernet_open() 42 phy_start(ndev->phydev); in spl2sw_ethernet_open() 51 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_stop() local [all …]
|
| /kernel/linux/linux-6.6/drivers/misc/ |
| D | pch_phub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #define PCH_PHUB_MAC_START_ADDR_EG20T 0x14 /* MAC data area start address 28 #define PCH_PHUB_MAC_START_ADDR_ML7223 0x20C /* MAC data area start address 30 #define PCH_PHUB_ROM_START_ADDR_EG20T 0x80 /* ROM data area start address offset 32 #define PCH_PHUB_ROM_START_ADDR_ML7213 0x400 /* ROM data area start address 35 #define PCH_PHUB_ROM_START_ADDR_ML7223 0x400 /* ROM data area start address 47 /* CM-iTC */ 58 #define PCI_DEVICE_ID_ROHM_ML7223_mPHUB 0x8012 /* for Bus-m */ 59 #define PCI_DEVICE_ID_ROHM_ML7223_nPHUB 0x8002 /* for Bus-n */ 65 #define PCH_WORD_ADDR_MASK (~((1 << 2) - 1)) [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/ |
| D | pch_phub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #define PCH_PHUB_MAC_START_ADDR_EG20T 0x14 /* MAC data area start address 28 #define PCH_PHUB_MAC_START_ADDR_ML7223 0x20C /* MAC data area start address 30 #define PCH_PHUB_ROM_START_ADDR_EG20T 0x80 /* ROM data area start address offset 32 #define PCH_PHUB_ROM_START_ADDR_ML7213 0x400 /* ROM data area start address 35 #define PCH_PHUB_ROM_START_ADDR_ML7223 0x400 /* ROM data area start address 47 /* CM-iTC */ 58 #define PCI_DEVICE_ID_ROHM_ML7223_mPHUB 0x8012 /* for Bus-m */ 59 #define PCI_DEVICE_ID_ROHM_ML7223_nPHUB 0x8002 /* for Bus-n */ 65 #define PCH_WORD_ADDR_MASK (~((1 << 2) - 1)) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/allwinner/ |
| D | sun4i-emac.c | 4 * Copyright 2012-2013 Stefan Roese <sr@denx.de> 5 * Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 34 #include "sun4i-emac.h" 36 #define DRV_NAME "sun4i-emac" 41 static int debug = -1; /* defaults above */; 50 /* EMAC register address locking. 52 * The EMAC uses an address register to control where data written 53 * to the data register goes. This means that the address register 57 * protect the system, but the calls themselves save the address 58 * in the address register in case they are interrupting another [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/wangxun/txgbe/ |
| D | txgbe_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */ 17 * txgbe_disable_sec_tx_path - Stops the transmit data path 33 * txgbe_enable_sec_tx_path - Enables the transmit data path 45 * txgbe_init_thermal_sensor_thresh - Inits thermal sensor thresholds 49 * and save off the threshold and location values into mac.thermal_sensor_data 53 struct wx_thermal_sensor_data *data = &wx->mac.sensor; in txgbe_init_thermal_sensor_thresh() 58 if (wx->bus.func) in txgbe_init_thermal_sensor_thresh() 67 data->alarm_thresh = 100; in txgbe_init_thermal_sensor_thresh() 69 data->dalarm_thresh = 90; in txgbe_init_thermal_sensor_thresh() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/wangxun/libwx/ |
| D | wx_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */ 23 if (wx->mac.type == wx_mac_sp) { in wx_intr_disable() 37 if (wx->mac.type == wx_mac_sp) { in wx_intr_enable() 46 * wx_irq_disable - Mask off interrupt generation on the NIC 51 struct pci_dev *pdev = wx->pdev; in wx_irq_disable() 56 if (pdev->msix_enabled) { in wx_irq_disable() 59 for (vector = 0; vector < wx->num_q_vectors; vector++) in wx_irq_disable() 60 synchronize_irq(wx->msix_entries[vector].vector); in wx_irq_disable() 62 synchronize_irq(wx->msix_entries[vector].vector); in wx_irq_disable() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
| D | attach.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 32 * ath5k_hw_post() - Power On Self Test helper function 53 /* Save previous value */ in ath5k_hw_post() 63 return -EAGAIN; in ath5k_hw_post() 78 return -EAGAIN; in ath5k_hw_post() 96 * ath5k_hw_init() - Check if hw is supported and init the needed structs 100 * structs. Returns -ENOMEM if we don't have memory for the needed structs, 101 * -ENODEV if the device is not supported or prints an error msg if something 108 struct pci_dev *pdev = ah->pdev; in ath5k_hw_init() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/ |
| D | attach.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 32 * ath5k_hw_post() - Power On Self Test helper function 53 /* Save previous value */ in ath5k_hw_post() 63 return -EAGAIN; in ath5k_hw_post() 78 return -EAGAIN; in ath5k_hw_post() 96 * ath5k_hw_init() - Check if hw is supported and init the needed structs 100 * structs. Returns -ENOMEM if we don't have memory for the needed structs, 101 * -ENODEV if the device is not supported or prints an error msg if something 108 struct pci_dev *pdev = ah->pdev; in ath5k_hw_init() [all …]
|
| /kernel/linux/linux-6.6/net/llc/ |
| D | llc_sap.c | 2 * llc_sap.c - driver routines for SAP component. 5 * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 39 * llc_alloc_frame - allocates sk_buff for frame 54 hlen += llc_mac_header_len(dev->type); in llc_alloc_frame() 62 skb->protocol = htons(ETH_P_802_2); in llc_alloc_frame() 63 skb->dev = dev; in llc_alloc_frame() 74 /* save primitive for use by the user. */ in llc_save_primitive() 78 addr->sllc_family = sk->sk_family; in llc_save_primitive() 79 addr->sllc_arphrd = skb->dev->type; in llc_save_primitive() 80 addr->sllc_test = prim == LLC_TEST_PRIM; in llc_save_primitive() [all …]
|
| /kernel/linux/linux-5.10/net/llc/ |
| D | llc_sap.c | 2 * llc_sap.c - driver routines for SAP component. 5 * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 39 * llc_alloc_frame - allocates sk_buff for frame 54 hlen += llc_mac_header_len(dev->type); in llc_alloc_frame() 62 skb->protocol = htons(ETH_P_802_2); in llc_alloc_frame() 63 skb->dev = dev; in llc_alloc_frame() 74 /* save primitive for use by the user. */ in llc_save_primitive() 78 addr->sllc_family = sk->sk_family; in llc_save_primitive() 79 addr->sllc_arphrd = skb->dev->type; in llc_save_primitive() 80 addr->sllc_test = prim == LLC_TEST_PRIM; in llc_save_primitive() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
| D | e1000_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 18 * igb_get_bus_info_pcie - Get PCIe bus information 27 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie() 32 bus->type = e1000_bus_type_pci_express; in igb_get_bus_info_pcie() 38 bus->width = e1000_bus_width_unknown; in igb_get_bus_info_pcie() 39 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() 43 bus->speed = e1000_bus_speed_2500; in igb_get_bus_info_pcie() 46 bus->speed = e1000_bus_speed_5000; in igb_get_bus_info_pcie() 49 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/ |
| D | e1000_mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 18 * igb_get_bus_info_pcie - Get PCIe bus information 27 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie() 32 bus->type = e1000_bus_type_pci_express; in igb_get_bus_info_pcie() 38 bus->width = e1000_bus_width_unknown; in igb_get_bus_info_pcie() 39 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() 43 bus->speed = e1000_bus_speed_2500; in igb_get_bus_info_pcie() 46 bus->speed = e1000_bus_speed_5000; in igb_get_bus_info_pcie() 49 bus->speed = e1000_bus_speed_unknown; in igb_get_bus_info_pcie() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/ |
| D | sb1250-mac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * This driver is designed for the Broadcom SiByte SOC built-in 48 /* A few user-configurable values which may be modified when a driver 84 #error invalid SiByte MAC configuration 95 #error invalid SiByte MAC configuration 116 sbmac_duplex_none = -1, 142 #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \ 143 (d)->sbdma_dscrtable : (d)->f+1) 174 MAC */ 189 /* descriptor base address */ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
| D | sb1250-mac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * This driver is designed for the Broadcom SiByte SOC built-in 48 /* A few user-configurable values which may be modified when a driver 84 #error invalid SiByte MAC configuration 95 #error invalid SiByte MAC configuration 116 sbmac_duplex_none = -1, 142 #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \ 143 (d)->sbdma_dscrtable : (d)->f+1) 174 MAC */ 189 /* descriptor base address */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fman/ |
| D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later 3 * Copyright 2008 - 2015 Freescale Semiconductor Inc. 23 #include "mac.h" 30 MODULE_DESCRIPTION("FSL FMan MAC API based driver"); 51 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception() 53 dev_err(mac_dev->dev, "10G MAC got RX FIFO Error = %x\n", ex); in mac_exception() 56 dev_dbg(mac_dev->dev, "%s:%s() -> %d\n", KBUILD_BASENAME ".c", in mac_exception() 68 priv = mac_dev->priv; in fman_set_multi() 70 /* Clear previous address list */ in fman_set_multi() 71 list_for_each_entry_safe(old_addr, tmp, &priv->mc_addr_list, list) { in fman_set_multi() [all …]
|