Lines Matching refs:linfo
220 struct oct_link_info *linfo; in lio_get_link_ksettings() local
222 linfo = &lio->linfo; in lio_get_link_ksettings()
227 switch (linfo->link.s.phy_type) { in lio_get_link_ksettings()
243 if (linfo->link.s.if_mode == INTERFACE_MODE_XAUI || in lio_get_link_ksettings()
244 linfo->link.s.if_mode == INTERFACE_MODE_RXAUI || in lio_get_link_ksettings()
245 linfo->link.s.if_mode == INTERFACE_MODE_XLAUI || in lio_get_link_ksettings()
246 linfo->link.s.if_mode == INTERFACE_MODE_XFI) { in lio_get_link_ksettings()
251 linfo->link.s.if_mode); in lio_get_link_ksettings()
330 if (linfo->link.s.speed == 10000) { in lio_get_link_ksettings()
352 if (linfo->link.s.speed == 25000) { in lio_get_link_ksettings()
383 if (linfo->link.s.link_up) { in lio_get_link_ksettings()
384 ecmd->base.speed = linfo->link.s.speed; in lio_get_link_ksettings()
385 ecmd->base.duplex = linfo->link.s.duplex; in lio_get_link_ksettings()
399 struct oct_link_info *linfo; in lio_set_link_ksettings() local
404 linfo = &lio->linfo; in lio_set_link_ksettings()
417 ecmd->base.duplex != linfo->link.s.duplex) || in lio_set_link_ksettings()
483 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update()
515 max_combined = lio->linfo.num_txpciq; in lio_ethtool_get_channels()
624 max_combined = lio->linfo.num_txpciq; in lio_ethtool_set_channels()
718 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access()
744 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active()
787 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_mdio45_access()
835 struct oct_link_info *linfo; in lio_set_phys_id() local
839 linfo = &lio->linfo; in lio_set_phys_id()
881 if (linfo->link.s.phy_type == LIO_PHY_PORT_TP && in lio_set_phys_id()
893 linfo->link.s.phy_type == LIO_PHY_PORT_TP && in lio_set_phys_id()
906 linfo->link.s.phy_type == LIO_PHY_PORT_TP && in lio_set_phys_id()
1059 lio->linfo.num_rxpciq = hweight64(resp->cfg_info.iqmask); in lio_23xx_reconfigure_queue_count()
1060 lio->linfo.num_txpciq = hweight64(resp->cfg_info.iqmask); in lio_23xx_reconfigure_queue_count()
1061 for (j = 0; j < lio->linfo.num_rxpciq; j++) { in lio_23xx_reconfigure_queue_count()
1062 lio->linfo.rxpciq[j].u64 = in lio_23xx_reconfigure_queue_count()
1063 resp->cfg_info.linfo.rxpciq[j].u64; in lio_23xx_reconfigure_queue_count()
1066 for (j = 0; j < lio->linfo.num_txpciq; j++) { in lio_23xx_reconfigure_queue_count()
1067 lio->linfo.txpciq[j].u64 = in lio_23xx_reconfigure_queue_count()
1068 resp->cfg_info.linfo.txpciq[j].u64; in lio_23xx_reconfigure_queue_count()
1071 lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr; in lio_23xx_reconfigure_queue_count()
1072 lio->linfo.gmxport = resp->cfg_info.linfo.gmxport; in lio_23xx_reconfigure_queue_count()
1073 lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64; in lio_23xx_reconfigure_queue_count()
1074 lio->txq = lio->linfo.txpciq[0].s.q_no; in lio_23xx_reconfigure_queue_count()
1075 lio->rxq = lio->linfo.rxpciq[0].s.q_no; in lio_23xx_reconfigure_queue_count()
1078 lio->linfo.num_rxpciq); in lio_23xx_reconfigure_queue_count()
1376 struct oct_link_info *linfo = &lio->linfo; in lio_set_pauseparam() local
1383 if (linfo->link.s.duplex == 0) { in lio_set_pauseparam()
1397 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam()
1762 j = lio->linfo.txpciq[vj].s.q_no; in lio_vf_get_ethtool_stats()
1804 j = lio->linfo.rxpciq[vj].s.q_no; in lio_vf_get_ethtool_stats()
2021 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_get_intrmod_cfg()
2080 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_set_intrmod_cfg()
2154 iq = oct->instr_queue[lio->linfo.txpciq[0].s.q_no]; in lio_get_intr_coalesce()
2442 for (j = 0; j < lio->linfo.num_txpciq; j++) { in lio_set_intr_coalesce()
2443 q_no = lio->linfo.txpciq[j].s.q_no; in lio_set_intr_coalesce()