Lines Matching refs:irq_grp
319 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pci_free_ext_irq() local
321 for (j = 0; j < irq_grp->num_irq; j++) in ath11k_pci_free_ext_irq()
322 free_irq(ab->irq_num[irq_grp->irqs[j]], irq_grp); in ath11k_pci_free_ext_irq()
324 netif_napi_del(&irq_grp->napi); in ath11k_pci_free_ext_irq()
402 static void ath11k_pci_ext_grp_disable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_pci_ext_grp_disable() argument
406 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_pci_ext_grp_disable()
407 disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_pci_ext_grp_disable()
415 struct ath11k_ext_irq_grp *irq_grp = &sc->ext_irq_grp[i]; in __ath11k_pci_ext_irq_disable() local
417 ath11k_pci_ext_grp_disable(irq_grp); in __ath11k_pci_ext_irq_disable()
419 if (irq_grp->napi_enabled) { in __ath11k_pci_ext_irq_disable()
420 napi_synchronize(&irq_grp->napi); in __ath11k_pci_ext_irq_disable()
421 napi_disable(&irq_grp->napi); in __ath11k_pci_ext_irq_disable()
422 irq_grp->napi_enabled = false; in __ath11k_pci_ext_irq_disable()
427 static void ath11k_pci_ext_grp_enable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_pci_ext_grp_enable() argument
431 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_pci_ext_grp_enable()
432 enable_irq(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_pci_ext_grp_enable()
440 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pci_ext_irq_enable() local
442 if (!irq_grp->napi_enabled) { in ath11k_pci_ext_irq_enable()
443 napi_enable(&irq_grp->napi); in ath11k_pci_ext_irq_enable()
444 irq_grp->napi_enabled = true; in ath11k_pci_ext_irq_enable()
446 ath11k_pci_ext_grp_enable(irq_grp); in ath11k_pci_ext_irq_enable()
455 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pci_sync_ext_irqs() local
457 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_pci_sync_ext_irqs()
458 irq_idx = irq_grp->irqs[j]; in ath11k_pci_sync_ext_irqs()
472 struct ath11k_ext_irq_grp *irq_grp = container_of(napi, in ath11k_pci_ext_grp_napi_poll() local
475 struct ath11k_base *ab = irq_grp->ab; in ath11k_pci_ext_grp_napi_poll()
478 work_done = ath11k_dp_service_srng(ab, irq_grp, budget); in ath11k_pci_ext_grp_napi_poll()
481 ath11k_pci_ext_grp_enable(irq_grp); in ath11k_pci_ext_grp_napi_poll()
492 struct ath11k_ext_irq_grp *irq_grp = arg; in ath11k_pci_ext_interrupt_handler() local
494 ath11k_dbg(irq_grp->ab, ATH11K_DBG_PCI, "ext irq:%d\n", irq); in ath11k_pci_ext_interrupt_handler()
496 ath11k_pci_ext_grp_disable(irq_grp); in ath11k_pci_ext_interrupt_handler()
498 napi_schedule(&irq_grp->napi); in ath11k_pci_ext_interrupt_handler()
516 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pci_ext_irq_config() local
519 irq_grp->ab = ab; in ath11k_pci_ext_irq_config()
520 irq_grp->grp_id = i; in ath11k_pci_ext_irq_config()
521 init_dummy_netdev(&irq_grp->napi_ndev); in ath11k_pci_ext_irq_config()
522 netif_napi_add(&irq_grp->napi_ndev, &irq_grp->napi, in ath11k_pci_ext_irq_config()
536 irq_grp->num_irq = num_irq; in ath11k_pci_ext_irq_config()
537 irq_grp->irqs[0] = base_vector + i; in ath11k_pci_ext_irq_config()
539 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_pci_ext_irq_config()
540 int irq_idx = irq_grp->irqs[j]; in ath11k_pci_ext_irq_config()
550 "DP_EXT_IRQ", irq_grp); in ath11k_pci_ext_irq_config()