Lines Matching refs:irq_grp
295 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pcic_free_ext_irq() local
297 for (j = 0; j < irq_grp->num_irq; j++) in ath11k_pcic_free_ext_irq()
298 free_irq(ab->irq_num[irq_grp->irqs[j]], irq_grp); in ath11k_pcic_free_ext_irq()
300 netif_napi_del(&irq_grp->napi); in ath11k_pcic_free_ext_irq()
403 static void ath11k_pcic_ext_grp_disable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_pcic_ext_grp_disable() argument
405 struct ath11k_base *ab = irq_grp->ab; in ath11k_pcic_ext_grp_disable()
414 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_pcic_ext_grp_disable()
415 disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_pcic_ext_grp_disable()
425 struct ath11k_ext_irq_grp *irq_grp = &sc->ext_irq_grp[i]; in __ath11k_pcic_ext_irq_disable() local
427 ath11k_pcic_ext_grp_disable(irq_grp); in __ath11k_pcic_ext_irq_disable()
429 if (irq_grp->napi_enabled) { in __ath11k_pcic_ext_irq_disable()
430 napi_synchronize(&irq_grp->napi); in __ath11k_pcic_ext_irq_disable()
431 napi_disable(&irq_grp->napi); in __ath11k_pcic_ext_irq_disable()
432 irq_grp->napi_enabled = false; in __ath11k_pcic_ext_irq_disable()
437 static void ath11k_pcic_ext_grp_enable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_pcic_ext_grp_enable() argument
439 struct ath11k_base *ab = irq_grp->ab; in ath11k_pcic_ext_grp_enable()
448 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_pcic_ext_grp_enable()
449 enable_irq(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_pcic_ext_grp_enable()
459 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pcic_ext_irq_enable() local
461 if (!irq_grp->napi_enabled) { in ath11k_pcic_ext_irq_enable()
462 dev_set_threaded(&irq_grp->napi_ndev, true); in ath11k_pcic_ext_irq_enable()
463 napi_enable(&irq_grp->napi); in ath11k_pcic_ext_irq_enable()
464 irq_grp->napi_enabled = true; in ath11k_pcic_ext_irq_enable()
466 ath11k_pcic_ext_grp_enable(irq_grp); in ath11k_pcic_ext_irq_enable()
476 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pcic_sync_ext_irqs() local
478 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_pcic_sync_ext_irqs()
479 irq_idx = irq_grp->irqs[j]; in ath11k_pcic_sync_ext_irqs()
494 struct ath11k_ext_irq_grp *irq_grp = container_of(napi, in ath11k_pcic_ext_grp_napi_poll() local
497 struct ath11k_base *ab = irq_grp->ab; in ath11k_pcic_ext_grp_napi_poll()
501 work_done = ath11k_dp_service_srng(ab, irq_grp, budget); in ath11k_pcic_ext_grp_napi_poll()
504 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_pcic_ext_grp_napi_poll()
505 enable_irq(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_pcic_ext_grp_napi_poll()
516 struct ath11k_ext_irq_grp *irq_grp = arg; in ath11k_pcic_ext_interrupt_handler() local
517 struct ath11k_base *ab = irq_grp->ab; in ath11k_pcic_ext_interrupt_handler()
523 ath11k_dbg(irq_grp->ab, ATH11K_DBG_PCI, "ext irq:%d\n", irq); in ath11k_pcic_ext_interrupt_handler()
526 irq_grp->timestamp = jiffies; in ath11k_pcic_ext_interrupt_handler()
528 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_pcic_ext_interrupt_handler()
529 disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_pcic_ext_interrupt_handler()
531 napi_schedule(&irq_grp->napi); in ath11k_pcic_ext_interrupt_handler()
559 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_pcic_ext_irq_config() local
562 irq_grp->ab = ab; in ath11k_pcic_ext_irq_config()
563 irq_grp->grp_id = i; in ath11k_pcic_ext_irq_config()
564 init_dummy_netdev(&irq_grp->napi_ndev); in ath11k_pcic_ext_irq_config()
565 netif_napi_add(&irq_grp->napi_ndev, &irq_grp->napi, in ath11k_pcic_ext_irq_config()
579 irq_grp->num_irq = num_irq; in ath11k_pcic_ext_irq_config()
580 irq_grp->irqs[0] = ATH11K_PCI_IRQ_DP_OFFSET + i; in ath11k_pcic_ext_irq_config()
582 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_pcic_ext_irq_config()
583 int irq_idx = irq_grp->irqs[j]; in ath11k_pcic_ext_irq_config()
597 irq_flags, "DP_EXT_IRQ", irq_grp); in ath11k_pcic_ext_irq_config()
604 ath11k_pcic_ext_grp_disable(irq_grp); in ath11k_pcic_ext_irq_config()