Lines Matching refs:rc
380 int rc; in ethtool_get_drvinfo() local
382 rc = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_get_drvinfo()
383 if (rc >= 0) in ethtool_get_drvinfo()
384 info.testinfo_len = rc; in ethtool_get_drvinfo()
385 rc = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_drvinfo()
386 if (rc >= 0) in ethtool_get_drvinfo()
387 info.n_stats = rc; in ethtool_get_drvinfo()
388 rc = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS); in ethtool_get_drvinfo()
389 if (rc >= 0) in ethtool_get_drvinfo()
390 info.n_priv_flags = rc; in ethtool_get_drvinfo()
407 int i, idx = 0, n_bits = 0, ret, rc; in ethtool_get_sset_info() local
436 rc = __ethtool_get_sset_count(dev, i); in ethtool_get_sset_info()
437 if (rc >= 0) { in ethtool_get_sset_info()
439 info_buf[idx++] = rc; in ethtool_get_sset_info()
463 int rc; in ethtool_set_rxnfc() local
479 rc = dev->ethtool_ops->set_rxnfc(dev, &info); in ethtool_set_rxnfc()
480 if (rc) in ethtool_set_rxnfc()
481 return rc; in ethtool_set_rxnfc()
742 int rc; in ethtool_get_eee() local
749 rc = dev->ethtool_ops->get_eee(dev, &edata); in ethtool_get_eee()
751 if (rc) in ethtool_get_eee()
752 return rc; in ethtool_get_eee()
1093 int rc; in ethtool_phys_id() local
1104 rc = ops->set_phys_id(dev, ETHTOOL_ID_ACTIVE); in ethtool_phys_id()
1105 if (rc < 0) in ethtool_phys_id()
1106 return rc; in ethtool_phys_id()
1115 if (rc == 0) { in ethtool_phys_id()
1121 int n = rc * 2, i, interval = HZ / n; in ethtool_phys_id()
1129 rc = ops->set_phys_id(dev, in ethtool_phys_id()
1132 if (rc) in ethtool_phys_id()
1145 return rc; in ethtool_phys_id()
1423 int rc; in dev_ethtool() local
1471 rc = dev->ethtool_ops->begin(dev); in dev_ethtool()
1472 if (rc < 0) in dev_ethtool()
1473 return rc; in dev_ethtool()
1479 rc = ethtool_get_settings(dev, useraddr); in dev_ethtool()
1482 rc = ethtool_set_settings(dev, useraddr); in dev_ethtool()
1485 rc = ethtool_get_drvinfo(dev, useraddr); in dev_ethtool()
1488 rc = ethtool_get_regs(dev, useraddr); in dev_ethtool()
1491 rc = ethtool_get_wol(dev, useraddr); in dev_ethtool()
1494 rc = ethtool_set_wol(dev, useraddr); in dev_ethtool()
1497 rc = ethtool_get_value(dev, useraddr, ethcmd, in dev_ethtool()
1501 rc = ethtool_set_value_void(dev, useraddr, in dev_ethtool()
1505 rc = ethtool_get_eee(dev, useraddr); in dev_ethtool()
1508 rc = ethtool_set_eee(dev, useraddr); in dev_ethtool()
1511 rc = ethtool_nway_reset(dev); in dev_ethtool()
1514 rc = ethtool_get_link(dev, useraddr); in dev_ethtool()
1517 rc = ethtool_get_eeprom(dev, useraddr); in dev_ethtool()
1520 rc = ethtool_set_eeprom(dev, useraddr); in dev_ethtool()
1523 rc = ethtool_get_coalesce(dev, useraddr); in dev_ethtool()
1526 rc = ethtool_set_coalesce(dev, useraddr); in dev_ethtool()
1529 rc = ethtool_get_ringparam(dev, useraddr); in dev_ethtool()
1532 rc = ethtool_set_ringparam(dev, useraddr); in dev_ethtool()
1535 rc = ethtool_get_pauseparam(dev, useraddr); in dev_ethtool()
1538 rc = ethtool_set_pauseparam(dev, useraddr); in dev_ethtool()
1541 rc = ethtool_self_test(dev, useraddr); in dev_ethtool()
1544 rc = ethtool_get_strings(dev, useraddr); in dev_ethtool()
1547 rc = ethtool_phys_id(dev, useraddr); in dev_ethtool()
1550 rc = ethtool_get_stats(dev, useraddr); in dev_ethtool()
1553 rc = ethtool_get_perm_addr(dev, useraddr); in dev_ethtool()
1556 rc = ethtool_get_value(dev, useraddr, ethcmd, in dev_ethtool()
1560 rc = ethtool_set_value(dev, useraddr, __ethtool_set_flags); in dev_ethtool()
1563 rc = ethtool_get_value(dev, useraddr, ethcmd, in dev_ethtool()
1567 rc = ethtool_set_value(dev, useraddr, in dev_ethtool()
1575 rc = ethtool_get_rxnfc(dev, ethcmd, useraddr); in dev_ethtool()
1580 rc = ethtool_set_rxnfc(dev, ethcmd, useraddr); in dev_ethtool()
1583 rc = ethtool_flash_device(dev, useraddr); in dev_ethtool()
1586 rc = ethtool_reset(dev, useraddr); in dev_ethtool()
1589 rc = ethtool_get_sset_info(dev, useraddr); in dev_ethtool()
1592 rc = ethtool_get_rxfh_indir(dev, useraddr); in dev_ethtool()
1595 rc = ethtool_set_rxfh_indir(dev, useraddr); in dev_ethtool()
1598 rc = ethtool_get_features(dev, useraddr); in dev_ethtool()
1601 rc = ethtool_set_features(dev, useraddr); in dev_ethtool()
1610 rc = ethtool_get_one_feature(dev, useraddr, ethcmd); in dev_ethtool()
1619 rc = ethtool_set_one_feature(dev, useraddr, ethcmd); in dev_ethtool()
1622 rc = ethtool_get_channels(dev, useraddr); in dev_ethtool()
1625 rc = ethtool_set_channels(dev, useraddr); in dev_ethtool()
1628 rc = ethtool_set_dump(dev, useraddr); in dev_ethtool()
1631 rc = ethtool_get_dump_flag(dev, useraddr); in dev_ethtool()
1634 rc = ethtool_get_dump_data(dev, useraddr); in dev_ethtool()
1637 rc = ethtool_get_ts_info(dev, useraddr); in dev_ethtool()
1640 rc = ethtool_get_module_info(dev, useraddr); in dev_ethtool()
1643 rc = ethtool_get_module_eeprom(dev, useraddr); in dev_ethtool()
1646 rc = -EOPNOTSUPP; in dev_ethtool()
1655 return rc; in dev_ethtool()