Lines Matching refs:rxq_info

109 			  struct sge_uld_rxq_info *rxq_info, bool lro)  in alloc_uld_rxqs()  argument
111 unsigned int nq = rxq_info->nrxq + rxq_info->nciq; in alloc_uld_rxqs()
112 struct sge_ofld_rxq *q = rxq_info->uldrxq; in alloc_uld_rxqs()
113 unsigned short *ids = rxq_info->rspq_id; in alloc_uld_rxqs()
118 per_chan = rxq_info->nrxq / adap->params.nports; in alloc_uld_rxqs()
126 if (i == rxq_info->nrxq) { in alloc_uld_rxqs()
128 per_chan = rxq_info->nciq / adap->params.nports; in alloc_uld_rxqs()
142 adap->port[0]->name, rxq_info->name, i); in alloc_uld_rxqs()
162 q = rxq_info->uldrxq; in alloc_uld_rxqs()
176 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in setup_sge_queues_uld() local
179 ret = alloc_uld_rxqs(adap, rxq_info, lro); in setup_sge_queues_uld()
191 cmplqid = rxq_info->uldrxq[i].rspq.cntxt_id; in setup_sge_queues_uld()
214 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in free_sge_queues_uld() local
231 if (rxq_info->nciq) in free_sge_queues_uld()
232 t4_free_uld_rxqs(adap, rxq_info->nciq, in free_sge_queues_uld()
233 rxq_info->uldrxq + rxq_info->nrxq); in free_sge_queues_uld()
234 t4_free_uld_rxqs(adap, rxq_info->nrxq, rxq_info->uldrxq); in free_sge_queues_uld()
241 struct sge_uld_rxq_info *rxq_info; in cfg_queues_uld() local
244 rxq_info = kzalloc(sizeof(*rxq_info), GFP_KERNEL); in cfg_queues_uld()
245 if (!rxq_info) in cfg_queues_uld()
250 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld()
254 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld()
257 rxq_info->nciq = 0; in cfg_queues_uld()
260 rxq_info->nciq = min_t(int, s->nqs_per_uld, in cfg_queues_uld()
263 rxq_info->nciq = min_t(int, MAX_OFLD_QSETS, in cfg_queues_uld()
265 rxq_info->nciq = ((rxq_info->nciq / adap->params.nports) * in cfg_queues_uld()
267 rxq_info->nciq = max_t(int, rxq_info->nciq, in cfg_queues_uld()
271 nrxq = rxq_info->nrxq + rxq_info->nciq; /* total rxq's */ in cfg_queues_uld()
272 rxq_info->uldrxq = kcalloc(nrxq, sizeof(struct sge_ofld_rxq), in cfg_queues_uld()
274 if (!rxq_info->uldrxq) { in cfg_queues_uld()
275 kfree(rxq_info); in cfg_queues_uld()
279 rxq_info->rspq_id = kcalloc(nrxq, sizeof(unsigned short), GFP_KERNEL); in cfg_queues_uld()
280 if (!rxq_info->rspq_id) { in cfg_queues_uld()
281 kfree(rxq_info->uldrxq); in cfg_queues_uld()
282 kfree(rxq_info); in cfg_queues_uld()
286 for (i = 0; i < rxq_info->nrxq; i++) { in cfg_queues_uld()
287 struct sge_ofld_rxq *r = &rxq_info->uldrxq[i]; in cfg_queues_uld()
300 for (i = rxq_info->nrxq; i < nrxq; i++) { in cfg_queues_uld()
301 struct sge_ofld_rxq *r = &rxq_info->uldrxq[i]; in cfg_queues_uld()
307 memcpy(rxq_info->name, uld_info->name, IFNAMSIZ); in cfg_queues_uld()
308 adap->sge.uld_rxq_info[uld_type] = rxq_info; in cfg_queues_uld()
315 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in free_queues_uld() local
318 kfree(rxq_info->rspq_id); in free_queues_uld()
319 kfree(rxq_info->uldrxq); in free_queues_uld()
320 kfree(rxq_info); in free_queues_uld()
326 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in request_msix_queue_irqs_uld() local
331 for_each_uldrxq(rxq_info, idx) { in request_msix_queue_irqs_uld()
332 minfo = rxq_info->uldrxq[idx].msix; in request_msix_queue_irqs_uld()
336 &rxq_info->uldrxq[idx].rspq); in request_msix_queue_irqs_uld()
347 minfo = rxq_info->uldrxq[idx].msix; in request_msix_queue_irqs_uld()
350 free_irq(minfo->vec, &rxq_info->uldrxq[idx].rspq); in request_msix_queue_irqs_uld()
358 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in free_msix_queue_irqs_uld() local
362 for_each_uldrxq(rxq_info, idx) { in free_msix_queue_irqs_uld()
363 minfo = rxq_info->uldrxq[idx].msix; in free_msix_queue_irqs_uld()
366 free_irq(minfo->vec, &rxq_info->uldrxq[idx].rspq); in free_msix_queue_irqs_uld()
372 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in enable_rx_uld() local
375 for_each_uldrxq(rxq_info, idx) { in enable_rx_uld()
376 struct sge_rspq *q = &rxq_info->uldrxq[idx].rspq; in enable_rx_uld()
387 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in quiesce_rx_uld() local
390 for_each_uldrxq(rxq_info, idx) { in quiesce_rx_uld()
391 struct sge_rspq *q = &rxq_info->uldrxq[idx].rspq; in quiesce_rx_uld()
513 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in uld_queue_init() local
517 lli->rxq_ids = rxq_info->rspq_id; in uld_queue_init()
518 lli->nrxq = rxq_info->nrxq; in uld_queue_init()
519 lli->ciq_ids = rxq_info->rspq_id + rxq_info->nrxq; in uld_queue_init()
520 lli->nciq = rxq_info->nciq; in uld_queue_init()