/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
H A D | mv88x201x.c | 171 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()
|
H A D | my3126.c | 111 int *link_ok, int *speed, int *duplex, int *fc) in my3126_get_link_status() 125 *link_ok = (val16 & MDIO_STAT1_LSTATUS); in my3126_get_link_status() 127 if (*link_ok) { in my3126_get_link_status() 110 my3126_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) my3126_get_link_status() argument
|
H A D | mv88e1xxx.c | 241 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()
|
H A D | cphy.h | 84 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
|
H A D | subr.c | 152 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/ |
H A D | mv88x201x.c | 162 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()
|
H A D | my3126.c | 111 int *link_ok, int *speed, int *duplex, int *fc) in my3126_get_link_status() 125 *link_ok = (val16 & MDIO_STAT1_LSTATUS); in my3126_get_link_status() 127 if (*link_ok) { in my3126_get_link_status() 110 my3126_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) my3126_get_link_status() argument
|
H A D | mv88e1xxx.c | 241 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()
|
H A D | cphy.h | 75 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | vsc8211.c | 130 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()
|
H A D | ael1002.c | 176 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() 829 static int get_link_status_x(struct cphy *phy, int *link_ok, int *speed, in get_link_status_x() argument 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 [all...] |
H A D | aq100x.c | 207 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()
|
H A D | t3_hw.c | 1242 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 in t3_link_changed() 1303 int link_ok, speed, duplex, fc, link_fault; t3_link_fault() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | vsc8211.c | 130 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()
|
H A D | ael1002.c | 176 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() 829 static int get_link_status_x(struct cphy *phy, int *link_ok, int *speed, in get_link_status_x() argument 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 [all...] |
H A D | aq100x.c | 207 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()
|
H A D | t3_hw.c | 1177 int link_ok, speed, duplex, fc; in t3_link_changed() local 1183 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t3_link_changed() 1185 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() 1216 link_ok in t3_link_changed() 1238 int link_ok, speed, duplex, fc, link_fault; t3_link_fault() local [all...] |
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
H A D | native.c | 44 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control() 121 if (!cxl_ops->link_ok(afu->adapter, afu)) { in native_afu_check_and_enable() 149 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge() 171 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge() 308 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9() 329 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8() 340 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8() 374 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush() 421 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid() 452 if (!cxl_ops->link_ok(ct in do_process_element_cmd() [all...] |
H A D | file.c | 77 if (!cxl_ops->link_ok(adapter, afu)) { in __afu_open() 317 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_ioctl() 347 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_mmap() 434 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_read() 447 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in afu_read()
|
/kernel/linux/linux-6.6/drivers/misc/cxl/ |
H A D | native.c | 45 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control() 122 if (!cxl_ops->link_ok(afu->adapter, afu)) { in native_afu_check_and_enable() 150 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge() 172 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_psl_purge() 304 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl9() 325 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8() 336 if (!cxl_ops->link_ok(adapter, NULL)) in cxl_invalidate_all_psl8() 370 if (!cxl_ops->link_ok(adapter, NULL)) { in cxl_data_cache_flush() 417 if (!cxl_ops->link_ok(adapter, NULL)) in slb_invalid() 448 if (!cxl_ops->link_ok(ct in do_process_element_cmd() [all...] |
H A D | file.c | 77 if (!cxl_ops->link_ok(adapter, afu)) { in __afu_open() 317 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_ioctl() 347 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_mmap() 434 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) in afu_read() 447 if (!cxl_ops->link_ok(ctx->afu->adapter, ctx->afu)) { in afu_read()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 1430 rx_en && tx_en && pi->link_cfg.link_ok); in t4vf_enable_pi() 1920 int action, link_ok, linkdnrc; in t4vf_handle_get_port_info() local 1929 link_ok = (lstatus & FW_PORT_CMD_LSTATUS_F) != 0; in t4vf_handle_get_port_info() 1966 link_ok = (lstatus32 & FW_PORT_CMD_LSTATUS32_F) != 0; in t4vf_handle_get_port_info() 2014 if (link_ok != lc->link_ok || speed != lc->speed || in t4vf_handle_get_port_info() 2018 if (!link_ok && lc->link_ok) { in t4vf_handle_get_port_info() 2025 lc->link_ok = link_ok; in t4vf_handle_get_port_info() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 1431 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() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
H A D | tenxpress.c | 253 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
H A D | tenxpress.c | 253 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()
|