Searched refs:kernel_addr (Results 1 – 2 of 2) sorted by relevance
162 u64 kernel_addr; in hl_fw_cpu_accessible_dma_pool_alloc() local164 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()
2762 void *kernel_addr = dma_alloc_coherent(&hdev->pdev->dev, size, in goya_dma_alloc_coherent() local2766 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() local3029 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()