/gfx-drm/usr/src/uts/common/io/drm/ |
H A D | drm_context.c | 167 request->handle = NULL; in drm_getsareactx() 170 request->handle = in drm_getsareactx() 178 if (request->handle == NULL) in drm_getsareactx() 308 ctx.handle = i; in drm_resctx() 340 DRM_DEBUG("%d\n", ctx->handle); in drm_addctx() 342 if (ctx->handle == -1) { in drm_addctx() 355 ctx_entry->handle = ctx->handle; in drm_addctx() 409 DRM_DEBUG("%d\n", ctx->handle); in drm_switchctx() 429 DRM_DEBUG("%d\n", ctx->handle); in drm_newctx() 451 DRM_DEBUG("%d\n", ctx->handle); in drm_rmctx() [all …]
|
H A D | drm_agpsupport.c | 261 entry->handle = alloc.agpa_key + DRM_AGP_KEY_OFFSET; in drm_agp_alloc() 266 request->handle = entry->handle; in drm_agp_alloc() 290 unsigned long handle) in drm_agp_lookup_entry() argument 295 if (entry->handle == handle) in drm_agp_lookup_entry() 320 if (!(entry = drm_agp_lookup_entry(dev, request->handle))) in drm_agp_unbind() 368 if (!(entry = drm_agp_lookup_entry(dev, request->handle))) in drm_agp_bind() 374 uint_t key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET; in drm_agp_bind() 415 if (!(entry = drm_agp_lookup_entry(dev, request->handle))) in drm_agp_free() 418 (void) drm_agp_unbind_memory(request->handle, dev); in drm_agp_free() 422 int agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET; in drm_agp_free() [all …]
|
H A D | drm_scatter.c | 106 entry->handle = ScatterHandle((unsigned long)dmah->vaddr); in drm_sg_alloc() 108 request->handle = entry->handle; in drm_sg_alloc() 141 if (!entry || entry->handle != request->handle) in drm_sg_free()
|
H A D | drm_io32.c | 46 dest64->handle = dest32.handle; in copyin32_drm_map() 62 src32.handle = src64->handle; in copyout32_drm_map() 159 dest64->handle = (void *)(uintptr_t)dest32.handle; in copyin32_drm_ctx_priv_map() 171 src32.handle = (caddr32_t)(uintptr_t)src64->handle; in copyout32_drm_ctx_priv_map() 367 dest64->handle = dest32.handle; in copyin32_drm_scatter_gather() 379 src32.handle = (uint32_t)src64->handle; in copyout32_drm_scatter_gather()
|
H A D | drm_bufs.c | 162 map->handle = NULL; in drm_addmap_core() 188 if (!map->handle) { in drm_addmap_core() 211 map->size, map->handle); in drm_addmap_core() 212 if (!map->handle) { in drm_addmap_core() 216 map->offset = (uintptr_t)map->handle; in drm_addmap_core() 263 map->handle = (void *)map->offset; in drm_addmap_core() 283 iounmap(map->handle); in drm_addmap_core() 300 iounmap(map->handle); in drm_addmap_core() 356 map->handle = maplist->user_token; in drm_addmap_ioctl() 397 iounmap(map->handle); in drm_rmmap_locked() [all …]
|
H A D | drm_gem.c | 299 map->handle = obj; in drm_gem_object_init() 300 map->offset = (uintptr_t)map->handle; in drm_gem_object_init() 415 obj = idr_list_find(&filp->object_idr, handle); in drm_gem_handle_delete() 423 (void) idr_list_remove(&filp->object_idr, handle); in drm_gem_handle_delete() 481 u32 handle) in drm_gem_object_lookup() argument 488 obj = idr_list_find(&filp->object_idr, handle); in drm_gem_object_lookup() 514 ret = drm_gem_handle_delete(file, args->handle); in drm_gem_close_ioctl() 536 obj = drm_gem_object_lookup(dev, file, args->handle); in drm_gem_flink_ioctl() 585 u32 handle; in drm_gem_open_ioctl() local 598 ret = drm_gem_handle_create(file, obj, &handle); in drm_gem_open_ioctl() [all …]
|
H A D | drm_drv.c | 187 (void) drm_agp_unbind_memory(entry->handle, dev); in drm_lastclose() 638 ddi_acc_handle_t handle) in drm_check_acc_handle() argument 648 ddi_fm_acc_err_get(handle, &de, DDI_FME_VERSION); in drm_check_acc_handle() 649 ddi_fm_acc_err_clear(handle, DDI_FME_VERSION); in drm_check_acc_handle() 661 ddi_dma_handle_t handle) in drm_check_dma_handle() argument 671 ddi_fm_dma_err_get(handle, &de, DDI_FME_VERSION); in drm_check_dma_handle() 672 ddi_fm_dma_err_clear(handle, DDI_FME_VERSION); in drm_check_dma_handle()
|
H A D | drm_memory.c | 198 map->handle = (void *)iomap.kvaddr; in drm_ioremap() 203 (void *)map->handle, map->size); in drm_ioremap()
|
H A D | drm_sun_idr.c | 404 entry->handle = id; in idr_list_get_new_above() 427 if (entry->handle == name) in idr_list_find() 453 if (entry->handle == name) { in idr_list_remove()
|
H A D | drm_fops.c | 362 pos->handle != DRM_KERNEL_CONTEXT) { in drm_release() 365 pos->handle); in drm_release() 367 drm_ctxbitmap_free(dev, pos->handle); in drm_release()
|
/gfx-drm/usr/src/uts/common/drm/ |
H A D | i915_drm.h | 551 __u32 handle; member 557 __u32 handle; member 573 __u32 handle; member 589 __u32 handle; member 617 __u32 handle; member 629 __u32 handle; member 640 __u32 handle; member 716 __u32 handle; member 766 __u32 handle; member 942 __u32 handle; member [all …]
|
H A D | drm.h | 234 void *handle; /**< Handle of map */ member 245 unsigned long long handle; member 452 drm_context_t handle; member 468 drm_drawable_t handle; member 479 drm_drawable_t handle; member 573 unsigned long handle; /**< Used for binding / unbinding */ member 584 unsigned long handle; /**< From drm_agp_buffer */ member 630 __u32 handle; member 637 __u32 handle; member 649 __u32 handle; member [all …]
|
H A D | drm_io32.h | 52 caddr32_t handle; /* Handle of map */ member 57 unsigned long long handle; member 125 uint32_t handle; /* Used for binding / unbinding */ member 131 uint32_t handle; /* From drm_agp_buffer */ member 149 uint32_t handle; /* Used for mapping/unmapping */ member
|
H A D | drmP.h | 271 *(volatile uint8_t *)((uintptr_t)((map)->handle) + (offset)) 273 *(volatile uint16_t *)((uintptr_t)((map)->handle) + (offset)) 275 *(volatile uint32_t *)((uintptr_t)((map)->handle) + (offset)) 277 *(volatile uint64_t *)((uintptr_t)((map)->handle) + (offset)) 570 drm_context_t handle; /**< context handle */ member 700 unsigned long handle; /**< handle */ member 736 unsigned long handle; member 941 struct drm_device *dev, uint32_t handle, 945 uint32_t handle); 1569 int drm_gem_handle_delete(struct drm_file *filp, u32 handle); [all …]
|
H A D | drm_mode.h | 368 __u32 handle; member 480 __u32 handle; member 491 __u32 handle; member 598 __u32 handle; member 606 __u32 handle; member 617 __u32 handle; member
|
H A D | drm_sun_idr.h | 73 uint32_t handle; member
|
H A D | drm_crtc.h | 230 unsigned int *handle); 344 uint32_t handle, uint32_t width, uint32_t height); 346 uint32_t handle, uint32_t width, uint32_t height, 952 unsigned long handle);
|
/gfx-drm/usr/src/uts/common/sys/ |
H A D | gfx_private.h | 64 extern uint8_t gfxp_pci_read_byte(gfxp_acc_handle_t handle, uint16_t offset); 65 extern uint16_t gfxp_pci_read_word(gfxp_acc_handle_t handle, uint16_t offset); 66 extern uint32_t gfxp_pci_read_dword(gfxp_acc_handle_t handle, uint16_t offset); 67 extern void gfxp_pci_write_byte(gfxp_acc_handle_t handle, uint16_t offset, 69 extern void gfxp_pci_write_word(gfxp_acc_handle_t handle, uint16_t offset, 71 extern void gfxp_pci_write_dword(gfxp_acc_handle_t handle, uint16_t offset,
|
/gfx-drm/usr/src/uts/intel/io/radeon/ |
H A D | radeon_drv.c | 153 void *handle; in radeon_attach() local 174 handle = drm_supp_register(dip, statep); in radeon_attach() 175 if (handle == NULL) { in radeon_attach() 179 statep->drm_handle = handle; in radeon_attach() 200 (void) drm_supp_unregister(handle); in radeon_attach()
|
H A D | radeon_cp.c | 1188 entry->handle + tmp_ofs); in radeon_cp_init_ring_buffer() 1214 dev_priv->ring_rptr->handle + in radeon_cp_init_ring_buffer() 1535 if (!dev_priv->cp_ring->handle || in radeon_do_init_cp() 1541 dev_priv->cp_ring->handle, in radeon_do_init_cp() 1542 dev_priv->ring_rptr->handle, in radeon_do_init_cp() 1550 dev_priv->cp_ring->handle = in radeon_do_init_cp() 1552 dev_priv->ring_rptr->handle = in radeon_do_init_cp() 1554 dev->agp_buffer_map->handle = in radeon_do_init_cp() 1558 dev_priv->cp_ring->handle); in radeon_do_init_cp() 1560 dev_priv->ring_rptr->handle); in radeon_do_init_cp() [all …]
|
/gfx-drm/usr/src/common/libdrm/patches/ |
H A D | xf86drm-c.patch | 84 - map.handle = (void *)(uintptr_t)handle; 85 + map.handle = (drm_handle_t)(uintptr_t)handle;
|
H A D | freedreno.patch | 10 static int set_memtype(struct fd_device *dev, uint32_t handle, uint32_t flags)
|
/gfx-drm/usr/src/uts/intel/io/i915/ |
H A D | i915_gem.c | 197 u32 handle; in i915_gem_create() local 219 *handle_p = handle; in i915_gem_create() 232 args->size, &args->handle); in i915_gem_dumb_create() 237 uint32_t handle) in i915_gem_dumb_destroy() argument 239 return drm_gem_handle_delete(file, handle); in i915_gem_dumb_destroy() 250 args->size, &args->handle); in i915_gem_create_ioctl() 1222 uint32_t handle, in i915_gem_mmap_gtt() argument 3157 args->handle); in i915_gem_pin_ioctl() 3202 args->handle); in i915_gem_unpin_ioctl() 3814 if (!phys_obj->handle) { in i915_gem_init_phys_object() [all …]
|
H A D | i915_gem_execbuffer.c | 67 eb_get_object(struct eb_objects *eb, unsigned long handle) in eb_get_object() argument 560 exec[i].handle)); in i915_gem_execbuffer_relocate_slow() 563 exec[i].handle, i); in i915_gem_execbuffer_relocate_slow() 569 obj->exec_handle = exec[i].handle; in i915_gem_execbuffer_relocate_slow() 912 exec[i].handle)); in i915_gem_do_execbuffer() 915 exec[i].handle, i); in i915_gem_do_execbuffer() 923 obj, exec[i].handle, i); in i915_gem_do_execbuffer() 929 obj->exec_handle = exec[i].handle; in i915_gem_do_execbuffer() 1103 exec2_list[i].handle = exec_list[i].handle; in i915_gem_execbuffer()
|
H A D | i915_gem_tiling.c | 305 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); in i915_gem_set_tiling() 427 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); in i915_gem_get_tiling()
|