Lines Matching refs:mirror_rxq

1302 				       struct sge_eth_rxq *mirror_rxq)  in cxgb4_port_mirror_free_rxq()  argument
1306 cxgb4_quiesce_rx(&mirror_rxq->rspq); in cxgb4_port_mirror_free_rxq()
1309 cxgb4_clear_msix_aff(mirror_rxq->msix->vec, in cxgb4_port_mirror_free_rxq()
1310 mirror_rxq->msix->aff_mask); in cxgb4_port_mirror_free_rxq()
1311 free_irq(mirror_rxq->msix->vec, &mirror_rxq->rspq); in cxgb4_port_mirror_free_rxq()
1312 cxgb4_free_msix_idx_in_bmap(adap, mirror_rxq->msix->idx); in cxgb4_port_mirror_free_rxq()
1315 free_rspq_fl(adap, &mirror_rxq->rspq, &mirror_rxq->fl); in cxgb4_port_mirror_free_rxq()
1322 struct sge_eth_rxq *mirror_rxq; in cxgb4_port_mirror_alloc_queues() local
1331 if (s->mirror_rxq[pi->port_id]) in cxgb4_port_mirror_alloc_queues()
1334 mirror_rxq = kcalloc(pi->nmirrorqsets, sizeof(*mirror_rxq), GFP_KERNEL); in cxgb4_port_mirror_alloc_queues()
1335 if (!mirror_rxq) in cxgb4_port_mirror_alloc_queues()
1338 s->mirror_rxq[pi->port_id] = mirror_rxq; in cxgb4_port_mirror_alloc_queues()
1344 mirror_rxq = &s->mirror_rxq[pi->port_id][i]; in cxgb4_port_mirror_alloc_queues()
1354 mirror_rxq->msix = &adap->msix_info[msix]; in cxgb4_port_mirror_alloc_queues()
1355 snprintf(mirror_rxq->msix->desc, in cxgb4_port_mirror_alloc_queues()
1356 sizeof(mirror_rxq->msix->desc), in cxgb4_port_mirror_alloc_queues()
1360 init_rspq(adap, &mirror_rxq->rspq, in cxgb4_port_mirror_alloc_queues()
1366 mirror_rxq->fl.size = CXGB4_MIRROR_FLQ_DEFAULT_DESC_NUM; in cxgb4_port_mirror_alloc_queues()
1368 ret = t4_sge_alloc_rxq(adap, &mirror_rxq->rspq, false, in cxgb4_port_mirror_alloc_queues()
1369 dev, msix, &mirror_rxq->fl, in cxgb4_port_mirror_alloc_queues()
1376 ret = request_irq(mirror_rxq->msix->vec, in cxgb4_port_mirror_alloc_queues()
1378 mirror_rxq->msix->desc, in cxgb4_port_mirror_alloc_queues()
1379 &mirror_rxq->rspq); in cxgb4_port_mirror_alloc_queues()
1383 cxgb4_set_msix_aff(adap, mirror_rxq->msix->vec, in cxgb4_port_mirror_alloc_queues()
1384 &mirror_rxq->msix->aff_mask, i); in cxgb4_port_mirror_alloc_queues()
1388 cxgb4_enable_rx(adap, &mirror_rxq->rspq); in cxgb4_port_mirror_alloc_queues()
1398 mirror_rxq = &s->mirror_rxq[pi->port_id][0]; in cxgb4_port_mirror_alloc_queues()
1400 rss[i] = mirror_rxq[i % pi->nmirrorqsets].rspq.abs_id; in cxgb4_port_mirror_alloc_queues()
1410 free_rspq_fl(adap, &mirror_rxq->rspq, &mirror_rxq->fl); in cxgb4_port_mirror_alloc_queues()
1413 cxgb4_free_msix_idx_in_bmap(adap, mirror_rxq->msix->idx); in cxgb4_port_mirror_alloc_queues()
1418 &s->mirror_rxq[pi->port_id][rxqid]); in cxgb4_port_mirror_alloc_queues()
1420 kfree(s->mirror_rxq[pi->port_id]); in cxgb4_port_mirror_alloc_queues()
1421 s->mirror_rxq[pi->port_id] = NULL; in cxgb4_port_mirror_alloc_queues()
1435 if (!s->mirror_rxq[pi->port_id]) in cxgb4_port_mirror_free_queues()
1440 &s->mirror_rxq[pi->port_id][i]); in cxgb4_port_mirror_free_queues()
1442 kfree(s->mirror_rxq[pi->port_id]); in cxgb4_port_mirror_free_queues()
1443 s->mirror_rxq[pi->port_id] = NULL; in cxgb4_port_mirror_free_queues()