Lines Matching refs:hif_sc

1073 void hif_pci_enable_power_management(struct hif_softc *hif_sc,  in hif_pci_enable_power_management()  argument
1076 struct hif_pci_softc *pci_ctx = HIF_GET_PCI_SOFTC(hif_sc); in hif_pci_enable_power_management()
1084 mode = hif_get_conparam(hif_sc); in hif_pci_enable_power_management()
1091 hif_rtpm_start(hif_sc); in hif_pci_enable_power_management()
1098 !ce_srng_based(hif_sc)) { in hif_pci_enable_power_management()
1100 if (hif_pci_target_sleep_state_adjust(hif_sc, true, false) < 0) in hif_pci_enable_power_management()
1689 int hif_pci_bus_configure(struct hif_softc *hif_sc) in hif_pci_bus_configure() argument
1692 struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(hif_sc); in hif_pci_bus_configure()
1693 struct hif_opaque_softc *hif_osc = GET_HIF_OPAQUE_HDL(hif_sc); in hif_pci_bus_configure()
1695 hif_ce_prepare_config(hif_sc); in hif_pci_bus_configure()
1708 status = hif_wlan_enable(hif_sc); in hif_pci_bus_configure()
1714 A_TARGET_ACCESS_LIKELY(hif_sc); in hif_pci_bus_configure()
1718 !ce_srng_based(hif_sc)) { in hif_pci_bus_configure()
1729 if (hif_sc->bus_type == QDF_BUS_TYPE_PCI) { in hif_pci_bus_configure()
1730 if (hif_pci_target_sleep_state_adjust(hif_sc, in hif_pci_bus_configure()
1739 if (((hif_sc->target_info.target_type == TARGET_TYPE_QCA8074) || in hif_pci_bus_configure()
1740 (hif_sc->target_info.target_type == TARGET_TYPE_QCA8074V2) || in hif_pci_bus_configure()
1741 (hif_sc->target_info.target_type == TARGET_TYPE_QCA9574) || in hif_pci_bus_configure()
1742 (hif_sc->target_info.target_type == TARGET_TYPE_QCA5332) || in hif_pci_bus_configure()
1743 (hif_sc->target_info.target_type == TARGET_TYPE_QCA5018) || in hif_pci_bus_configure()
1744 (hif_sc->target_info.target_type == TARGET_TYPE_QCN6122) || in hif_pci_bus_configure()
1745 (hif_sc->target_info.target_type == TARGET_TYPE_QCN9160) || in hif_pci_bus_configure()
1746 (hif_sc->target_info.target_type == TARGET_TYPE_QCA6018) || in hif_pci_bus_configure()
1747 (hif_sc->target_info.target_type == TARGET_TYPE_QCN6432)) && in hif_pci_bus_configure()
1748 (hif_sc->bus_type == QDF_BUS_TYPE_AHB)) { in hif_pci_bus_configure()
1749 hif_sc->per_ce_irq = true; in hif_pci_bus_configure()
1752 status = hif_config_ce(hif_sc); in hif_pci_bus_configure()
1757 status = hif_set_hia(hif_sc); in hif_pci_bus_configure()
1765 if (((hif_sc->target_info.target_type == TARGET_TYPE_QCA8074) || in hif_pci_bus_configure()
1766 (hif_sc->target_info.target_type == TARGET_TYPE_QCA8074V2) || in hif_pci_bus_configure()
1767 (hif_sc->target_info.target_type == TARGET_TYPE_QCA9574) || in hif_pci_bus_configure()
1768 (hif_sc->target_info.target_type == TARGET_TYPE_QCA5332) || in hif_pci_bus_configure()
1769 (hif_sc->target_info.target_type == TARGET_TYPE_QCA5018) || in hif_pci_bus_configure()
1770 (hif_sc->target_info.target_type == TARGET_TYPE_QCN6122) || in hif_pci_bus_configure()
1771 (hif_sc->target_info.target_type == TARGET_TYPE_QCN9160) || in hif_pci_bus_configure()
1772 (hif_sc->target_info.target_type == TARGET_TYPE_QCA6018) || in hif_pci_bus_configure()
1773 (hif_sc->target_info.target_type == TARGET_TYPE_QCN6432)) && in hif_pci_bus_configure()
1774 (hif_sc->bus_type == QDF_BUS_TYPE_PCI)) in hif_pci_bus_configure()
1777 status = hif_configure_irq(hif_sc); in hif_pci_bus_configure()
1782 A_TARGET_ACCESS_UNLIKELY(hif_sc); in hif_pci_bus_configure()
1787 hif_unconfig_ce(hif_sc); in hif_pci_bus_configure()
1789 A_TARGET_ACCESS_UNLIKELY(hif_sc); in hif_pci_bus_configure()
1790 hif_wlan_disable(hif_sc); in hif_pci_bus_configure()
1807 void hif_pci_close(struct hif_softc *hif_sc) in hif_pci_close() argument
1809 hif_rtpm_close(hif_sc); in hif_pci_close()
1810 hif_ce_close(hif_sc); in hif_pci_close()
2559 struct hif_pci_softc *sc = scn->hif_sc; in hif_free_msi_ctx()
2589 void hif_pci_reset_soc(struct hif_softc *hif_sc) in hif_pci_reset_soc() argument
2591 struct hif_pci_softc *sc = HIF_GET_PCI_SOFTC(hif_sc); in hif_pci_reset_soc()
2592 struct hif_opaque_softc *ol_sc = GET_HIF_OPAQUE_HDL(hif_sc); in hif_pci_reset_soc()
2931 static void hif_ce_srng_msi_irq_disable(struct hif_softc *hif_sc, int ce_id) in hif_ce_srng_msi_irq_disable() argument
2933 pfrm_disable_irq_nosync(hif_sc->qdf_dev->dev, in hif_ce_srng_msi_irq_disable()
2934 hif_ce_msi_map_ce_to_irq(hif_sc, 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() argument
2939 if (__hif_check_link_status(hif_sc)) in hif_ce_srng_msi_irq_enable()
2942 pfrm_enable_irq(hif_sc->qdf_dev->dev, in hif_ce_srng_msi_irq_enable()
2943 hif_ce_msi_map_ce_to_irq(hif_sc, 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() argument
2948 disable_irq_nosync(hif_ce_msi_map_ce_to_irq(hif_sc, 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() argument
2953 enable_irq(hif_ce_msi_map_ce_to_irq(hif_sc, ce_id)); in hif_ce_legacy_msi_irq_enable()
3522 uint32_t hif_pci_reg_read32(struct hif_softc *hif_sc, in hif_pci_reg_read32() argument
3525 return hal_read32_mb(hif_sc->hal_soc, offset); in hif_pci_reg_read32()
3528 void hif_pci_reg_write32(struct hif_softc *hif_sc, in hif_pci_reg_write32() argument
3532 hal_write32_mb(hif_sc->hal_soc, offset, value); in hif_pci_reg_write32()
3536 uint32_t hif_pci_reg_read32(struct hif_softc *hif_sc, in hif_pci_reg_read32() argument
3542 void hif_pci_reg_write32(struct hif_softc *hif_sc, in hif_pci_reg_write32() argument