Lines Matching refs:irq_grp
161 static void ath11k_ahb_ext_grp_disable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_ahb_ext_grp_disable() argument
165 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_ahb_ext_grp_disable()
166 disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_ahb_ext_grp_disable()
174 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in __ath11k_ahb_ext_irq_disable() local
176 ath11k_ahb_ext_grp_disable(irq_grp); in __ath11k_ahb_ext_irq_disable()
178 if (irq_grp->napi_enabled) { in __ath11k_ahb_ext_irq_disable()
179 napi_synchronize(&irq_grp->napi); in __ath11k_ahb_ext_irq_disable()
180 napi_disable(&irq_grp->napi); in __ath11k_ahb_ext_irq_disable()
181 irq_grp->napi_enabled = false; in __ath11k_ahb_ext_irq_disable()
186 static void ath11k_ahb_ext_grp_enable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_ahb_ext_grp_enable() argument
190 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_ahb_ext_grp_enable()
191 enable_irq(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_ahb_ext_grp_enable()
260 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_sync_ext_irqs() local
262 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_ahb_sync_ext_irqs()
263 irq_idx = irq_grp->irqs[j]; in ath11k_ahb_sync_ext_irqs()
304 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_ext_irq_enable() local
306 if (!irq_grp->napi_enabled) { in ath11k_ahb_ext_irq_enable()
307 napi_enable(&irq_grp->napi); in ath11k_ahb_ext_irq_enable()
308 irq_grp->napi_enabled = true; in ath11k_ahb_ext_irq_enable()
310 ath11k_ahb_ext_grp_enable(irq_grp); in ath11k_ahb_ext_irq_enable()
365 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_free_ext_irq() local
367 for (j = 0; j < irq_grp->num_irq; j++) in ath11k_ahb_free_ext_irq()
368 free_irq(ab->irq_num[irq_grp->irqs[j]], irq_grp); in ath11k_ahb_free_ext_irq()
370 netif_napi_del(&irq_grp->napi); in ath11k_ahb_free_ext_irq()
414 struct ath11k_ext_irq_grp *irq_grp = container_of(napi, in ath11k_ahb_ext_grp_napi_poll() local
417 struct ath11k_base *ab = irq_grp->ab; in ath11k_ahb_ext_grp_napi_poll()
420 work_done = ath11k_dp_service_srng(ab, irq_grp, budget); in ath11k_ahb_ext_grp_napi_poll()
423 ath11k_ahb_ext_grp_enable(irq_grp); in ath11k_ahb_ext_grp_napi_poll()
434 struct ath11k_ext_irq_grp *irq_grp = arg; in ath11k_ahb_ext_interrupt_handler() local
437 irq_grp->timestamp = jiffies; in ath11k_ahb_ext_interrupt_handler()
439 ath11k_ahb_ext_grp_disable(irq_grp); in ath11k_ahb_ext_interrupt_handler()
441 napi_schedule(&irq_grp->napi); in ath11k_ahb_ext_interrupt_handler()
454 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_ext_irq_config() local
457 irq_grp->ab = ab; in ath11k_ahb_ext_irq_config()
458 irq_grp->grp_id = i; in ath11k_ahb_ext_irq_config()
459 init_dummy_netdev(&irq_grp->napi_ndev); in ath11k_ahb_ext_irq_config()
460 netif_napi_add(&irq_grp->napi_ndev, &irq_grp->napi, in ath11k_ahb_ext_irq_config()
465 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
470 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
475 irq_grp->irqs[num_irq++] = reo2host_exception; in ath11k_ahb_ext_irq_config()
478 irq_grp->irqs[num_irq++] = wbm2host_rx_release; in ath11k_ahb_ext_irq_config()
481 irq_grp->irqs[num_irq++] = reo2host_status; in ath11k_ahb_ext_irq_config()
485 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
491 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
497 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
500 irq_grp->irqs[num_irq++] = in ath11k_ahb_ext_irq_config()
506 irq_grp->num_irq = num_irq; in ath11k_ahb_ext_irq_config()
508 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_ahb_ext_irq_config()
509 int irq_idx = irq_grp->irqs[j]; in ath11k_ahb_ext_irq_config()
517 irq_name[irq_idx], irq_grp); in ath11k_ahb_ext_irq_config()