Home
last modified time | relevance | path

Searched refs:kernel_addr (Results 1 – 2 of 2) sorted by relevance

/drivers/misc/habanalabs/
Dfirmware_if.c162 u64 kernel_addr; in hl_fw_cpu_accessible_dma_pool_alloc() local
164 kernel_addr = gen_pool_alloc(hdev->cpu_accessible_dma_pool, size); in hl_fw_cpu_accessible_dma_pool_alloc()
167 (kernel_addr - (u64) (uintptr_t) hdev->cpu_accessible_dma_mem); in hl_fw_cpu_accessible_dma_pool_alloc()
169 return (void *) (uintptr_t) kernel_addr; in hl_fw_cpu_accessible_dma_pool_alloc()
/drivers/misc/habanalabs/goya/
Dgoya.c2762 void *kernel_addr = dma_alloc_coherent(&hdev->pdev->dev, size, in goya_dma_alloc_coherent() local
2766 if (kernel_addr) in goya_dma_alloc_coherent()
2769 return kernel_addr; in goya_dma_alloc_coherent()
3024 void *kernel_addr; in goya_dma_pool_zalloc() local
3029 kernel_addr = dma_pool_zalloc(hdev->dma_pool, mem_flags, dma_handle); in goya_dma_pool_zalloc()
3032 if (kernel_addr) in goya_dma_pool_zalloc()
3035 return kernel_addr; in goya_dma_pool_zalloc()