/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_nic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 43 static void aq_nic_update_ndev_stats(struct aq_nic_s *self); 45 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument 54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init() 58 rss_params = &cfg->aq_rss; in aq_nic_rss_init() 60 rss_params->hash_secret_key_size = sizeof(rss_key); in aq_nic_rss_init() 61 memcpy(rss_params->hash_secret_key, rss_key, sizeof(rss_key)); in aq_nic_rss_init() 62 rss_params->indirection_table_size = AQ_CFG_RSS_INDIRECTION_TABLE_MAX; in aq_nic_rss_init() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/i3c/ |
D | mipi-i3c-hci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: "http://devicetree.org/schemas/i3c/mipi-i3c-hci.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 10 - Nicolas Pitre <npitre@baylibre.com> 13 - $ref: /schemas/i3c/i3c.yaml# 22 The hardware is self-advertising for differences in implementation 27 https://www.mipi.org/specifications/i3c-hci 31 const: mipi-i3c-hci 38 - compatible [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 34 return ((np->vsi->alloc_txq + np->vsi->alloc_rxq) * in ice_q_stats_len() 93 * The PF_STATs are appended to the netdev stats only when ethtool -S 158 u32 bitno; /* bit position in pf->flags */ 167 ICE_PRIV_FLAG("link-down-on-close", ICE_FLAG_LINK_DOWN_ON_CLOSE_ENA), 168 ICE_PRIV_FLAG("fw-lldp-agent", ICE_FLAG_FW_LLDP_AGENT), 169 ICE_PRIV_FLAG("vf-true-promisc-support", 171 ICE_PRIV_FLAG("mdd-auto-reset-vf", ICE_FLAG_MDD_AUTO_RESET_VF), 172 ICE_PRIV_FLAG("vf-vlan-pruning", ICE_FLAG_VF_VLAN_PRUNING), 173 ICE_PRIV_FLAG("legacy-rx", ICE_FLAG_LEGACY_RX), [all …]
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 3 * Copyright (c) 2007-2013 Broadcom Corporation 32 /* Note: in the format strings below %s is replaced by the queue-name which is 34 * length does not exceed ETH_GSTRING_LEN - MAX_QUEUE_NAME_LEN + 2 196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type() 225 u32 supported, advertising; in bnx2x_get_vf_link_ksettings() local 228 cmd->link_modes.supported); in bnx2x_get_vf_link_ksettings() 229 ethtool_convert_link_mode_to_legacy_u32(&advertising, in bnx2x_get_vf_link_ksettings() 230 cmd->link_modes.advertising); in bnx2x_get_vf_link_ksettings() 232 if (bp->state == BNX2X_STATE_OPEN) { in bnx2x_get_vf_link_ksettings() 234 &bp->vf_link_vars.link_report_flags)) in bnx2x_get_vf_link_ksettings() [all …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/falcon/ |
D | mdio_10g.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2006-2011 Solarflare Communications Inc. 24 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in ef4_mdio_read() 30 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in ef4_mdio_write() 51 netif_dbg(efx, hw, efx->net_dev, "XGXS lane status: %x\n", in ef4_mdio_phyxgxs_lane_sync() 60 * Return number of spins left (>0) on success, -%ETIMEDOUT on failure. 86 /* Push advertising flags and restart autonegotiation */ 102 mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state); in ef4_mdio_set_flag() 105 /* Liveness self-test for MDIO PHYs */
|
D | efx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2005-2013 Solarflare Communications Inc. 85 * queued onto this work queue. This is not a per-nic work queue, because 108 * This is only used in MSI-X interrupt mode 117 * On Falcon-based NICs, this will: 118 * - Check the on-board hardware monitor; 119 * - Poll the link state and reconfigure the hardware as necessary. 120 * On Siena-based NICs for power systems with EEH support, this will give EEH a 129 * round-trip latency and reducing overhead. [all …]
|
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2014-2015 Hisilicon Limited. 34 *hns_nic_get_link - get current link status 36 *retuen 0 - success , negative --fail 41 u32 link_stat = priv->link; in hns_nic_get_link() 44 h = priv->ae_handle; in hns_nic_get_link() 46 if (net_dev->phydev) { in hns_nic_get_link() 47 if (!genphy_read_status(net_dev->phydev)) in hns_nic_get_link() 48 link_stat = net_dev->phydev->link; in hns_nic_get_link() 53 if (h->dev && h->dev->ops && h->dev->ops->get_status) in hns_nic_get_link() [all …]
|
/Linux-v6.1/drivers/net/ethernet/dec/tulip/ |
D | de2104x.c | 6 Written/copyright 1994-2001 by Donald Becker. [tulip.c] 22 * Jumbo frames / dev->change_mtu 58 static int debug = -1; 62 /* Set the copy breakpoint for the copy-only-tiny-buffer Rx structure. */ 93 #define NEXT_TX(N) (((N) + 1) & (DE_TX_RING_SIZE - 1)) 94 #define NEXT_RX(N) (((N) + 1) & (DE_RX_RING_SIZE - 1)) 96 (((CP)->tx_tail <= (CP)->tx_head) ? \ 97 (CP)->tx_tail + (DE_TX_RING_SIZE - 1) - (CP)->tx_head : \ 98 (CP)->tx_tail - (CP)->tx_head - 1) 117 #define DE_MEDIA_LAST (DE_MAX_MEDIA - 1) [all …]
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2014-2016 Broadcom Corporation 4 * Copyright (c) 2016-2017 Broadcom Limited 49 return bp->msg_enable; in bnxt_get_msglevel() 56 bp->msg_enable = value; in bnxt_set_msglevel() 70 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce() 72 hw_coal = &bp->rx_coal; in bnxt_get_coalesce() 73 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce() 74 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 75 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() [all …]
|
/Linux-v6.1/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005 - 2016 Broadcom 7 * linux-drivers@emulex.com 79 * minimum-sized (64b) frames in the receive path. 179 /* This counter is incremented when the HW detects Q-in-Q style VLAN 223 strscpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); in be_get_drvinfo() 224 if (!memcmp(adapter->fw_ver, adapter->fw_on_flash, FW_VER_LEN)) in be_get_drvinfo() 225 strscpy(drvinfo->fw_version, adapter->fw_ver, in be_get_drvinfo() 226 sizeof(drvinfo->fw_version)); in be_get_drvinfo() 228 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in be_get_drvinfo() [all …]
|
D | be.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2005 - 2016 Broadcom 7 * linux-drivers@emulex.com 31 #include <linux/hwmon-sysfs.h> 60 /* Number of bytes of an RX frame that are copied to skb->data */ 67 #define BE_MAX_MTU (BE_MAX_JUMBO_FRAME_SIZE - \ 71 #define BE_MAX_GSO_SIZE (65535 - 2 * VLAN_HLEN) 105 #define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST) 111 #define CNTL_SERIAL_NUM_WORD_SZ (sizeof(u16)) /* Byte-sz of serial num word */ 136 BUG_ON(limit & (limit - 1)); in MODULO() [all …]
|
/Linux-v6.1/drivers/net/usb/ |
D | aqc111.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * Copyright (C) 2002-2003 TiVo Inc. 6 * Copyright (C) 2017-2018 ASIX 34 netdev_warn(dev->net, in aqc111_read_cmd_nopm() 50 netdev_warn(dev->net, in aqc111_read_cmd() 82 int err = -ENOMEM; in __aqc111_write_cmd() 85 netdev_dbg(dev->net, in __aqc111_write_cmd() 95 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), in __aqc111_write_cmd() 101 netdev_warn(dev->net, in __aqc111_write_cmd() [all …]
|
/Linux-v6.1/include/linux/ |
D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 43 * enum ethtool_phys_id_state - indicator state for physical identification 59 ETH_RSS_HASH_TOP_BIT, /* Configurable RSS hash function - Toeplitz */ 60 ETH_RSS_HASH_XOR_BIT, /* Configurable RSS hash function - Xor */ 61 ETH_RSS_HASH_CRC32_BIT, /* Configurable RSS hash function - Crc32 */ 71 * struct kernel_ethtool_ringparam - RX/TX ring configuration 85 * enum ethtool_supported_ring_param - indicator caps for setting ring params 129 * ethtool_rxfh_indir_default - get default value for RX flow hash indirection 151 __ETHTOOL_DECLARE_LINK_MODE_MASK(advertising); 158 * ethtool_link_ksettings_zero_link_mode - clear link_ksettings link mode mask [all …]
|
/Linux-v6.1/drivers/net/ethernet/atheros/atlx/ |
D | atl2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 2006 - 2007 Atheros Corporation. All rights reserved. 4 * Copyright(c) 2007 - 2008 Chris Snook <csnook@redhat.com> 7 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 12 #include <linux/dma-mapping.h> 47 * atl2_pci_tbl - PCI Device ID Table 59 * atl2_sw_init - Initialize general software structures (struct atl2_adapter) 68 struct atl2_hw *hw = &adapter->hw; in atl2_sw_init() 69 struct pci_dev *pdev = adapter->pdev; in atl2_sw_init() 72 hw->vendor_id = pdev->vendor; in atl2_sw_init() [all …]
|
D | atl1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved. 4 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com> 5 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com> 8 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 21 * http://marc.theaimsgroup.com/?l=linux-netdev&m=116398508500553&w=2 37 #include <linux/dma-mapping.h> 84 #define OPTION_UNSET -1 93 * Valid Range: 10-65535 131 *value = opt->def; in atl1_validate_option() [all …]
|
/Linux-v6.1/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 125 #include "xgbe-common.h" 148 /* Rate-change complete wait/retry count */ 277 ((_x)->extd[XGBE_SFP_EXTD_SFF_8472] && \ 278 !((_x)->extd[XGBE_SFP_EXTD_DIAG] & XGBE_SFP_EXTD_DIAG_ADDR_CHANGE)) 285 #define XGBE_BEL_FUSE_VENDOR "BEL-FUSE " 286 #define XGBE_BEL_FUSE_PARTNO "1GBT-SFP06 " 307 /* Re-driver related definitions */ 376 /* Re-driver support */ 396 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer() 402 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_redrv_write() [all …]
|
/Linux-v6.1/include/uapi/linux/ |
D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26 * have the same layout for 32-bit and 64-bit userland. 38 * struct ethtool_cmd - DEPRECATED, link control and status 43 * interface supports autonegotiation or auto-detection. 44 * Read-only. 45 * @advertising: Bitmask of %ADVERTISED_* flags for the link modes, 48 * auto-detection. 56 * @autoneg: Enable/disable autonegotiation and auto-detection; 60 * Read-only. 62 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. [all …]
|
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 129 struct hclge_waterline self; member 380 /* fec base-r mode per lanes stats */ 798 (HCLGE_SFP_INFO_CMD_NUM - 1) * HCLGE_SFP_INFO_BDX_LEN) 858 __le32 advertising; member
|
D | hclge_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 418 { OUTER_DST_MAC, 48, KEY_OPT_MAC, -1, -1 }, 419 { OUTER_SRC_MAC, 48, KEY_OPT_MAC, -1, -1 }, 420 { OUTER_VLAN_TAG_FST, 16, KEY_OPT_LE16, -1, -1 }, 421 { OUTER_VLAN_TAG_SEC, 16, KEY_OPT_LE16, -1, -1 }, 422 { OUTER_ETH_TYPE, 16, KEY_OPT_LE16, -1, -1 }, 423 { OUTER_L2_RSV, 16, KEY_OPT_LE16, -1, -1 }, 424 { OUTER_IP_TOS, 8, KEY_OPT_U8, -1, -1 }, 425 { OUTER_IP_PROTO, 8, KEY_OPT_U8, -1, -1 }, [all …]
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 64 * how different BPF modes use app-specific counters 191 nsp = nfp_nsp_open(app->cpp); in nfp_net_get_nspinfo() 208 strscpy(drvinfo->driver, dev_driver_string(&pdev->dev), in nfp_get_drvinfo() 209 sizeof(drvinfo->driver)); in nfp_get_drvinfo() 211 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in nfp_get_drvinfo() 223 nn->fw_ver.extend, nn->fw_ver.class, in nfp_net_get_drvinfo() 224 nn->fw_ver.major, nn->fw_ver.minor); in nfp_net_get_drvinfo() 225 strscpy(drvinfo->bus_info, pci_name(nn->pdev), in nfp_net_get_drvinfo() [all …]
|
/Linux-v6.1/drivers/net/ethernet/broadcom/ |
D | tg3.c | 7 * Copyright (C) 2005-2016 Broadcom Corporation. 8 * Copyright (C) 2016-2017 Broadcom Limited. 14 * Copyright (C) 2000-2016 Broadcom Corporation. 15 * Copyright (C) 2016-2017 Broadcom Ltd. 52 #include <linux/dma-mapping.h> 56 #include <linux/hwmon-sysfs.h> 92 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 94 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 96 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 122 * and dev->tx_timeout() should be called to fix the problem [all …]
|
D | bcm63xx_enet.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/dma-mapping.h> 38 return bcm_readl(priv->base + off); in enet_readl() 44 bcm_writel(val, priv->base + off); in enet_writel() 52 return bcm_readl(priv->base + off); in enetsw_readl() 58 bcm_writel(val, priv->base + off); in enetsw_writel() 63 return bcm_readw(priv->base + off); in enetsw_readw() 69 bcm_writew(val, priv->base + off); in enetsw_writew() 74 return bcm_readb(priv->base + off); in enetsw_readb() 80 bcm_writeb(val, priv->base + off); in enetsw_writeb() [all …]
|
/Linux-v6.1/include/drm/ |
D | drm_connector.h | 8 * that the name of the copyright holders not be used in advertising or 53 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 57 * enum drm_connector_status - status for a &drm_connector 72 * nothing there. It is driver-dependent whether a connector with this 79 * flicker (like load-detection when the connector is in use), or when a 80 * hardware resource isn't available (like when load-detection needs a 90 * enum drm_connector_registration_state - userspace registration status for 123 * - An unregistered connector may only have its DPMS changed from 124 * On->Off. Once DPMS is changed to Off, it may not be switched back 126 * - Modesets are not allowed on unregistered connectors, unless they [all …]
|
/Linux-v6.1/drivers/net/ethernet/sun/ |
D | sunhme.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * 2000/11/11 Willy Tarreau <willy AT meta-x.org> 11 * - port to non-sparc architectures. Tested only on x86 and 13 * - ability to specify the MAC address at module load time by passing this 38 #include <linux/dma-mapping.h> 114 tlp->tstamp = (unsigned int)jiffies; 115 tlp->tx_new = hp->tx_new; 116 tlp->tx_old = hp->tx_old; 117 tlp->action = a; 118 tlp->status = s; [all …]
|
/Linux-v6.1/drivers/net/phy/ |
D | marvell10g.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * via observation and experimentation for a setup using single-lane Serdes: 12 * SGMII PHYXS -- BASE-T PCS -- 10G PMA -- AN -- Copper (for <= 1G) 13 * 10GBASE-KR PHYXS -- BASE-T PCS -- 10G PMA -- AN -- Copper (for 10G) 14 * 10GBASE-KR PHYXS -- BASE-R PCS -- Fiber 18 * XAUI PHYXS -- <appropriate PCS as above> 104 /* These registers appear at 0x800X and 0xa00X - the 0xa00X control 108 MV_AN_CTRL1000 = 0x8000, /* 1000base-T control register */ 109 MV_AN_STAT1000 = 0x8001, /* 1000base-T status register */ 171 return phydev->drv->driver_data; in to_mv3310_chip() [all …]
|