Home
last modified time | relevance | path

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

12

/Linux-v4.19/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.c1242 int link_ok, speed, duplex, fc; in t3_link_changed() local
1248 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t3_link_changed()
1250 if (!lc->link_ok && link_ok) { in t3_link_changed()
1272 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed()
1276 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed()
1278 if (link_ok) in t3_link_changed()
1281 link_ok ? F_TXACTENABLE | F_RXEN : 0); in t3_link_changed()
1283 lc->link_ok = link_ok; in t3_link_changed()
1287 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t3_link_changed()
1293 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,
/Linux-v4.19/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.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()
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()
Dcphy.h84 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
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()
/Linux-v4.19/drivers/misc/cxl/
Dnative.c48 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control()
125 if (!cxl_ops->link_ok(afu->adapter, afu)) { in native_afu_check_and_enable()
153 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge()
175 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge()
312 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9()
333 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
344 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8()
378 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush()
425 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid()
456 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in do_process_element_cmd()
[all …]
Dfile.c81 if (!cxl_ops->link_ok(adapter, afu)) { in __afu_open()
321 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_ioctl()
351 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_mmap()
438 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_read()
451 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in afu_read()
Dvphb.c52 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_pci_enable_device_hook()
Dcontext.c253 cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)); in __detach_context()
Dmain.c53 if (!cxl_ops->link_ok(afu->adapter, afu)) in cxl_afu_slbia()
Dguest.c649 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in guest_detach_process()
1187 .link_ok = guest_link_ok,
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1422 rx_en && tx_en && pi->link_cfg.link_ok); in t4vf_enable_pi()
1909 int link_ok, linkdnrc; in t4vf_handle_get_port_info() local
1920 link_ok = (lstatus & FW_PORT_CMD_LSTATUS_F) != 0; in t4vf_handle_get_port_info()
1957 link_ok = (lstatus32 & FW_PORT_CMD_LSTATUS32_F) != 0; in t4vf_handle_get_port_info()
2004 if (link_ok != lc->link_ok || speed != lc->speed || in t4vf_handle_get_port_info()
2006 if (!link_ok && lc->link_ok) { in t4vf_handle_get_port_info()
2011 lc->link_ok = link_ok; in t4vf_handle_get_port_info()
2039 t4vf_os_link_changed(adapter, pi->pidx, link_ok); in t4vf_handle_get_port_info()
Dt4vf_common.h145 unsigned char link_ok; /* link up? */ member
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dtenxpress.c256 static void sfx7101_check_bad_lp(struct ef4_nic *efx, bool link_ok) in sfx7101_check_bad_lp() argument
262 if (link_ok) { in sfx7101_check_bad_lp()
/Linux-v4.19/drivers/net/ethernet/dec/tulip/
Ddmfe.c1140 int link_ok, link_ok_phy; in dmfe_timer() local
1211 link_ok = 0; in dmfe_timer()
1213 link_ok = 1; in dmfe_timer()
1218 link_ok = (tmp_cr12 & 0x43) ? 1 : 0; in dmfe_timer()
1231 if (link_ok_phy != link_ok) { in dmfe_timer()
1233 link_ok = link_ok | link_ok_phy; in dmfe_timer()
1236 if ( !link_ok && netif_carrier_ok(dev)) { in dmfe_timer()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c8102 rx_en && tx_en && pi->link_cfg.link_ok); in t4_enable_pi_params()
8399 int link_ok, linkdnrc; in t4_handle_get_port_info() local
8411 link_ok = (lstatus & FW_PORT_CMD_LSTATUS_F) != 0; in t4_handle_get_port_info()
8426 link_ok = (lstatus32 & FW_PORT_CMD_LSTATUS32_F) != 0; in t4_handle_get_port_info()
8489 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_get_port_info()
8491 if (!link_ok && lc->link_ok) { in t4_handle_get_port_info()
8496 lc->link_ok = link_ok; in t4_handle_get_port_info()
8518 t4_os_link_changed(adapter, pi->port_id, link_ok); in t4_handle_get_port_info()
8590 unsigned int action, link_ok, speed, mtu; in t4_get_link_params() local
8612 link_ok = !!(lstatus & FW_PORT_CMD_LSTATUS_F); in t4_get_link_params()
[all …]
/Linux-v4.19/arch/mips/cavium-octeon/executive/
Dcvmx-helper-sgmii.c464 pcsx_anx_results_reg.s.link_ok; in __cvmx_helper_sgmii_link_get()
/Linux-v4.19/arch/mips/include/asm/octeon/
Dcvmx-pcsx-defs.h456 uint64_t link_ok:1; member
458 uint64_t link_ok:1;
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_hw.h311 unsigned char link_ok; /* link up? */ member
/Linux-v4.19/drivers/net/usb/
Dsmsc95xx.c76 bool link_ok; member
637 if (pdata->link_ok == link) in set_carrier()
640 pdata->link_ok = link; in set_carrier()

12