Lines Matching defs:obj
25 struct tegra_bo *obj = host1x_to_tegra_bo(bo);
27 drm_gem_object_put(&obj->gem);
56 struct tegra_bo *obj = host1x_to_tegra_bo(bo);
73 *phys = obj->iova;
85 if (obj->pages) {
90 err = sg_alloc_table_from_pages(sgt, obj->pages, obj->num_pages,
91 0, obj->gem.size, GFP_KERNEL);
94 } else if (obj->sgt) {
101 err = sg_alloc_table_from_sg(sgt, obj->sgt->sgl,
102 obj->sgt->orig_nents, GFP_KERNEL);
111 err = dma_get_sgtable(dev, sgt, obj->vaddr, obj->iova,
112 obj->gem.size);
134 struct tegra_bo *obj = host1x_to_tegra_bo(bo);
136 if (obj->vaddr)
137 return obj->vaddr;
138 else if (obj->gem.import_attach)
139 return dma_buf_vmap(obj->gem.import_attach->dmabuf);
141 return vmap(obj->pages, obj->num_pages, VM_MAP,
147 struct tegra_bo *obj = host1x_to_tegra_bo(bo);
149 if (obj->vaddr)
151 else if (obj->gem.import_attach)
152 dma_buf_vunmap(obj->gem.import_attach->dmabuf, addr);
159 struct tegra_bo *obj = host1x_to_tegra_bo(bo);
161 drm_gem_object_get(&obj->gem);