Lines Matching refs:hif_softc
195 static inline int hif_get_pci_slot(struct hif_softc *scn) in hif_get_pci_slot()
225 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_route_adrastea_interrupt()
252 static void pci_dispatch_interrupt(struct hif_softc *scn) in pci_dispatch_interrupt()
296 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_legacy_ce_interrupt_handler()
417 bool hif_pci_targ_is_present(struct hif_softc *scn, void *__iomem *mem) in hif_pci_targ_is_present()
456 void hif_pci_cancel_deferred_target_sleep(struct hif_softc *scn) in hif_pci_cancel_deferred_target_sleep()
478 inline void hif_pci_cancel_deferred_target_sleep(struct hif_softc *scn) in hif_pci_cancel_deferred_target_sleep()
501 static bool hif_targ_is_awake(struct hif_softc *hif_ctx, void *__iomem *mem) in hif_targ_is_awake()
513 static bool hif_targ_is_awake(struct hif_softc *scn, void *__iomem *mem) in hif_targ_is_awake()
531 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_device_reset()
604 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_device_warm_reset()
724 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_check_fw_reg()
746 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_check_soc_status()
810 static void __hif_pci_dump_registers(struct hif_softc *scn) in __hif_pci_dump_registers()
949 int hif_pci_dump_registers(struct hif_softc *hif_ctx) in hif_pci_dump_registers()
952 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_pci_dump_registers()
971 struct hif_softc *scn = HIF_GET_SOFTC(sc); in reschedule_tasklet_work_handler()
1005 struct hif_softc *scn = HIF_GET_SOFTC(sc); in wlan_tasklet()
1032 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_disable_power_gating()
1073 void hif_pci_enable_power_management(struct hif_softc *hif_sc, in hif_pci_enable_power_management()
1113 void hif_pci_disable_power_management(struct hif_softc *hif_ctx) in hif_pci_disable_power_management()
1125 void hif_pci_display_stats(struct hif_softc *hif_ctx) in hif_pci_display_stats()
1138 void hif_pci_clear_stats(struct hif_softc *hif_ctx) in hif_pci_clear_stats()
1157 QDF_STATUS hif_pci_open(struct hif_softc *hif_ctx, enum qdf_bus_type bus_type) in hif_pci_open()
1177 static void hif_wake_target_cpu(struct hif_softc *scn) in hif_wake_target_cpu()
1203 static void soc_wake_reset(struct hif_softc *scn) in soc_wake_reset()
1224 struct hif_softc *scn = HIF_GET_SOFTC(hif_state); in hif_sleep_entry()
1257 static void hif_set_hia_extnd(struct hif_softc *scn) in hif_set_hia_extnd()
1396 static void hif_set_hia_extnd(struct hif_softc *scn) in hif_set_hia_extnd()
1413 static int hif_set_hia(struct hif_softc *scn) in hif_set_hia()
1689 int hif_pci_bus_configure(struct hif_softc *hif_sc) in hif_pci_bus_configure()
1807 void hif_pci_close(struct hif_softc *hif_sc) in hif_pci_close()
1846 struct hif_softc *ol_sc = HIF_GET_SOFTC(sc); in hif_enable_pci_nopld()
1981 struct hif_softc *ol_sc = HIF_GET_SOFTC(sc); in hif_disable_pci()
2001 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_probe_tgt_wakeup()
2064 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_configure_legacy_irq()
2108 static int hif_ce_srng_free_irq(struct hif_softc *scn) in hif_ce_srng_free_irq()
2150 void hif_pci_deconfigure_grp_irq(struct hif_softc *scn) in hif_pci_deconfigure_grp_irq()
2184 void hif_pci_nointrs(struct hif_softc *scn) in hif_pci_nointrs()
2236 void hif_pci_disable_bus(struct hif_softc *scn) in hif_pci_disable_bus()
2297 void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag) in hif_pci_prevent_linkdown()
2309 void hif_pci_prevent_linkdown(struct hif_softc *scn, bool flag) in hif_pci_prevent_linkdown()
2326 static void hif_pci_config_low_power_int_register(struct hif_softc *scn, in hif_pci_config_low_power_int_register()
2368 static inline void hif_pci_config_low_power_int_register(struct hif_softc *scn, in hif_pci_config_low_power_int_register()
2380 int hif_pci_bus_suspend(struct hif_softc *scn) in hif_pci_bus_suspend()
2425 static int __hif_check_link_status(struct hif_softc *scn) in __hif_check_link_status()
2455 static inline int __hif_check_link_status(struct hif_softc *scn) in __hif_check_link_status()
2463 bool hif_log_pcie_info(struct hif_softc *scn, uint8_t *data, in hif_log_pcie_info()
2503 int hif_pci_bus_resume(struct hif_softc *scn) in hif_pci_bus_resume()
2527 int hif_pci_bus_suspend_noirq(struct hif_softc *scn) in hif_pci_bus_suspend_noirq()
2544 int hif_pci_bus_resume_noirq(struct hif_softc *scn) in hif_pci_bus_resume_noirq()
2557 static void hif_free_msi_ctx(struct hif_softc *scn) in hif_free_msi_ctx()
2569 static void hif_free_msi_ctx(struct hif_softc *scn) in hif_free_msi_ctx()
2574 void hif_pci_disable_isr(struct hif_softc *scn) in hif_pci_disable_isr()
2589 void hif_pci_reset_soc(struct hif_softc *hif_sc) in hif_pci_reset_soc()
2622 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_log_soc_wakeup_timeout()
2709 int hif_pci_target_sleep_state_adjust(struct hif_softc *scn, in hif_pci_target_sleep_state_adjust()
2819 uint32_t hif_target_read_checked(struct hif_softc *scn, uint32_t offset) in hif_target_read_checked()
2844 hif_target_write_checked(struct hif_softc *scn, uint32_t offset, uint32_t value) in hif_target_write_checked()
2916 static int hif_ce_msi_map_ce_to_irq(struct hif_softc *scn, int ce_id) in hif_ce_msi_map_ce_to_irq()
2931 static void hif_ce_srng_msi_irq_disable(struct hif_softc *hif_sc, int ce_id) in hif_ce_srng_msi_irq_disable()
2937 static void hif_ce_srng_msi_irq_enable(struct hif_softc *hif_sc, int ce_id) in hif_ce_srng_msi_irq_enable()
2946 static void hif_ce_legacy_msi_irq_disable(struct hif_softc *hif_sc, int ce_id) in hif_ce_legacy_msi_irq_disable()
2951 static void hif_ce_legacy_msi_irq_enable(struct hif_softc *hif_sc, int ce_id) in hif_ce_legacy_msi_irq_enable()
2965 static int hif_ce_configure_legacyirq(struct hif_softc *scn) in hif_ce_configure_legacyirq()
3026 static int hif_ce_configure_legacyirq(struct hif_softc *scn) in hif_ce_configure_legacyirq()
3032 int hif_ce_msi_configure_irq_by_ceid(struct hif_softc *scn, int ce_id) in hif_ce_msi_configure_irq_by_ceid()
3097 static int hif_ce_msi_configure_irq(struct hif_softc *scn) in hif_ce_msi_configure_irq()
3188 struct hif_softc *scn = HIF_GET_SOFTC(hif_ext_group->hif); in hif_exec_grp_irq_disable()
3198 struct hif_softc *scn = HIF_GET_SOFTC(hif_ext_group->hif); in hif_exec_grp_irq_enable()
3245 ret = hif_affinity_mgr_set_qrg_irq_affinity((struct hif_softc *)hif_ext_group->hif, in hif_pci_irq_set_affinity_hint()
3263 void hif_pci_ce_irq_set_affinity_hint(struct hif_softc *scn) in hif_pci_ce_irq_set_affinity_hint()
3317 void hif_pci_config_irq_clear_cpu_affinity(struct hif_softc *scn, in hif_pci_config_irq_clear_cpu_affinity()
3331 ret = hif_affinity_mgr_set_qrg_irq_affinity((struct hif_softc *)hif_ext_group->hif, in hif_pci_config_irq_clear_cpu_affinity()
3350 void hif_pci_config_irq_affinity(struct hif_softc *scn) in hif_pci_config_irq_affinity()
3376 static int hif_grp_configure_legacyirq(struct hif_softc *scn, in hif_grp_configure_legacyirq()
3442 static int hif_grp_configure_legacyirq(struct hif_softc *scn, in hif_grp_configure_legacyirq()
3449 int hif_pci_configure_grp_irq(struct hif_softc *scn, in hif_pci_configure_grp_irq()
3502 void hif_pci_set_grp_intr_affinity(struct hif_softc *scn, in hif_pci_set_grp_intr_affinity()
3522 uint32_t hif_pci_reg_read32(struct hif_softc *hif_sc, in hif_pci_reg_read32()
3528 void hif_pci_reg_write32(struct hif_softc *hif_sc, in hif_pci_reg_write32()
3536 uint32_t hif_pci_reg_read32(struct hif_softc *hif_sc, in hif_pci_reg_read32()
3542 void hif_pci_reg_write32(struct hif_softc *hif_sc, in hif_pci_reg_write32()
3557 int hif_configure_irq(struct hif_softc *scn) in hif_configure_irq()
3611 static void hif_trigger_timer_irq(struct hif_softc *scn) in hif_trigger_timer_irq()
3637 static void hif_target_sync(struct hif_softc *scn) in hif_target_sync()
3696 struct hif_softc *scn = HIF_GET_SOFTC(sc); in hif_pci_get_soc_info_pld()
3801 QDF_STATUS hif_pci_enable_bus(struct hif_softc *ol_sc, in hif_pci_enable_bus()
3927 void hif_pci_irq_enable(struct hif_softc *scn, int ce_id) in hif_pci_irq_enable()
3967 void hif_pci_irq_disable(struct hif_softc *scn, int ce_id) in hif_pci_irq_disable()
3974 int hif_pci_legacy_map_ce_to_irq(struct hif_softc *scn, int ce_id) in hif_pci_legacy_map_ce_to_irq()
3982 int hif_pci_addr_in_boundary(struct hif_softc *scn, uint32_t offset) in hif_pci_addr_in_boundary()
4023 bool hif_pci_needs_bmi(struct hif_softc *scn) in hif_pci_needs_bmi()
4040 struct hif_softc *scn = (struct hif_softc *)hif_handle; in hif_soc_wake_request()
4082 struct hif_softc *scn = (struct hif_softc *)hif_handle; in hif_soc_wake_release()
4110 struct hif_softc *scn = (struct hif_softc *)hif_handle; in hif_force_wake_request()
4177 struct hif_softc *scn = (struct hif_softc *)hif_handle; in hif_force_wake_release()
4210 struct hif_softc *scn = (struct hif_softc *)hif_handle; in hif_force_wake_request()
4245 struct hif_softc *scn = (struct hif_softc *)hif_handle; in hif_force_wake_release()
4298 struct hif_softc *hif_softc = (struct hif_softc *)hif; in hif_prevent_l1() local
4307 qdf_atomic_inc(&hif_softc->opt_wifi_dp_rtpm_cnt); in hif_prevent_l1()
4309 qdf_atomic_read(&hif_softc->opt_wifi_dp_rtpm_cnt)); in hif_prevent_l1()
4315 struct hif_softc *hif_softc = (struct hif_softc *)hif; in hif_allow_l1() local
4318 if (qdf_atomic_read(&hif_softc->opt_wifi_dp_rtpm_cnt) > 0) { in hif_allow_l1()
4325 qdf_atomic_dec(&hif_softc->opt_wifi_dp_rtpm_cnt); in hif_allow_l1()
4327 qdf_atomic_read(&hif_softc->opt_wifi_dp_rtpm_cnt)); in hif_allow_l1()