Lines Matching refs:sge
151 struct sge *s = &adapter->sge; in fl_mtu_bufsize()
238 const struct sge *s = &adapter->sge; in fl_starving()
401 struct sge *s = &adapter->sge; in get_buf_size()
538 struct sge *s = &adap->sge; in refill_fl()
547 if (test_bit(q->cntxt_id - adap->sge.egr_start, adap->sge.blocked_fl)) in refill_fl()
625 set_bit(q->cntxt_id - adap->sge.egr_start, in refill_fl()
626 adap->sge.starving_fl); in refill_fl()
866 to = (u8 *)end > (u8 *)q->stat ? buf : sgl->sge; in cxgb4_write_sgl()
880 unsigned int part0 = (u8 *)q->stat - (u8 *)sgl->sge, part1; in cxgb4_write_sgl()
883 memcpy(sgl->sge, buf, part0); in cxgb4_write_sgl()
955 to = (u8 *)end > (u8 *)q->stat ? buf : sgl->sge; in cxgb4_write_partial_sgl()
983 u32 part0 = (u8 *)q->stat - (u8 *)sgl->sge, part1; in cxgb4_write_partial_sgl()
986 memcpy(sgl->sge, buf, part0); in cxgb4_write_partial_sgl()
1546 q = &adap->sge.ptptxq; in cxgb4_eth_xmit()
1548 q = &adap->sge.ethtxq[qidx + pi->first_qset]; in cxgb4_eth_xmit()
1856 txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; in cxgb4_vf_eth_xmit()
2277 eohw_txq = &adap->sge.eohw_txq[eosw_txq->hwqid]; in ethofld_hard_xmit()
2585 rxq = &adap->sge.eohw_rxq[eosw_txq->hwqid]; in cxgb4_ethofld_send_flowc()
2684 q = &adap->sge.ethtxq[pi->first_qset]; in cxgb4_selftest_lb_pkt()
2847 ret = ctrl_xmit(&adap->sge.ctrlq[0], skb); in t4_mgmt_tx()
2909 set_bit(q->q.cntxt_id - q->adap->sge.egr_start, in txq_stop_maperr()
2910 q->adap->sge.txq_maperr); in txq_stop_maperr()
3139 return ctrl_xmit(&adap->sge.ctrlq[idx], skb); in uld_send()
3142 txq_info = adap->sge.uld_txq_info[tx_uld_type]; in uld_send()
3269 txq_info = adap->sge.uld_txq_info[CXGB4_TX_OFLD]; in cxgb4_immdata_send()
3445 struct sge *s = &adapter->sge; in do_gro()
3595 struct sge *s = &adapter->sge; in t4_tx_completion_handler()
3644 struct sge *s = &adap->sge; in cxgb4_validate_lb_pkt()
3681 struct sge *s = &q->adap->sge; in t4_ethrx_handler()
3894 struct sge *s = &adapter->sge; in process_responses()
4161 struct sge_rspq *q = &adap->sge.intrq; in process_intrq()
4164 spin_lock(&adap->sge.intrq_lock); in process_intrq()
4174 qid -= adap->sge.ingr_start; in process_intrq()
4175 napi_schedule(&adap->sge.ingr_map[qid]->napi); in process_intrq()
4194 spin_unlock(&adap->sge.intrq_lock); in process_intrq()
4248 struct adapter *adap = from_timer(adap, t, sge.rx_timer); in sge_rx_timer_cb()
4249 struct sge *s = &adap->sge; in sge_rx_timer_cb()
4283 struct adapter *adap = from_timer(adap, t, sge.tx_timer); in sge_tx_timer_cb()
4284 struct sge *s = &adap->sge; in sge_tx_timer_cb()
4378 struct sge *s = &adap->sge; in t4_sge_alloc_rxq()
4490 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
4497 adap->sge.egr_map[fl->cntxt_id - adap->sge.egr_start] = fl; in t4_sge_alloc_rxq()
4576 adap->sge.egr_map[id - adap->sge.egr_start] = q; in init_txq()
4594 struct sge *s = &adap->sge; in t4_sge_alloc_eth_txq()
4687 struct sge *s = &adap->sge; in t4_sge_alloc_ctrl_txq()
4756 struct sge *s = &adap->sge; in t4_sge_alloc_ofld_txq()
4852 struct sge *s = &adap->sge; in free_txq()
4865 struct sge *s = &adap->sge; in free_rspq_fl()
4868 adap->sge.ingr_map[rq->cntxt_id - adap->sge.ingr_start] = NULL; in free_rspq_fl()
4929 for (i = 0; i < adap->sge.ethqsets; i++) { in t4_free_sge_resources()
4930 eq = &adap->sge.ethrxq[i]; in t4_free_sge_resources()
4940 for (i = 0; i < adap->sge.ethqsets; i++) { in t4_free_sge_resources()
4941 eq = &adap->sge.ethrxq[i]; in t4_free_sge_resources()
4950 etq = &adap->sge.ethtxq[i]; in t4_free_sge_resources()
4963 for (i = 0; i < ARRAY_SIZE(adap->sge.ctrlq); i++) { in t4_free_sge_resources()
4964 struct sge_ctrl_txq *cq = &adap->sge.ctrlq[i]; in t4_free_sge_resources()
4975 if (adap->sge.fw_evtq.desc) { in t4_free_sge_resources()
4976 free_rspq_fl(adap, &adap->sge.fw_evtq, NULL); in t4_free_sge_resources()
4977 if (adap->sge.fwevtq_msix_idx >= 0) in t4_free_sge_resources()
4979 adap->sge.fwevtq_msix_idx); in t4_free_sge_resources()
4982 if (adap->sge.nd_msix_idx >= 0) in t4_free_sge_resources()
4983 cxgb4_free_msix_idx_in_bmap(adap, adap->sge.nd_msix_idx); in t4_free_sge_resources()
4985 if (adap->sge.intrq.desc) in t4_free_sge_resources()
4986 free_rspq_fl(adap, &adap->sge.intrq, NULL); in t4_free_sge_resources()
4989 etq = &adap->sge.ptptxq; in t4_free_sge_resources()
5002 memset(adap->sge.egr_map, 0, in t4_free_sge_resources()
5003 adap->sge.egr_sz * sizeof(*adap->sge.egr_map)); in t4_free_sge_resources()
5008 adap->sge.ethtxq_rover = 0; in t4_sge_start()
5009 mod_timer(&adap->sge.rx_timer, jiffies + RX_QCHECK_PERIOD); in t4_sge_start()
5010 mod_timer(&adap->sge.tx_timer, jiffies + TX_QCHECK_PERIOD); in t4_sge_start()
5024 struct sge *s = &adap->sge; in t4_sge_stop()
5034 txq_info = adap->sge.uld_txq_info[CXGB4_TX_OFLD]; in t4_sge_stop()
5038 for_each_ofldtxq(&adap->sge, i) { in t4_sge_stop()
5048 txq_info = adap->sge.uld_txq_info[CXGB4_TX_CRYPTO]; in t4_sge_stop()
5052 for_each_ofldtxq(&adap->sge, i) { in t4_sge_stop()
5077 struct sge *s = &adap->sge; in t4_sge_init_soft()
5174 struct sge *s = &adap->sge; in t4_sge_init()