/drivers/net/ethernet/chelsio/cxgb3/ |
D | ael1002.c | 176 static int get_link_status_r(struct cphy *phy, int *link_ok, int *speed, in get_link_status_r() argument 179 if (link_ok) { in get_link_status_r() 192 *link_ok = (stat0 & stat1 & (stat2 >> 12)) & 1; in get_link_status_r() 641 int err, link_ok = 0; in ael2020_intr_enable() local 648 err = get_link_status_r(phy, &link_ok, NULL, NULL, NULL); in ael2020_intr_enable() 651 if (link_ok) in ael2020_intr_enable() 834 static int get_link_status_x(struct cphy *phy, int *link_ok, int *speed, in get_link_status_x() argument 837 if (link_ok) { in get_link_status_x() 850 *link_ok = (stat0 & (stat1 >> 12) & (stat2 >> 12)) & 1; in get_link_status_x() 895 static int xaui_direct_get_link_status(struct cphy *phy, int *link_ok, in xaui_direct_get_link_status() argument [all …]
|
D | vsc8211.c | 130 static int vsc8211_get_link_status(struct cphy *cphy, int *link_ok, in vsc8211_get_link_status() argument 142 if (link_ok) { in vsc8211_get_link_status() 152 *link_ok = (status & BMSR_LSTATUS) != 0; in vsc8211_get_link_status() 206 static int vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok, in vsc8211_get_link_status_fiber() argument 218 if (link_ok) { in vsc8211_get_link_status_fiber() 228 *link_ok = (status & BMSR_LSTATUS) != 0; in vsc8211_get_link_status_fiber()
|
D | aq100x.c | 207 static int aq100x_get_link_status(struct cphy *phy, int *link_ok, in aq100x_get_link_status() argument 213 if (link_ok) { in aq100x_get_link_status() 218 *link_ok = v & 1; in aq100x_get_link_status() 219 if (!*link_ok) in aq100x_get_link_status()
|
D | t3_hw.c | 1208 int link_ok, speed, duplex, fc; in t3_link_changed() local 1214 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t3_link_changed() 1216 if (!lc->link_ok && link_ok) { in t3_link_changed() 1238 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed() 1242 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed() 1244 if (link_ok) in t3_link_changed() 1247 link_ok ? F_TXACTENABLE | F_RXEN : 0); in t3_link_changed() 1249 lc->link_ok = link_ok; in t3_link_changed() 1253 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t3_link_changed() 1259 t3_os_link_changed(adapter, port_id, link_ok && !pi->link_fault, in t3_link_changed() [all …]
|
D | common.h | 436 unsigned int link_ok; /* link up? */ member 531 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88x201x.c | 171 static int mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, in mv88x201x_get_link_status() argument 176 if (link_ok) { in mv88x201x_get_link_status() 180 *link_ok = (val == MDIO_STAT1_LSTATUS); in mv88x201x_get_link_status() 182 led_link(cphy, *link_ok); in mv88x201x_get_link_status()
|
D | my3126.c | 110 int *link_ok, int *speed, int *duplex, int *fc) in my3126_get_link_status() argument 124 *link_ok = (val16 & MDIO_STAT1_LSTATUS); in my3126_get_link_status() 126 if (*link_ok) { in my3126_get_link_status()
|
D | mv88e1xxx.c | 240 static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, in mv88e1xxx_get_link_status() argument 262 if (link_ok) in mv88e1xxx_get_link_status() 263 *link_ok = (status & V_PSSR_LINK) != 0; in mv88e1xxx_get_link_status()
|
D | subr.c | 152 int link_ok, speed, duplex, fc; in t1_link_changed() local 156 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t1_link_changed() 163 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed() 170 t1_link_negotiated(adapter, port_id, link_ok, speed, duplex, fc); in t1_link_changed()
|
D | cphy.h | 84 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 1357 int action, port_id, link_ok, speed, fc, pidx; in t4vf_handle_fw_rpl() local 1375 link_ok = (word & FW_PORT_CMD_LSTATUS) != 0; in t4vf_handle_fw_rpl() 1405 if (link_ok != lc->link_ok || speed != lc->speed || in t4vf_handle_fw_rpl() 1408 lc->link_ok = link_ok; in t4vf_handle_fw_rpl() 1411 t4vf_os_link_changed(adapter, pidx, link_ok); in t4vf_handle_fw_rpl()
|
D | t4vf_common.h | 113 unsigned char link_ok; /* link up? */ member
|
D | cxgb4vf_main.c | 143 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) in t4vf_os_link_changed() argument 151 if (!netif_running(dev) || link_ok == netif_carrier_ok(dev)) in t4vf_os_link_changed() 158 if (link_ok) { in t4vf_os_link_changed() 787 pi->link_cfg.link_ok = 0; in cxgb4vf_stop()
|
/drivers/net/ethernet/sfc/ |
D | tenxpress.c | 256 static void sfx7101_check_bad_lp(struct efx_nic *efx, bool link_ok) in sfx7101_check_bad_lp() argument 262 if (link_ok) { in sfx7101_check_bad_lp()
|
D | falcon.c | 1049 bool align_done, link_ok = false; in falcon_xgxs_link_ok() local 1058 link_ok = true; in falcon_xgxs_link_ok() 1066 return link_ok; in falcon_xgxs_link_ok()
|
/drivers/net/ethernet/dec/tulip/ |
D | dmfe.c | 1146 int link_ok, link_ok_phy; in dmfe_timer() local 1217 link_ok = 0; in dmfe_timer() 1219 link_ok = 1; in dmfe_timer() 1224 link_ok = (tmp_cr12 & 0x43) ? 1 : 0; in dmfe_timer() 1237 if (link_ok_phy != link_ok) { in dmfe_timer() 1239 link_ok = link_ok | link_ok_phy; in dmfe_timer() 1242 if ( !link_ok && netif_carrier_ok(dev)) { in dmfe_timer()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4_hw.c | 1241 lc->link_ok = 0; in t4_link_start() 3818 int link_ok = (stat & FW_PORT_CMD_LSTATUS) != 0; in t4_handle_fw_rpl() local 3834 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_fw_rpl() 3836 lc->link_ok = link_ok; in t4_handle_fw_rpl() 3840 t4_os_link_changed(adap, port, link_ok); in t4_handle_fw_rpl()
|
D | cxgb4.h | 354 unsigned char link_ok; /* link up? */ member
|
/drivers/net/ethernet/realtek/ |
D | r8169.c | 814 unsigned int (*link_ok)(void __iomem *); member 1657 if (tp->link_ok(ioaddr)) { in __rtl8169_check_link_status() 4272 if (tp->link_ok(ioaddr)) in rtl_phy_work() 8189 tp->link_ok = rtl8169_tbi_link_ok; in rtl_init_one() 8196 tp->link_ok = rtl8169_xmii_link_ok; in rtl_init_one()
|
/drivers/net/ethernet/sun/ |
D | niu.c | 1063 int link_ok = 1; in link_status_10g_serdes() local 1078 link_ok = 0; in link_status_10g_serdes() 1080 if ((val & 0x1000ULL) && link_ok) { in link_status_10g_serdes()
|