Home
last modified time | relevance | path

Searched refs:gem_map (Results 1 – 6 of 6) sorted by relevance

/external/minigbm/
Di915.c469 struct drm_i915_gem_mmap gem_map; in i915_bo_map() local
470 memset(&gem_map, 0, sizeof(gem_map)); in i915_bo_map()
473 gem_map.flags = I915_MMAP_WC; in i915_bo_map()
475 gem_map.handle = bo->handles[0].u32; in i915_bo_map()
476 gem_map.offset = 0; in i915_bo_map()
477 gem_map.size = bo->total_size; in i915_bo_map()
479 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_MMAP, &gem_map); in i915_bo_map()
485 addr = (void *)(uintptr_t)gem_map.addr_ptr; in i915_bo_map()
487 struct drm_i915_gem_mmap_gtt gem_map; in i915_bo_map() local
488 memset(&gem_map, 0, sizeof(gem_map)); in i915_bo_map()
[all …]
Dmediatek.c78 struct drm_mtk_gem_map_off gem_map; in mediatek_bo_map() local
81 memset(&gem_map, 0, sizeof(gem_map)); in mediatek_bo_map()
82 gem_map.handle = bo->handles[0].u32; in mediatek_bo_map()
84 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_MTK_GEM_MAP_OFFSET, &gem_map); in mediatek_bo_map()
91 gem_map.offset); in mediatek_bo_map()
Damdgpu.c208 union drm_amdgpu_gem_mmap gem_map; in amdgpu_map_bo() local
213 memset(&gem_map, 0, sizeof(gem_map)); in amdgpu_map_bo()
214 gem_map.in.handle = bo->handles[plane].u32; in amdgpu_map_bo()
216 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_AMDGPU_GEM_MMAP, &gem_map); in amdgpu_map_bo()
225 gem_map.out.addr_ptr); in amdgpu_map_bo()
Dtegra.c301 struct drm_tegra_gem_mmap gem_map; in tegra_bo_map() local
304 memset(&gem_map, 0, sizeof(gem_map)); in tegra_bo_map()
305 gem_map.handle = bo->handles[0].u32; in tegra_bo_map()
307 ret = drmCommandWriteRead(bo->drv->fd, DRM_TEGRA_GEM_MMAP, &gem_map, sizeof(gem_map)); in tegra_bo_map()
314 gem_map.offset); in tegra_bo_map()
Drockchip.c237 struct drm_rockchip_gem_map_off gem_map; in rockchip_bo_map() local
245 memset(&gem_map, 0, sizeof(gem_map)); in rockchip_bo_map()
246 gem_map.handle = bo->handles[0].u32; in rockchip_bo_map()
248 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_ROCKCHIP_GEM_MAP_OFFSET, &gem_map); in rockchip_bo_map()
255 gem_map.offset); in rockchip_bo_map()
Dvirtio_gpu.c143 struct drm_virtgpu_map gem_map; in virtio_virgl_bo_map() local
145 memset(&gem_map, 0, sizeof(gem_map)); in virtio_virgl_bo_map()
146 gem_map.handle = bo->handles[0].u32; in virtio_virgl_bo_map()
148 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_MAP, &gem_map); in virtio_virgl_bo_map()
156 gem_map.offset); in virtio_virgl_bo_map()