/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/net/mac80211/ |
D | sta_info.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright 2002-2005, Devicescape Software, Inc. 4 * Copyright 2013-2014 Intel Mobile Communications GmbH 5 * Copyright(c) 2015-2017 Intel Deutschland GmbH 6 * Copyright(c) 2020-2022 Intel Corporation 24 * enum ieee80211_sta_info_flags - Stations flags 31 * @WLAN_STA_PS_STA: Station is in power-save mode 35 * @WLAN_STA_SHORT_PREAMBLE: Station is capable of receiving short-preamble 45 * power-save mode logically to flush frames that might still 47 * @WLAN_STA_PSPOLL: Station sent PS-poll while driver was keeping [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/drivers/net/ethernet/freescale/fman/ |
D | fman_dtsec.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later 3 * Copyright 2008 - 2015 Freescale Semiconductor Inc. 10 #include "mac.h" 28 #define TBICON_AN_SENSE 0x0100 /* Auto-negotiation sense enable */ 74 /* Group address bit indication */ 165 u32 tbipa; /* 0x01C TBI PHY address register */ 166 u32 tmr_ctrl; /* 0x020 Time-stamp Control register */ 167 u32 tmr_pevent; /* 0x024 Time-stamp event register */ 174 u32 igaddr[8]; /* 0x080-0x09C Individual/group address */ 175 u32 gaddr[8]; /* 0x0A0-0x0BC Group address registers 0-7 */ [all …]
|
D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later 3 * Copyright 2008 - 2015 Freescale Semiconductor Inc. 21 #include "mac.h" 28 MODULE_DESCRIPTION("FSL FMan MAC API based driver"); 49 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception() 51 dev_err(mac_dev->dev, "10G MAC got RX FIFO Error = %x\n", ex); in mac_exception() 54 dev_dbg(mac_dev->dev, "%s:%s() -> %d\n", KBUILD_BASENAME ".c", in mac_exception() 66 priv = mac_dev->priv; in fman_set_multi() 68 /* Clear previous address list */ in fman_set_multi() 69 list_for_each_entry_safe(old_addr, tmp, &priv->mc_addr_list, list) { in fman_set_multi() [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath10k/ |
D | wmi.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 28 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff 44 * variable is already 4-byte aligned by virtue of being a u32 526 * for wmi_services is 64 as target is using only 4-bits of each 32-bit 532 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \ 533 BIT(((((svc_id) - (len)) % 28) & 0x1f) + 4)) 849 /* 2 word representation of MAC addr */ [all …]
|
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-csr.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2022 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 14 * low power states due to driver-invoked device resets 15 * (e.g. CSR_RESET_REG_FLAG_SW_RESET) or uCode-driven power-saving modes. 18 * these provide simple PCI bus access, without waking up the MAC. 21 * The MAC (uCode processor, etc.) does not need to be powered up for accessing 30 #define CSR_INT_COALESCING (CSR_BASE+0x004) /* accum ints, 32-usec units */ 37 #define CSR_FUNC_SCRATCH (CSR_BASE+0x02c) /* Scratch register - used for FW dbg */ 45 * 31-16: Reserved [all …]
|
/Linux-v6.1/drivers/net/ethernet/nxp/ |
D | lpc_eth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 #include <linux/soc/nxp/lpc32xx-misc.h> 25 #define MODNAME "lpc-eth" 35 * Ethernet MAC controller Register offsets 317 if (dev && dev->of_node) { in lpc_phy_interface_mode() 318 const char *mode = of_get_property(dev->of_node, in lpc_phy_interface_mode() 319 "phy-mode", NULL); in lpc_phy_interface_mode() 328 if (dev && dev->of_node) in use_iram_for_net() 329 return of_property_read_bool(dev->of_node, "use-iram"); in use_iram_for_net() 420 * MAC support functions [all …]
|
/Linux-v6.1/drivers/net/ethernet/agere/ |
D | et131x.c | 2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs 10 *------------------------------------------------------------------------------ 87 MODULE_DESCRIPTION("10/100/1000 Base-T Ethernet Driver for the ET1310 by Agere Systems"); 93 /* MAC defines */ 106 * In both cases, when flow control is enabled for either Tx or bi-direction, 156 #define ET131X_PCI_DEVICE_ID_GIG 0xED00 /* ET1310 1000 Base-T 8 */ 157 #define ET131X_PCI_DEVICE_ID_FAST 0xED01 /* ET1310 100 Base-T */ 173 /* number of RFDs - default and min */ 189 u32 word2; /* Bits 10-31 reserved, 0-9 descriptor */ 197 * PE-MCXMAC Data Sheet IPD DS54 0210-1 (also IPD-DS80 0205-2) [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/igc/ |
D | igc_base.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * igc_reset_hw_base - Reset hardware 24 /* Prevent the PCI-E bus from sticking if there is no TLP connection in igc_reset_hw_base() 25 * on the last TLP read/write transaction when MAC is reset. in igc_reset_hw_base() 29 hw_dbg("PCI-E Master disable polling has failed\n"); in igc_reset_hw_base() 42 hw_dbg("Issuing a global reset to MAC\n"); in igc_reset_hw_base() 62 * igc_init_nvm_params_base - Init NVM func ptrs. 67 struct igc_nvm_info *nvm = &hw->nvm; in igc_init_nvm_params_base() 74 /* Added to a constant, "size" becomes the left-shift value in igc_init_nvm_params_base() 85 nvm->type = igc_nvm_eeprom_spi; in igc_init_nvm_params_base() [all …]
|
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-v6.1/arch/arm/boot/dts/ |
D | omap-gpmc-smsc911x.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 10 vddvario: regulator-vddvario { 11 compatible = "regulator-fixed"; 12 regulator-name = "vddvario"; 13 regulator-always-on; 16 vdd33a: regulator-vdd33a { 17 compatible = "regulator-fixed"; 18 regulator-name = "vdd33a"; 19 regulator-always-on; 26 bank-width = <2>; [all …]
|
D | omap-gpmc-smsc9221.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 14 vddvario: regulator-vddvario { 15 compatible = "regulator-fixed"; 16 regulator-name = "vddvario"; 17 regulator-always-on; 20 vdd33a: regulator-vdd33a { 21 compatible = "regulator-fixed"; 22 regulator-name = "vdd33a"; 23 regulator-always-on; 30 bank-width = <2>; [all …]
|
D | omap3-overo-tobiduo-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include "omap3-overo-common-peripherals.dtsi" 12 #include "omap-gpmc-smsc9221.dtsi" 17 interrupt-parent = <&gpio6>; 23 bank-width = <2>; 25 gpmc,mux-add-data = <0>; 26 gpmc,cs-on-ns = <0>; 27 gpmc,cs-rd-off-ns = <42>; 28 gpmc,cs-wr-off-ns = <36>; 29 gpmc,adv-on-ns = <6>; [all …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath9k/ |
D | wow.c | 28 .n_patterns = MAX_NUM_PATTERN - 2, 38 if (wowlan->disconnect) in ath9k_wow_map_triggers() 41 if (wowlan->magic_pkt) in ath9k_wow_map_triggers() 44 if (wowlan->n_patterns) in ath9k_wow_map_triggers() 52 struct ath_hw *ah = sc->sc_ah; in ath9k_wow_add_disassoc_deauth_pattern() 66 * +--------------+----------+---------+--------+--------+---- in ath9k_wow_add_disassoc_deauth_pattern() 68 * +--------------+----------+---------+--------+--------+---- in ath9k_wow_add_disassoc_deauth_pattern() 76 * -------------------- in ath9k_wow_add_disassoc_deauth_pattern() 80 * | x:x:x:x:x:x -- 22 bytes in ath9k_wow_add_disassoc_deauth_pattern() 83 * ---------------------- in ath9k_wow_add_disassoc_deauth_pattern() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_x540.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 31 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() local 32 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X540() 35 phy->ops.set_phy_power = ixgbe_set_copper_phy_power; in ixgbe_get_invariants_X540() 37 mac->mcft_size = IXGBE_X540_MC_TBL_SIZE; in ixgbe_get_invariants_X540() 38 mac->vft_size = IXGBE_X540_VFT_TBL_SIZE; in ixgbe_get_invariants_X540() 39 mac->num_rar_entries = IXGBE_X540_RAR_ENTRIES; in ixgbe_get_invariants_X540() 40 mac->rx_pb_size = IXGBE_X540_RX_PB_SIZE; in ixgbe_get_invariants_X540() 41 mac->max_rx_queues = IXGBE_X540_MAX_RX_QUEUES; in ixgbe_get_invariants_X540() [all …]
|