Lines Matching full:ab
43 static int ath11k_pci_bus_wake_up(struct ath11k_base *ab) in ath11k_pci_bus_wake_up() argument
45 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_wake_up()
50 static void ath11k_pci_bus_release(struct ath11k_base *ab) in ath11k_pci_bus_release() argument
52 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_bus_release()
57 static u32 ath11k_pci_get_window_start(struct ath11k_base *ab, u32 offset) in ath11k_pci_get_window_start() argument
59 if (!ab->hw_params.static_window_map) in ath11k_pci_get_window_start()
65 else if ((offset ^ HAL_SEQ_WCSS_UMAC_CE0_SRC_REG(ab)) < in ath11k_pci_get_window_start()
75 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_select_window() local
83 ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
84 ioread32(ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_window()
90 ath11k_pci_window_write32(struct ath11k_base *ab, u32 offset, u32 value) in ath11k_pci_window_write32() argument
92 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_window_write32()
95 window_start = ath11k_pci_get_window_start(ab, offset); in ath11k_pci_window_write32()
100 iowrite32(value, ab->mem + window_start + in ath11k_pci_window_write32()
104 iowrite32(value, ab->mem + window_start + in ath11k_pci_window_write32()
109 static u32 ath11k_pci_window_read32(struct ath11k_base *ab, u32 offset) in ath11k_pci_window_read32() argument
111 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_window_read32()
114 window_start = ath11k_pci_get_window_start(ab, offset); in ath11k_pci_window_read32()
119 val = ioread32(ab->mem + window_start + in ath11k_pci_window_read32()
123 val = ioread32(ab->mem + window_start + in ath11k_pci_window_read32()
130 int ath11k_pci_get_msi_irq(struct ath11k_base *ab, unsigned int vector) in ath11k_pci_get_msi_irq() argument
132 struct pci_dev *pci_dev = to_pci_dev(ab->dev); in ath11k_pci_get_msi_irq()
175 ab_pci->ab->mem + ATH11K_PCI_WINDOW_REG_ADDRESS); in ath11k_pci_select_static_window()
178 static void ath11k_pci_soc_global_reset(struct ath11k_base *ab) in ath11k_pci_soc_global_reset() argument
182 val = ath11k_pcic_read32(ab, PCIE_SOC_GLOBAL_RESET); in ath11k_pci_soc_global_reset()
186 ath11k_pcic_write32(ab, PCIE_SOC_GLOBAL_RESET, val); in ath11k_pci_soc_global_reset()
195 ath11k_pcic_write32(ab, PCIE_SOC_GLOBAL_RESET, val); in ath11k_pci_soc_global_reset()
199 val = ath11k_pcic_read32(ab, PCIE_SOC_GLOBAL_RESET); in ath11k_pci_soc_global_reset()
201 ath11k_warn(ab, "link down error during global reset\n"); in ath11k_pci_soc_global_reset()
204 static void ath11k_pci_clear_dbg_registers(struct ath11k_base *ab) in ath11k_pci_clear_dbg_registers() argument
209 val = ath11k_pcic_read32(ab, PCIE_Q6_COOKIE_ADDR); in ath11k_pci_clear_dbg_registers()
210 ath11k_dbg(ab, ATH11K_DBG_PCI, "pcie_q6_cookie_addr 0x%x\n", val); in ath11k_pci_clear_dbg_registers()
212 val = ath11k_pcic_read32(ab, WLAON_WARM_SW_ENTRY); in ath11k_pci_clear_dbg_registers()
213 ath11k_dbg(ab, ATH11K_DBG_PCI, "wlaon_warm_sw_entry 0x%x\n", val); in ath11k_pci_clear_dbg_registers()
221 ath11k_pcic_write32(ab, WLAON_WARM_SW_ENTRY, 0); in ath11k_pci_clear_dbg_registers()
224 val = ath11k_pcic_read32(ab, WLAON_WARM_SW_ENTRY); in ath11k_pci_clear_dbg_registers()
225 ath11k_dbg(ab, ATH11K_DBG_PCI, "wlaon_warm_sw_entry 0x%x\n", val); in ath11k_pci_clear_dbg_registers()
230 val = ath11k_pcic_read32(ab, WLAON_SOC_RESET_CAUSE_REG); in ath11k_pci_clear_dbg_registers()
231 ath11k_dbg(ab, ATH11K_DBG_PCI, "soc reset cause %d\n", val); in ath11k_pci_clear_dbg_registers()
234 static int ath11k_pci_set_link_reg(struct ath11k_base *ab, in ath11k_pci_set_link_reg() argument
240 v = ath11k_pcic_read32(ab, offset); in ath11k_pci_set_link_reg()
245 ath11k_pcic_write32(ab, offset, (v & ~mask) | value); in ath11k_pci_set_link_reg()
247 v = ath11k_pcic_read32(ab, offset); in ath11k_pci_set_link_reg()
254 ath11k_warn(ab, "failed to set pcie link register 0x%08x: 0x%08x != 0x%08x\n", in ath11k_pci_set_link_reg()
260 static int ath11k_pci_fix_l1ss(struct ath11k_base *ab) in ath11k_pci_fix_l1ss() argument
264 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
265 PCIE_QSERDES_COM_SYSCLK_EN_SEL_REG(ab), in ath11k_pci_fix_l1ss()
269 ath11k_warn(ab, "failed to set sysclk: %d\n", ret); in ath11k_pci_fix_l1ss()
273 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
274 PCIE_PCS_OSC_DTCT_CONFIG1_REG(ab), in ath11k_pci_fix_l1ss()
278 ath11k_warn(ab, "failed to set dtct config1 error: %d\n", ret); in ath11k_pci_fix_l1ss()
282 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
283 PCIE_PCS_OSC_DTCT_CONFIG2_REG(ab), in ath11k_pci_fix_l1ss()
287 ath11k_warn(ab, "failed to set dtct config2: %d\n", ret); in ath11k_pci_fix_l1ss()
291 ret = ath11k_pci_set_link_reg(ab, in ath11k_pci_fix_l1ss()
292 PCIE_PCS_OSC_DTCT_CONFIG4_REG(ab), in ath11k_pci_fix_l1ss()
296 ath11k_warn(ab, "failed to set dtct config4: %d\n", ret); in ath11k_pci_fix_l1ss()
303 static void ath11k_pci_enable_ltssm(struct ath11k_base *ab) in ath11k_pci_enable_ltssm() argument
308 val = ath11k_pcic_read32(ab, PCIE_PCIE_PARF_LTSSM); in ath11k_pci_enable_ltssm()
315 ath11k_pcic_write32(ab, PCIE_PCIE_PARF_LTSSM, PARM_LTSSM_VALUE); in ath11k_pci_enable_ltssm()
316 val = ath11k_pcic_read32(ab, PCIE_PCIE_PARF_LTSSM); in ath11k_pci_enable_ltssm()
319 ath11k_dbg(ab, ATH11K_DBG_PCI, "ltssm 0x%x\n", val); in ath11k_pci_enable_ltssm()
321 val = ath11k_pcic_read32(ab, GCC_GCC_PCIE_HOT_RST); in ath11k_pci_enable_ltssm()
323 ath11k_pcic_write32(ab, GCC_GCC_PCIE_HOT_RST, val); in ath11k_pci_enable_ltssm()
324 val = ath11k_pcic_read32(ab, GCC_GCC_PCIE_HOT_RST); in ath11k_pci_enable_ltssm()
326 ath11k_dbg(ab, ATH11K_DBG_PCI, "pcie_hot_rst 0x%x\n", val); in ath11k_pci_enable_ltssm()
331 static void ath11k_pci_clear_all_intrs(struct ath11k_base *ab) in ath11k_pci_clear_all_intrs() argument
338 ath11k_pcic_write32(ab, PCIE_PCIE_INT_ALL_CLEAR, PCIE_INT_CLEAR_ALL); in ath11k_pci_clear_all_intrs()
341 static void ath11k_pci_set_wlaon_pwr_ctrl(struct ath11k_base *ab) in ath11k_pci_set_wlaon_pwr_ctrl() argument
345 val = ath11k_pcic_read32(ab, WLAON_QFPROM_PWR_CTRL_REG); in ath11k_pci_set_wlaon_pwr_ctrl()
347 ath11k_pcic_write32(ab, WLAON_QFPROM_PWR_CTRL_REG, val); in ath11k_pci_set_wlaon_pwr_ctrl()
350 static void ath11k_pci_force_wake(struct ath11k_base *ab) in ath11k_pci_force_wake() argument
352 ath11k_pcic_write32(ab, PCIE_SOC_WAKE_PCIE_LOCAL_REG, 1); in ath11k_pci_force_wake()
356 static void ath11k_pci_sw_reset(struct ath11k_base *ab, bool power_on) in ath11k_pci_sw_reset() argument
361 ath11k_pci_enable_ltssm(ab); in ath11k_pci_sw_reset()
362 ath11k_pci_clear_all_intrs(ab); in ath11k_pci_sw_reset()
363 ath11k_pci_set_wlaon_pwr_ctrl(ab); in ath11k_pci_sw_reset()
364 if (ab->hw_params.fix_l1ss) in ath11k_pci_sw_reset()
365 ath11k_pci_fix_l1ss(ab); in ath11k_pci_sw_reset()
368 ath11k_mhi_clear_vector(ab); in ath11k_pci_sw_reset()
369 ath11k_pci_clear_dbg_registers(ab); in ath11k_pci_sw_reset()
370 ath11k_pci_soc_global_reset(ab); in ath11k_pci_sw_reset()
371 ath11k_mhi_set_mhictrl_reset(ab); in ath11k_pci_sw_reset()
374 static void ath11k_pci_init_qmi_ce_config(struct ath11k_base *ab) in ath11k_pci_init_qmi_ce_config() argument
376 struct ath11k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg; in ath11k_pci_init_qmi_ce_config()
378 cfg->tgt_ce = ab->hw_params.target_ce_config; in ath11k_pci_init_qmi_ce_config()
379 cfg->tgt_ce_len = ab->hw_params.target_ce_count; in ath11k_pci_init_qmi_ce_config()
381 cfg->svc_to_ce_map = ab->hw_params.svc_to_ce_map; in ath11k_pci_init_qmi_ce_config()
382 cfg->svc_to_ce_map_len = ab->hw_params.svc_to_ce_map_len; in ath11k_pci_init_qmi_ce_config()
383 ab->qmi.service_ins_id = ab->hw_params.qmi_service_ins_id; in ath11k_pci_init_qmi_ce_config()
385 ath11k_ce_get_shadow_config(ab, &cfg->shadow_reg_v2, in ath11k_pci_init_qmi_ce_config()
416 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_alloc_msi() local
417 const struct ath11k_msi_config *msi_config = ab->pci.msi.config; in ath11k_pci_alloc_msi()
428 set_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags); in ath11k_pci_alloc_msi()
438 clear_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags); in ath11k_pci_alloc_msi()
439 ab->pci.msi.config = &msi_config_one_msi; in ath11k_pci_alloc_msi()
440 ath11k_dbg(ab, ATH11K_DBG_PCI, "request one msi vector\n"); in ath11k_pci_alloc_msi()
442 ath11k_info(ab, "MSI vectors: %d\n", num_vectors); in ath11k_pci_alloc_msi()
448 ath11k_err(ab, "msi_desc is NULL!\n"); in ath11k_pci_alloc_msi()
453 ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_alloc_msi()
456 &ab->pci.msi.addr_lo); in ath11k_pci_alloc_msi()
460 &ab->pci.msi.addr_hi); in ath11k_pci_alloc_msi()
462 ab->pci.msi.addr_hi = 0; in ath11k_pci_alloc_msi()
465 ath11k_dbg(ab, ATH11K_DBG_PCI, "msi base data is %d\n", ab->pci.msi.ep_base_data); in ath11k_pci_alloc_msi()
487 ath11k_err(ab_pci->ab, "msi_desc is NULL!\n"); in ath11k_pci_config_msi_data()
492 ab_pci->ab->pci.msi.ep_base_data = msi_desc->msg.data; in ath11k_pci_config_msi_data()
494 ath11k_dbg(ab_pci->ab, ATH11K_DBG_PCI, "after request_irq msi_ep_base_data %d\n", in ath11k_pci_config_msi_data()
495 ab_pci->ab->pci.msi.ep_base_data); in ath11k_pci_config_msi_data()
502 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_claim() local
508 ath11k_err(ab, "pci device id mismatch: 0x%x 0x%x\n", in ath11k_pci_claim()
516 ath11k_err(ab, "failed to assign pci resource: %d\n", ret); in ath11k_pci_claim()
522 ath11k_err(ab, "failed to enable pci device: %d\n", ret); in ath11k_pci_claim()
528 ath11k_err(ab, "failed to request pci region: %d\n", ret); in ath11k_pci_claim()
535 ath11k_err(ab, "failed to set pci dma mask to %d: %d\n", in ath11k_pci_claim()
545 ath11k_err(ab, "failed to set pci coherent dma mask to %d: %d\n", in ath11k_pci_claim()
552 ab->mem_len = pci_resource_len(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
553 ab->mem = pci_iomap(pdev, ATH11K_PCI_BAR_NUM, 0); in ath11k_pci_claim()
554 if (!ab->mem) { in ath11k_pci_claim()
555 ath11k_err(ab, "failed to map pci bar %d\n", ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
560 ab->mem_ce = ab->mem; in ath11k_pci_claim()
562 ath11k_dbg(ab, ATH11K_DBG_BOOT, "pci_mem 0x%p\n", ab->mem); in ath11k_pci_claim()
575 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_free_region() local
578 pci_iounmap(pci_dev, ab->mem); in ath11k_pci_free_region()
579 ab->mem = NULL; in ath11k_pci_free_region()
587 struct ath11k_base *ab = ab_pci->ab; in ath11k_pci_aspm_disable() local
592 ath11k_dbg(ab, ATH11K_DBG_PCI, "link_ctl 0x%04x L0s %d L1 %d\n", in ath11k_pci_aspm_disable()
613 static int ath11k_pci_power_up(struct ath11k_base *ab) in ath11k_pci_power_up() argument
615 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_power_up()
619 clear_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags); in ath11k_pci_power_up()
620 ath11k_pci_sw_reset(ab_pci->ab, true); in ath11k_pci_power_up()
631 ath11k_err(ab, "failed to start mhi: %d\n", ret); in ath11k_pci_power_up()
635 if (ab->hw_params.static_window_map) in ath11k_pci_power_up()
641 static void ath11k_pci_power_down(struct ath11k_base *ab) in ath11k_pci_power_down() argument
643 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_power_down()
648 ath11k_pci_force_wake(ab_pci->ab); in ath11k_pci_power_down()
653 clear_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags); in ath11k_pci_power_down()
654 ath11k_pci_sw_reset(ab_pci->ab, false); in ath11k_pci_power_down()
657 static int ath11k_pci_hif_suspend(struct ath11k_base *ab) in ath11k_pci_hif_suspend() argument
659 struct ath11k_pci *ar_pci = ath11k_pci_priv(ab); in ath11k_pci_hif_suspend()
664 static int ath11k_pci_hif_resume(struct ath11k_base *ab) in ath11k_pci_hif_resume() argument
666 struct ath11k_pci *ar_pci = ath11k_pci_priv(ab); in ath11k_pci_hif_resume()
671 static void ath11k_pci_hif_ce_irq_enable(struct ath11k_base *ab) in ath11k_pci_hif_ce_irq_enable() argument
673 ath11k_pcic_ce_irqs_enable(ab); in ath11k_pci_hif_ce_irq_enable()
676 static void ath11k_pci_hif_ce_irq_disable(struct ath11k_base *ab) in ath11k_pci_hif_ce_irq_disable() argument
678 ath11k_pcic_ce_irq_disable_sync(ab); in ath11k_pci_hif_ce_irq_disable()
681 static int ath11k_pci_start(struct ath11k_base *ab) in ath11k_pci_start() argument
683 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_start()
688 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pci_start()
691 ath11k_info(ab, "leaving PCI ASPM disabled to avoid MHI M2 problems\n"); in ath11k_pci_start()
693 ath11k_pcic_start(ab); in ath11k_pci_start()
718 static void ath11k_pci_read_hw_version(struct ath11k_base *ab, u32 *major, u32 *minor) in ath11k_pci_read_hw_version() argument
722 soc_hw_version = ath11k_pcic_read32(ab, TCSR_SOC_HW_VERSION); in ath11k_pci_read_hw_version()
728 ath11k_dbg(ab, ATH11K_DBG_PCI, "tcsr_soc_hw_version major %d minor %d\n", in ath11k_pci_read_hw_version()
735 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab_pci->ab->dev_flags)) in ath11k_pci_set_irq_affinity_hint()
744 struct ath11k_base *ab; in ath11k_pci_probe() local
750 ab = ath11k_core_alloc(&pdev->dev, sizeof(*ab_pci), ATH11K_BUS_PCI); in ath11k_pci_probe()
752 if (!ab) { in ath11k_pci_probe()
757 ab->dev = &pdev->dev; in ath11k_pci_probe()
758 pci_set_drvdata(pdev, ab); in ath11k_pci_probe()
759 ab_pci = ath11k_pci_priv(ab); in ath11k_pci_probe()
761 ab_pci->ab = ab; in ath11k_pci_probe()
763 ab->hif.ops = &ath11k_pci_hif_ops; in ath11k_pci_probe()
764 ab->fw_mode = ATH11K_FIRMWARE_MODE_NORMAL; in ath11k_pci_probe()
765 pci_set_drvdata(pdev, ab); in ath11k_pci_probe()
772 ret = of_property_read_u32(ab->dev->of_node, "memory-region", &addr); in ath11k_pci_probe()
774 set_bit(ATH11K_FLAG_FIXED_MEM_RGN, &ab->dev_flags); in ath11k_pci_probe()
778 ath11k_err(ab, "failed to claim device: %d\n", ret); in ath11k_pci_probe()
782 ath11k_dbg(ab, ATH11K_DBG_BOOT, "pci probe %04x:%04x %04x:%04x\n", in ath11k_pci_probe()
786 ab->id.vendor = pdev->vendor; in ath11k_pci_probe()
787 ab->id.device = pdev->device; in ath11k_pci_probe()
788 ab->id.subsystem_vendor = pdev->subsystem_vendor; in ath11k_pci_probe()
789 ab->id.subsystem_device = pdev->subsystem_device; in ath11k_pci_probe()
793 ret = ath11k_pcic_register_pci_ops(ab, &ath11k_pci_ops_qca6390); in ath11k_pci_probe()
795 ath11k_err(ab, "failed to register PCI ops: %d\n", ret); in ath11k_pci_probe()
799 ath11k_pci_read_hw_version(ab, &soc_hw_version_major, in ath11k_pci_probe()
803 ab->hw_rev = ATH11K_HW_QCA6390_HW20; in ath11k_pci_probe()
814 ret = ath11k_pcic_register_pci_ops(ab, &ath11k_pci_ops_qcn9074); in ath11k_pci_probe()
816 ath11k_err(ab, "failed to register PCI ops: %d\n", ret); in ath11k_pci_probe()
819 ab->hw_rev = ATH11K_HW_QCN9074_HW10; in ath11k_pci_probe()
822 ret = ath11k_pcic_register_pci_ops(ab, &ath11k_pci_ops_qca6390); in ath11k_pci_probe()
824 ath11k_err(ab, "failed to register PCI ops: %d\n", ret); in ath11k_pci_probe()
827 ab->id.bdf_search = ATH11K_BDF_SEARCH_BUS_AND_BOARD; in ath11k_pci_probe()
828 ath11k_pci_read_hw_version(ab, &soc_hw_version_major, in ath11k_pci_probe()
835 ab->hw_rev = ATH11K_HW_WCN6855_HW20; in ath11k_pci_probe()
839 sub_version = ath11k_pcic_read32(ab, TCSR_SOC_HW_SUB_VER); in ath11k_pci_probe()
840 ath11k_dbg(ab, ATH11K_DBG_PCI, "sub_version 0x%x\n", in ath11k_pci_probe()
847 ab->hw_rev = ATH11K_HW_QCA2066_HW21; in ath11k_pci_probe()
850 ab->hw_rev = ATH11K_HW_WCN6855_HW21; in ath11k_pci_probe()
873 ret = ath11k_pcic_init_msi_config(ab); in ath11k_pci_probe()
875 ath11k_err(ab, "failed to init msi config: %d\n", ret); in ath11k_pci_probe()
881 ath11k_err(ab, "failed to enable msi: %d\n", ret); in ath11k_pci_probe()
885 ret = ath11k_core_pre_init(ab); in ath11k_pci_probe()
891 ath11k_err(ab, "failed to set irq affinity %d\n", ret); in ath11k_pci_probe()
897 ath11k_err(ab, "failed to register mhi: %d\n", ret); in ath11k_pci_probe()
901 ret = ath11k_hal_srng_init(ab); in ath11k_pci_probe()
905 ret = ath11k_ce_alloc_pipes(ab); in ath11k_pci_probe()
907 ath11k_err(ab, "failed to allocate ce pipes: %d\n", ret); in ath11k_pci_probe()
911 ath11k_pci_init_qmi_ce_config(ab); in ath11k_pci_probe()
913 ret = ath11k_pcic_config_irq(ab); in ath11k_pci_probe()
915 ath11k_err(ab, "failed to config irq: %d\n", ret); in ath11k_pci_probe()
926 ath11k_err(ab, "failed to config msi_data: %d\n", ret); in ath11k_pci_probe()
930 ret = ath11k_core_init(ab); in ath11k_pci_probe()
932 ath11k_err(ab, "failed to init core: %d\n", ret); in ath11k_pci_probe()
935 ath11k_qmi_fwreset_from_cold_boot(ab); in ath11k_pci_probe()
939 ath11k_pcic_free_irq(ab); in ath11k_pci_probe()
942 ath11k_ce_free_pipes(ab); in ath11k_pci_probe()
945 ath11k_hal_srng_deinit(ab); in ath11k_pci_probe()
960 ath11k_core_free(ab); in ath11k_pci_probe()
967 struct ath11k_base *ab = pci_get_drvdata(pdev); in ath11k_pci_remove() local
968 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_remove()
972 if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) { in ath11k_pci_remove()
973 ath11k_pci_power_down(ab); in ath11k_pci_remove()
974 ath11k_debugfs_soc_destroy(ab); in ath11k_pci_remove()
975 ath11k_qmi_deinit_service(ab); in ath11k_pci_remove()
979 set_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags); in ath11k_pci_remove()
981 ath11k_core_deinit(ab); in ath11k_pci_remove()
986 ath11k_pcic_free_irq(ab); in ath11k_pci_remove()
990 ath11k_hal_srng_deinit(ab); in ath11k_pci_remove()
991 ath11k_ce_free_pipes(ab); in ath11k_pci_remove()
992 ath11k_core_free(ab); in ath11k_pci_remove()
997 struct ath11k_base *ab = pci_get_drvdata(pdev); in ath11k_pci_shutdown() local
998 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_pci_shutdown()
1001 ath11k_pci_power_down(ab); in ath11k_pci_shutdown()
1006 struct ath11k_base *ab = dev_get_drvdata(dev); in ath11k_pci_pm_suspend() local
1009 if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) { in ath11k_pci_pm_suspend()
1010 ath11k_dbg(ab, ATH11K_DBG_BOOT, "boot skipping pci suspend as qmi is not initialised\n"); in ath11k_pci_pm_suspend()
1014 ret = ath11k_core_suspend(ab); in ath11k_pci_pm_suspend()
1016 ath11k_warn(ab, "failed to suspend core: %d\n", ret); in ath11k_pci_pm_suspend()
1023 struct ath11k_base *ab = dev_get_drvdata(dev); in ath11k_pci_pm_resume() local
1026 if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) { in ath11k_pci_pm_resume()
1027 ath11k_dbg(ab, ATH11K_DBG_BOOT, "boot skipping pci resume as qmi is not initialised\n"); in ath11k_pci_pm_resume()
1031 ret = ath11k_core_resume(ab); in ath11k_pci_pm_resume()
1033 ath11k_warn(ab, "failed to resume core: %d\n", ret); in ath11k_pci_pm_resume()