Home
last modified time | relevance | path

Searched refs:lpa (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v5.4/drivers/net/phy/
Dswphy.c23 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()
Dlxt.c149 int lpa; in lxt973a2_read_status() local
165 lpa = phy_read(phydev, MII_LPA); in lxt973a2_read_status()
167 if (lpa < 0) in lxt973a2_read_status()
168 return lpa; in lxt973a2_read_status()
173 } while (lpa == adv && retry--); in lxt973a2_read_status()
175 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa); in lxt973a2_read_status()
177 lpa &= adv; in lxt973a2_read_status()
183 if (lpa & (LPA_100FULL | LPA_100HALF)) { in lxt973a2_read_status()
186 if (lpa & LPA_100FULL) in lxt973a2_read_status()
189 if (lpa & LPA_10FULL) in lxt973a2_read_status()
[all …]
Dmeson-gxl.c160 int ret, wol, lpa, exp; in meson_gxl_read_status() local
174 lpa = phy_read(phydev, MII_LPA); in meson_gxl_read_status()
175 if (lpa < 0) in meson_gxl_read_status()
176 return lpa; in meson_gxl_read_status()
183 ((exp & EXPANSION_NWAY) && !(lpa & LPA_LPACK))) { in meson_gxl_read_status()
Dmarvell.c1178 static void fiber_lpa_mod_linkmode_lpa_t(unsigned long *advertising, u32 lpa) in fiber_lpa_mod_linkmode_lpa_t() argument
1181 advertising, lpa & LPA_FIBER_1000HALF); in fiber_lpa_mod_linkmode_lpa_t()
1184 advertising, lpa & LPA_FIBER_1000FULL); in fiber_lpa_mod_linkmode_lpa_t()
1221 int lpa; in marvell_read_status_page_an() local
1228 lpa = phy_read(phydev, MII_LPA); in marvell_read_status_page_an()
1229 if (lpa < 0) in marvell_read_status_page_an()
1230 return lpa; in marvell_read_status_page_an()
1260 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa); in marvell_read_status_page_an()
1264 phydev->pause = lpa & LPA_PAUSE_CAP ? 1 : 0; in marvell_read_status_page_an()
1265 phydev->asym_pause = lpa & LPA_PAUSE_ASYM ? 1 : 0; in marvell_read_status_page_an()
[all …]
Dphy_device.c1788 int lpa, lpagb; in genphy_read_lpa() local
1820 lpa = phy_read(phydev, MII_LPA); in genphy_read_lpa()
1821 if (lpa < 0) in genphy_read_lpa()
1822 return lpa; in genphy_read_lpa()
1824 mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa); in genphy_read_lpa()
/Linux-v5.4/include/linux/
Dmii.h260 static inline u32 mii_lpa_to_ethtool_lpa_t(u32 lpa) in mii_lpa_to_ethtool_lpa_t() argument
264 if (lpa & LPA_LPACK) in mii_lpa_to_ethtool_lpa_t()
267 return result | mii_adv_to_ethtool_adv_t(lpa); in mii_lpa_to_ethtool_lpa_t()
278 static inline u32 mii_stat1000_to_ethtool_lpa_t(u32 lpa) in mii_stat1000_to_ethtool_lpa_t() argument
282 if (lpa & LPA_1000HALF) in mii_stat1000_to_ethtool_lpa_t()
284 if (lpa & LPA_1000FULL) in mii_stat1000_to_ethtool_lpa_t()
300 u32 lpa) in mii_stat1000_mod_linkmode_lpa_t() argument
303 advertising, lpa & LPA_1000HALF); in mii_stat1000_mod_linkmode_lpa_t()
306 advertising, lpa & LPA_1000FULL); in mii_stat1000_mod_linkmode_lpa_t()
365 static inline u32 mii_lpa_to_ethtool_lpa_x(u32 lpa) in mii_lpa_to_ethtool_lpa_x() argument
[all …]
Dmdio.h307 u32 lpa) in mii_10gbt_stat_mod_linkmode_lpa_t() argument
310 advertising, lpa & MDIO_AN_10GBT_STAT_LP2_5G); in mii_10gbt_stat_mod_linkmode_lpa_t()
312 advertising, lpa & MDIO_AN_10GBT_STAT_LP5G); in mii_10gbt_stat_mod_linkmode_lpa_t()
314 advertising, lpa & MDIO_AN_10GBT_STAT_LP10G); in mii_10gbt_stat_mod_linkmode_lpa_t()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb3/
Dvsc8211.c133 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 …]
/Linux-v5.4/drivers/net/ethernet/ibm/emac/
Dphy.c224 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()
/Linux-v5.4/drivers/rtc/
Drtc-st-lpc.c159 unsigned long long lpa; in st_rtc_set_alarm() local
169 lpa = (unsigned long long)alarm_secs * rtc->clkrate; in st_rtc_set_alarm()
171 st_rtc_set_hw_alarm(rtc, lpa >> 32, lpa); in st_rtc_set_alarm()
/Linux-v5.4/drivers/net/ethernet/dec/tulip/
Dmedia.c405 unsigned int bmsr, lpa, negotiated, new_csr6; in tulip_check_duplex() local
408 lpa = tulip_mdio_read(dev, tp->phys[0], MII_LPA); in tulip_check_duplex()
411 bmsr, lpa); in tulip_check_duplex()
424 negotiated = lpa & tp->advertising[0]; in tulip_check_duplex()
442 tp->phys[0], lpa); in tulip_check_duplex()
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dtenxpress.c443 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()
/Linux-v5.4/arch/parisc/include/asm/
Dspecial_insns.h5 #define lpa(va) ({ \ macro
/Linux-v5.4/drivers/net/
Dmii.c509 int advertise, lpa, media, duplex; in mii_check_media() local
548 lpa = mii->mdio_read(mii->dev, mii->phy_id, MII_LPA); in mii_check_media()
553 media = mii_nway_result(lpa & advertise); in mii_check_media()
564 lpa); in mii_check_media()
Dsungem_phy.c393 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()
/Linux-v5.4/drivers/net/usb/
Drtl8150.c793 short lpa, bmcr; in rtl8150_get_link_ksettings() local
805 get_registers(dev, ANLP, 2, &lpa); in rtl8150_get_link_ksettings()
807 u32 speed = ((lpa & (LPA_100HALF | LPA_100FULL)) ? in rtl8150_get_link_ksettings()
812 ecmd->base.duplex = (lpa & LPA_100FULL) ? in rtl8150_get_link_ksettings()
815 ecmd->base.duplex = (lpa & LPA_10FULL) ? in rtl8150_get_link_ksettings()
/Linux-v5.4/drivers/net/ethernet/sfc/
Dmcdi_port.c533 static void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) in efx_mcdi_phy_check_fcntl() argument
548 if (lpa & (1 << MC_CMD_PHY_CAP_PAUSE_LBN)) in efx_mcdi_phy_check_fcntl()
550 if (lpa & (1 << MC_CMD_PHY_CAP_ASYM_LBN)) in efx_mcdi_phy_check_fcntl()
1154 u32 flags, fcntl, speed, lpa; in efx_mcdi_process_link_change() local
1162 lpa = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_LP_CAP); in efx_mcdi_process_link_change()
1170 efx_mcdi_phy_check_fcntl(efx, lpa); in efx_mcdi_process_link_change()
/Linux-v5.4/fs/ubifs/
Dfind.c732 const struct ubifs_lprops *lpa = *a; in cmp_dirty_idx() local
735 return lpa->dirty + lpa->free - lpb->dirty - lpb->free; in cmp_dirty_idx()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1988 int val, j, up, advertise, lpa, speed, duplex, media; in swphy_poll_timer() local
2028 lpa = bcmenet_sw_mdio_read(priv, external_phy, port->phy_id, in swphy_poll_timer()
2032 media = mii_nway_result(lpa & advertise); in swphy_poll_timer()
2044 lpa = bcmenet_sw_mdio_read(priv, external_phy, in swphy_poll_timer()
2048 && lpa & (LPA_1000FULL | LPA_1000HALF)) { in swphy_poll_timer()
2050 duplex = (lpa & LPA_1000FULL); in swphy_poll_timer()
/Linux-v5.4/drivers/net/ethernet/packetengines/
Dyellowfin.c660 int lpa = mdio_read(ioaddr, yp->phys[0], MII_LPA); in yellowfin_timer() local
661 int negotiated = lpa & yp->advertising; in yellowfin_timer()
664 yp->phys[0], bmsr, lpa); in yellowfin_timer()
/Linux-v5.4/drivers/net/ethernet/marvell/
Dsky2.c2238 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()
Dskge.c1225 u16 lpa, aux; in bcom_check_link() local
1230 lpa = xm_phy_read(hw, port, PHY_XMAC_AUNE_LP); in bcom_check_link()
1231 if (lpa & PHY_B_AN_RF) { in bcom_check_link()
1432 u16 lpa, res; in xm_check_link() local
1437 lpa = xm_phy_read(hw, port, PHY_XMAC_AUNE_LP); in xm_check_link()
1438 if (lpa & PHY_B_AN_RF) { in xm_check_link()
1461 (lpa & PHY_X_P_SYM_MD)) in xm_check_link()
1464 (lpa & PHY_X_RS_PAUSE) == PHY_X_P_ASYM_MD) in xm_check_link()
1468 (lpa & PHY_X_RS_PAUSE) == PHY_X_P_BOTH_MD) in xm_check_link()
/Linux-v5.4/drivers/nvme/target/
Ddiscovery.c249 id->lpa = (1 << 2); in nvmet_execute_identify_disc_ctrl()
/Linux-v5.4/drivers/net/ethernet/davicom/
Ddm9000.c754 int lpa; in dm9000_show_carrier() local
760 lpa = mii->mdio_read(mii->dev, mii->phy_id, MII_LPA); in dm9000_show_carrier()
764 (ncr & NCR_FDX) ? "full" : "half", lpa); in dm9000_show_carrier()
/Linux-v5.4/drivers/net/ethernet/tundra/
Dtsi108_eth.c261 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()

12