| /linux/drivers/net/ethernet/aquantia/atlantic/ | 
| H A 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/Documentation/devicetree/bindings/i3c/ | 
| H A 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/drivers/net/ethernet/broadcom/bnx2x/ | 
| H A 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 …] 
 | 
| H A D | bnx2x_main.c | 3  * Copyright (c) 2007-2013 Broadcom Corporation 36 #include <linux/dma-mapping.h> 83 #define FW_FILE_NAME_E1		"bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw" 84 #define FW_FILE_NAME_E1H	"bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw" 85 #define FW_FILE_NAME_E2		"bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw" 86 #define FW_FILE_NAME_E1_V15	"bnx2x/bnx2x-e1-" FW_FILE_VERSION_V15 ".fw" 87 #define FW_FILE_NAME_E1H_V15	"bnx2x/bnx2x-e1h-" FW_FILE_VERSION_V15 ".fw" 88 #define FW_FILE_NAME_E2_V15	"bnx2x/bnx2x-e2-" FW_FILE_VERSION_V15 ".fw" 117 MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X " 124 static int mrrs = -1; [all …] 
 | 
| /linux/drivers/net/ethernet/sfc/falcon/ | 
| H A 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 */
  | 
| H A 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. 84  * queued onto this work queue. This is not a per-nic work queue, because 107  * This is only used in MSI-X interrupt mode 116  * On Falcon-based NICs, this will: 117  * - Check the on-board hardware monitor; 118  * - Poll the link state and reconfigure the hardware as necessary. 119  * On Siena-based NICs for power systems with EEH support, this will give EEH a 128  * round-trip latency and reducing overhead. [all …] 
 | 
| /linux/drivers/net/ethernet/hisilicon/hns/ | 
| H A 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/drivers/net/ethernet/dec/tulip/ | 
| H A 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/drivers/net/ethernet/emulex/benet/ | 
| H A 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 …] 
 | 
| H A 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/drivers/net/usb/ | 
| H A 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() 38 		ret = ret < 0 ? ret : -ENODATA;  in aqc111_read_cmd_nopm() 53 		netdev_warn(dev->net,  in aqc111_read_cmd() 57 		ret = ret < 0 ? ret : -ENODATA;  in aqc111_read_cmd() 88 	int err = -ENOMEM;  in __aqc111_write_cmd() 91 	netdev_dbg(dev->net,  in __aqc111_write_cmd() [all …] 
 | 
| /linux/drivers/net/ethernet/atheros/atlx/ | 
| H A 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 …] 
 | 
| H A 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/include/linux/ | 
| H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 50  * enum ethtool_phys_id_state - indicator state for physical identification 66 	ETH_RSS_HASH_TOP_BIT, /* Configurable RSS hash function - Toeplitz */ 67 	ETH_RSS_HASH_XOR_BIT, /* Configurable RSS hash function - Xor */ 68 	ETH_RSS_HASH_CRC32_BIT, /* Configurable RSS hash function - Crc32 */ 78  * struct kernel_ethtool_ringparam - RX/TX ring configuration 103  * enum ethtool_supported_ring_param - indicator caps for setting ring params 110  * @ETHTOOL_RING_USE_HDS_THRS: capture for setting header-data-split-thresh 151 	 * In a simpler world it should be equal to netdev->carrier_down_count 153 	 * actually take the physical link down, not to mention NC-SI which, [all …] 
 | 
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ | 
| H A 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) 861 	__le32 advertising;  member
  | 
| H A D | hclge_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 326 	{ OUTER_DST_MAC, 48, KEY_OPT_MAC, -1, -1 }, 327 	{ OUTER_SRC_MAC, 48, KEY_OPT_MAC, -1, -1 }, 328 	{ OUTER_VLAN_TAG_FST, 16, KEY_OPT_LE16, -1, -1 }, 329 	{ OUTER_VLAN_TAG_SEC, 16, KEY_OPT_LE16, -1, -1 }, 330 	{ OUTER_ETH_TYPE, 16, KEY_OPT_LE16, -1, -1 }, 331 	{ OUTER_L2_RSV, 16, KEY_OPT_LE16, -1, -1 }, 332 	{ OUTER_IP_TOS, 8, KEY_OPT_U8, -1, -1 }, 333 	{ OUTER_IP_PROTO, 8, KEY_OPT_U8, -1, -1 }, [all …] 
 | 
| /linux/include/uapi/linux/ | 
| H A 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-onl 108 __u32 advertising; global()  member  [all...] | 
| H A D | nl80211.h | 6  * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 13  * Copyright 2015-2017	Intel Deutschland GmbH 14  * Copyright (C) 2018-2025 Intel Corporation 32  * be careful not to break things - i.e. don't move anything around or so 74  *  - a setup station entry is added, not yet authorized, without any rate 76  *  - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 79  *  - %NL80211_TDLS_ENABLE_LINK is then used 80  *  - after this, the only valid operation is to remove it by tearing down 95  * Frame registration is done on a per-interface basis and registrations 137  * software, like the AP-VLA [all...] | 
| /linux/drivers/net/ethernet/broadcom/ | 
| H A 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> 94 	_tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 96 	_tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 98 	_tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 124  * and dev->tx_timeout() should be called to fix the problem [all …] 
 | 
| H A 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/drivers/net/ethernet/sun/ | 
| H A D | cassini.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13  *      load balancing (non-VLAN mode) 16  *  page-based RX descriptor engine with separate completion rings 22  *  -- driver allocates pages at a time and keeps reference counts 24  *  -- the upper protocol layers assume that the header is in the skb 27  *  -- driver appends the rest of the data pages as frags to skbuffs 29  *  -- on page reclamation, the driver swaps the page with a spare page. 37  * TX has 4 queues. currently these queues are used in a round-robin 41  * alternatively, the queues can be configured via use of the all-purpose 49  * encrypted and non-encrypted packets, but we use them for buffering [all …] 
 | 
| H A 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 20 #include <linux/dma-mapping.h> 111 	tlp->tstamp = (unsigned int)jiffies; 112 	tlp->tx_new = hp->tx_new; 113 	tlp->tx_old = hp->tx_old; 114 	tlp->action = a; 115 	tlp->status = s; [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. */ 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 45  *	archs are supported.  Weak-ordered memory and non-cache-coherent [all …] 
 | 
| /linux/drivers/net/ethernet/qlogic/qede/ | 
| H A D | qede_ethtool.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3  * Copyright (c) 2015-2017  QLogic Corporation 4  * Copyright (c) 2019-2020 Marvell International Ltd. 176 	"Coupled-Function", 276 		if (txq->is_xdp)  in qede_get_strings_stats_txq() 281 			ethtool_sprintf(buf, "%d_%d: %s", txq->index, txq->cos,  in qede_get_strings_stats_txq() 291 		ethtool_sprintf(buf, "%d: %s", rxq->rxq_id,  in qede_get_strings_stats_rxq() 309 		fp = &edev->fp_array[i];  in qede_get_strings_stats() 311 		if (fp->type & QEDE_FASTPATH_RX)  in qede_get_strings_stats() 312 			qede_get_strings_stats_rxq(edev, fp->rxq, &buf);  in qede_get_strings_stats() [all …] 
 | 
| /linux/drivers/gpu/drm/ | 
| H A D | drm_framebuffer.c | 8  * that the name of the copyright holders not be used in advertising or 52  * (or a list of memory handles for multi-planar formats) through the 60  * using drm_framebuffer_init() - after calling that function userspace can use 62  * drm_helper_mode_fill_fb_struct() can be used to pre-fill the required 67  * them again with drm_framebuffer_put(). For driver-private framebuffers for 72  * recommended, and it's better to have a normal free-standing &struct 82 	fb_width = fb->width << 16;  in drm_framebuffer_check_src_coords() 83 	fb_height = fb->height << 16;  in drm_framebuffer_check_src_coords() 87 	    src_x > fb_width - src_w ||  in drm_framebuffer_check_src_coords() 89 	    src_y > fb_height - src_h) {  in drm_framebuffer_check_src_coords() [all …] 
 |