Home
last modified time | relevance | path

Searched refs:link_ok (Results 1 – 20 of 20) sorted by relevance

/drivers/net/ethernet/chelsio/cxgb3/
Dael1002.c176 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 …]
Dvsc8211.c130 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()
Daq100x.c207 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()
Dt3_hw.c1208 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 …]
Dcommon.h436 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/
Dmv88x201x.c171 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()
Dmy3126.c110 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()
Dmv88e1xxx.c240 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()
Dsubr.c152 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()
Dcphy.h84 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1357 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()
Dt4vf_common.h113 unsigned char link_ok; /* link up? */ member
Dcxgb4vf_main.c143 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/
Dtenxpress.c256 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()
Dfalcon.c1049 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/
Ddmfe.c1146 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/
Dt4_hw.c1241 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()
Dcxgb4.h354 unsigned char link_ok; /* link up? */ member
/drivers/net/ethernet/realtek/
Dr8169.c814 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/
Dniu.c1063 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()