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

/drivers/net/ethernet/chelsio/cxgb/
H A Dmv88x201x.c171 static int mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, argument
176 if (link_ok) {
180 *link_ok = (val == MDIO_STAT1_LSTATUS);
182 led_link(cphy, *link_ok);
H A Dmy3126.c110 int *link_ok, int *speed, int *duplex, int *fc)
124 *link_ok = (val16 & MDIO_STAT1_LSTATUS);
126 if (*link_ok) {
109 my3126_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument
H A Dmv88e1xxx.c240 static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, argument
262 if (link_ok)
263 *link_ok = (status & V_PSSR_LINK) != 0;
H A Dcphy.h84 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
H A Dsubr.c152 int link_ok, speed, duplex, fc; local
156 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc);
163 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) {
170 t1_link_negotiated(adapter, port_id, link_ok, speed, duplex, fc);
/drivers/net/ethernet/chelsio/cxgb3/
H A Dvsc8211.c130 static int vsc8211_get_link_status(struct cphy *cphy, int *link_ok, argument
142 if (link_ok) {
152 *link_ok = (status & BMSR_LSTATUS) != 0;
206 static int vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok, argument
218 if (link_ok) {
228 *link_ok = (status & BMSR_LSTATUS) != 0;
H A Daq100x.c207 static int aq100x_get_link_status(struct cphy *phy, int *link_ok, argument
213 if (link_ok) {
218 *link_ok = v & 1;
219 if (!*link_ok)
H A Dael1002.c176 static int get_link_status_r(struct cphy *phy, int *link_ok, int *speed, argument
179 if (link_ok) {
192 *link_ok = (stat0 & stat1 & (stat2 >> 12)) & 1;
641 int err, link_ok = 0; local
648 err = get_link_status_r(phy, &link_ok, NULL, NULL, NULL);
651 if (link_ok)
834 static int get_link_status_x(struct cphy *phy, int *link_ok, int *speed, argument
837 if (link_ok) {
850 *link_ok = (stat0 & (stat1 >> 12) & (stat2 >> 12)) & 1;
895 static int xaui_direct_get_link_status(struct cphy *phy, int *link_ok, argument
[all...]
H A Dt3_hw.c1208 int link_ok, speed, duplex, fc; local
1214 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc);
1216 if (!lc->link_ok && link_ok) {
1238 if (link_ok == lc->link_ok && speed == lc->speed &&
1242 if (link_ok != lc->link_ok && adapter->params.rev > 0 &&
1244 if (link_ok)
1247 link_ok
1269 int link_ok, speed, duplex, fc, link_fault; local
[all...]
H A Dcommon.h436 unsigned int link_ok; /* link up? */ member in struct:link_config
531 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dt4vf_common.h113 unsigned char link_ok; /* link up? */ member in struct:link_config
H A Dt4vf_hw.c1357 int action, port_id, link_ok, speed, fc, pidx; local
1375 link_ok = (word & FW_PORT_CMD_LSTATUS) != 0;
1405 if (link_ok != lc->link_ok || speed != lc->speed ||
1408 lc->link_ok = link_ok;
1411 t4vf_os_link_changed(adapter, pidx, link_ok);
H A Dcxgb4vf_main.c143 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok) argument
151 if (!netif_running(dev) || link_ok == netif_carrier_ok(dev))
158 if (link_ok) {
787 pi->link_cfg.link_ok = 0;
/drivers/net/ethernet/sfc/
H A Dtenxpress.c256 static void sfx7101_check_bad_lp(struct efx_nic *efx, bool link_ok) argument
262 if (link_ok) {
H A Dfalcon.c1049 bool align_done, link_ok = false; local
1058 link_ok = true;
1066 return link_ok;
/drivers/net/ethernet/dec/tulip/
H A Ddmfe.c1146 int link_ok, link_ok_phy; local
1217 link_ok = 0;
1219 link_ok = 1;
1224 link_ok = (tmp_cr12 & 0x43) ? 1 : 0;
1237 if (link_ok_phy != link_ok) {
1239 link_ok = link_ok | link_ok_phy;
1242 if ( !link_ok && netif_carrier_ok(dev)) {
/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c1241 lc->link_ok = 0;
3818 int link_ok = (stat & FW_PORT_CMD_LSTATUS) != 0; local
3834 if (link_ok != lc->link_ok || speed != lc->speed ||
3836 lc->link_ok = link_ok;
3840 t4_os_link_changed(adap, port, link_ok);
H A Dcxgb4.h354 unsigned char link_ok; /* link up? */ member in struct:link_config
/drivers/net/ethernet/realtek/
H A Dr8169.c813 unsigned int (*link_ok)(void __iomem *); member in struct:rtl8169_private
1656 if (tp->link_ok(ioaddr)) {
4271 if (tp->link_ok(ioaddr))
8198 tp->link_ok = rtl8169_tbi_link_ok;
8205 tp->link_ok = rtl8169_xmii_link_ok;
/drivers/net/ethernet/sun/
H A Dniu.c1063 int link_ok = 1; local
1078 link_ok = 0;
1080 if ((val & 0x1000ULL) && link_ok) {

Completed in 383 milliseconds