Lines Matching refs:ab_pci

198 static int ath11k_mhi_get_msi(struct ath11k_pci *ab_pci)  in ath11k_mhi_get_msi()  argument
200 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_get_msi()
227 ab_pci->mhi_ctrl->irq = irq; in ath11k_mhi_get_msi()
228 ab_pci->mhi_ctrl->nr_irqs = num_vectors; in ath11k_mhi_get_msi()
272 struct ath11k_pci *ab_pci = ath11k_pci_priv(ab); in ath11k_mhi_op_status_cb() local
283 if (ab_pci->mhi_pre_cb == MHI_CB_EE_RDDM) { in ath11k_mhi_op_status_cb()
297 ab_pci->mhi_pre_cb = cb; in ath11k_mhi_op_status_cb()
337 int ath11k_mhi_register(struct ath11k_pci *ab_pci) in ath11k_mhi_register() argument
339 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_register()
348 ab_pci->mhi_ctrl = mhi_ctrl; in ath11k_mhi_register()
360 ab_pci->amss_path, in ath11k_mhi_register()
361 sizeof(ab_pci->amss_path)); in ath11k_mhi_register()
362 mhi_ctrl->fw_image = ab_pci->amss_path; in ath11k_mhi_register()
365 ret = ath11k_mhi_get_msi(ab_pci); in ath11k_mhi_register()
380 mhi_ctrl->iova_stop = ab_pci->dma_mask; in ath11k_mhi_register()
410 ab_pci->mhi_pre_cb = MHI_CB_INVALID; in ath11k_mhi_register()
421 ab_pci->mhi_ctrl = NULL; in ath11k_mhi_register()
425 void ath11k_mhi_unregister(struct ath11k_pci *ab_pci) in ath11k_mhi_unregister() argument
427 struct mhi_controller *mhi_ctrl = ab_pci->mhi_ctrl; in ath11k_mhi_unregister()
434 int ath11k_mhi_start(struct ath11k_pci *ab_pci) in ath11k_mhi_start() argument
436 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_start()
439 ab_pci->mhi_ctrl->timeout_ms = MHI_TIMEOUT_DEFAULT_MS; in ath11k_mhi_start()
441 ret = mhi_prepare_for_power_up(ab_pci->mhi_ctrl); in ath11k_mhi_start()
447 ret = mhi_sync_power_up(ab_pci->mhi_ctrl); in ath11k_mhi_start()
456 void ath11k_mhi_stop(struct ath11k_pci *ab_pci) in ath11k_mhi_stop() argument
458 mhi_power_down(ab_pci->mhi_ctrl, true); in ath11k_mhi_stop()
459 mhi_unprepare_after_power_down(ab_pci->mhi_ctrl); in ath11k_mhi_stop()
462 int ath11k_mhi_suspend(struct ath11k_pci *ab_pci) in ath11k_mhi_suspend() argument
464 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_suspend()
467 ret = mhi_pm_suspend(ab_pci->mhi_ctrl); in ath11k_mhi_suspend()
476 int ath11k_mhi_resume(struct ath11k_pci *ab_pci) in ath11k_mhi_resume() argument
478 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_resume()
485 ret = mhi_pm_resume_force(ab_pci->mhi_ctrl); in ath11k_mhi_resume()