Lines Matching refs:ab
110 void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab) in ath11k_mhi_set_mhictrl_reset() argument
114 val = ath11k_pci_read32(ab, MHISTATUS); in ath11k_mhi_set_mhictrl_reset()
116 ath11k_dbg(ab, ATH11K_DBG_PCI, "MHISTATUS 0x%x\n", val); in ath11k_mhi_set_mhictrl_reset()
122 ath11k_pci_write32(ab, MHICTRL, MHICTRL_RESET_MASK); in ath11k_mhi_set_mhictrl_reset()
127 static void ath11k_mhi_reset_txvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_txvecdb() argument
129 ath11k_pci_write32(ab, PCIE_TXVECDB, 0); in ath11k_mhi_reset_txvecdb()
132 static void ath11k_mhi_reset_txvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_txvecstatus() argument
134 ath11k_pci_write32(ab, PCIE_TXVECSTATUS, 0); in ath11k_mhi_reset_txvecstatus()
137 static void ath11k_mhi_reset_rxvecdb(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecdb() argument
139 ath11k_pci_write32(ab, PCIE_RXVECDB, 0); in ath11k_mhi_reset_rxvecdb()
142 static void ath11k_mhi_reset_rxvecstatus(struct ath11k_base *ab) in ath11k_mhi_reset_rxvecstatus() argument
144 ath11k_pci_write32(ab, PCIE_RXVECSTATUS, 0); in ath11k_mhi_reset_rxvecstatus()
147 void ath11k_mhi_clear_vector(struct ath11k_base *ab) in ath11k_mhi_clear_vector() argument
149 ath11k_mhi_reset_txvecdb(ab); in ath11k_mhi_clear_vector()
150 ath11k_mhi_reset_txvecstatus(ab); in ath11k_mhi_clear_vector()
151 ath11k_mhi_reset_rxvecdb(ab); in ath11k_mhi_clear_vector()
152 ath11k_mhi_reset_rxvecstatus(ab); in ath11k_mhi_clear_vector()
157 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_get_msi() local
168 ath11k_dbg(ab, ATH11K_DBG_PCI, "Number of assigned MSI for MHI is %d, base vector is %d\n", in ath11k_mhi_get_msi()
176 irq[i] = ath11k_pci_get_msi_irq(ab->dev, in ath11k_mhi_get_msi()
217 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_register() local
225 ath11k_core_create_firmware_path(ab, ATH11K_AMSS_FILE, in ath11k_mhi_register()
230 mhi_ctrl->cntrl_dev = ab->dev; in ath11k_mhi_register()
232 mhi_ctrl->regs = ab->mem; in ath11k_mhi_register()
236 ath11k_err(ab, "failed to get msi for mhi\n"); in ath11k_mhi_register()
254 ath11k_err(ab, "failed to register to mhi bus, err = %d\n", ret); in ath11k_mhi_register()
299 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_set_state_bit() local
330 ath11k_err(ab, "unhandled mhi state (%d)\n", mhi_state); in ath11k_mhi_set_state_bit()
337 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_check_state_bit() local
372 ath11k_err(ab, "unhandled mhi state: %s(%d)\n", in ath11k_mhi_check_state_bit()
376 ath11k_err(ab, "failed to set mhi state %s(%d) in current mhi state (0x%lx)\n", in ath11k_mhi_check_state_bit()
386 struct ath11k_base *ab = ab_pci->ab; in ath11k_mhi_set_state() local
393 ath11k_dbg(ab, ATH11K_DBG_PCI, "setting mhi state: %s(%d)\n", in ath11k_mhi_set_state()
425 ath11k_err(ab, "unhandled MHI state (%d)\n", mhi_state); in ath11k_mhi_set_state()
437 ath11k_err(ab, "failed to set mhi state: %s(%d)\n", in ath11k_mhi_set_state()