Lines Matching +full:drm +full:- +full:shim
28 #include "drm-uapi/v3d_drm.h"
29 #include "drm-shim/drm_shim.h"
65 drm_shim_bo_init(&bo->base, create->size); in v3d_ioctl_create_bo()
67 assert(UINT_MAX - v3d.next_offset > create->size); in v3d_ioctl_create_bo()
68 bo->offset = v3d.next_offset; in v3d_ioctl_create_bo()
69 v3d.next_offset += create->size; in v3d_ioctl_create_bo()
71 create->offset = bo->offset; in v3d_ioctl_create_bo()
72 create->handle = drm_shim_bo_get_handle(shim_fd, &bo->base); in v3d_ioctl_create_bo()
74 drm_shim_bo_put(&bo->base); in v3d_ioctl_create_bo()
84 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle); in v3d_ioctl_get_bo_offset()
86 args->offset = v3d_bo(bo)->offset; in v3d_ioctl_get_bo_offset()
98 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, map->handle); in v3d_ioctl_mmap_bo()
100 map->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in v3d_ioctl_mmap_bo()
121 switch (gp->param) { in v3d_ioctl_get_param()
123 gp->value = 1; in v3d_ioctl_get_param()
129 if (gp->param < ARRAY_SIZE(v3d42_reg_map) && v3d42_reg_map[gp->param]) { in v3d_ioctl_get_param()
130 gp->value = v3d42_reg_map[gp->param]; in v3d_ioctl_get_param()
134 fprintf(stderr, "Unknown DRM_IOCTL_V3D_GET_PARAM %d\n", gp->param); in v3d_ioctl_get_param()
135 return -1; in v3d_ioctl_get_param()
158 "OF_COMPATIBLE_0=brcm,7278-v3d\n", in drm_shim_driver_init()