/drivers/net/phy/ |
D | swphy.c | 23 u16 lpa; member 43 .lpa = LPA_10FULL | LPA_10HALF, 47 .lpa = LPA_100FULL | LPA_100HALF, 59 .lpa = LPA_10HALF | LPA_100HALF, 65 .lpa = LPA_10FULL | LPA_100FULL, 121 u16 lpa = 0; in swphy_read_reg() local 138 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg() 142 lpa |= LPA_PAUSE_CAP; in swphy_read_reg() 145 lpa |= LPA_PAUSE_ASYM; in swphy_read_reg() 157 return lpa; in swphy_read_reg()
|
D | lxt.c | 223 int lpa; in lxt973a2_read_status() local 239 lpa = phy_read(phydev, MII_LPA); in lxt973a2_read_status() 241 if (lpa < 0) in lxt973a2_read_status() 242 return lpa; in lxt973a2_read_status() 247 } while (lpa == adv && retry--); in lxt973a2_read_status() 249 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa); in lxt973a2_read_status() 251 lpa &= adv; in lxt973a2_read_status() 257 if (lpa & (LPA_100FULL | LPA_100HALF)) { in lxt973a2_read_status() 260 if (lpa & LPA_100FULL) in lxt973a2_read_status() 263 if (lpa & LPA_10FULL) in lxt973a2_read_status()
|
D | meson-gxl.c | 164 int ret, wol, lpa, exp; in meson_gxl_read_status() local 178 lpa = phy_read(phydev, MII_LPA); in meson_gxl_read_status() 179 if (lpa < 0) in meson_gxl_read_status() 180 return lpa; in meson_gxl_read_status() 187 ((exp & EXPANSION_NWAY) && !(lpa & LPA_LPACK))) { in meson_gxl_read_status()
|
D | phy_device.c | 2312 int lpa, lpagb; in genphy_read_lpa() local 2344 lpa = phy_read(phydev, MII_LPA); in genphy_read_lpa() 2345 if (lpa < 0) in genphy_read_lpa() 2346 return lpa; in genphy_read_lpa() 2348 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in genphy_read_lpa() 2444 int lpa, err, old_link = phydev->link; in genphy_c37_read_status() local 2460 lpa = phy_read(phydev, MII_LPA); in genphy_c37_read_status() 2461 if (lpa < 0) in genphy_c37_read_status() 2462 return lpa; in genphy_c37_read_status() 2465 phydev->lp_advertising, lpa & LPA_LPACK); in genphy_c37_read_status() [all …]
|
D | phylink.c | 1904 unsigned long *lpa = state->lp_advertising; in phylink_mii_emul_read() local 1910 fs.pause = test_bit(ETHTOOL_LINK_MODE_Pause_BIT, lpa); in phylink_mii_emul_read() 1911 fs.asym_pause = test_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, lpa); in phylink_mii_emul_read() 2502 uint16_t lpa) in phylink_decode_usxgmii_word() argument 2504 switch (lpa & MDIO_USXGMII_SPD_MASK) { in phylink_decode_usxgmii_word() 2528 if (lpa & MDIO_USXGMII_FULL_DUPLEX) in phylink_decode_usxgmii_word() 2554 int bmsr, lpa; in phylink_mii_c22_pcs_get_state() local 2557 lpa = mdiobus_read(bus, addr, MII_LPA); in phylink_mii_c22_pcs_get_state() 2558 if (bmsr < 0 || lpa < 0) { in phylink_mii_c22_pcs_get_state() 2570 phylink_decode_c37_word(state, lpa, SPEED_1000); in phylink_mii_c22_pcs_get_state() [all …]
|
D | marvell.c | 1519 static void fiber_lpa_mod_linkmode_lpa_t(unsigned long *advertising, u32 lpa) in fiber_lpa_mod_linkmode_lpa_t() argument 1522 advertising, lpa & LPA_1000XHALF); in fiber_lpa_mod_linkmode_lpa_t() 1525 advertising, lpa & LPA_1000XFULL); in fiber_lpa_mod_linkmode_lpa_t() 1531 int lpa; in marvell_read_status_page_an() local 1565 lpa = phy_read(phydev, MII_LPA); in marvell_read_status_page_an() 1566 if (lpa < 0) in marvell_read_status_page_an() 1567 return lpa; in marvell_read_status_page_an() 1570 fiber_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in marvell_read_status_page_an() 1573 if (!(lpa & LPA_PAUSE_FIBER)) { in marvell_read_status_page_an() 1576 } else if ((lpa & LPA_PAUSE_ASYM_FIBER)) { in marvell_read_status_page_an()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | vsc8211.c | 133 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local 179 &lpa); in vsc8211_get_link_status() 186 if (lpa & adv & ADVERTISE_PAUSE_CAP) in vsc8211_get_link_status() 188 else if ((lpa & ADVERTISE_PAUSE_CAP) && in vsc8211_get_link_status() 189 (lpa & ADVERTISE_PAUSE_ASYM) && in vsc8211_get_link_status() 192 else if ((lpa & ADVERTISE_PAUSE_ASYM) && in vsc8211_get_link_status() 209 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local 239 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, &lpa); in vsc8211_get_link_status_fiber() 246 if (adv & lpa & ADVERTISE_1000XFULL) { in vsc8211_get_link_status_fiber() 249 } else if (adv & lpa & ADVERTISE_1000XHALF) { in vsc8211_get_link_status_fiber() [all …]
|
/drivers/net/pcs/ |
D | pcs-lynx.c | 39 int status, lpa; in lynx_pcs_get_state_usxgmii() local 50 lpa = mdiobus_c45_read(bus, addr, MDIO_MMD_VEND2, MII_LPA); in lynx_pcs_get_state_usxgmii() 51 if (lpa < 0) in lynx_pcs_get_state_usxgmii() 54 phylink_decode_usxgmii_word(state, lpa); in lynx_pcs_get_state_usxgmii() 62 int bmsr, lpa; in lynx_pcs_get_state_2500basex() local 65 lpa = mdiobus_read(bus, addr, MII_LPA); in lynx_pcs_get_state_2500basex() 66 if (bmsr < 0 || lpa < 0) { in lynx_pcs_get_state_2500basex()
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 224 int lpa = phy_read(phy, MII_LPA) & phy_read(phy, MII_ADVERTISE); in genmii_read_link() local 225 if (lpa < 0) in genmii_read_link() 226 return lpa; in genmii_read_link() 247 } else if (lpa & (LPA_100FULL | LPA_100HALF)) { in genmii_read_link() 249 if (lpa & LPA_100FULL) in genmii_read_link() 251 } else if (lpa & LPA_10FULL) in genmii_read_link() 255 phy->pause = lpa & LPA_PAUSE_CAP ? 1 : 0; in genmii_read_link() 256 phy->asym_pause = lpa & LPA_PAUSE_ASYM ? 1 : 0; in genmii_read_link()
|
/drivers/rtc/ |
D | rtc-st-lpc.c | 158 unsigned long long lpa; in st_rtc_set_alarm() local 168 lpa = (unsigned long long)alarm_secs * rtc->clkrate; in st_rtc_set_alarm() 170 st_rtc_set_hw_alarm(rtc, lpa >> 32, lpa); in st_rtc_set_alarm()
|
/drivers/net/ethernet/dec/tulip/ |
D | media.c | 400 unsigned int bmsr, lpa, negotiated, new_csr6; in tulip_check_duplex() local 403 lpa = tulip_mdio_read(dev, tp->phys[0], MII_LPA); in tulip_check_duplex() 406 bmsr, lpa); in tulip_check_duplex() 419 negotiated = lpa & tp->advertising[0]; in tulip_check_duplex() 437 tp->phys[0], lpa); in tulip_check_duplex()
|
/drivers/net/dsa/mv88e6xxx/ |
D | serdes.c | 53 u16 bmsr, u16 lpa, u16 status, in mv88e6xxx_serdes_pcs_get_state() argument 107 mii_lpa_mod_linkmode_x(state->lp_advertising, lpa, in mv88e6xxx_serdes_pcs_get_state() 110 mii_lpa_mod_linkmode_x(state->lp_advertising, lpa, in mv88e6xxx_serdes_pcs_get_state() 189 u16 bmsr, lpa, status; in mv88e6352_serdes_pcs_get_state() local 204 err = mv88e6352_serdes_read(chip, MII_LPA, &lpa); in mv88e6352_serdes_pcs_get_state() 210 return mv88e6xxx_serdes_pcs_get_state(chip, bmsr, lpa, status, state); in mv88e6352_serdes_pcs_get_state() 913 u16 bmsr, lpa, status; in mv88e6390_serdes_pcs_get_state_sgmii() local 931 MV88E6390_SGMII_LPA, &lpa); in mv88e6390_serdes_pcs_get_state_sgmii() 937 return mv88e6xxx_serdes_pcs_get_state(chip, bmsr, lpa, status, state); in mv88e6390_serdes_pcs_get_state_sgmii()
|
/drivers/net/ethernet/sfc/falcon/ |
D | tenxpress.c | 443 u32 adv = 0, lpa = 0; in tenxpress_get_link_ksettings() local 451 lpa |= ADVERTISED_10000baseT_Full; in tenxpress_get_link_ksettings() 453 mdio45_ethtool_ksettings_get_npage(&efx->mdio, cmd, adv, lpa); in tenxpress_get_link_ksettings()
|
/drivers/net/ |
D | mii.c | 507 int advertise, lpa, media, duplex; in mii_check_media() local 546 lpa = mii->mdio_read(mii->dev, mii->phy_id, MII_LPA); in mii_check_media() 551 media = mii_nway_result(lpa & advertise); in mii_check_media() 562 lpa); in mii_check_media()
|
D | sungem_phy.c | 393 u16 lpa; in genmii_read_link() local 396 lpa = sungem_phy_read(phy, MII_LPA); in genmii_read_link() 398 if (lpa & (LPA_10FULL | LPA_100FULL)) in genmii_read_link() 402 if (lpa & (LPA_100FULL | LPA_100HALF)) in genmii_read_link()
|
/drivers/net/usb/ |
D | rtl8150.c | 781 short lpa, bmcr; in rtl8150_get_link_ksettings() local 793 get_registers(dev, ANLP, 2, &lpa); in rtl8150_get_link_ksettings() 795 u32 speed = ((lpa & (LPA_100HALF | LPA_100FULL)) ? in rtl8150_get_link_ksettings() 800 ecmd->base.duplex = (lpa & LPA_100FULL) ? in rtl8150_get_link_ksettings() 803 ecmd->base.duplex = (lpa & LPA_10FULL) ? in rtl8150_get_link_ksettings()
|
/drivers/net/ethernet/sfc/ |
D | mcdi_port_common.c | 376 void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) in efx_mcdi_phy_check_fcntl() argument 392 if (lpa & (1 << MC_CMD_PHY_CAP_PAUSE_LBN)) in efx_mcdi_phy_check_fcntl() 394 if (lpa & (1 << MC_CMD_PHY_CAP_ASYM_LBN)) in efx_mcdi_phy_check_fcntl() 1287 u32 flags, fcntl, speed, lpa; in efx_mcdi_process_link_change() local 1295 lpa = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_LP_CAP); in efx_mcdi_process_link_change() 1303 efx_mcdi_phy_check_fcntl(efx, lpa); in efx_mcdi_process_link_change()
|
D | mcdi_port_common.h | 46 void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa);
|
/drivers/net/ethernet/broadcom/ |
D | bcm63xx_enet.c | 2006 int val, j, up, advertise, lpa, speed, duplex, media; in swphy_poll_timer() local 2046 lpa = bcmenet_sw_mdio_read(priv, external_phy, port->phy_id, in swphy_poll_timer() 2050 media = mii_nway_result(lpa & advertise); in swphy_poll_timer() 2062 lpa = bcmenet_sw_mdio_read(priv, external_phy, in swphy_poll_timer() 2066 && lpa & (LPA_1000FULL | LPA_1000HALF)) { in swphy_poll_timer() 2068 duplex = (lpa & LPA_1000FULL); in swphy_poll_timer()
|
/drivers/net/ethernet/marvell/ |
D | sky2.c | 2238 u16 advert, lpa; in sky2_autoneg_done() local 2241 lpa = gm_phy_read(hw, port, PHY_MARV_AUNE_LP); in sky2_autoneg_done() 2242 if (lpa & PHY_M_AN_RF) { in sky2_autoneg_done() 2261 lpa &= ~(LPA_PAUSE_CAP|LPA_PAUSE_ASYM); in sky2_autoneg_done() 2267 if (lpa & LPA_1000XPAUSE) in sky2_autoneg_done() 2268 lpa |= LPA_PAUSE_CAP; in sky2_autoneg_done() 2269 if (lpa & LPA_1000XPAUSE_ASYM) in sky2_autoneg_done() 2270 lpa |= LPA_PAUSE_ASYM; in sky2_autoneg_done() 2275 if (lpa & LPA_PAUSE_CAP) in sky2_autoneg_done() 2280 if ((lpa & LPA_PAUSE_CAP) && (lpa & LPA_PAUSE_ASYM)) in sky2_autoneg_done()
|
D | skge.c | 1229 u16 lpa, aux; in bcom_check_link() local 1234 lpa = xm_phy_read(hw, port, PHY_XMAC_AUNE_LP); in bcom_check_link() 1235 if (lpa & PHY_B_AN_RF) { in bcom_check_link() 1436 u16 lpa, res; in xm_check_link() local 1441 lpa = xm_phy_read(hw, port, PHY_XMAC_AUNE_LP); in xm_check_link() 1442 if (lpa & PHY_B_AN_RF) { in xm_check_link() 1465 (lpa & PHY_X_P_SYM_MD)) in xm_check_link() 1468 (lpa & PHY_X_RS_PAUSE) == PHY_X_P_ASYM_MD) in xm_check_link() 1472 (lpa & PHY_X_RS_PAUSE) == PHY_X_P_BOTH_MD) in xm_check_link()
|
/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 665 int lpa = mdio_read(ioaddr, yp->phys[0], MII_LPA); in yellowfin_timer() local 666 int negotiated = lpa & yp->advertising; in yellowfin_timer() 669 yp->phys[0], bmsr, lpa); in yellowfin_timer()
|
/drivers/nvme/target/ |
D | discovery.c | 275 id->lpa = (1 << 2); in nvmet_execute_disc_identify()
|
/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 261 int advert, lpa, val, media; in mii_speed() local 273 lpa = (*mii->mdio_read) (mii->dev, mii->phy_id, MII_LPA); in mii_speed() 274 media = mii_nway_result(advert & lpa); in mii_speed()
|
/drivers/net/ethernet/davicom/ |
D | dm9000.c | 751 int lpa; in dm9000_show_carrier() local 757 lpa = mii->mdio_read(mii->dev, mii->phy_id, MII_LPA); in dm9000_show_carrier() 761 (ncr & NCR_FDX) ? "full" : "half", lpa); in dm9000_show_carrier()
|