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()
481 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_send_queue_count_update()
513 max_combined = lio->linfo.num_txpciq; in lio_ethtool_get_channels()
622 max_combined = lio->linfo.num_txpciq; in lio_ethtool_set_channels()
716 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_gpio_access()
742 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_id_active()
785 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_mdio45_access()
833 struct oct_link_info *linfo; in lio_set_phys_id() local
837 linfo = &lio->linfo; in lio_set_phys_id()
879 if (linfo->link.s.phy_type == LIO_PHY_PORT_TP && in lio_set_phys_id()
891 linfo->link.s.phy_type == LIO_PHY_PORT_TP && in lio_set_phys_id()
904 linfo->link.s.phy_type == LIO_PHY_PORT_TP && in lio_set_phys_id()
1057 lio->linfo.num_rxpciq = hweight64(resp->cfg_info.iqmask); in lio_23xx_reconfigure_queue_count()
1058 lio->linfo.num_txpciq = hweight64(resp->cfg_info.iqmask); in lio_23xx_reconfigure_queue_count()
1059 for (j = 0; j < lio->linfo.num_rxpciq; j++) { in lio_23xx_reconfigure_queue_count()
1060 lio->linfo.rxpciq[j].u64 = in lio_23xx_reconfigure_queue_count()
1061 resp->cfg_info.linfo.rxpciq[j].u64; in lio_23xx_reconfigure_queue_count()
1064 for (j = 0; j < lio->linfo.num_txpciq; j++) { in lio_23xx_reconfigure_queue_count()
1065 lio->linfo.txpciq[j].u64 = in lio_23xx_reconfigure_queue_count()
1066 resp->cfg_info.linfo.txpciq[j].u64; in lio_23xx_reconfigure_queue_count()
1069 lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr; in lio_23xx_reconfigure_queue_count()
1070 lio->linfo.gmxport = resp->cfg_info.linfo.gmxport; in lio_23xx_reconfigure_queue_count()
1071 lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64; in lio_23xx_reconfigure_queue_count()
1072 lio->txq = lio->linfo.txpciq[0].s.q_no; in lio_23xx_reconfigure_queue_count()
1073 lio->rxq = lio->linfo.rxpciq[0].s.q_no; in lio_23xx_reconfigure_queue_count()
1076 lio->linfo.num_rxpciq); in lio_23xx_reconfigure_queue_count()
1374 struct oct_link_info *linfo = &lio->linfo; in lio_set_pauseparam() local
1381 if (linfo->link.s.duplex == 0) { in lio_set_pauseparam()
1395 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in lio_set_pauseparam()
1760 j = lio->linfo.txpciq[vj].s.q_no; in lio_vf_get_ethtool_stats()
1802 j = lio->linfo.rxpciq[vj].s.q_no; in lio_vf_get_ethtool_stats()
2019 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_get_intrmod_cfg()
2078 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in octnet_set_intrmod_cfg()
2152 iq = oct->instr_queue[lio->linfo.txpciq[0].s.q_no]; in lio_get_intr_coalesce()
2440 for (j = 0; j < lio->linfo.num_txpciq; j++) { in lio_set_intr_coalesce()
2441 q_no = lio->linfo.txpciq[j].s.q_no; in lio_set_intr_coalesce()