Lines Matching refs:hif_ce_state
80 struct HIF_CE_state *hif_ce_state; in reschedule_ce_tasklet_work_handler() local
87 hif_ce_state = HIF_GET_CE_STATE(scn); in reschedule_ce_tasklet_work_handler()
93 if (hif_ce_state->tasklets[ce_work->id].inited) in reschedule_ce_tasklet_work_handler()
94 ce_tasklet_schedule(&hif_ce_state->tasklets[ce_work->id]); in reschedule_ce_tasklet_work_handler()
154 struct HIF_CE_state *hif_ce_state = HIF_GET_CE_STATE(scn); in hif_record_tasklet_exec_entry_ts() local
156 hif_ce_state->stats.tasklet_exec_entry_ts[ce_id] = in hif_record_tasklet_exec_entry_ts()
171 struct HIF_CE_state *hif_ce_state = HIF_GET_CE_STATE(scn); in hif_record_tasklet_sched_entry_ts() local
173 hif_ce_state->stats.tasklet_sched_entry_ts[ce_id] = in hif_record_tasklet_sched_entry_ts()
191 struct HIF_CE_state *hif_ce_state = HIF_GET_CE_STATE(hif_ctx); in hif_ce_latency_stats() local
192 struct ce_stats *stats = &hif_ce_state->stats; in hif_ce_latency_stats()
246 static void ce_tasklet_update_bucket(struct HIF_CE_state *hif_ce_state, in ce_tasklet_update_bucket() argument
253 struct ce_stats *stats = &hif_ce_state->stats; in ce_tasklet_update_bucket()
327 static void ce_tasklet_update_bucket(struct HIF_CE_state *hif_ce_state, in ce_tasklet_update_bucket() argument
354 struct HIF_CE_state *hif_ce_state = HIF_GET_CE_STATE(scn); in hif_reset_ce_full_count() local
356 hif_ce_state->stats.ce_ring_full_count[ce_id] = 0; in hif_reset_ce_full_count()
415 struct HIF_CE_state *hif_ce_state = tasklet_entry->hif_ce_state; in ce_tasklet() local
416 struct hif_softc *scn = HIF_GET_SOFTC(hif_ce_state); in ce_tasklet()
460 ce_tasklet_update_bucket(hif_ce_state, in ce_tasklet()
472 ce_tasklet_update_bucket(hif_ce_state, tasklet_entry->ce_id); in ce_tasklet()
488 void ce_tasklet_init(struct HIF_CE_state *hif_ce_state, uint32_t mask) in ce_tasklet_init() argument
495 hif_ce_state->tasklets[i].ce_id = i; in ce_tasklet_init()
496 hif_ce_state->tasklets[i].inited = true; in ce_tasklet_init()
497 hif_ce_state->tasklets[i].hif_ce_state = hif_ce_state; in ce_tasklet_init()
499 attr = &hif_ce_state->host_ce_config[i]; in ce_tasklet_init()
501 hif_ce_state->tasklets[i].hi_tasklet_ce = true; in ce_tasklet_init()
503 hif_ce_state->tasklets[i].hi_tasklet_ce = false; in ce_tasklet_init()
505 tasklet_init(&hif_ce_state->tasklets[i].intr_tq, in ce_tasklet_init()
507 (unsigned long)&hif_ce_state->tasklets[i]); in ce_tasklet_init()
521 struct HIF_CE_state *hif_ce_state = HIF_GET_CE_STATE(scn); in ce_tasklet_kill() local
524 if (hif_ce_state->tasklets[i].inited) { in ce_tasklet_kill()
525 hif_ce_state->tasklets[i].inited = false; in ce_tasklet_kill()
535 tasklet_kill(&hif_ce_state->tasklets[i].intr_tq); in ce_tasklet_kill()
549 static void ce_tasklet_entry_dump(struct HIF_CE_state *hif_ce_state) in ce_tasklet_entry_dump() argument
554 if (hif_ce_state) { in ce_tasklet_entry_dump()
556 tasklet_entry = &hif_ce_state->tasklets[i]; in ce_tasklet_entry_dump()
563 tasklet_entry->hif_ce_state); in ce_tasklet_entry_dump()
640 struct hif_softc *scn = HIF_GET_SOFTC(tasklet_entry->hif_ce_state); in hif_snoc_interrupt_handler()
654 hif_ce_increment_interrupt_count(struct HIF_CE_state *hif_ce_state, int ce_id) in hif_ce_increment_interrupt_count() argument
658 hif_ce_state->stats.ce_per_cpu[ce_id][cpu_id]++; in hif_ce_increment_interrupt_count()
673 struct HIF_CE_state *hif_ce_state = HIF_GET_CE_STATE(hif_ctx); in hif_display_ce_stats() local
681 j, hif_ce_state->stats.ce_per_cpu[i][j]); in hif_display_ce_stats()
701 void hif_clear_ce_stats(struct HIF_CE_state *hif_ce_state) in hif_clear_ce_stats() argument
703 qdf_mem_zero(&hif_ce_state->stats, sizeof(struct ce_stats)); in hif_clear_ce_stats()
775 struct HIF_CE_state *hif_ce_state = (struct HIF_CE_state *)scn; in ce_poll_reap_by_id() local
808 ce_tasklet_update_bucket(hif_ce_state, ce_id); in ce_poll_reap_by_id()
825 struct HIF_CE_state *hif_ce_state = (struct HIF_CE_state *)scn; in hif_drain_fw_diag_ce() local
831 tasklet_entry = &hif_ce_state->tasklets[ce_id]; in hif_drain_fw_diag_ce()
848 struct HIF_CE_state *hif_ce_state = entry->hif_ce_state; in ce_check_tasklet_status() local
849 struct hif_softc *scn = HIF_GET_SOFTC(hif_ce_state); in ce_check_tasklet_status()
860 &hif_ce_state->tasklets[ce_id].intr_tq.state)) in ce_check_tasklet_status()
901 struct HIF_CE_state *hif_ce_state = tasklet_entry->hif_ce_state; in ce_dispatch_interrupt() local
902 struct hif_softc *scn = HIF_GET_SOFTC(hif_ce_state); in ce_dispatch_interrupt()
915 ce_tasklet_entry_dump(hif_ce_state); in ce_dispatch_interrupt()
942 hif_ce_increment_interrupt_count(hif_ce_state, ce_id); in ce_dispatch_interrupt()
993 QDF_STATUS ce_unregister_irq(struct HIF_CE_state *hif_ce_state, uint32_t mask) in ce_unregister_irq() argument
1000 if (!hif_ce_state) { in ce_unregister_irq()
1005 scn = HIF_GET_SOFTC(hif_ce_state); in ce_unregister_irq()
1015 mask &= hif_ce_state->ce_register_irq_done; in ce_unregister_irq()
1017 if ((mask & (1 << id)) && hif_ce_state->tasklets[id].inited) { in ce_unregister_irq()
1019 &hif_ce_state->tasklets[id]); in ce_unregister_irq()
1027 hif_ce_state->ce_register_irq_done &= ~mask; in ce_unregister_irq()
1041 QDF_STATUS ce_register_irq(struct HIF_CE_state *hif_ce_state, uint32_t mask) in ce_register_irq() argument
1048 struct hif_softc *scn = HIF_GET_SOFTC(hif_ce_state); in ce_register_irq()
1053 if ((mask & (1 << id)) && hif_ce_state->tasklets[id].inited) { in ce_register_irq()
1057 &hif_ce_state->tasklets[id]); in ce_register_irq()
1062 ce_unregister_irq(hif_ce_state, done_mask); in ce_register_irq()
1068 hif_ce_state->ce_register_irq_done |= done_mask; in ce_register_irq()