Lines Matching refs:shared_mem
2414 qdf_shared_mem_t *shared_mem; in qdf_mem_shared_mem_alloc() local
2418 shared_mem = qdf_mem_malloc(sizeof(*shared_mem)); in qdf_mem_shared_mem_alloc()
2419 if (!shared_mem) in qdf_mem_shared_mem_alloc()
2422 shared_mem->vaddr = qdf_mem_alloc_consistent(osdev, osdev->dev, in qdf_mem_shared_mem_alloc()
2424 &shared_mem->mem_info)); in qdf_mem_shared_mem_alloc()
2425 if (!shared_mem->vaddr) { in qdf_mem_shared_mem_alloc()
2427 qdf_mem_free(shared_mem); in qdf_mem_shared_mem_alloc()
2431 qdf_mem_set_dma_size(osdev, &shared_mem->mem_info, size); in qdf_mem_shared_mem_alloc()
2432 size = qdf_mem_get_dma_size(osdev, &shared_mem->mem_info); in qdf_mem_shared_mem_alloc()
2434 qdf_mem_zero(shared_mem->vaddr, size); in qdf_mem_shared_mem_alloc()
2435 dma_addr = qdf_mem_get_dma_addr(osdev, &shared_mem->mem_info); in qdf_mem_shared_mem_alloc()
2438 qdf_mem_set_dma_pa(osdev, &shared_mem->mem_info, paddr); in qdf_mem_shared_mem_alloc()
2439 ret = qdf_mem_dma_get_sgtable(osdev->dev, &shared_mem->sgtable, in qdf_mem_shared_mem_alloc()
2440 shared_mem->vaddr, dma_addr, size); in qdf_mem_shared_mem_alloc()
2444 shared_mem->mem_info.size, in qdf_mem_shared_mem_alloc()
2445 shared_mem->vaddr, in qdf_mem_shared_mem_alloc()
2447 qdf_get_dma_mem_context(shared_mem, in qdf_mem_shared_mem_alloc()
2449 qdf_mem_free(shared_mem); in qdf_mem_shared_mem_alloc()
2453 qdf_dma_get_sgtable_dma_addr(&shared_mem->sgtable); in qdf_mem_shared_mem_alloc()
2455 return shared_mem; in qdf_mem_shared_mem_alloc()