/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 */
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 35 return ((np->vsi->alloc_txq + np->vsi->alloc_rxq) * in ice_q_stats_len() 94 * The PF_STATs are appended to the netdev stats only when ethtool -S 328 u32 bitno; /* bit position in pf->flags */ 337 ICE_PRIV_FLAG("link-down-on-close", ICE_FLAG_LINK_DOWN_ON_CLOSE_ENA), 338 ICE_PRIV_FLAG("fw-lldp-agent", ICE_FLAG_FW_LLDP_AGENT), 339 ICE_PRIV_FLAG("vf-true-promisc-support", 341 ICE_PRIV_FLAG("mdd-auto-reset-vf", ICE_FLAG_MDD_AUTO_RESET_VF), 342 ICE_PRIV_FLAG("vf-vlan-pruning", ICE_FLAG_VF_VLAN_PRUNING), 343 ICE_PRIV_FLAG("legacy-rx", ICE_FLAG_LEGACY_RX), [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/ethernet/broadcom/bnxt/ |
H A 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 51 return bp->msg_enable; in bnxt_get_msglevel() 58 bp->msg_enable = value; in bnxt_set_msglevel() 72 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce() 74 hw_coal = &bp->rx_coal; in bnxt_get_coalesce() 75 mult = hw_coal->bufs_per_record; in bnxt_get_coalesce() 76 coal->rx_coalesce_usecs = hw_coal->coal_ticks; in bnxt_get_coalesce() 77 coal->rx_max_coalesced_frames = hw_coal->coal_bufs / mult; in bnxt_get_coalesce() [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() 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/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/drivers/net/ethernet/netronome/nfp/ |
H A 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/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-phy-v2.c | 125 #include "xgbe-common.h" 149 /* Rate-change complete wait/retry count */ 276 ((_x)->extd[XGBE_SFP_EXTD_SFF_8472] && \ 277 !((_x)->extd[XGBE_SFP_EXTD_DIAG] & XGBE_SFP_EXTD_DIAG_ADDR_CHANGE)) 284 #define XGBE_BEL_FUSE_VENDOR "BEL-FUSE " 285 #define XGBE_BEL_FUSE_PARTNO "1GBT-SFP06 " 306 /* Re-driver related definitions */ 375 /* Re-driver support */ 399 return pdata->i2c_if.i2c_xfer(pdata, i2c_op); in xgbe_phy_i2c_xfer() 405 struct xgbe_phy_data *phy_data = pdata->phy_data; in xgbe_phy_redrv_write() [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-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/drivers/net/phy/qcom/ |
H A D | qca807x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 * - With both FULL amplitude and FULL bias current: bias current 42 * - With only DSP amplitude: bias current is set to half and 44 * - With DSP bias current (included both DSP amplitude and 138 switch (phydev->port) { in qca807x_led_parse_netdev() 170 return -EOPNOTSUPP; in qca807x_led_parse_netdev() 174 return -EOPNOTSUPP; in qca807x_led_parse_netdev() 184 return -EINVAL; in qca807x_led_hw_control_enable() 196 return -EINVAL; in qca807x_led_hw_is_supported() 208 return -EINVAL; in qca807x_led_hw_control_set() [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 …]
|
/linux/include/drm/ |
H A D | drm_connector.h | 8 * that the name of the copyright holders not be used in advertising or 58 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 62 * enum drm_connector_status - status for a &drm_connector 77 * nothing there. It is driver-dependent whether a connector with this 84 * flicker (like load-detection when the connector is in use), or when a 85 * hardware resource isn't available (like when load-detection needs a 95 * enum drm_connector_registration_state - userspace registration status for 128 * - An unregistered connector may only have its DPMS changed from 129 * On->Off. Once DPMS is changed to Off, it may not be switched back 131 * - Modesets are not allowed on unregistered connectors, unless they [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/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 …]
|
/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 …]
|