Lines Matching refs:num_dw
247 unsigned num_dw, num_bytes; in amdgpu_ttm_map_buffer() local
269 num_dw = ALIGN(adev->mman.buffer_funcs->copy_num_dw, 8); in amdgpu_ttm_map_buffer()
272 r = amdgpu_job_alloc_with_ib(adev, num_dw * 4 + num_bytes, in amdgpu_ttm_map_buffer()
277 src_addr = num_dw * 4; in amdgpu_ttm_map_buffer()
286 WARN_ON(job->ibs[0].length_dw > num_dw); in amdgpu_ttm_map_buffer()
292 cpu_addr = &job->ibs[0].ptr[num_dw]; in amdgpu_ttm_map_buffer()
2119 unsigned num_loops, num_dw; in amdgpu_copy_buffer() local
2130 num_dw = ALIGN(num_loops * adev->mman.buffer_funcs->copy_num_dw, 8); in amdgpu_copy_buffer()
2132 r = amdgpu_job_alloc_with_ib(adev, num_dw * 4, pool, &job); in amdgpu_copy_buffer()
2162 WARN_ON(job->ibs[0].length_dw > num_dw); in amdgpu_copy_buffer()
2190 unsigned int num_loops, num_dw; in amdgpu_fill_buffer() local
2216 num_dw = num_loops * adev->mman.buffer_funcs->fill_num_dw; in amdgpu_fill_buffer()
2219 num_dw += 64; in amdgpu_fill_buffer()
2221 r = amdgpu_job_alloc_with_ib(adev, num_dw * 4, AMDGPU_IB_POOL_DELAYED, in amdgpu_fill_buffer()
2260 WARN_ON(job->ibs[0].length_dw > num_dw); in amdgpu_fill_buffer()