Lines Matching refs:tme_lite_mem
4977 struct cnss_fw_mem *tme_lite_mem = &plat_priv->tme_lite_mem; in cnss_pci_load_tme_patch() local
5002 if (!tme_lite_mem->va && !tme_lite_mem->size) { in cnss_pci_load_tme_patch()
5013 tme_lite_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_tme_patch()
5014 fw_entry->size, &tme_lite_mem->pa, in cnss_pci_load_tme_patch()
5016 if (!tme_lite_mem->va) { in cnss_pci_load_tme_patch()
5023 memcpy(tme_lite_mem->va, fw_entry->data, fw_entry->size); in cnss_pci_load_tme_patch()
5024 tme_lite_mem->size = fw_entry->size; in cnss_pci_load_tme_patch()
5034 struct cnss_fw_mem *tme_lite_mem = &plat_priv->tme_lite_mem; in cnss_pci_free_tme_lite_mem() local
5036 if (tme_lite_mem->va && tme_lite_mem->size) { in cnss_pci_free_tme_lite_mem()
5038 tme_lite_mem->va, &tme_lite_mem->pa, tme_lite_mem->size); in cnss_pci_free_tme_lite_mem()
5039 dma_free_coherent(&pci_priv->pci_dev->dev, tme_lite_mem->size, in cnss_pci_free_tme_lite_mem()
5040 tme_lite_mem->va, tme_lite_mem->pa); in cnss_pci_free_tme_lite_mem()
5043 tme_lite_mem->va = NULL; in cnss_pci_free_tme_lite_mem()
5044 tme_lite_mem->pa = 0; in cnss_pci_free_tme_lite_mem()
5045 tme_lite_mem->size = 0; in cnss_pci_free_tme_lite_mem()
5052 struct cnss_fw_mem *tme_lite_mem = NULL; in cnss_pci_load_tme_opt_file() local
5062 tme_lite_mem = &plat_priv->tme_opt_file_mem[0]; in cnss_pci_load_tme_opt_file()
5065 tme_lite_mem = &plat_priv->tme_opt_file_mem[1]; in cnss_pci_load_tme_opt_file()
5068 tme_lite_mem = &plat_priv->tme_opt_file_mem[2]; in cnss_pci_load_tme_opt_file()
5083 if (!tme_lite_mem) in cnss_pci_load_tme_opt_file()
5086 if (!tme_lite_mem->va && !tme_lite_mem->size) { in cnss_pci_load_tme_opt_file()
5098 tme_lite_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_tme_opt_file()
5099 fw_entry->size, &tme_lite_mem->pa, in cnss_pci_load_tme_opt_file()
5101 if (!tme_lite_mem->va) { in cnss_pci_load_tme_opt_file()
5108 memcpy(tme_lite_mem->va, fw_entry->data, fw_entry->size); in cnss_pci_load_tme_opt_file()
5109 tme_lite_mem->size = fw_entry->size; in cnss_pci_load_tme_opt_file()