Lines Matching refs:m3_mem
5139 struct cnss_fw_mem *m3_mem = &plat_priv->m3_mem; in cnss_pci_load_m3() local
5173 if (!m3_mem->va && !m3_mem->size) { in cnss_pci_load_m3()
5184 m3_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_m3()
5185 fw_entry->size, &m3_mem->pa, in cnss_pci_load_m3()
5187 if (!m3_mem->va) { in cnss_pci_load_m3()
5194 memcpy(m3_mem->va, fw_entry->data, fw_entry->size); in cnss_pci_load_m3()
5195 m3_mem->size = fw_entry->size; in cnss_pci_load_m3()
5205 struct cnss_fw_mem *m3_mem = &plat_priv->m3_mem; in cnss_pci_free_m3_mem() local
5207 if (m3_mem->va && m3_mem->size) { in cnss_pci_free_m3_mem()
5209 m3_mem->va, &m3_mem->pa, m3_mem->size); in cnss_pci_free_m3_mem()
5210 dma_free_coherent(&pci_priv->pci_dev->dev, m3_mem->size, in cnss_pci_free_m3_mem()
5211 m3_mem->va, m3_mem->pa); in cnss_pci_free_m3_mem()
5214 m3_mem->va = NULL; in cnss_pci_free_m3_mem()
5215 m3_mem->pa = 0; in cnss_pci_free_m3_mem()
5216 m3_mem->size = 0; in cnss_pci_free_m3_mem()