Lines Matching refs:vbuf
53 struct amdgpu_vce_bo vbuf;
361 luma_offset = enc->vbuf.addr;
411 luma_offset = enc->vbuf.addr;
504 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM);
505 resources[num_resources++] = enc.vbuf.handle;
510 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr);
513 memset(enc.vbuf.ptr, 0, vbuf_size);
515 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width);
516 enc.vbuf.ptr += ALIGN(enc.width, align);
519 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width);
520 enc.vbuf.ptr += ALIGN(enc.width, align);
523 r = amdgpu_bo_cpu_unmap(enc.vbuf.handle);
563 free_resource(&enc.vbuf);
575 luma_offset = enc->vbuf.addr;
684 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM);
685 resources[num_resources++] = enc.vbuf.handle;
692 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr);
695 memset(enc.vbuf.ptr, 0, vbuf_size);
697 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width);
698 enc.vbuf.ptr += ALIGN(enc.width, align);
701 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width);
702 enc.vbuf.ptr += ALIGN(enc.width, align);
705 r = amdgpu_bo_cpu_unmap(enc.vbuf.handle);
733 free_resource(&enc.vbuf);