Lines Matching refs:bo
265 struct tegra_bo *bo; in host1x_bo_lookup() local
275 bo = to_tegra_bo(gem); in host1x_bo_lookup()
276 return &bo->base; in host1x_bo_lookup()
307 dest->cmdbuf.bo = host1x_bo_lookup(drm, file, cmdbuf); in host1x_reloc_copy_from_user()
308 if (!dest->cmdbuf.bo) in host1x_reloc_copy_from_user()
311 dest->target.bo = host1x_bo_lookup(drm, file, target); in host1x_reloc_copy_from_user()
312 if (!dest->target.bo) in host1x_reloc_copy_from_user()
352 struct host1x_bo *bo; in tegra_drm_submit() local
359 bo = host1x_bo_lookup(drm, file, cmdbuf.handle); in tegra_drm_submit()
360 if (!bo) { in tegra_drm_submit()
365 host1x_job_add_gather(job, bo, cmdbuf.words, cmdbuf.offset); in tegra_drm_submit()
442 struct tegra_bo *bo; in tegra_gem_create() local
444 bo = tegra_bo_create_with_handle(file, drm, args->size, args->flags, in tegra_gem_create()
446 if (IS_ERR(bo)) in tegra_gem_create()
447 return PTR_ERR(bo); in tegra_gem_create()
457 struct tegra_bo *bo; in tegra_gem_mmap() local
463 bo = to_tegra_bo(gem); in tegra_gem_mmap()
465 args->offset = drm_vma_node_offset_addr(&bo->gem.vma_node); in tegra_gem_mmap()
636 struct tegra_bo *bo; in tegra_gem_set_tiling() local
672 bo = to_tegra_bo(gem); in tegra_gem_set_tiling()
674 bo->tiling.mode = mode; in tegra_gem_set_tiling()
675 bo->tiling.value = value; in tegra_gem_set_tiling()
687 struct tegra_bo *bo; in tegra_gem_get_tiling() local
694 bo = to_tegra_bo(gem); in tegra_gem_get_tiling()
696 switch (bo->tiling.mode) { in tegra_gem_get_tiling()
709 args->value = bo->tiling.value; in tegra_gem_get_tiling()
727 struct tegra_bo *bo; in tegra_gem_set_flags() local
736 bo = to_tegra_bo(gem); in tegra_gem_set_flags()
737 bo->flags = 0; in tegra_gem_set_flags()
740 bo->flags |= TEGRA_BO_BOTTOM_UP; in tegra_gem_set_flags()
752 struct tegra_bo *bo; in tegra_gem_get_flags() local
758 bo = to_tegra_bo(gem); in tegra_gem_get_flags()
761 if (bo->flags & TEGRA_BO_BOTTOM_UP) in tegra_gem_get_flags()