Lines Matching refs:rxq
194 rx->rxq = kcalloc_node(rx->num_rx_q, sizeof(*rx->rxq),
197 if (!rx->rxq) {
203 struct hfi1_netdev_rxq *rxq = &rx->rxq[i];
205 rc = hfi1_netdev_allot_ctxt(rx, &rxq->rcd);
209 hfi1_rcd_get(rxq->rcd);
210 rxq->rx = rx;
211 rxq->rcd->napi = &rxq->napi;
213 i, rxq->rcd->ctxt);
218 set_bit(NAPI_STATE_NO_BUSY_POLL, &rxq->napi.state);
219 netif_napi_add(dev, &rxq->napi, hfi1_netdev_rx_napi);
220 rc = msix_netdev_request_rcd_irq(rxq->rcd);
230 struct hfi1_netdev_rxq *rxq = &rx->rxq[i];
232 if (rxq->rcd) {
233 hfi1_netdev_deallocate_ctxt(dd, rxq->rcd);
234 hfi1_rcd_put(rxq->rcd);
235 rxq->rcd = NULL;
238 kfree(rx->rxq);
239 rx->rxq = NULL;
250 struct hfi1_netdev_rxq *rxq = &rx->rxq[i];
252 netif_napi_del(&rxq->napi);
253 hfi1_netdev_deallocate_ctxt(dd, rxq->rcd);
254 hfi1_rcd_put(rxq->rcd);
255 rxq->rcd = NULL;
258 kfree(rx->rxq);
259 rx->rxq = NULL;
268 struct hfi1_netdev_rxq *rxq = &rx->rxq[i];
271 rxq->rcd->ctxt);
272 napi_enable(&rxq->napi);
275 rxq->rcd);
286 struct hfi1_netdev_rxq *rxq = &rx->rxq[i];
289 rxq->rcd->ctxt);
294 rxq->rcd);
295 napi_synchronize(&rxq->napi);
296 napi_disable(&rxq->napi);