/kernel/linux/linux-5.10/drivers/net/ethernet/toshiba/ |
D | spider_net_ethtool.c | 60 struct ethtool_drvinfo *drvinfo) in spider_net_ethtool_get_drvinfo() argument 66 strlcpy(drvinfo->driver, spider_net_driver_name, in spider_net_ethtool_get_drvinfo() 67 sizeof(drvinfo->driver)); in spider_net_ethtool_get_drvinfo() 68 strlcpy(drvinfo->version, VERSION, sizeof(drvinfo->version)); in spider_net_ethtool_get_drvinfo() 69 strlcpy(drvinfo->fw_version, "no information", in spider_net_ethtool_get_drvinfo() 70 sizeof(drvinfo->fw_version)); in spider_net_ethtool_get_drvinfo() 71 strlcpy(drvinfo->bus_info, pci_name(card->pdev), in spider_net_ethtool_get_drvinfo() 72 sizeof(drvinfo->bus_info)); in spider_net_ethtool_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw-ethtool.c | 33 struct ethtool_drvinfo *drvinfo) in dpaa2_switch_get_drvinfo() argument 39 strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); in dpaa2_switch_get_drvinfo() 45 strlcpy(drvinfo->fw_version, "N/A", in dpaa2_switch_get_drvinfo() 46 sizeof(drvinfo->fw_version)); in dpaa2_switch_get_drvinfo() 48 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in dpaa2_switch_get_drvinfo() 51 strlcpy(drvinfo->bus_info, dev_name(netdev->dev.parent->parent), in dpaa2_switch_get_drvinfo() 52 sizeof(drvinfo->bus_info)); in dpaa2_switch_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-ethtool.c | 99 struct ethtool_drvinfo *drvinfo) in xlgmac_ethtool_get_drvinfo() argument 105 strlcpy(drvinfo->driver, pdata->drv_name, sizeof(drvinfo->driver)); in xlgmac_ethtool_get_drvinfo() 106 strlcpy(drvinfo->version, pdata->drv_ver, sizeof(drvinfo->version)); in xlgmac_ethtool_get_drvinfo() 107 strlcpy(drvinfo->bus_info, dev_name(pdata->dev), in xlgmac_ethtool_get_drvinfo() 108 sizeof(drvinfo->bus_info)); in xlgmac_ethtool_get_drvinfo() 119 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in xlgmac_ethtool_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ethtool.c | 62 struct ethtool_drvinfo *drvinfo) in ipoib_get_drvinfo() argument 66 ib_get_device_fw_str(priv->ca, drvinfo->fw_version); in ipoib_get_drvinfo() 68 strlcpy(drvinfo->bus_info, dev_name(priv->ca->dev.parent), in ipoib_get_drvinfo() 69 sizeof(drvinfo->bus_info)); in ipoib_get_drvinfo() 71 strlcpy(drvinfo->driver, "ib_ipoib", sizeof(drvinfo->driver)); in ipoib_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/fjes/ |
D | fjes_ethtool.c | 147 struct ethtool_drvinfo *drvinfo) in fjes_get_drvinfo() argument 154 strlcpy(drvinfo->driver, fjes_driver_name, sizeof(drvinfo->driver)); in fjes_get_drvinfo() 155 strlcpy(drvinfo->version, fjes_driver_version, in fjes_get_drvinfo() 156 sizeof(drvinfo->version)); in fjes_get_drvinfo() 158 strlcpy(drvinfo->fw_version, "none", sizeof(drvinfo->fw_version)); in fjes_get_drvinfo() 159 snprintf(drvinfo->bus_info, sizeof(drvinfo->bus_info), in fjes_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_ethtool.c | 125 struct ethtool_drvinfo *drvinfo) in vnic_get_drvinfo() argument 127 strlcpy(drvinfo->driver, opa_vnic_driver_name, sizeof(drvinfo->driver)); in vnic_get_drvinfo() 128 strlcpy(drvinfo->bus_info, dev_name(netdev->dev.parent), in vnic_get_drvinfo() 129 sizeof(drvinfo->bus_info)); in vnic_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ethtool.c | 37 struct ethtool_drvinfo *drvinfo) in mlx5i_get_drvinfo() argument 41 mlx5e_ethtool_get_drvinfo(priv, drvinfo); in mlx5i_get_drvinfo() 42 strlcpy(drvinfo->driver, DRIVER_NAME "[ib_ipoib]", in mlx5i_get_drvinfo() 43 sizeof(drvinfo->driver)); in mlx5i_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_ethtool.c | 305 struct ethtool_drvinfo *drvinfo) in atl1e_get_drvinfo() argument 309 strlcpy(drvinfo->driver, atl1e_driver_name, sizeof(drvinfo->driver)); in atl1e_get_drvinfo() 310 strlcpy(drvinfo->fw_version, "L1e", sizeof(drvinfo->fw_version)); in atl1e_get_drvinfo() 311 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), in atl1e_get_drvinfo() 312 sizeof(drvinfo->bus_info)); in atl1e_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | minimal.c | 79 struct ethtool_drvinfo *drvinfo) in mlxsw_m_module_get_drvinfo() argument 84 strlcpy(drvinfo->driver, mlxsw_m->bus_info->device_kind, in mlxsw_m_module_get_drvinfo() 85 sizeof(drvinfo->driver)); in mlxsw_m_module_get_drvinfo() 86 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in mlxsw_m_module_get_drvinfo() 91 strlcpy(drvinfo->bus_info, mlxsw_m->bus_info->device_name, in mlxsw_m_module_get_drvinfo() 92 sizeof(drvinfo->bus_info)); in mlxsw_m_module_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_ethtool.c | 166 struct ethtool_drvinfo *drvinfo) in pch_gbe_get_drvinfo() argument 170 strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); in pch_gbe_get_drvinfo() 171 strlcpy(drvinfo->version, pch_driver_version, sizeof(drvinfo->version)); in pch_gbe_get_drvinfo() 172 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), in pch_gbe_get_drvinfo() 173 sizeof(drvinfo->bus_info)); in pch_gbe_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ethtool.c | 217 struct ethtool_drvinfo *drvinfo) in aq_ethtool_get_drvinfo() argument 227 strlcat(drvinfo->driver, AQ_CFG_DRV_NAME, sizeof(drvinfo->driver)); in aq_ethtool_get_drvinfo() 229 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in aq_ethtool_get_drvinfo() 233 strlcpy(drvinfo->bus_info, pdev ? pci_name(pdev) : "", in aq_ethtool_get_drvinfo() 234 sizeof(drvinfo->bus_info)); in aq_ethtool_get_drvinfo() 235 drvinfo->n_stats = aq_ethtool_n_stats(ndev); in aq_ethtool_get_drvinfo() 236 drvinfo->testinfo_len = 0; in aq_ethtool_get_drvinfo() 237 drvinfo->regdump_len = regs_count; in aq_ethtool_get_drvinfo() 238 drvinfo->eedump_len = 0; in aq_ethtool_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/ |
D | ucc_geth_ethtool.c | 334 struct ethtool_drvinfo *drvinfo) in uec_get_drvinfo() argument 336 strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); in uec_get_drvinfo() 337 strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info)); in uec_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_ethtool.c | 219 struct ethtool_drvinfo *drvinfo) in atl1c_get_drvinfo() argument 223 strlcpy(drvinfo->driver, atl1c_driver_name, sizeof(drvinfo->driver)); in atl1c_get_drvinfo() 224 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), in atl1c_get_drvinfo() 225 sizeof(drvinfo->bus_info)); in atl1c_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 644 struct ethtool_drvinfo *drvinfo) in hns_nic_get_drvinfo() argument 648 strncpy(drvinfo->version, HNAE_DRIVER_VERSION, in hns_nic_get_drvinfo() 649 sizeof(drvinfo->version)); in hns_nic_get_drvinfo() 650 drvinfo->version[sizeof(drvinfo->version) - 1] = '\0'; in hns_nic_get_drvinfo() 652 strncpy(drvinfo->driver, HNAE_DRIVER_NAME, sizeof(drvinfo->driver)); in hns_nic_get_drvinfo() 653 drvinfo->driver[sizeof(drvinfo->driver) - 1] = '\0'; in hns_nic_get_drvinfo() 655 strncpy(drvinfo->bus_info, priv->dev->bus->name, in hns_nic_get_drvinfo() 656 sizeof(drvinfo->bus_info)); in hns_nic_get_drvinfo() 657 drvinfo->bus_info[ETHTOOL_BUSINFO_LEN - 1] = '\0'; in hns_nic_get_drvinfo() 659 strncpy(drvinfo->fw_version, "N/A", ETHTOOL_FWVERS_LEN); in hns_nic_get_drvinfo() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/qlge/ |
D | qlge_ethtool.c | 415 struct ethtool_drvinfo *drvinfo) in ql_get_drvinfo() argument 419 strlcpy(drvinfo->driver, qlge_driver_name, sizeof(drvinfo->driver)); in ql_get_drvinfo() 420 strlcpy(drvinfo->version, qlge_driver_version, in ql_get_drvinfo() 421 sizeof(drvinfo->version)); in ql_get_drvinfo() 422 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in ql_get_drvinfo() 427 strlcpy(drvinfo->bus_info, pci_name(qdev->pdev), in ql_get_drvinfo() 428 sizeof(drvinfo->bus_info)); in ql_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/ |
D | bnad_debugfs.c | 139 struct bnad_drvinfo *drvinfo = (struct bnad_drvinfo *) buffer; in bnad_get_debug_drvinfo() local 146 bfa_nw_ioc_get_attr(&bnad->bna.ioceth.ioc, &drvinfo->ioc_attr); in bnad_get_debug_drvinfo() 154 ret = bfa_nw_cee_get_attr(&bnad->bna.cee, &drvinfo->cee_attr, in bnad_get_debug_drvinfo() 162 drvinfo->cee_status = fcomp.comp_status; in bnad_get_debug_drvinfo() 168 ret = bfa_nw_flash_get_attr(&bnad->bna.flash, &drvinfo->flash_attr, in bnad_get_debug_drvinfo() 176 drvinfo->flash_status = fcomp.comp_status; in bnad_get_debug_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 135 struct ethtool_drvinfo *drvinfo) in enic_get_drvinfo() argument 149 strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); in enic_get_drvinfo() 150 strlcpy(drvinfo->fw_version, fw_info->fw_version, in enic_get_drvinfo() 151 sizeof(drvinfo->fw_version)); in enic_get_drvinfo() 152 strlcpy(drvinfo->bus_info, pci_name(enic->pdev), in enic_get_drvinfo() 153 sizeof(drvinfo->bus_info)); in enic_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 168 struct ethtool_drvinfo *drvinfo) in igbvf_get_drvinfo() argument 172 strlcpy(drvinfo->driver, igbvf_driver_name, sizeof(drvinfo->driver)); in igbvf_get_drvinfo() 173 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), in igbvf_get_drvinfo() 174 sizeof(drvinfo->bus_info)); in igbvf_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 201 const char *vnic_version, struct ethtool_drvinfo *drvinfo) in nfp_get_drvinfo() argument 205 strlcpy(drvinfo->driver, pdev->driver->name, sizeof(drvinfo->driver)); in nfp_get_drvinfo() 207 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in nfp_get_drvinfo() 213 nfp_net_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) in nfp_net_get_drvinfo() argument 221 strlcpy(drvinfo->bus_info, pci_name(nn->pdev), in nfp_net_get_drvinfo() 222 sizeof(drvinfo->bus_info)); in nfp_net_get_drvinfo() 224 nfp_get_drvinfo(nn->app, nn->pdev, vnic_version, drvinfo); in nfp_net_get_drvinfo() 228 nfp_app_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) in nfp_app_get_drvinfo() argument 232 strlcpy(drvinfo->bus_info, pci_name(app->pdev), in nfp_app_get_drvinfo() 233 sizeof(drvinfo->bus_info)); in nfp_app_get_drvinfo() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 61 netxen_nic_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo) in netxen_nic_get_drvinfo() argument 68 strlcpy(drvinfo->driver, netxen_nic_driver_name, in netxen_nic_get_drvinfo() 69 sizeof(drvinfo->driver)); in netxen_nic_get_drvinfo() 70 strlcpy(drvinfo->version, NETXEN_NIC_LINUX_VERSIONID, in netxen_nic_get_drvinfo() 71 sizeof(drvinfo->version)); in netxen_nic_get_drvinfo() 75 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in netxen_nic_get_drvinfo() 78 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), in netxen_nic_get_drvinfo() 79 sizeof(drvinfo->bus_info)); in netxen_nic_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_ethtool.c | 298 struct ethtool_drvinfo *drvinfo) in prestera_ethtool_get_drvinfo() argument 303 strlcpy(drvinfo->driver, driver_kind, sizeof(drvinfo->driver)); in prestera_ethtool_get_drvinfo() 304 strlcpy(drvinfo->bus_info, dev_name(prestera_dev(sw)), in prestera_ethtool_get_drvinfo() 305 sizeof(drvinfo->bus_info)); in prestera_ethtool_get_drvinfo() 306 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in prestera_ethtool_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rep.c | 60 struct ethtool_drvinfo *drvinfo) in mlx5e_rep_get_drvinfo() argument 65 strlcpy(drvinfo->driver, mlx5e_rep_driver_name, in mlx5e_rep_get_drvinfo() 66 sizeof(drvinfo->driver)); in mlx5e_rep_get_drvinfo() 67 strlcpy(drvinfo->version, UTS_RELEASE, sizeof(drvinfo->version)); in mlx5e_rep_get_drvinfo() 68 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in mlx5e_rep_get_drvinfo() 75 struct ethtool_drvinfo *drvinfo) in mlx5e_uplink_rep_get_drvinfo() argument 79 mlx5e_rep_get_drvinfo(dev, drvinfo); in mlx5e_uplink_rep_get_drvinfo() 80 strlcpy(drvinfo->bus_info, pci_name(priv->mdev->pdev), in mlx5e_uplink_rep_get_drvinfo() 81 sizeof(drvinfo->bus_info)); in mlx5e_uplink_rep_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 71 struct ethtool_drvinfo *drvinfo) in dpaa2_eth_get_drvinfo() argument 75 strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); in dpaa2_eth_get_drvinfo() 77 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in dpaa2_eth_get_drvinfo() 80 strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent), in dpaa2_eth_get_drvinfo() 81 sizeof(drvinfo->bus_info)); in dpaa2_eth_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ethtool.c | 402 struct ethtool_drvinfo *drvinfo) in xgbe_get_drvinfo() argument 407 strlcpy(drvinfo->driver, XGBE_DRV_NAME, sizeof(drvinfo->driver)); in xgbe_get_drvinfo() 408 strlcpy(drvinfo->bus_info, dev_name(pdata->dev), in xgbe_get_drvinfo() 409 sizeof(drvinfo->bus_info)); in xgbe_get_drvinfo() 410 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), "%d.%d.%d", in xgbe_get_drvinfo()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 107 struct ethtool_drvinfo *drvinfo) in dpaa_get_drvinfo() argument 109 strlcpy(drvinfo->driver, KBUILD_MODNAME, in dpaa_get_drvinfo() 110 sizeof(drvinfo->driver)); in dpaa_get_drvinfo() 111 strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent), in dpaa_get_drvinfo() 112 sizeof(drvinfo->bus_info)); in dpaa_get_drvinfo()
|