Lines Matching refs:mvrefbuf
59 struct amdgpu_vce_bo mvrefbuf; member
577 mv_ref_luma_offset = enc->mvrefbuf.addr; in amdgpu_cs_vce_mv()
686 alloc_resource(&enc.mvrefbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_vce_encode_mv()
687 resources[num_resources++] = enc.mvrefbuf.handle; in amdgpu_cs_vce_encode_mv()
708 r = amdgpu_bo_cpu_map(enc.mvrefbuf.handle, (void **)&enc.mvrefbuf.ptr); in amdgpu_cs_vce_encode_mv()
711 memset(enc.mvrefbuf.ptr, 0, vbuf_size); in amdgpu_cs_vce_encode_mv()
713 memcpy(enc.mvrefbuf.ptr, (frame + (enc.height - i -1) * enc.width), enc.width); in amdgpu_cs_vce_encode_mv()
714 enc.mvrefbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_vce_encode_mv()
717 memcpy(enc.mvrefbuf.ptr, in amdgpu_cs_vce_encode_mv()
719 enc.mvrefbuf.ptr += ALIGN(enc.width, align); in amdgpu_cs_vce_encode_mv()
722 r = amdgpu_bo_cpu_unmap(enc.mvrefbuf.handle); in amdgpu_cs_vce_encode_mv()
735 free_resource(&enc.mvrefbuf); in amdgpu_cs_vce_encode_mv()