Lines Matching refs:sge

160 	struct sge *s = &adapter->sge;  in fl_mtu_bufsize()
247 const struct sge *s = &adapter->sge; in fl_starving()
330 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) { in unmap_sgl()
445 struct sge *s = &adapter->sge; in get_buf_size()
582 struct sge *s = &adap->sge; in refill_fl()
591 if (test_bit(q->cntxt_id - adap->sge.egr_start, adap->sge.blocked_fl)) in refill_fl()
666 set_bit(q->cntxt_id - adap->sge.egr_start, in refill_fl()
667 adap->sge.starving_fl); in refill_fl()
879 to = (u8 *)end > (u8 *)q->stat ? buf : sgl->sge; in write_sgl()
893 unsigned int part0 = (u8 *)q->stat - (u8 *)sgl->sge, part1; in write_sgl()
896 memcpy(sgl->sge, buf, part0); in write_sgl()
1176 q = &adap->sge.ethtxq[qidx + pi->first_qset]; in t4_eth_xmit()
1471 ret = ctrl_xmit(&adap->sge.ctrlq[0], skb); in t4_mgmt_tx()
1523 set_bit(q->q.cntxt_id - q->adap->sge.egr_start, in txq_stop_maperr()
1524 q->adap->sge.txq_maperr); in txq_stop_maperr()
1682 return ctrl_xmit(&adap->sge.ctrlq[idx], skb); in ofld_send()
1684 return ofld_xmit(&adap->sge.ofldtxq[idx], skb); in ofld_send()
1849 struct sge *s = &adapter->sge; in do_gro()
1904 struct sge *s = &q->adap->sge; in t4_ethrx_handler()
2061 struct sge *s = &adapter->sge; in process_responses()
2254 struct sge_rspq *q = &adap->sge.intrq; in process_intrq()
2257 spin_lock(&adap->sge.intrq_lock); in process_intrq()
2267 qid -= adap->sge.ingr_start; in process_intrq()
2268 napi_schedule(&adap->sge.ingr_map[qid]->napi); in process_intrq()
2287 spin_unlock(&adap->sge.intrq_lock); in process_intrq()
2342 struct sge *s = &adap->sge; in sge_rx_timer_cb()
2379 struct sge *s = &adap->sge; in sge_tx_timer_cb()
2456 struct sge *s = &adap->sge; in t4_sge_alloc_rxq()
2549 adap->sge.ingr_map[iq->cntxt_id - adap->sge.ingr_start] = iq; in t4_sge_alloc_rxq()
2556 adap->sge.egr_map[fl->cntxt_id - adap->sge.egr_start] = fl; in t4_sge_alloc_rxq()
2634 adap->sge.egr_map[id - adap->sge.egr_start] = q; in init_txq()
2643 struct sge *s = &adap->sge; in t4_sge_alloc_eth_txq()
2700 struct sge *s = &adap->sge; in t4_sge_alloc_ctrl_txq()
2753 struct sge *s = &adap->sge; in t4_sge_alloc_ofld_txq()
2806 struct sge *s = &adap->sge; in free_txq()
2819 struct sge *s = &adap->sge; in free_rspq_fl()
2822 adap->sge.ingr_map[rq->cntxt_id - adap->sge.ingr_start] = NULL; in free_rspq_fl()
2869 struct sge_eth_rxq *eq = adap->sge.ethrxq; in t4_free_sge_resources()
2870 struct sge_eth_txq *etq = adap->sge.ethtxq; in t4_free_sge_resources()
2873 for (i = 0; i < adap->sge.ethqsets; i++, eq++, etq++) { in t4_free_sge_resources()
2887 t4_free_ofld_rxqs(adap, adap->sge.ofldqsets, adap->sge.ofldrxq); in t4_free_sge_resources()
2888 t4_free_ofld_rxqs(adap, adap->sge.rdmaqs, adap->sge.rdmarxq); in t4_free_sge_resources()
2889 t4_free_ofld_rxqs(adap, adap->sge.rdmaciqs, adap->sge.rdmaciq); in t4_free_sge_resources()
2892 for (i = 0; i < ARRAY_SIZE(adap->sge.ofldtxq); i++) { in t4_free_sge_resources()
2893 struct sge_ofld_txq *q = &adap->sge.ofldtxq[i]; in t4_free_sge_resources()
2907 for (i = 0; i < ARRAY_SIZE(adap->sge.ctrlq); i++) { in t4_free_sge_resources()
2908 struct sge_ctrl_txq *cq = &adap->sge.ctrlq[i]; in t4_free_sge_resources()
2919 if (adap->sge.fw_evtq.desc) in t4_free_sge_resources()
2920 free_rspq_fl(adap, &adap->sge.fw_evtq, NULL); in t4_free_sge_resources()
2922 if (adap->sge.intrq.desc) in t4_free_sge_resources()
2923 free_rspq_fl(adap, &adap->sge.intrq, NULL); in t4_free_sge_resources()
2926 memset(adap->sge.egr_map, 0, in t4_free_sge_resources()
2927 adap->sge.egr_sz * sizeof(*adap->sge.egr_map)); in t4_free_sge_resources()
2932 adap->sge.ethtxq_rover = 0; in t4_sge_start()
2933 mod_timer(&adap->sge.rx_timer, jiffies + RX_QCHECK_PERIOD); in t4_sge_start()
2934 mod_timer(&adap->sge.tx_timer, jiffies + TX_QCHECK_PERIOD); in t4_sge_start()
2948 struct sge *s = &adap->sge; in t4_sge_stop()
2982 struct sge *s = &adap->sge; in t4_sge_init_soft()
3079 struct sge *s = &adap->sge; in t4_sge_init()