Searched refs:vcpu_bo (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_uvd.c145 NULL, &rdev->uvd.vcpu_bo); radeon_uvd_init()
151 r = radeon_bo_reserve(rdev->uvd.vcpu_bo, false); radeon_uvd_init()
153 radeon_bo_unref(&rdev->uvd.vcpu_bo); radeon_uvd_init()
158 r = radeon_bo_pin(rdev->uvd.vcpu_bo, RADEON_GEM_DOMAIN_VRAM, radeon_uvd_init()
161 radeon_bo_unreserve(rdev->uvd.vcpu_bo); radeon_uvd_init()
162 radeon_bo_unref(&rdev->uvd.vcpu_bo); radeon_uvd_init()
167 r = radeon_bo_kmap(rdev->uvd.vcpu_bo, &rdev->uvd.cpu_addr); radeon_uvd_init()
173 radeon_bo_unreserve(rdev->uvd.vcpu_bo); radeon_uvd_init()
188 if (rdev->uvd.vcpu_bo == NULL) radeon_uvd_fini()
191 r = radeon_bo_reserve(rdev->uvd.vcpu_bo, false); radeon_uvd_fini()
193 radeon_bo_kunmap(rdev->uvd.vcpu_bo); radeon_uvd_fini()
194 radeon_bo_unpin(rdev->uvd.vcpu_bo); radeon_uvd_fini()
195 radeon_bo_unreserve(rdev->uvd.vcpu_bo); radeon_uvd_fini()
198 radeon_bo_unref(&rdev->uvd.vcpu_bo); radeon_uvd_fini()
209 if (rdev->uvd.vcpu_bo == NULL) radeon_uvd_suspend()
242 if (rdev->uvd.vcpu_bo == NULL) radeon_uvd_resume()
247 size = radeon_bo_size(rdev->uvd.vcpu_bo); radeon_uvd_resume()
732 uint64_t offs = radeon_bo_size(rdev->uvd.vcpu_bo) - radeon_uvd_get_create_msg()
740 r = radeon_bo_reserve(rdev->uvd.vcpu_bo, true); radeon_uvd_get_create_msg()
760 radeon_bo_unreserve(rdev->uvd.vcpu_bo); radeon_uvd_get_create_msg()
768 uint64_t offs = radeon_bo_size(rdev->uvd.vcpu_bo) - radeon_uvd_get_destroy_msg()
776 r = radeon_bo_reserve(rdev->uvd.vcpu_bo, true); radeon_uvd_get_destroy_msg()
789 radeon_bo_unreserve(rdev->uvd.vcpu_bo); radeon_uvd_get_destroy_msg()
H A Dradeon_vce.c144 &rdev->vce.vcpu_bo); radeon_vce_init()
150 r = radeon_bo_reserve(rdev->vce.vcpu_bo, false); radeon_vce_init()
152 radeon_bo_unref(&rdev->vce.vcpu_bo); radeon_vce_init()
157 r = radeon_bo_pin(rdev->vce.vcpu_bo, RADEON_GEM_DOMAIN_VRAM, radeon_vce_init()
159 radeon_bo_unreserve(rdev->vce.vcpu_bo); radeon_vce_init()
161 radeon_bo_unref(&rdev->vce.vcpu_bo); radeon_vce_init()
183 if (rdev->vce.vcpu_bo == NULL) radeon_vce_fini()
186 radeon_bo_unref(&rdev->vce.vcpu_bo); radeon_vce_fini()
201 if (rdev->vce.vcpu_bo == NULL) radeon_vce_suspend()
226 if (rdev->vce.vcpu_bo == NULL) radeon_vce_resume()
229 r = radeon_bo_reserve(rdev->vce.vcpu_bo, false); radeon_vce_resume()
235 r = radeon_bo_kmap(rdev->vce.vcpu_bo, &cpu_addr); radeon_vce_resume()
237 radeon_bo_unreserve(rdev->vce.vcpu_bo); radeon_vce_resume()
242 memset(cpu_addr, 0, radeon_bo_size(rdev->vce.vcpu_bo)); radeon_vce_resume()
248 radeon_bo_kunmap(rdev->vce.vcpu_bo); radeon_vce_resume()
250 radeon_bo_unreserve(rdev->vce.vcpu_bo); radeon_vce_resume()
H A Dradeon.h1677 struct radeon_bo *vcpu_bo; member in struct:radeon_uvd
1718 struct radeon_bo *vcpu_bo; member in struct:radeon_vce
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_uvd.c167 NULL, NULL, &adev->uvd.vcpu_bo); amdgpu_uvd_sw_init()
173 r = amdgpu_bo_reserve(adev->uvd.vcpu_bo, false); amdgpu_uvd_sw_init()
175 amdgpu_bo_unref(&adev->uvd.vcpu_bo); amdgpu_uvd_sw_init()
180 r = amdgpu_bo_pin(adev->uvd.vcpu_bo, AMDGPU_GEM_DOMAIN_VRAM, amdgpu_uvd_sw_init()
183 amdgpu_bo_unreserve(adev->uvd.vcpu_bo); amdgpu_uvd_sw_init()
184 amdgpu_bo_unref(&adev->uvd.vcpu_bo); amdgpu_uvd_sw_init()
189 r = amdgpu_bo_kmap(adev->uvd.vcpu_bo, &adev->uvd.cpu_addr); amdgpu_uvd_sw_init()
195 amdgpu_bo_unreserve(adev->uvd.vcpu_bo); amdgpu_uvd_sw_init()
213 if (adev->uvd.vcpu_bo == NULL) amdgpu_uvd_sw_fini()
216 r = amdgpu_bo_reserve(adev->uvd.vcpu_bo, false); amdgpu_uvd_sw_fini()
218 amdgpu_bo_kunmap(adev->uvd.vcpu_bo); amdgpu_uvd_sw_fini()
219 amdgpu_bo_unpin(adev->uvd.vcpu_bo); amdgpu_uvd_sw_fini()
220 amdgpu_bo_unreserve(adev->uvd.vcpu_bo); amdgpu_uvd_sw_fini()
223 amdgpu_bo_unref(&adev->uvd.vcpu_bo); amdgpu_uvd_sw_fini()
237 if (adev->uvd.vcpu_bo == NULL) amdgpu_uvd_suspend()
271 if (adev->uvd.vcpu_bo == NULL) amdgpu_uvd_resume()
281 size = amdgpu_bo_size(adev->uvd.vcpu_bo); amdgpu_uvd_resume()
H A Damdgpu_vce.c151 NULL, NULL, &adev->vce.vcpu_bo); amdgpu_vce_sw_init()
157 r = amdgpu_bo_reserve(adev->vce.vcpu_bo, false); amdgpu_vce_sw_init()
159 amdgpu_bo_unref(&adev->vce.vcpu_bo); amdgpu_vce_sw_init()
164 r = amdgpu_bo_pin(adev->vce.vcpu_bo, AMDGPU_GEM_DOMAIN_VRAM, amdgpu_vce_sw_init()
166 amdgpu_bo_unreserve(adev->vce.vcpu_bo); amdgpu_vce_sw_init()
168 amdgpu_bo_unref(&adev->vce.vcpu_bo); amdgpu_vce_sw_init()
190 if (adev->vce.vcpu_bo == NULL) amdgpu_vce_sw_fini()
193 amdgpu_bo_unref(&adev->vce.vcpu_bo); amdgpu_vce_sw_fini()
213 if (adev->vce.vcpu_bo == NULL) amdgpu_vce_suspend()
241 if (adev->vce.vcpu_bo == NULL) amdgpu_vce_resume()
244 r = amdgpu_bo_reserve(adev->vce.vcpu_bo, false); amdgpu_vce_resume()
250 r = amdgpu_bo_kmap(adev->vce.vcpu_bo, &cpu_addr); amdgpu_vce_resume()
252 amdgpu_bo_unreserve(adev->vce.vcpu_bo); amdgpu_vce_resume()
262 amdgpu_bo_kunmap(adev->vce.vcpu_bo); amdgpu_vce_resume()
264 amdgpu_bo_unreserve(adev->vce.vcpu_bo); amdgpu_vce_resume()
H A Damdgpu.h1673 struct amdgpu_bo *vcpu_bo; member in struct:amdgpu_uvd
1696 struct amdgpu_bo *vcpu_bo; member in struct:amdgpu_vce

Completed in 200 milliseconds