Lines Matching refs:cq_poll
1384 struct otx2_cq_poll *cq_poll = (struct otx2_cq_poll *)cq_irq; in otx2_cq_intr_handler() local
1385 struct otx2_nic *pf = (struct otx2_nic *)cq_poll->dev; in otx2_cq_intr_handler()
1386 int qidx = cq_poll->cint_idx; in otx2_cq_intr_handler()
1397 napi_schedule_irqoff(&cq_poll->napi); in otx2_cq_intr_handler()
1405 struct otx2_cq_poll *cq_poll; in otx2_disable_napi() local
1409 cq_poll = &qset->napi[qidx]; in otx2_disable_napi()
1410 cancel_work_sync(&cq_poll->dim.work); in otx2_disable_napi()
1411 napi_disable(&cq_poll->napi); in otx2_disable_napi()
1412 netif_napi_del(&cq_poll->napi); in otx2_disable_napi()
1757 struct otx2_cq_poll *cq_poll; in otx2_dim_work() local
1763 cq_poll = container_of(dim, struct otx2_cq_poll, dim); in otx2_dim_work()
1764 pfvf = (struct otx2_nic *)cq_poll->dev; in otx2_dim_work()
1776 struct otx2_cq_poll *cq_poll = NULL; in otx2_open() local
1792 qset->napi = kcalloc(pf->hw.cint_cnt, sizeof(*cq_poll), GFP_KERNEL); in otx2_open()
1823 cq_poll = &qset->napi[qidx]; in otx2_open()
1824 cq_poll->cint_idx = qidx; in otx2_open()
1830 cq_poll->cq_ids[CQ_RX] = in otx2_open()
1832 cq_poll->cq_ids[CQ_TX] = (qidx < pf->hw.tx_queues) ? in otx2_open()
1835 cq_poll->cq_ids[CQ_XDP] = (qidx < pf->hw.xdp_queues) ? in otx2_open()
1840 cq_poll->cq_ids[CQ_XDP] = CINT_INVALID_CQ; in otx2_open()
1842 cq_poll->cq_ids[CQ_QOS] = (qidx < pf->hw.tc_tx_queues) ? in otx2_open()
1847 cq_poll->dev = (void *)pf; in otx2_open()
1848 cq_poll->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_CQE; in otx2_open()
1849 INIT_WORK(&cq_poll->dim.work, otx2_dim_work); in otx2_open()
1850 netif_napi_add(netdev, &cq_poll->napi, otx2_napi_handler); in otx2_open()
1851 napi_enable(&cq_poll->napi); in otx2_open()
1993 struct otx2_cq_poll *cq_poll = NULL; in otx2_stop() local
2032 cq_poll = &qset->napi[qidx]; in otx2_stop()
2033 napi_synchronize(&cq_poll->napi); in otx2_stop()