Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/common/io/chxge/com/
H A Dxpak.c62 static int xpak_get_link_status(struct cphy *cphy, int *link_ok, int *speed, in xpak_get_link_status() argument
65 if (link_ok) in xpak_get_link_status()
66 *link_ok = 1; in xpak_get_link_status()
H A Dmv88x201x.c161 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 == LINK_STATUS_BIT); in mv88x201x_get_link_status()
173 (void) led_link(cphy, *link_ok); in mv88x201x_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.c267 static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, in mv88e1xxx_get_link_status() argument
288 if (link_ok) in mv88e1xxx_get_link_status()
289 *link_ok = (status & V_PSSR_LINK) != 0; in mv88e1xxx_get_link_status()
H A Dcphy.h72 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
H A Dch_subr.c162 int link_ok, speed, duplex, fc; in link_changed() local
166 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in link_changed()
173 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in link_changed()
180 t1_os_link_changed(adapter, port_id, link_ok, speed, duplex, fc); in link_changed()
/titanic_50/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_mac.c108 if (lc->link_ok != 0) { in t4_mc_getstat()
310 if (lc->link_ok != 0) in t4_mc_getstat()
663 *(link_duplex_t *)val = lc->link_ok ? LINK_DUPLEX_FULL : in t4_mc_getprop()
668 if (lc->link_ok != 0) { in t4_mc_getprop()
676 *(link_state_t *)val = lc->link_ok ? LINK_STATE_UP : in t4_mc_getprop()
928 pi->link_cfg.link_ok = 0; in t4_uninit_synchronized()
/titanic_50/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c1547 lc->link_ok = 0; in t4_link_start()
4817 unsigned char link_ok = (stat & F_FW_PORT_CMD_LSTATUS) != 0; in t4_handle_fw_rpl() local
4839 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_fw_rpl()
4841 lc->link_ok = link_ok; in t4_handle_fw_rpl()
4844 t4_os_link_changed(adap, i, link_ok); in t4_handle_fw_rpl()
H A Dcommon.h292 unsigned char link_ok; /* link up? */ member