/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/ |
H A D | EthernetInterface.interface.yaml | 6 - name: InterfaceName 9 - const 12 - name: Speed 15 - readonly 18 - name: AutoNeg 21 - readonly 25 - name: MTU 31 - name: DomainName 35 - name: DHCPEnabled 36 type: enum[self.DHCPConf] [all …]
|
/openbmc/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 …]
|
/openbmc/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 */
|
/openbmc/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 …]
|
/openbmc/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 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 …]
|
/openbmc/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 …]
|
/openbmc/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 - 395 u32 advertising; global() member [all...] |
/openbmc/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 …]
|
/openbmc/linux/include/linux/ |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 44 * enum ethtool_phys_id_state - indicator state for physical identification 60 ETH_RSS_HASH_TOP_BIT, /* Configurable RSS hash function - Toeplitz */ 61 ETH_RSS_HASH_XOR_BIT, /* Configurable RSS hash function - Xor */ 62 ETH_RSS_HASH_CRC32_BIT, /* Configurable RSS hash function - Crc32 */ 72 * struct kernel_ethtool_ringparam - RX/TX ring configuration 92 * enum ethtool_supported_ring_param - indicator caps for setting ring params 136 * In a simpler world it should be equal to netdev->carrier_down_count 138 * actually take the physical link down, not to mention NC-SI which, 149 * ethtool_rxfh_indir_default - get default value for RX flow hash indirection [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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) 860 __le32 advertising; member
|
H A D | hclge_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 322 { OUTER_DST_MAC, 48, KEY_OPT_MAC, -1, -1 }, 323 { OUTER_SRC_MAC, 48, KEY_OPT_MAC, -1, -1 }, 324 { OUTER_VLAN_TAG_FST, 16, KEY_OPT_LE16, -1, -1 }, 325 { OUTER_VLAN_TAG_SEC, 16, KEY_OPT_LE16, -1, -1 }, 326 { OUTER_ETH_TYPE, 16, KEY_OPT_LE16, -1, -1 }, 327 { OUTER_L2_RSV, 16, KEY_OPT_LE16, -1, -1 }, 328 { OUTER_IP_TOS, 8, KEY_OPT_U8, -1, -1 }, 329 { OUTER_IP_PROTO, 8, KEY_OPT_U8, -1, -1 }, [all …]
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 19 #include "standard-headers/linux/const.h" 20 #include "standard-headers/linux/types.h" 21 #include "standard-headers/linux/if_ether.h" 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. [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/include/linux/ |
H A D | ethtool.h | 22 __u32 advertising; /* Features this interface advertises */ member 43 ep->speed = (__u16)speed; in ethtool_cmd_speed_set() 44 ep->speed_hi = (__u16)(speed >> 16); in ethtool_cmd_speed_set() 49 return (ep->speed_hi << 16) | ep->speed; in ethtool_cmd_speed() 66 * using ops->get_sset_count(). Obtaining 79 /* wake-on-lan settings */ 96 __u32 version; /* driver-specific, indicates different chips/revs */ 158 /* How many usecs to delay in-memory statistics 159 * block updates. Some drivers do not have an in-memory 232 /* If the link is being auto-negotiated (via ethtool_cmd.autoneg [all …]
|
/openbmc/linux/include/drm/ |
H A D | drm_connector.h | 8 * that the name of the copyright holders not be used in advertising or 54 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 58 * enum drm_connector_status - status for a &drm_connector 73 * nothing there. It is driver-dependent whether a connector with this 80 * flicker (like load-detection when the connector is in use), or when a 81 * hardware resource isn't available (like when load-detection needs a 91 * enum drm_connector_registration_state - userspace registration status for 124 * - An unregistered connector may only have its DPMS changed from 125 * On->Off. Once DPMS is changed to Off, it may not be switched back 127 * - Modesets are not allowed on unregistered connectors, unless they [all …]
|