Lines Matching refs:qvec
30 struct nitrox_q_vector *qvec = data; in nps_pkt_slc_isr() local
32 struct nitrox_cmdq *cmdq = qvec->cmdq; in nps_pkt_slc_isr()
37 tasklet_hi_schedule(&qvec->resp_tasklet); in nps_pkt_slc_isr()
206 struct nitrox_q_vector *qvec = (void *)(uintptr_t)(data); in nps_core_int_tasklet() local
207 struct nitrox_device *ndev = qvec->ndev; in nps_core_int_tasklet()
225 struct nitrox_q_vector *qvec = data; in nps_core_int_isr() local
226 struct nitrox_device *ndev = qvec->ndev; in nps_core_int_isr()
269 struct nitrox_q_vector *qvec; in nitrox_unregister_interrupts() local
272 qvec = ndev->qvec + i; in nitrox_unregister_interrupts()
273 if (!qvec->valid) in nitrox_unregister_interrupts()
279 free_irq(vec, qvec); in nitrox_unregister_interrupts()
281 tasklet_disable(&qvec->resp_tasklet); in nitrox_unregister_interrupts()
282 tasklet_kill(&qvec->resp_tasklet); in nitrox_unregister_interrupts()
283 qvec->valid = false; in nitrox_unregister_interrupts()
285 kfree(ndev->qvec); in nitrox_unregister_interrupts()
286 ndev->qvec = NULL; in nitrox_unregister_interrupts()
293 struct nitrox_q_vector *qvec; in nitrox_register_interrupts() local
323 ndev->qvec = kcalloc(nr_vecs, sizeof(*qvec), GFP_KERNEL); in nitrox_register_interrupts()
324 if (!ndev->qvec) { in nitrox_register_interrupts()
331 qvec = &ndev->qvec[i]; in nitrox_register_interrupts()
333 qvec->ring = i / NR_RING_VECTORS; in nitrox_register_interrupts()
334 if (qvec->ring >= ndev->nr_queues) in nitrox_register_interrupts()
337 qvec->cmdq = &ndev->pkt_inq[qvec->ring]; in nitrox_register_interrupts()
338 snprintf(qvec->name, IRQ_NAMESZ, "nitrox-pkt%d", qvec->ring); in nitrox_register_interrupts()
341 ret = request_irq(vec, nps_pkt_slc_isr, 0, qvec->name, qvec); in nitrox_register_interrupts()
344 qvec->ring); in nitrox_register_interrupts()
347 cpu = qvec->ring % num_online_cpus(); in nitrox_register_interrupts()
350 tasklet_init(&qvec->resp_tasklet, pkt_slc_resp_tasklet, in nitrox_register_interrupts()
351 (unsigned long)qvec); in nitrox_register_interrupts()
352 qvec->valid = true; in nitrox_register_interrupts()
357 qvec = &ndev->qvec[i]; in nitrox_register_interrupts()
358 qvec->ndev = ndev; in nitrox_register_interrupts()
360 snprintf(qvec->name, IRQ_NAMESZ, "nitrox-core-int%d", i); in nitrox_register_interrupts()
363 ret = request_irq(vec, nps_core_int_isr, 0, qvec->name, qvec); in nitrox_register_interrupts()
371 tasklet_init(&qvec->resp_tasklet, nps_core_int_tasklet, in nitrox_register_interrupts()
372 (unsigned long)qvec); in nitrox_register_interrupts()
373 qvec->valid = true; in nitrox_register_interrupts()
388 struct nitrox_q_vector *qvec; in nitrox_sriov_unregister_interrupts() local
391 qvec = ndev->qvec + i; in nitrox_sriov_unregister_interrupts()
392 if (!qvec->valid) in nitrox_sriov_unregister_interrupts()
397 free_irq(vec, qvec); in nitrox_sriov_unregister_interrupts()
399 tasklet_disable(&qvec->resp_tasklet); in nitrox_sriov_unregister_interrupts()
400 tasklet_kill(&qvec->resp_tasklet); in nitrox_sriov_unregister_interrupts()
401 qvec->valid = false; in nitrox_sriov_unregister_interrupts()
403 kfree(ndev->qvec); in nitrox_sriov_unregister_interrupts()
404 ndev->qvec = NULL; in nitrox_sriov_unregister_interrupts()
411 struct nitrox_q_vector *qvec; in nitrox_sriov_register_interupts() local
427 qvec = kcalloc(NR_NON_RING_VECTORS, sizeof(*qvec), GFP_KERNEL); in nitrox_sriov_register_interupts()
428 if (!qvec) { in nitrox_sriov_register_interupts()
432 qvec->ndev = ndev; in nitrox_sriov_register_interupts()
434 ndev->qvec = qvec; in nitrox_sriov_register_interupts()
436 snprintf(qvec->name, IRQ_NAMESZ, "nitrox-core-int%d", in nitrox_sriov_register_interupts()
440 ret = request_irq(vec, nps_core_int_isr, 0, qvec->name, qvec); in nitrox_sriov_register_interupts()
449 tasklet_init(&qvec->resp_tasklet, nps_core_int_tasklet, in nitrox_sriov_register_interupts()
450 (unsigned long)qvec); in nitrox_sriov_register_interupts()
451 qvec->valid = true; in nitrox_sriov_register_interupts()