Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dmv88x201x.c159 static int mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, in mv88x201x_get_link_status() argument
165 if (link_ok) { in mv88x201x_get_link_status()
169 *link_ok = (val == LINK_STATUS_BIT); in mv88x201x_get_link_status()
171 (void) led_link(cphy, *link_ok); in mv88x201x_get_link_status()
H A Dxpak.c60 static int xpak_get_link_status(struct cphy *cphy, int *link_ok, int *speed, in xpak_get_link_status() argument
63 if (link_ok) in xpak_get_link_status()
64 *link_ok = 1; in xpak_get_link_status()
H A Dmy3126.c132 int *link_ok, int *speed, int *duplex, int *fc) in my3126_get_link_status() argument
146 *link_ok = (val16 & BMSR_LSTATUS); in my3126_get_link_status()
147 if (*link_ok) { in my3126_get_link_status()
H A Dmv88e1xxx.c265 static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, in mv88e1xxx_get_link_status() argument
286 if (link_ok) in mv88e1xxx_get_link_status()
287 *link_ok = (status & V_PSSR_LINK) != 0; in mv88e1xxx_get_link_status()
H A Dcphy.h70 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
H A Dch_subr.c160 int link_ok, speed, duplex, fc; in link_changed() local
164 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in link_changed()
171 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in link_changed()
178 t1_os_link_changed(adapter, port_id, link_ok, speed, duplex, fc); in link_changed()
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_mac.c215 if (lc->link_ok != 0) { in t4_port_to_media()
321 if (lc->link_ok != 0) { in t4_mc_getstat()
649 if (lc->link_ok != 0) in t4_mc_getstat()
1463 *(link_duplex_t *)val = lc->link_ok ? LINK_DUPLEX_FULL : in t4_mc_getprop()
1468 if (lc->link_ok != 0) { in t4_mc_getprop()
1478 *(link_state_t *)val = lc->link_ok ? LINK_STATE_UP : in t4_mc_getprop()
1814 pi->link_cfg.link_ok = 0; in t4_uninit_synchronized()
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c8680 rx_en && tx_en && pi->link_cfg.link_ok); in t4_enable_pi_params()
9433 int link_ok, linkdnrc; in t4_handle_get_port_info() local
9445 link_ok = (lstatus & F_FW_PORT_CMD_LSTATUS) != 0; in t4_handle_get_port_info()
9459 link_ok = (lstatus32 & F_FW_PORT_CMD_LSTATUS32) != 0; in t4_handle_get_port_info()
9514 if (link_ok != lc->link_ok || acaps != lc->acaps || in t4_handle_get_port_info()
9517 if (!link_ok && lc->link_ok) { in t4_handle_get_port_info()
9524 lc->link_ok = link_ok; in t4_handle_get_port_info()
9529 t4_os_link_changed(adapter, pi->port_id, link_ok); in t4_handle_get_port_info()
9605 unsigned int action, link_ok, mtu; in t4_get_link_params() local
9627 link_ok = !!(lstatus & F_FW_PORT_CMD_LSTATUS); in t4_get_link_params()
[all …]
H A Dcommon.h509 unsigned char link_ok; /* link up? */ member