Lines Matching refs:sge
382 struct sge *s = &adapter->sge; in request_msix_queue_irqs()
420 struct sge *s = &adapter->sge; in free_msix_queue_irqs()
453 struct sge *s = &adapter->sge; in enable_rx()
476 struct sge *s = &adapter->sge; in quiesce_rx()
534 struct sge *s = &adapter->sge; in fwevtq_handler()
590 struct sge *s = &adapter->sge; in setup_sge_queues()
705 struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[pi->first_qset]; in setup_rss()
1019 static int closest_timer(const struct sge *s, int us) in closest_timer()
1035 static int closest_thres(const struct sge *s, int thres) in closest_thres()
1060 ? adapter->sge.timer_val[timer_idx] in qtimer_val()
1097 pktcnt_idx = closest_thres(&adapter->sge, cnt); in set_rxq_intr_params()
1116 : closest_timer(&adapter->sge, us)); in set_rxq_intr_params()
1239 rxq = &adapter->sge.ethrxq[pi->first_qset]; in cxgb4vf_poll_controller()
1599 const struct sge *s = &pi->adapter->sge; in cxgb4vf_get_ringparam()
1625 struct sge *s = &adapter->sge; in cxgb4vf_set_ringparam()
1660 const struct sge_rspq *rspq = &adapter->sge.ethrxq[pi->first_qset].rspq; in cxgb4vf_get_coalesce()
1665 ? adapter->sge.counter_val[rspq->pktcnt_idx] in cxgb4vf_get_coalesce()
1684 &adapter->sge.ethrxq[pi->first_qset].rspq, in cxgb4vf_set_coalesce()
1809 const struct sge_eth_txq *txq = &adapter->sge.ethtxq[pi->first_qset]; in collect_sge_port_stats()
1810 const struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[pi->first_qset]; in collect_sge_port_stats()
2044 int eth_entries = DIV_ROUND_UP(adapter->sge.ethqsets, QPL); in sge_qinfo_show()
2062 const struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[r * QPL]; in sge_qinfo_show()
2063 const struct sge_eth_txq *txq = &adapter->sge.ethtxq[r * QPL]; in sge_qinfo_show()
2064 int n = min(QPL, adapter->sge.ethqsets - QPL * r); in sge_qinfo_show()
2086 adapter->sge.counter_val[rxq[qs].rspq.pktcnt_idx]); in sge_qinfo_show()
2099 const struct sge_rspq *evtq = &adapter->sge.fw_evtq; in sge_qinfo_show()
2106 adapter->sge.counter_val[evtq->pktcnt_idx]); in sge_qinfo_show()
2110 const struct sge_rspq *intrq = &adapter->sge.intrq; in sge_qinfo_show()
2117 adapter->sge.counter_val[intrq->pktcnt_idx]); in sge_qinfo_show()
2140 return DIV_ROUND_UP(adapter->sge.ethqsets, QPL) + 1 + in sge_queue_entries()
2180 int eth_entries = DIV_ROUND_UP(adapter->sge.ethqsets, QPL); in sge_qstats_show()
2202 const struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[r * QPL]; in sge_qstats_show()
2203 const struct sge_eth_txq *txq = &adapter->sge.ethtxq[r * QPL]; in sge_qstats_show()
2204 int n = min(QPL, adapter->sge.ethqsets - QPL * r); in sge_qstats_show()
2232 const struct sge_rspq *evtq = &adapter->sge.fw_evtq; in sge_qstats_show()
2240 const struct sge_rspq *intrq = &adapter->sge.intrq; in sge_qstats_show()
2269 return DIV_ROUND_UP(adapter->sge.ethqsets, QPL) + 1 + in sge_qstats_entries()
2500 adapter->sge.max_ethqsets = ethqsets; in size_nports_qsets()
2502 if (adapter->sge.max_ethqsets < adapter->params.nports) { in size_nports_qsets()
2505 adapter->sge.max_ethqsets, adapter->params.nports); in size_nports_qsets()
2506 adapter->params.nports = adapter->sge.max_ethqsets; in size_nports_qsets()
2517 struct sge_params *sge_params = &adapter->params.sge; in adap_init0()
2518 struct sge *s = &adapter->sge; in adap_init0()
2670 struct sge *s = &adapter->sge; in cfg_queues()
2697 q10g = (adapter->sge.max_ethqsets - n1g) / n10g; in cfg_queues()
2774 while (n < adapter->sge.ethqsets) in reduce_ethqs()
2779 adapter->sge.ethqsets--; in reduce_ethqs()
2780 if (adapter->sge.ethqsets <= n) in reduce_ethqs()
2807 struct sge *s = &adapter->sge; in enable_msix()