Lines Matching full:ab

208 void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab)  in ath11k_mhi_set_mhictrl_reset()  argument
212 val = ath11k_pcic_read32(ab, MHISTATUS); in ath11k_mhi_set_mhictrl_reset()
214 ath11k_dbg(ab, ATH11K_DBG_PCI, "MHISTATUS 0x%x\n", val); in ath11k_mhi_set_mhictrl_reset()
220 ath11k_pcic_write32(ab, MHICTRL, MHICTRL_RESET_MASK); in ath11k_mhi_set_mhictrl_reset()
225 static void ath11k_mhi_reset_txvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_txvecdb() argument
227 ath11k_pcic_write32(ab, PCIE_TXVECDB, 0); in ath11k_mhi_reset_txvecdb()
230 static void ath11k_mhi_reset_txvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_txvecstatus() argument
232 ath11k_pcic_write32(ab, PCIE_TXVECSTATUS, 0); in ath11k_mhi_reset_txvecstatus()
235 static void ath11k_mhi_reset_rxvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecdb() argument
237 ath11k_pcic_write32(ab, PCIE_RXVECDB, 0); in ath11k_mhi_reset_rxvecdb()
240 static void ath11k_mhi_reset_rxvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecstatus() argument
242 ath11k_pcic_write32(ab, PCIE_RXVECSTATUS, 0); in ath11k_mhi_reset_rxvecstatus()
245 void ath11k_mhi_clear_vector(struct ath11k_base *ab) in ath11k_mhi_clear_vector() argument
247 ath11k_mhi_reset_txvecdb(ab); in ath11k_mhi_clear_vector()
248 ath11k_mhi_reset_txvecstatus(ab); in ath11k_mhi_clear_vector()
249 ath11k_mhi_reset_rxvecdb(ab); in ath11k_mhi_clear_vector()
250 ath11k_mhi_reset_rxvecstatus(ab); in ath11k_mhi_clear_vector()
255 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_get_msi() local
261 ret = ath11k_pcic_get_user_msi_assignment(ab, "MHI", &num_vectors, in ath11k_mhi_get_msi()
266 ath11k_dbg(ab, ATH11K_DBG_PCI, "Number of assigned MSI for MHI is %d, base vector is %d\n", in ath11k_mhi_get_msi()
276 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_mhi_get_msi()
279 irq[i] = ath11k_pci_get_msi_irq(ab, msi_data); in ath11k_mhi_get_msi()
326 struct ath11k_base *ab = dev_get_drvdata(mhi_cntrl->cntrl_dev); in ath11k_mhi_op_status_cb() local
328 ath11k_dbg(ab, ATH11K_DBG_BOOT, "mhi notify status reason %s\n", in ath11k_mhi_op_status_cb()
333 ath11k_warn(ab, "firmware crashed: MHI_CB_SYS_ERROR\n"); in ath11k_mhi_op_status_cb()
336 if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags))) in ath11k_mhi_op_status_cb()
337 queue_work(ab->workqueue_aux, &ab->reset_work); in ath11k_mhi_op_status_cb()
383 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_register() local
392 ath11k_core_create_firmware_path(ab, ATH11K_AMSS_FILE, in ath11k_mhi_register()
397 mhi_ctrl->cntrl_dev = ab->dev; in ath11k_mhi_register()
399 mhi_ctrl->regs = ab->mem; in ath11k_mhi_register()
400 mhi_ctrl->reg_len = ab->mem_len; in ath11k_mhi_register()
404 ath11k_err(ab, "failed to get msi for mhi\n"); in ath11k_mhi_register()
408 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_mhi_register()
411 if (test_bit(ATH11K_FLAG_FIXED_MEM_RGN, &ab->dev_flags)) { in ath11k_mhi_register()
430 switch (ab->hw_rev) { in ath11k_mhi_register()
440 ath11k_err(ab, "failed assign mhi_config for unknown hw rev %d\n", in ath11k_mhi_register()
441 ab->hw_rev); in ath11k_mhi_register()
448 ath11k_err(ab, "failed to register to mhi bus, err = %d\n", ret); in ath11k_mhi_register()
471 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_start() local
478 ath11k_warn(ab, "failed to prepare mhi: %d", ret); in ath11k_mhi_start()
484 ath11k_warn(ab, "failed to power up mhi: %d", ret); in ath11k_mhi_start()
499 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_suspend() local
504 ath11k_warn(ab, "failed to suspend mhi: %d", ret); in ath11k_mhi_suspend()
513 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_resume() local
522 ath11k_warn(ab, "failed to resume mhi: %d", ret); in ath11k_mhi_resume()