/linux/drivers/char/tpm/ |
H A D | tpm_tis_spi_cr50.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This device driver implements a TCG PTP FIFO interface over SPI for chips 23 * - can go to sleep not earlier than after CR50_SLEEP_DELAY_MSEC. 24 * - needs up to CR50_WAKE_START_DELAY_USEC to wake after sleep. 25 * - requires waiting for "ready" IRQ, if supported; or waiting for at least 27 * - waits for up to CR50_FLOW_CONTROL for flow control 'ready' indication. 39 /* Default quality for hwrng. */ 55 static inline struct cr50_spi_phy *to_cr50_spi_phy(struct tpm_tis_spi_phy *phy) in to_cr50_spi_phy() argument 57 return container_of(phy, struct cr50_spi_phy, spi_phy); in to_cr50_spi_phy() 69 cr50_phy->irq_confirmed = true; in cr50_spi_irq_handler() [all …]
|
/linux/net/mac802154/ |
H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include "driver-ops.h" 13 /* privid for wpan_phys to determine whether they belong to us or not */ 17 * ieee802154_wake_queue - wake ieee802154 queue 21 * for both transmitting and receiving. Hence, the core currently only handles 22 * one frame at a time for each phy, which means we had to stop the queue to 32 clear_bit(WPAN_PHY_FLAG_STATE_QUEUE_STOPPED, &local->phy->flags); in ieee802154_wake_queue() 33 list_for_each_entry_rcu(sdata, &local->interfaces, list) { in ieee802154_wake_queue() 34 if (!sdata->dev) in ieee802154_wake_queue() 37 netif_wake_queue(sdata->dev); in ieee802154_wake_queue() [all …]
|
/linux/Documentation/networking/dsa/ |
H A D | dsa.rst | 7 develop drivers for this subsystem as well as a TODO for developers interested 22 An Ethernet switch typically comprises multiple front-panel ports and one 25 receiving Ethernet frames from the switch. This is a very common setup for all 27 gateways, or even top-of-rack switches. This host Ethernet controller will 30 The D in DSA stands for Distributed, because the subsystem has been designed 36 For each front-panel port, DSA creates specialized network devices which are 37 used as controlling and data-flowing endpoints for use by the Linux networking 41 The ideal case for using DSA is when an Ethernet switch supports a "switch tag" 42 which is a hardware feature making the switch insert a specific tag for each 46 - what port is this frame coming from [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | mediatek-dwmac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/mediatek-dwmac.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Biao Huang <biao.huang@mediatek.com> 13 This file documents platform glue layer for stmmac. 15 # We need a select here so we don't match all nodes with 'snps,dwmac' 21 - mediatek,mt2712-gmac 22 - mediatek,mt8188-gmac 23 - mediatek,mt8195-gmac [all …]
|
/linux/drivers/net/phy/ |
H A D | phylink.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * phylink models the MAC to optional PHY connection, supporting 4 * technologies such as SFP cages where the PHY is hot-pluggable. 15 #include <linux/phy.h> 23 #include "phy-caps.h" 38 * struct phylink - internal data type for phylink 55 u8 link_port; /* The current non-phy ethtool port */ 98 if ((pl)->config->type == PHYLINK_NETDEV) \ 99 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \ 100 else if ((pl)->config->type == PHYLINK_DEV) \ [all …]
|
H A D | dp83tg720.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Driver for the Texas Instruments DP83TG720 PHY 10 #include <linux/phy.h> 16 * DP83TG720S_POLL_ACTIVE_LINK - Polling interval in milliseconds when the link 18 * DP83TG720S_POLL_NO_LINK_MIN - Minimum polling interval in milliseconds when 20 * DP83TG720S_POLL_NO_LINK_MAX - Maximum polling interval in milliseconds when 80 /* In RGMII mode, Enable or disable the internal delay for RXD */ 82 /* In RGMII mode, Enable or disable the internal delay for TXD */ 88 * 32-bit or 16-bit counters for TX and RX statistics and must be read in 91 * - DP83TG720S_PKT_STAT_1: Contains TX packet count bits [15:0]. [all …]
|
/linux/drivers/usb/musb/ |
H A D | tusb6010.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - Driver assumes that interface to external host (main CPU) is 10 * configured for NOR FLASH interface instead of VLYNQ serial 27 #include <linux/dma-mapping.h> 35 struct platform_device *phy; member 46 * Checks the revision. We need to use the DMA register as 3.0 does not 47 * have correct versions for TUSB_PRCM_REV or TUSB_INT_CTRL_REV. 51 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision() 68 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision() 71 rev = musb->tusb_revision; in tusb_print_revision() [all …]
|
/linux/drivers/net/ethernet/sis/ |
H A D | sis900.c | 1 /* sis900.c: A SiS 900/7016 PCI Fast Ethernet driver for Linux. 17 SiS 7014 Single Chip 100BASE-TX/10BASE-T Physical Layer Solution, 21 Rev 1.08.09 Sep. 19 2005 Daniele Venzano add Wake on LAN support 22 Rev 1.08.08 Jan. 22 2005 Daniele Venzano use netif_msg for debugging messages 24 Rev 1.08.06 Sep. 24 2002 Mufasa Yang bug fix for Tx timeout & add SiS963 support 25 Rev 1.08.05 Jun. 6 2002 Mufasa Yang bug fix for read_eeprom & Tx descriptor over-boundary 28 Rev 1.08.02 Nov. 30 2001 Hui-Fen Hsu workaround for EDB & bug fix for dhcp problem 29 Rev 1.08.01 Aug. 25 2001 Hui-Fen Hsu update for 630ET & workaround for ICS1893 PHY 30 Rev 1.08.00 Jun. 11 2001 Hui-Fen Hsu workaround for RTL8201 PHY and some bug fix 31 …Rev 1.07.11 Apr. 2 2001 Hui-Fen Hsu updates PCI drivers to use the new pci_set_dma_mask for kerne… [all …]
|
/linux/drivers/net/ethernet/wangxun/ngbe/ |
H A D | ngbe_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */ 11 #include <linux/phy.h> 27 /* ngbe_pci_tbl - PCI Device ID Table 50 * ngbe_init_type_code - Initialize the shared code 58 wx->mac.type = wx_mac_em; in ngbe_init_type_code() 59 type_mask = (u16)(wx->subsystem_device_id & NGBE_OEM_MASK); in ngbe_init_type_code() 60 ncsi_mask = wx->subsystem_device_id & NGBE_NCSI_MASK; in ngbe_init_type_code() 61 wol_mask = wx->subsystem_device_id & NGBE_WOL_MASK; in ngbe_init_type_code() 64 wx->mac_type = (val & BIT(7)) >> 7 ? in ngbe_init_type_code() [all …]
|
/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 4 /* ethtool support for e1000 */ 20 sizeof(((struct e1000_adapter *)0)->m), \ 23 sizeof(((struct net_device *)0)->m), \ 90 struct e1000_hw *hw = &adapter->hw; in e1000_get_link_ksettings() 93 if (hw->media_type == e1000_media_type_copper) { in e1000_get_link_ksettings() 103 if (hw->autoneg == 1) { in e1000_get_link_ksettings() 106 advertising |= hw->autoneg_advertised; in e1000_get_link_ksettings() 109 cmd->base.port = PORT_TP; in e1000_get_link_ksettings() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | reset.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2007-2008 Luis Rodriguez <mcgrof@winlab.rutgers.edu> 5 * Copyright (c) 2007-2008 Pavel Roskin <proski@gnu.org> 6 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com> 8 * Permission to use, copy, modify, and distribute this software for any 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 30 #include <linux/pci.h> /* To determine if a card is pci-e */ 52 * ath5k_hw_register_timeout() - Poll a register for a flag/field change 64 * Returns -EAGAIN if we exceeded AR5K_TUNE_REGISTER_TIMEOUT * 15us or 0 [all …]
|
/linux/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/net/ethernet/micrel/ksx884x.c - Micrel KSZ8841/2 PCI Ethernet driver 5 * Copyright (c) 2009-2010 Micrel, Inc. 271 #define PHY_CTRL_INTERVAL (KS884X_P2MBCR_P - KS884X_P1MBCR_P) 293 #define PHY_SPECIAL_INTERVAL (KS884X_P2VCT_P - KS884X_P1VCT_P) 482 (KS8842_PORT_2_CTRL_1 - KS8842_PORT_1_CTRL_1)) 587 #define STATIC_MAC_TABLE_ADDR 00-0000FFFF-FFFFFFFF 588 #define STATIC_MAC_TABLE_FWD_PORTS 00-00070000-00000000 589 #define STATIC_MAC_TABLE_VALID 00-00080000-00000000 590 #define STATIC_MAC_TABLE_OVERRIDE 00-00100000-00000000 [all …]
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz_common.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017-2025 Microchip Technology Inc. 14 #include <linux/platform_data/microchip-ksz.h> 15 #include <linux/phy.h> 205 * struct ksz_drive_strength - drive strength mapping 214 /* ksz9477_drive_strengths - Drive strength mapping for KSZ9477 variants 222 * - for high speed signals 223 * 1. 4 mA or 8 mA is often used for MII, RMII, and SPI interface with using 225 * 2. 12 mA or 16 mA is often used for MII, RMII, and SPI interface with 227 * 3. 20 mA or 24 mA is often used for GMII/RGMII interface with using 2.5V [all …]
|
/linux/drivers/net/ethernet/davicom/ |
H A D | dm9000.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Davicom DM9000 Fast Ethernet driver for Linux. 6 * (C) Copyright 1997-1998 DAVICOM Semiconductor,Inc. All Rights Reserved. 39 /* Board/System/Debug information/definition ---------------- */ 41 #define DM9000_PHY 0x40 /* PHY address 0x01 */ 57 MODULE_PARM_DESC(debug, "dm9000 debug level (0-6)"); 70 * For general accesses a lock is provided so that calls which are 72 * not need to be saved. This lock also serves to serialise access 73 * to the EEPROM and PHY access registers which are shared between 87 /* Structure/enum declaration ------------------------------- */ [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | tx.c | 1 // SPDX-License-Identifier: ISC 11 if (!txq->sta) in mt76_txq_get_qid() 14 return txq->ac; in mt76_txq_get_qid() 20 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_tx_check_agg_ssn() 25 if (!sta || !ieee80211_is_data_qos(hdr->frame_control) || in mt76_tx_check_agg_ssn() 26 !ieee80211_is_data_present(hdr->frame_control)) in mt76_tx_check_agg_ssn() 29 tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK; in mt76_tx_check_agg_ssn() 30 txq = sta->txq[tid]; in mt76_tx_check_agg_ssn() 31 mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_tx_check_agg_ssn() 32 if (!mtxq->aggr) in mt76_tx_check_agg_ssn() [all …]
|
/linux/sound/ppc/ |
H A D | pmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/dma-mapping.h> 26 /* fixed frequency table for awacs, screamer, burgundy, DACA (44100 max) */ 30 /* fixed frequency table for tumbler */ 54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 55 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc() 56 if (rec->space == NULL) in snd_pmac_dbdma_alloc() 57 return -ENOMEM; in snd_pmac_dbdma_alloc() 58 rec->size = size; in snd_pmac_dbdma_alloc() 59 memset(rec->space, 0, rsize); in snd_pmac_dbdma_alloc() [all …]
|
/linux/Documentation/driver-api/nfc/ |
H A D | nfc-hci.rst | 2 HCI backend for NFC Core 5 - Author: Eric Lapuyade, Samuel Ortiz 6 - Contact: eric.lapuyade@intel.com, samuel.ortiz@intel.com 9 ------- 12 enables easy writing of HCI-based NFC drivers. The HCI layer runs as an NFC Core 17 --- 23 context blocks waiting for response) or asynchronously (the response is returned 30 - one for executing commands : nfc_hci_msg_tx_work(). Only one command 32 - one for dispatching received events and commands : nfc_hci_msg_rx_work(). 35 -------------------------- [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/intel/ |
H A D | e1000e.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 4 Linux Driver for Intel(R) Ethernet Network Connection 8 Copyright(c) 2008-2018 Intel Corporation. 13 - Identifying Your Adapter 14 - Command Line Parameters 15 - Additional Configurations 16 - Support 21 For information on how to identify your adapter, and for the latest Intel 34 There needs to be a <VAL#> for each network port in the system supported by 36 For example:: [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * igc_check_reset_block - Check if PHY reset is blocked 11 * Read the PHY management control register and check whether a PHY reset 26 * igc_get_phy_id - Retrieve the PHY ID and revision 29 * Reads the PHY registers and stores the PHY ID and possibly the PHY 34 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() local 38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 42 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 48 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igc_get_phy_id() [all …]
|
/linux/drivers/net/ethernet/natsemi/ |
H A D | natsemi.c | 1 /* natsemi.c: A Linux PCI Ethernet driver for the NatSemi DP8381x series. */ 3 Written/copyright 1999-2001 by Donald Becker. 13 system is licensed under the GPL. License for under other terms may be 14 available. Contact the original author for details. 23 [link no longer provides useful info -jgarzik] 51 #include <asm/processor.h> /* Processor type for cache alignment. */ 62 /* Updated to recommendations in pci-skeleton v2.03. */ 64 /* The user-configurable values. 72 static int debug = -1; 76 /* Maximum number of multicast addresses to filter (vs. rx-all-multicast). [all …]
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * ethtool.h: Defines for Linux ethtool. 22 #include <limits.h> /* for INT_MAX */ 26 * have the same layout for 32-bit and 64-bi [all...] |
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_platform.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 Copyright (C) 2007-2011 STMicroelectronics Ltd 26 * dwmac1000_validate_mcast_bins - validates the number of Multicast filter bins 57 * dwmac1000_validate_ucast_entries - validate the Unicast address entries 63 * supports 1..32, 64, or 128 Unicast filter entries for it's Unicast filter 88 * stmmac_axi_setup - parse DT parameters for programming the AXI register 91 * if required, from device-tree the AXI internal register can be tuned 99 np = of_parse_phandle(pdev->dev.of_node, "snps,axi-config", 0); in stmmac_axi_setup() 103 axi = devm_kzalloc(&pdev->dev, sizeof(*axi), GFP_KERNEL); in stmmac_axi_setup() 106 return ERR_PTR(-ENOMEM); in stmmac_axi_setup() [all …]
|
/linux/drivers/net/ethernet/intel/ |
H A D | e100.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 24 * integrate the Intel 82555 PHY. The controllers are used in 26 * LAN-On-Motherboard (LOM), CardBus, MiniPCI, and ICHx 27 * configurations. 8255x supports a 32-bit linear addressing 32 * Memory-mapped mode is used exclusively to access the device's 33 * shared-memory structure, the Control/Status Registers (CSR). All 39 * 8255x is highly MII-compliant and all access to the PHY go 41 * driver leverages the mii.c library shared with other MII-compliant 44 * Big- and Little-Endian byte order as well as 32- and 64-bit [all …]
|
/linux/drivers/pmdomain/amlogic/ |
H A D | meson-secure-pwrc.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 13 #include <dt-bindings/power/meson-a1-power.h> 14 #include <dt-bindings/power/amlogic,c3-pwrc.h> 15 #include <dt-bindings/power/meson-s4-power.h> 16 #include <dt-bindings/power/amlogic,t7-pwrc.h> 17 #include <dt-bindings/power/amlogic,a4-pwrc.h> 18 #include <dt-bindings/power/amlogic,a5-pwrc.h> 19 #include <linux/arm-smccc.h> 57 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off() 58 pwrc_domain->index, 0, 0, 0, 0) < 0) in pwrc_secure_is_off() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2018-2023, Intel Corporation. */ 44 static int debug = -1; 56 * ice_hw_to_dev - Get device pointer from the hardware structure 67 return &pf->pdev->dev; in ice_hw_to_dev() 90 return dev && (dev->netdev_ops == &ice_netdev_ops || in netif_is_ice() 91 dev->netdev_ops == &ice_netdev_safe_mode_ops); in netif_is_ice() 95 * ice_get_tx_pending - returns number of Tx descriptors not processed 102 head = ring->next_to_clean; in ice_get_tx_pending() 103 tail = ring->next_to_use; in ice_get_tx_pending() [all …]
|