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()
1858 txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; in cxgb4_vf_eth_xmit()
2279 eohw_txq = &adap->sge.eohw_txq[eosw_txq->hwqid]; in ethofld_hard_xmit()
2587 rxq = &adap->sge.eohw_rxq[eosw_txq->hwqid]; in cxgb4_ethofld_send_flowc()
2686 q = &adap->sge.ethtxq[pi->first_qset]; in cxgb4_selftest_lb_pkt()
2849 ret = ctrl_xmit(&adap->sge.ctrlq[0], skb); in t4_mgmt_tx()
2911 set_bit(q->q.cntxt_id - q->adap->sge.egr_start, in txq_stop_maperr()
2912 q->adap->sge.txq_maperr); in txq_stop_maperr()
3141 return ctrl_xmit(&adap->sge.ctrlq[idx], skb); in uld_send()
3144 txq_info = adap->sge.uld_txq_info[tx_uld_type]; in uld_send()
3271 txq_info = adap->sge.uld_txq_info[CXGB4_TX_OFLD]; in cxgb4_immdata_send()
3447 struct sge *s = &adapter->sge; in do_gro()
3597 struct sge *s = &adapter->sge; in t4_tx_completion_handler()
3646 struct sge *s = &adap->sge; in cxgb4_validate_lb_pkt()
3683 struct sge *s = &q->adap->sge; in t4_ethrx_handler()
3896 struct sge *s = &adapter->sge; in process_responses()
4163 struct sge_rspq *q = &adap->sge.intrq; in process_intrq()
4166 spin_lock(&adap->sge.intrq_lock); in process_intrq()
4176 qid -= adap->sge.ingr_start; in process_intrq()
4177 napi_schedule(&adap->sge.ingr_map[qid]->napi); in process_intrq()
4196 spin_unlock(&adap->sge.intrq_lock); in process_intrq()
4250 struct adapter *adap = from_timer(adap, t, sge.rx_timer); in sge_rx_timer_cb()
4251 struct sge *s = &adap->sge; in sge_rx_timer_cb()
4285 struct adapter *adap = from_timer(adap, t, sge.tx_timer); in sge_tx_timer_cb()
4286 struct sge *s = &adap->sge; in sge_tx_timer_cb()
4380 struct sge *s = &adap->sge; in t4_sge_alloc_rxq()
4492 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
4499 adap->sge.egr_map[fl->cntxt_id - adap->sge.egr_start] = fl; in t4_sge_alloc_rxq()
4578 adap->sge.egr_map[id - adap->sge.egr_start] = q; in init_txq()
4596 struct sge *s = &adap->sge; in t4_sge_alloc_eth_txq()
4689 struct sge *s = &adap->sge; in t4_sge_alloc_ctrl_txq()
4758 struct sge *s = &adap->sge; in t4_sge_alloc_ofld_txq()
4854 struct sge *s = &adap->sge; in free_txq()
4867 struct sge *s = &adap->sge; in free_rspq_fl()
4870 adap->sge.ingr_map[rq->cntxt_id - adap->sge.ingr_start] = NULL; in free_rspq_fl()
4931 for (i = 0; i < adap->sge.ethqsets; i++) { in t4_free_sge_resources()
4932 eq = &adap->sge.ethrxq[i]; in t4_free_sge_resources()
4942 for (i = 0; i < adap->sge.ethqsets; i++) { in t4_free_sge_resources()
4943 eq = &adap->sge.ethrxq[i]; in t4_free_sge_resources()
4952 etq = &adap->sge.ethtxq[i]; in t4_free_sge_resources()
4965 for (i = 0; i < ARRAY_SIZE(adap->sge.ctrlq); i++) { in t4_free_sge_resources()
4966 struct sge_ctrl_txq *cq = &adap->sge.ctrlq[i]; in t4_free_sge_resources()
4977 if (adap->sge.fw_evtq.desc) { in t4_free_sge_resources()
4978 free_rspq_fl(adap, &adap->sge.fw_evtq, NULL); in t4_free_sge_resources()
4979 if (adap->sge.fwevtq_msix_idx >= 0) in t4_free_sge_resources()
4981 adap->sge.fwevtq_msix_idx); in t4_free_sge_resources()
4984 if (adap->sge.nd_msix_idx >= 0) in t4_free_sge_resources()
4985 cxgb4_free_msix_idx_in_bmap(adap, adap->sge.nd_msix_idx); in t4_free_sge_resources()
4987 if (adap->sge.intrq.desc) in t4_free_sge_resources()
4988 free_rspq_fl(adap, &adap->sge.intrq, NULL); in t4_free_sge_resources()
4991 etq = &adap->sge.ptptxq; in t4_free_sge_resources()
5004 memset(adap->sge.egr_map, 0, in t4_free_sge_resources()
5005 adap->sge.egr_sz * sizeof(*adap->sge.egr_map)); in t4_free_sge_resources()
5010 adap->sge.ethtxq_rover = 0; in t4_sge_start()
5011 mod_timer(&adap->sge.rx_timer, jiffies + RX_QCHECK_PERIOD); in t4_sge_start()
5012 mod_timer(&adap->sge.tx_timer, jiffies + TX_QCHECK_PERIOD); in t4_sge_start()
5026 struct sge *s = &adap->sge; in t4_sge_stop()
5036 txq_info = adap->sge.uld_txq_info[CXGB4_TX_OFLD]; in t4_sge_stop()
5040 for_each_ofldtxq(&adap->sge, i) { in t4_sge_stop()
5050 txq_info = adap->sge.uld_txq_info[CXGB4_TX_CRYPTO]; in t4_sge_stop()
5054 for_each_ofldtxq(&adap->sge, i) { in t4_sge_stop()
5079 struct sge *s = &adap->sge; in t4_sge_init_soft()
5176 struct sge *s = &adap->sge; in t4_sge_init()