[PATCH v2 6/9] accel/ivpu: Add ivpu_bo_vaddr() and ivpu_bo_size()
Jeffrey Hugo
quic_jhugo at quicinc.com
Mon Aug 28 20:50:42 UTC 2023
On 8/28/2023 3:47 AM, Stanislaw Gruszka wrote:
> From: Jacek Lawrynowicz <jacek.lawrynowicz at linux.intel.com>
>
> Use:
> - ivpu_bo_vaddr(bo) instead of bo->kvaddr
> - ivpu_bo_size(bo) instead of bo->base.size
>
> This is a preparation for switch to a drm_gem_shmem_object as a base for
> ivpu_bo, where:
> - bo->kvaddr becomes bo->base.vaddr
> - bo->base.size becomes bo->base.base.size
>
> Using ivpu_bo_vaddr() and ivpu_bo_size() increases the readability of
> the code.
>
> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz at linux.intel.com>
> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka at linux.intel.com>
> Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka at linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo at quicinc.com>
More information about the dri-devel
mailing list