Lines Matching refs:vbuf
52 struct amdgpu_uvd_enc_bo vbuf;
343 alloc_resource(&enc.vbuf, vbuf_size, AMDGPU_GEM_DOMAIN_VRAM);
344 resources[num_resources++] = enc.vbuf.handle;
349 r = amdgpu_bo_cpu_map(enc.vbuf.handle, (void **)&enc.vbuf.ptr);
352 memset(enc.vbuf.ptr, 0, vbuf_size);
354 memcpy(enc.vbuf.ptr, (frame + i * enc.width), enc.width);
355 enc.vbuf.ptr += ALIGN(enc.width, align);
358 memcpy(enc.vbuf.ptr, ((frame + enc.height * enc.width) + i * enc.width), enc.width);
359 enc.vbuf.ptr += ALIGN(enc.width, align);
362 r = amdgpu_bo_cpu_unmap(enc.vbuf.handle);
433 luma_offset = enc.vbuf.addr;
461 free_resource(&enc.vbuf);