| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A 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 …]
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A 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/drivers/misc/ |
| H A 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/drivers/net/wireless/ath/ath5k/ |
| H A 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/net/llc/ |
| H A 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/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/wireless/ath/ath10k/ |
| H A 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. 29 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff 45 * variable is already 4-byte aligned by virtue of being a u32 527 * for wmi_services is 64 as target is using only 4-bits of each 32-bi [all...] |
| /linux/net/mac80211/ |
| H A 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-2024 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/drivers/net/ethernet/freescale/fman/ |
| H A 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" 29 #define TBICON_AN_SENSE 0x0100 /* Auto-negotiation sense enable */ 72 /* Group address bit indication */ 164 u32 tbipa; /* 0x01C TBI PHY address register */ 165 u32 tmr_ctrl; /* 0x020 Time-stamp Control register */ 166 u32 tmr_pevent; /* 0x024 Time-stamp event register */ 173 u32 igaddr[8]; /* 0x080-0x09C Individual/group address */ 174 u32 gaddr[8]; /* 0x0A0-0x0BC Group address registers 0-7 */ [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-csr.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2025 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/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/drivers/net/ethernet/agere/ |
| H A 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/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 …]
|
| H A 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() 73 return -ENXIO; in igc_init_nvm_params_base() 77 /* Added to a constant, "size" becomes the left-shift value in igc_init_nvm_params_base() [all …]
|
| /linux/drivers/net/ethernet/aeroflex/ |
| H A D | greth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Aeroflex Gaisler GRETH 10/100/1G Ethernet MAC. 5 * 2005-2010 (c) Aeroflex Gaisler AB 21 #include <linux/dma-mapping.h> 54 static int greth_debug = -1; /* -1 == use GRETH_DEF_MSG_ENABLE as value */ 58 /* Accept MAC address of the form macaddr=0x08,0x00,0x20,0x30,0x40,0x50 */ 61 MODULE_PARM_DESC(macaddr, "GRETH Ethernet MAC address"); 101 if (skb_shinfo(skb)->nr_frags == 0) in greth_print_tx_packet() 102 length = skb->len; in greth_print_tx_packet() 107 skb->data, length, true); in greth_print_tx_packet() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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/drivers/net/wireless/ti/wl1251/ |
| H A D | acx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (c) 1998-2007 Texas Instruments Incorporated 70 * bits 0 - 15: Reserved. 71 * bits 16 - 23: Version ID - The WiLink version ID 73 * bits 24 - 31: Chip ID - The WiLink chip ID. 82 /* Power save mode */ 93 /* 0 - Always active*/ 94 /* 1 - Power down mode: light / fast sleep*/ 95 /* 2 - ELP mode: Deep / Max sleep*/ 191 * 13 Copy RX Status - when set, write three receive status words [all …]
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt61pci.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com> 34 * Default offset is required for RSSI <-> dBm conversion. 79 * FORCE_CLOCK_ON: Host force MAC clock ON 121 * 16 entries 32-byte for shared key table 122 * 64 entries 32-byte for pairwise key table 123 * 64 entries 8-byte for pairwise ta key table 146 u8 address[6]; member 152 * Other on-chip shared memory space. 159 * We steal 16 tail bytes to save debugging settings. [all …]
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_hw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */ 19 struct wx *wx = bus->priv; in wx_phy_read_reg_mdi() 23 /* setup and write the address cycle command */ in wx_phy_read_reg_mdi() 30 if (wx->mac.type == wx_mac_em) in wx_phy_read_reg_mdi() 48 struct wx *wx = bus->priv; in wx_phy_write_reg_mdi() 52 /* setup and write the address cycle command */ in wx_phy_write_reg_mdi() 59 if (wx->mac.type == wx_mac_em) in wx_phy_write_reg_mdi() 74 struct wx *wx = bus->priv; in wx_phy_read_reg_mdi_c22() 83 struct wx *wx = bus->priv; in wx_phy_write_reg_mdi_c22() [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| H A D | sw.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 25 * 0 - Disable ASPM, in rtl92s_init_aspm_vars() 26 * 1 - Enable ASPM without Clock Req, in rtl92s_init_aspm_vars() 27 * 2 - Enable ASPM with Clock Req, in rtl92s_init_aspm_vars() 28 * 3 - Alwyas Enable ASPM with Clock Req, in rtl92s_init_aspm_vars() 29 * 4 - Always Enable ASPM without Clock Req. in rtl92s_init_aspm_vars() 32 rtlpci->const_pci_aspm = 2; in rtl92s_init_aspm_vars() 34 /*Setting for PCI-E device */ in rtl92s_init_aspm_vars() 35 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92s_init_aspm_vars() [all …]
|
| /linux/drivers/net/wireless/ath/wcn36xx/ |
| H A D | hal.h | 20 /*---------- 1288 u8 mac[ETH_ALEN]; global() member 1469 u8 mac[ETH_ALEN]; global() member 1654 u8 mac[ETH_ALEN]; global() member 2226 u8 mac[ETH_ALEN]; global() member [all...] |
| /linux/drivers/ufs/core/ |
| H A D | ufs-mcq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/dma-mapping.h> 14 #include "ufshcd-priv.h" 88 * ufshcd_mcq_config_mac - Set the #Max Activ Cmds. 101 val |= FIELD_PREP(MCQ_CFG_MAC_MASK, max_active_cmds - 1); in ufshcd_mcq_config_mac() 107 * ufshcd_mcq_req_to_hwq - find the hardware queue on which the 118 struct blk_mq_hw_ctx *hctx = READ_ONCE(req->mq_hctx); in ufshcd_mcq_req_to_hwq() 120 return hctx ? &hba->uhq[hctx->queue_num] : NULL; in ufshcd_mcq_req_to_hwq() 124 * ufshcd_mcq_queue_cfg_addr - get an start address of the MCQ Queue Config 128 * Return: Start address of MCQ Queue Config Registers in HCI [all …]
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | qlink.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 31 * enum qlink_msg_type - QLINK message types 49 * struct qlink_msg_header - common QLINK protocol message header 65 * enum qlink_hw_capab - device capabilities. 68 * @QLINK_HW_CAPAB_STA_INACT_TIMEOUT: device implements a logic to kick-out 72 * @QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR: device supports MAC Address 91 * enum qlink_driver_capab - host driver capabilities. 108 * struct qlink_intf_info - information on virtual interface. 114 * @mac_addr: MAC address of virtual interface. [all …]
|