Lines Matching +full:processor +full:- +full:intensive

1 // SPDX-License-Identifier: GPL-2.0
147 /* Sleep and timeout for checking if the Processor-Intensive
195 int len_l = min(stat->size, 16); in aqr107_get_stat()
196 int len_h = stat->size - len_l; in aqr107_get_stat()
200 val = phy_read_mmd(phydev, MDIO_MMD_C22EXT, stat->reg); in aqr107_get_stat()
204 ret = val & GENMASK(len_l - 1, 0); in aqr107_get_stat()
206 val = phy_read_mmd(phydev, MDIO_MMD_C22EXT, stat->reg + 1); in aqr107_get_stat()
210 ret += (val & GENMASK(len_h - 1, 0)) << 16; in aqr107_get_stat()
219 struct aqr107_priv *priv = phydev->priv; in aqr107_get_stats()
229 priv->sgmii_stats[i] += val; in aqr107_get_stats()
231 data[i] = priv->sgmii_stats[i]; in aqr107_get_stats()
241 if (phydev->autoneg == AUTONEG_DISABLE) in aqr_config_aneg()
255 phydev->advertising)) in aqr_config_aneg()
259 phydev->advertising)) in aqr_config_aneg()
264 phydev->advertising)) in aqr_config_aneg()
268 phydev->advertising)) in aqr_config_aneg()
286 bool en = phydev->interrupts == PHY_INTERRUPT_ENABLED; in aqr_config_intr()
345 if (phydev->autoneg == AUTONEG_ENABLE) { in aqr_read_status()
351 phydev->lp_advertising, in aqr_read_status()
354 phydev->lp_advertising, in aqr_read_status()
371 phydev->duplex = DUPLEX_FULL; in aqr107_read_rate()
373 phydev->duplex = DUPLEX_HALF; in aqr107_read_rate()
377 phydev->speed = SPEED_10; in aqr107_read_rate()
381 phydev->speed = SPEED_100; in aqr107_read_rate()
385 phydev->speed = SPEED_1000; in aqr107_read_rate()
389 phydev->speed = SPEED_2500; in aqr107_read_rate()
393 phydev->speed = SPEED_5000; in aqr107_read_rate()
397 phydev->speed = SPEED_10000; in aqr107_read_rate()
401 phydev->speed = SPEED_UNKNOWN; in aqr107_read_rate()
411 phydev->rate_matching = RATE_MATCH_PAUSE; in aqr107_read_rate()
413 phydev->rate_matching = RATE_MATCH_NONE; in aqr107_read_rate()
426 if (!phydev->link || phydev->autoneg == AUTONEG_DISABLE) in aqr107_read_status()
435 phydev->interface = PHY_INTERFACE_MODE_10GKR; in aqr107_read_status()
438 phydev->interface = PHY_INTERFACE_MODE_1000BASEKX; in aqr107_read_status()
441 phydev->interface = PHY_INTERFACE_MODE_10GBASER; in aqr107_read_status()
444 phydev->interface = PHY_INTERFACE_MODE_USXGMII; in aqr107_read_status()
447 phydev->interface = PHY_INTERFACE_MODE_XAUI; in aqr107_read_status()
450 phydev->interface = PHY_INTERFACE_MODE_SGMII; in aqr107_read_status()
453 phydev->interface = PHY_INTERFACE_MODE_RXAUI; in aqr107_read_status()
456 phydev->interface = PHY_INTERFACE_MODE_2500BASEX; in aqr107_read_status()
459 phydev->interface = PHY_INTERFACE_MODE_NA; in aqr107_read_status()
488 return -E2BIG; in aqr107_set_downshift()
503 switch (tuna->id) { in aqr107_get_tunable()
507 return -EOPNOTSUPP; in aqr107_get_tunable()
514 switch (tuna->id) { in aqr107_set_tunable()
518 return -EOPNOTSUPP; in aqr107_set_tunable()
566 if (phydev->interface != PHY_INTERFACE_MODE_SGMII && in aqr107_config_init()
567 phydev->interface != PHY_INTERFACE_MODE_1000BASEKX && in aqr107_config_init()
568 phydev->interface != PHY_INTERFACE_MODE_2500BASEX && in aqr107_config_init()
569 phydev->interface != PHY_INTERFACE_MODE_XGMII && in aqr107_config_init()
570 phydev->interface != PHY_INTERFACE_MODE_USXGMII && in aqr107_config_init()
571 phydev->interface != PHY_INTERFACE_MODE_10GKR && in aqr107_config_init()
572 phydev->interface != PHY_INTERFACE_MODE_10GBASER && in aqr107_config_init()
573 phydev->interface != PHY_INTERFACE_MODE_XAUI && in aqr107_config_init()
574 phydev->interface != PHY_INTERFACE_MODE_RXAUI) in aqr107_config_init()
575 return -ENODEV; in aqr107_config_init()
577 WARN(phydev->interface == PHY_INTERFACE_MODE_XGMII, in aqr107_config_init()
592 if (phydev->interface != PHY_INTERFACE_MODE_SGMII && in aqcs109_config_init()
593 phydev->interface != PHY_INTERFACE_MODE_2500BASEX) in aqcs109_config_init()
594 return -ENODEV; in aqcs109_config_init()
615 if (phydev->state != PHY_RUNNING || phydev->autoneg == AUTONEG_DISABLE) in aqr107_link_change_notify()
642 downshift ? ", fast-retrain downshift advertised" : "", in aqr107_link_change_notify()
651 phydev_info(phydev, "Aquantia 1000Base-T2 mode active\n"); in aqr107_link_change_notify()
659 * processor intensive operation before checking. in aqr107_wait_processor_intensive_op()
671 phydev_err(phydev, "timeout: processor-intensive MDIO operation\n"); in aqr107_wait_processor_intensive_op()
714 phydev->priv = devm_kzalloc(&phydev->mdio.dev, in aqr107_probe()
716 if (!phydev->priv) in aqr107_probe()
717 return -ENOMEM; in aqr107_probe()