Lines Matching refs:irq_grp
218 static void ath11k_ahb_ext_grp_disable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_ahb_ext_grp_disable() argument
222 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_ahb_ext_grp_disable()
223 disable_irq_nosync(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_ahb_ext_grp_disable()
231 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in __ath11k_ahb_ext_irq_disable() local
233 ath11k_ahb_ext_grp_disable(irq_grp); in __ath11k_ahb_ext_irq_disable()
235 if (irq_grp->napi_enabled) { in __ath11k_ahb_ext_irq_disable()
236 napi_synchronize(&irq_grp->napi); in __ath11k_ahb_ext_irq_disable()
237 napi_disable(&irq_grp->napi); in __ath11k_ahb_ext_irq_disable()
238 irq_grp->napi_enabled = false; in __ath11k_ahb_ext_irq_disable()
243 static void ath11k_ahb_ext_grp_enable(struct ath11k_ext_irq_grp *irq_grp) in ath11k_ahb_ext_grp_enable() argument
247 for (i = 0; i < irq_grp->num_irq; i++) in ath11k_ahb_ext_grp_enable()
248 enable_irq(irq_grp->ab->irq_num[irq_grp->irqs[i]]); in ath11k_ahb_ext_grp_enable()
317 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_sync_ext_irqs() local
319 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_ahb_sync_ext_irqs()
320 irq_idx = irq_grp->irqs[j]; in ath11k_ahb_sync_ext_irqs()
361 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_ext_irq_enable() local
363 if (!irq_grp->napi_enabled) { in ath11k_ahb_ext_irq_enable()
364 dev_set_threaded(&irq_grp->napi_ndev, true); in ath11k_ahb_ext_irq_enable()
365 napi_enable(&irq_grp->napi); in ath11k_ahb_ext_irq_enable()
366 irq_grp->napi_enabled = true; in ath11k_ahb_ext_irq_enable()
368 ath11k_ahb_ext_grp_enable(irq_grp); in ath11k_ahb_ext_irq_enable()
449 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_free_ext_irq() local
451 for (j = 0; j < irq_grp->num_irq; j++) in ath11k_ahb_free_ext_irq()
452 free_irq(ab->irq_num[irq_grp->irqs[j]], irq_grp); in ath11k_ahb_free_ext_irq()
454 netif_napi_del(&irq_grp->napi); in ath11k_ahb_free_ext_irq()
501 struct ath11k_ext_irq_grp *irq_grp = container_of(napi, in ath11k_ahb_ext_grp_napi_poll() local
504 struct ath11k_base *ab = irq_grp->ab; in ath11k_ahb_ext_grp_napi_poll()
507 work_done = ath11k_dp_service_srng(ab, irq_grp, budget); in ath11k_ahb_ext_grp_napi_poll()
510 ath11k_ahb_ext_grp_enable(irq_grp); in ath11k_ahb_ext_grp_napi_poll()
521 struct ath11k_ext_irq_grp *irq_grp = arg; in ath11k_ahb_ext_interrupt_handler() local
524 irq_grp->timestamp = jiffies; in ath11k_ahb_ext_interrupt_handler()
526 ath11k_ahb_ext_grp_disable(irq_grp); in ath11k_ahb_ext_interrupt_handler()
528 napi_schedule(&irq_grp->napi); in ath11k_ahb_ext_interrupt_handler()
541 struct ath11k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i]; in ath11k_ahb_config_ext_irq() local
544 irq_grp->ab = ab; in ath11k_ahb_config_ext_irq()
545 irq_grp->grp_id = i; in ath11k_ahb_config_ext_irq()
546 init_dummy_netdev(&irq_grp->napi_ndev); in ath11k_ahb_config_ext_irq()
547 netif_napi_add(&irq_grp->napi_ndev, &irq_grp->napi, in ath11k_ahb_config_ext_irq()
552 irq_grp->irqs[num_irq++] = in ath11k_ahb_config_ext_irq()
557 irq_grp->irqs[num_irq++] = in ath11k_ahb_config_ext_irq()
562 irq_grp->irqs[num_irq++] = reo2host_exception; in ath11k_ahb_config_ext_irq()
565 irq_grp->irqs[num_irq++] = wbm2host_rx_release; in ath11k_ahb_config_ext_irq()
568 irq_grp->irqs[num_irq++] = reo2host_status; in ath11k_ahb_config_ext_irq()
572 irq_grp->irqs[num_irq++] = in ath11k_ahb_config_ext_irq()
578 irq_grp->irqs[num_irq++] = in ath11k_ahb_config_ext_irq()
584 irq_grp->irqs[num_irq++] = in ath11k_ahb_config_ext_irq()
587 irq_grp->irqs[num_irq++] = in ath11k_ahb_config_ext_irq()
593 irq_grp->num_irq = num_irq; in ath11k_ahb_config_ext_irq()
595 for (j = 0; j < irq_grp->num_irq; j++) { in ath11k_ahb_config_ext_irq()
596 int irq_idx = irq_grp->irqs[j]; in ath11k_ahb_config_ext_irq()
604 irq_name[irq_idx], irq_grp); in ath11k_ahb_config_ext_irq()