/Linux-v6.1/drivers/char/tpm/ |
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-v6.1/drivers/phy/motorola/ |
D | phy-mapphone-mdm6600.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Motorola Mapphone MDM6600 modem GPIO controlled USB PHY driver 18 #include <linux/phy/phy.h> 21 #define PHY_MDM6600_PHY_DELAY_MS 4000 /* PHY enable 2.2s to 3.5s */ 22 #define PHY_MDM6600_ENABLED_DELAY_MS 8000 /* 8s more total for MDM6600 */ 28 PHY_MDM6600_ENABLE, /* USB PHY enable */ 35 PHY_MDM6600_MODE0, /* out USB mode0 and OOB wake */ 36 PHY_MDM6600_MODE1, /* out USB mode1, in OOB wake */ 60 PHY_MDM6600_CMD_DATA_ONLY_BYPASS, /* Reroute USB to CPCAP PHY */ 61 PHY_MDM6600_CMD_FULL_BYPASS, /* Reroute USB to CPCAP PHY */ [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/usb/ |
D | dwc2.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: usb-drd.yaml# 14 - $ref: usb-hcd.yaml# 19 - const: brcm,bcm2835-usb 20 - const: hisilicon,hi6220-usb 21 - const: ingenic,jz4775-otg 22 - const: ingenic,jz4780-otg [all …]
|
/Linux-v6.1/drivers/usb/dwc2/ |
D | platform.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * platform.c - DesignWare HS OTG Controller platform driver 13 #include <linux/dma-mapping.h> 17 #include <linux/phy/phy.h> 18 #include <linux/platform_data/s3c-hsotg.h> 39 * ------------------------------ 41 * HST DEV any : --- 44 * DEV HST any : --- 56 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 57 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() [all …]
|
D | core.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * core.h - DesignWare HS OTG Controller common declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 12 #include <linux/phy/phy.h> 16 #include <linux/usb/phy.h> 20 * Suggested defines for tracers: 21 * - no_printk: Disable tracing 22 * - pr_info: Print this info to the console 23 * - trace_printk: Print this info to trace buffer (good for verbose logging) 32 dev_name(hsotg->dev), ##__VA_ARGS__) [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/net/ |
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-v6.1/Documentation/networking/dsa/ |
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-v6.1/arch/arm/boot/dts/ |
D | rk3288-veyron.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <dt-bindings/clock/rockchip,rk808.h> 9 #include <dt-bindings/input/input.h> 14 stdout-path = "serial2:115200n8"; 27 power_button: power-button { 28 compatible = "gpio-keys"; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&pwr_key_l>; 32 key-power { 36 debounce-interval = <100>; [all …]
|
/Linux-v6.1/drivers/net/phy/ |
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> 40 * struct phylink - internal data type for phylink 56 u8 link_port; /* The current non-phy ethtool port */ 87 if ((pl)->config->type == PHYLINK_NETDEV) \ 88 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \ 89 else if ((pl)->config->type == PHYLINK_DEV) \ 90 dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \ [all …]
|
/Linux-v6.1/drivers/usb/phy/ |
D | phy-tegra-usb.c | 1 // SPDX-License-Identifier: GPL-2.0 159 /* For Tegra30 and above only, the address is different in Tegra20 */ 221 static void set_pts(struct tegra_usb_phy *phy, u8 pts_val) in set_pts() argument 223 void __iomem *base = phy->regs; in set_pts() 226 if (phy->soc_config->has_hostpc) { in set_pts() 240 static void set_phcd(struct tegra_usb_phy *phy, bool enable) in set_phcd() argument 242 void __iomem *base = phy->regs; in set_phcd() 245 if (phy->soc_config->has_hostpc) { in set_phcd() 262 static int utmip_pad_open(struct tegra_usb_phy *phy) in utmip_pad_open() argument 266 ret = clk_prepare_enable(phy->pad_clk); in utmip_pad_open() [all …]
|
D | phy-gpio-vbus-usb.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * gpio-vbus.c - simple GPIO VBUS sensing driver for B peripheral devices 24 * A simple GPIO VBUS sensing driver for B peripheral only devices 33 struct usb_phy phy; member 46 * stabilize, so the peripheral controller driver may need to cope with 60 struct regulator *vbus_draw = gpio_vbus->vbus_draw; in set_vbus_draw() 67 enabled = gpio_vbus->vbus_draw_enabled; in set_vbus_draw() 74 gpio_vbus->vbus_draw_enabled = 1; in set_vbus_draw() 81 gpio_vbus->vbus_draw_enabled = 0; in set_vbus_draw() 84 gpio_vbus->mA = mA; in set_vbus_draw() [all …]
|
/Linux-v6.1/drivers/usb/musb/ |
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 24 #include <linux/dma-mapping.h> 32 struct platform_device *phy; member 41 * Checks the revision. We need to use the DMA register as 3.0 does not 42 * have correct versions for TUSB_PRCM_REV or TUSB_INT_CTRL_REV. 46 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision() 63 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision() 66 rev = musb->tusb_revision; in tusb_print_revision() [all …]
|
/Linux-v6.1/drivers/net/ethernet/sis/ |
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-v6.1/drivers/net/wireless/mediatek/mt76/ |
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-v6.1/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mac.c | 1 // SPDX-License-Identifier: ISC 11 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) 14 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 28 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 39 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 58 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7915_rx_get_wcid() 61 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid() 65 if (!wcid->sta) in mt7915_rx_get_wcid() 69 if (!sta->vif) in mt7915_rx_get_wcid() 72 return &sta->vif->sta.wcid; in mt7915_rx_get_wcid() [all …]
|
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mac.c | 1 // SPDX-License-Identifier: ISC 18 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7921_rx_get_wcid() 21 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_rx_get_wcid() 25 if (!wcid->sta) in mt7921_rx_get_wcid() 29 if (!sta->vif) in mt7921_rx_get_wcid() 32 return &sta->vif->sta.wcid; in mt7921_rx_get_wcid() 64 spin_lock_bh(&dev->sta_poll_lock); in mt7921_mac_sta_poll() 65 list_splice_init(&dev->sta_poll_list, &sta_poll_list); in mt7921_mac_sta_poll() 66 spin_unlock_bh(&dev->sta_poll_lock); in mt7921_mac_sta_poll() 74 spin_lock_bh(&dev->sta_poll_lock); in mt7921_mac_sta_poll() [all …]
|
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dwmac-stm32.c - DWMAC Specific Glue layer for STM32 MCU 6 * Author: Alexandre Torgue <alexandre.torgue@st.com> for STMicroelectronics. 16 #include <linux/phy.h> 32 /* CLOCK feed to PHY*/ 37 /* Ethernet PHY interface selection in register SYSCFG Configuration 38 *------------------------------------------ 40 *------------------------------------------ 42 *------------------------------------------ 44 *------------------------------------------ [all …]
|
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-v6.1/drivers/net/ethernet/intel/e1000/ |
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-v6.1/include/net/ |
D | mac802154.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * IEEE802.15.4-2003 specification 5 * Copyright (C) 2007-2012 Siemens AG 18 * enum ieee802154_hw_addr_filt_flags - hardware address filtering flags 42 * struct ieee802154_hw_addr_filt - hardware address filtering settings 61 * struct ieee802154_hw - ieee802154 hardware 63 * @extra_tx_headroom: headroom to reserve in each transmit skb for use by the 64 * driver (e.g. for transmit headers.) 70 * @priv: pointer to private area that was allocated for driver use along with 73 * @phy: This points to the &struct wpan_phy allocated for this 802.15.4 PHY. [all …]
|
/Linux-v6.1/drivers/net/ethernet/micrel/ |
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-v6.1/drivers/net/wireless/ath/ath5k/ |
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-v6.1/drivers/net/ethernet/davicom/ |
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-v6.1/sound/ppc/ |
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-v6.1/Documentation/driver-api/nfc/ |
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 …]
|