Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/chelsio/cxgb3/
A 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()
832 if (link_ok) { in get_link_status_x()
845 *link_ok = (stat0 & (stat1 >> 12) & (stat2 >> 12)) & 1; in get_link_status_x()
890 static int xaui_direct_get_link_status(struct cphy *phy, int *link_ok, in xaui_direct_get_link_status() argument
893 if (link_ok) { in xaui_direct_get_link_status()
[all …]
A 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()
A 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()
A Dt3_hw.c1185 if (!lc->link_ok && link_ok) { in t3_link_changed()
1207 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed()
1211 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed()
1213 if (link_ok) in t3_link_changed()
1218 lc->link_ok = link_ok; in t3_link_changed()
1255 link_ok = lc->link_ok; in t3_link_fault()
1263 lc->link_ok = 0; in t3_link_fault()
1270 if (link_ok) in t3_link_fault()
1273 if (link_ok) in t3_link_fault()
1278 lc->link_ok = (unsigned char)link_ok; in t3_link_fault()
[all …]
A 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/
A Dmv88x201x.c162 static int mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, in mv88x201x_get_link_status() argument
167 if (link_ok) { in mv88x201x_get_link_status()
171 *link_ok = (val == MDIO_STAT1_LSTATUS); in mv88x201x_get_link_status()
173 led_link(cphy, *link_ok); in mv88x201x_get_link_status()
A Dmy3126.c111 int *link_ok, int *speed, int *duplex, int *fc) in my3126_get_link_status() argument
125 *link_ok = (val16 & MDIO_STAT1_LSTATUS); in my3126_get_link_status()
127 if (*link_ok) { in my3126_get_link_status()
A Dmv88e1xxx.c241 static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, in mv88e1xxx_get_link_status() argument
263 if (link_ok) in mv88e1xxx_get_link_status()
264 *link_ok = (status & V_PSSR_LINK) != 0; in mv88e1xxx_get_link_status()
A Dcphy.h75 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
A Dsubr.c143 int link_ok, speed, duplex, fc; in t1_link_changed() local
147 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t1_link_changed()
154 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed()
161 t1_link_negotiated(adapter, port_id, link_ok, speed, duplex, fc); in t1_link_changed()
/drivers/net/ethernet/chelsio/cxgb4vf/
A Dt4vf_hw.c1431 rx_en && tx_en && pi->link_cfg.link_ok); in t4vf_enable_pi()
1921 int action, link_ok, linkdnrc; in t4vf_handle_get_port_info() local
1930 link_ok = (lstatus & FW_PORT_CMD_LSTATUS_F) != 0; in t4vf_handle_get_port_info()
1967 link_ok = (lstatus32 & FW_PORT_CMD_LSTATUS32_F) != 0; in t4vf_handle_get_port_info()
2015 if (link_ok != lc->link_ok || speed != lc->speed || in t4vf_handle_get_port_info()
2019 if (!link_ok && lc->link_ok) { in t4vf_handle_get_port_info()
2026 lc->link_ok = link_ok; in t4vf_handle_get_port_info()
2055 t4vf_os_link_changed(adapter, pi->pidx, link_ok); in t4vf_handle_get_port_info()
A Dt4vf_common.h146 unsigned char link_ok; /* link up? */ member
A Dcxgb4vf_main.c137 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) in t4vf_os_link_changed() argument
145 if (!netif_running(dev) || link_ok == netif_carrier_ok(dev)) in t4vf_os_link_changed()
152 if (link_ok) { in t4vf_os_link_changed()
/drivers/net/ethernet/sfc/falcon/
A Dtenxpress.c253 static void sfx7101_check_bad_lp(struct ef4_nic *efx, bool link_ok) in sfx7101_check_bad_lp() argument
259 if (link_ok) { in sfx7101_check_bad_lp()
A Dfalcon.c1064 bool align_done, link_ok = false; in falcon_xgxs_link_ok() local
1073 link_ok = true; in falcon_xgxs_link_ok()
1081 return link_ok; in falcon_xgxs_link_ok()
/drivers/net/ethernet/dec/tulip/
A Ddmfe.c1125 int link_ok, link_ok_phy; in dmfe_timer() local
1196 link_ok = 0; in dmfe_timer()
1198 link_ok = 1; in dmfe_timer()
1203 link_ok = (tmp_cr12 & 0x43) ? 1 : 0; in dmfe_timer()
1216 if (link_ok_phy != link_ok) { in dmfe_timer()
1218 link_ok = link_ok | link_ok_phy; in dmfe_timer()
1221 if ( !link_ok && netif_carrier_ok(dev)) { in dmfe_timer()
/drivers/gpu/drm/nouveau/
A Dnouveau_dp.c470 bool link_ok = true; in nouveau_dp_link_check() local
475 link_ok = nouveau_dp_link_check_locked(outp); in nouveau_dp_link_check()
479 return link_ok; in nouveau_dp_link_check()
/drivers/net/ethernet/chelsio/cxgb4/
A Dt4_hw.c8281 rx_en && tx_en && pi->link_cfg.link_ok); in t4_enable_pi_params()
8577 int action, link_ok, linkdnrc; in t4_handle_get_port_info() local
8587 link_ok = (lstatus & FW_PORT_CMD_LSTATUS_F) != 0; in t4_handle_get_port_info()
8676 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_get_port_info()
8680 if (!link_ok && lc->link_ok) { in t4_handle_get_port_info()
8687 lc->link_ok = link_ok; in t4_handle_get_port_info()
8715 t4_os_link_changed(adapter, pi->port_id, link_ok); in t4_handle_get_port_info()
8790 unsigned int action, link_ok, mtu; in t4_get_link_params() local
8813 link_ok = !!(lstatus & FW_PORT_CMD_LSTATUS_F); in t4_get_link_params()
8820 link_ok = !!(lstatus32 & FW_PORT_CMD_LSTATUS32_F); in t4_get_link_params()
[all …]
A Dcxgb4.h596 unsigned char link_ok; /* link up? */ member
A Dcxgb4_main.c3283 unsigned int link_ok, speed, mtu; in cxgb4_mgmt_set_vf_rate() local
3320 ret = t4_get_link_params(pi, &link_ok, &speed, &mtu); in cxgb4_mgmt_set_vf_rate()
3327 if (!link_ok) { in cxgb4_mgmt_set_vf_rate()
/drivers/scsi/csiostor/
A Dcsio_hw.h311 unsigned char link_ok; /* link up? */ member
/drivers/gpu/drm/i915/display/
A Dintel_psr.c2069 intel_dp->psr.link_ok = true; in intel_psr_enable_locked()
2235 intel_dp->psr.link_ok = false; in intel_psr_disable()
3584 psr->link_ok = false; in intel_psr_short_pulse()
3666 ret = intel_dp->psr.link_ok; in intel_psr_link_ok()
A Dintel_dp.c5112 bool link_ok = true; in intel_dp_check_mst_status() local
5122 link_ok = false; in intel_dp_check_mst_status()
5129 if (intel_dp_mst_active_streams(intel_dp) > 0 && link_ok && in intel_dp_check_mst_status()
5132 link_ok = false; in intel_dp_check_mst_status()
5155 if (!link_ok || intel_dp->link.force_retrain) in intel_dp_check_mst_status()
A Dintel_display_types.h1685 bool link_ok; member
/drivers/net/ethernet/sun/
A Dniu.c1083 int link_ok = 1; in link_status_10g_serdes() local
1098 link_ok = 0; in link_status_10g_serdes()
1100 if ((val & 0x1000ULL) && link_ok) { in link_status_10g_serdes()

Completed in 152 milliseconds

12