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()
1854 txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; in cxgb4_vf_eth_xmit()
2273 eohw_txq = &adap->sge.eohw_txq[eosw_txq->hwqid]; in ethofld_hard_xmit()
2581 rxq = &adap->sge.eohw_rxq[eosw_txq->hwqid]; in cxgb4_ethofld_send_flowc()
2680 q = &adap->sge.ethtxq[pi->first_qset]; in cxgb4_selftest_lb_pkt()
2843 ret = ctrl_xmit(&adap->sge.ctrlq[0], skb); in t4_mgmt_tx()
2905 set_bit(q->q.cntxt_id - q->adap->sge.egr_start, in txq_stop_maperr()
2906 q->adap->sge.txq_maperr); in txq_stop_maperr()
3135 return ctrl_xmit(&adap->sge.ctrlq[idx], skb); in uld_send()
3138 txq_info = adap->sge.uld_txq_info[tx_uld_type]; in uld_send()
3265 txq_info = adap->sge.uld_txq_info[CXGB4_TX_OFLD]; in cxgb4_immdata_send()
3441 struct sge *s = &adapter->sge; in do_gro()
3591 struct sge *s = &adapter->sge; in t4_tx_completion_handler()
3621 struct sge *s = &adap->sge; in cxgb4_validate_lb_pkt()
3658 struct sge *s = &q->adap->sge; in t4_ethrx_handler()
3871 struct sge *s = &adapter->sge; in process_responses()
4138 struct sge_rspq *q = &adap->sge.intrq; in process_intrq()
4141 spin_lock(&adap->sge.intrq_lock); in process_intrq()
4151 qid -= adap->sge.ingr_start; in process_intrq()
4152 napi_schedule(&adap->sge.ingr_map[qid]->napi); in process_intrq()
4171 spin_unlock(&adap->sge.intrq_lock); in process_intrq()
4225 struct adapter *adap = from_timer(adap, t, sge.rx_timer); in sge_rx_timer_cb()
4226 struct sge *s = &adap->sge; in sge_rx_timer_cb()
4260 struct adapter *adap = from_timer(adap, t, sge.tx_timer); in sge_tx_timer_cb()
4261 struct sge *s = &adap->sge; in sge_tx_timer_cb()
4355 struct sge *s = &adap->sge; in t4_sge_alloc_rxq()
4467 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
4474 adap->sge.egr_map[fl->cntxt_id - adap->sge.egr_start] = fl; in t4_sge_alloc_rxq()
4553 adap->sge.egr_map[id - adap->sge.egr_start] = q; in init_txq()
4571 struct sge *s = &adap->sge; in t4_sge_alloc_eth_txq()
4659 struct sge *s = &adap->sge; in t4_sge_alloc_ctrl_txq()
4728 struct sge *s = &adap->sge; in t4_sge_alloc_ofld_txq()
4824 struct sge *s = &adap->sge; in free_txq()
4837 struct sge *s = &adap->sge; in free_rspq_fl()
4840 adap->sge.ingr_map[rq->cntxt_id - adap->sge.ingr_start] = NULL; in free_rspq_fl()
4901 for (i = 0; i < adap->sge.ethqsets; i++) { in t4_free_sge_resources()
4902 eq = &adap->sge.ethrxq[i]; in t4_free_sge_resources()
4912 for (i = 0; i < adap->sge.ethqsets; i++) { in t4_free_sge_resources()
4913 eq = &adap->sge.ethrxq[i]; in t4_free_sge_resources()
4922 etq = &adap->sge.ethtxq[i]; in t4_free_sge_resources()
4935 for (i = 0; i < ARRAY_SIZE(adap->sge.ctrlq); i++) { in t4_free_sge_resources()
4936 struct sge_ctrl_txq *cq = &adap->sge.ctrlq[i]; in t4_free_sge_resources()
4947 if (adap->sge.fw_evtq.desc) { in t4_free_sge_resources()
4948 free_rspq_fl(adap, &adap->sge.fw_evtq, NULL); in t4_free_sge_resources()
4949 if (adap->sge.fwevtq_msix_idx >= 0) in t4_free_sge_resources()
4951 adap->sge.fwevtq_msix_idx); in t4_free_sge_resources()
4954 if (adap->sge.nd_msix_idx >= 0) in t4_free_sge_resources()
4955 cxgb4_free_msix_idx_in_bmap(adap, adap->sge.nd_msix_idx); in t4_free_sge_resources()
4957 if (adap->sge.intrq.desc) in t4_free_sge_resources()
4958 free_rspq_fl(adap, &adap->sge.intrq, NULL); in t4_free_sge_resources()
4961 etq = &adap->sge.ptptxq; in t4_free_sge_resources()
4974 memset(adap->sge.egr_map, 0, in t4_free_sge_resources()
4975 adap->sge.egr_sz * sizeof(*adap->sge.egr_map)); in t4_free_sge_resources()
4980 adap->sge.ethtxq_rover = 0; in t4_sge_start()
4981 mod_timer(&adap->sge.rx_timer, jiffies + RX_QCHECK_PERIOD); in t4_sge_start()
4982 mod_timer(&adap->sge.tx_timer, jiffies + TX_QCHECK_PERIOD); in t4_sge_start()
4996 struct sge *s = &adap->sge; in t4_sge_stop()
5006 txq_info = adap->sge.uld_txq_info[CXGB4_TX_OFLD]; in t4_sge_stop()
5010 for_each_ofldtxq(&adap->sge, i) { in t4_sge_stop()
5020 txq_info = adap->sge.uld_txq_info[CXGB4_TX_CRYPTO]; in t4_sge_stop()
5024 for_each_ofldtxq(&adap->sge, i) { in t4_sge_stop()
5049 struct sge *s = &adap->sge; in t4_sge_init_soft()
5146 struct sge *s = &adap->sge; in t4_sge_init()