/gfx-drm/usr/src/uts/common/io/drm/ |
H A D | drm_bufs.c | 138 kfree(map, sizeof(*map)); in drm_addmap_core() 142 (unsigned long long)map->offset, map->size, map->type); in drm_addmap_core() 152 kfree(map, sizeof(*map)); in drm_addmap_core() 156 if (map->offset + map->size < map->offset) { in drm_addmap_core() 157 kfree(map, sizeof(*map)); in drm_addmap_core() 176 map->type, map->size, in drm_addmap_core() 187 map->handle = ioremap(map->offset, map->size); in drm_addmap_core() 201 map->type, map->size, list->map->size); in drm_addmap_core() 288 list->map = map; in drm_addmap_core() 381 if (r_list->map == map) { in drm_rmmap_locked() [all …]
|
H A D | drm_ioctl.c | 131 struct drm_map *map = data; in drm_getmap() local 137 idx = (int)map->offset; in drm_getmap() 150 if (!r_list || !r_list->map) { in drm_getmap() 155 map->offset = r_list->map->offset; in drm_getmap() 156 map->size = r_list->map->size; in drm_getmap() 157 map->type = r_list->map->type; in drm_getmap() 158 map->flags = r_list->map->flags; in drm_getmap() 159 map->handle = (unsigned long long)(uintptr_t)r_list->user_token; in drm_getmap() 160 map->mtrr = r_list->map->mtrr; in drm_getmap()
|
H A D | drm_sunmod.c | 211 return (entry->map); in __find_local_map() 240 if (!map) { in drm_gem_map() 259 obj = map->handle; in drm_gem_map() 464 if (!map->umem_cookie) in __devmap_shm() 514 if (len > map->size) { in __devmap_sg() 517 map->offset, dev->sg->virtual, map->size, len); in __devmap_sg() 539 if (!map->umem_cookie) in __devmap_gem() 543 map->umem_cookie, 0, map->size, PROT_ALL, in __devmap_gem() 550 *maplen = map->size; in __devmap_gem() 741 if (!map) { in drm_sun_devmap() [all …]
|
H A D | drm_memory.c | 181 drm_ioremap(struct drm_device *dev, struct drm_local_map *map) in drm_ioremap() argument 188 iomap.paddr = map->offset; in drm_ioremap() 189 iomap.size = map->size; in drm_ioremap() 194 map->offset, map->size); in drm_ioremap() 198 map->handle = (void *)iomap.kvaddr; in drm_ioremap() 199 map->acc_handle = iomap.acc_handle; in drm_ioremap() 203 (void *)map->handle, map->size); in drm_ioremap() 209 drm_ioremapfree(struct drm_local_map *map) in drm_ioremapfree() argument 211 if (map->acc_handle) in drm_ioremapfree() 212 ddi_regs_map_free(&map->acc_handle); in drm_ioremapfree()
|
H A D | drm_gem.c | 278 drm_local_map_t *map; in drm_gem_object_init() local 294 if (map == NULL) { in drm_gem_object_init() 299 map->handle = obj; in drm_gem_object_init() 300 map->offset = (uintptr_t)map->handle; in drm_gem_object_init() 301 map->offset &= 0xffffffffUL; in drm_gem_object_init() 302 map->size = obj->real_size; in drm_gem_object_init() 303 map->type = _DRM_GEM; in drm_gem_object_init() 304 map->callback = 0; in drm_gem_object_init() 306 map->umem_cookie = in drm_gem_object_init() 313 obj->maplist.map = map; in drm_gem_object_init() [all …]
|
H A D | drm_context.c | 156 struct drm_local_map *map; in drm_getsareactx() local 161 map = idr_find(&dev->ctx_idr, request->ctx_id); in drm_getsareactx() 162 if (!map) { in drm_getsareactx() 169 if (_entry->map == map) { in drm_getsareactx() 200 struct drm_local_map *map = NULL; in drm_setsareactx() local 205 if (r_list->map in drm_setsareactx() 214 map = r_list->map; in drm_setsareactx() 215 if (!map) in drm_setsareactx() 218 if (IS_ERR(idr_replace(&dev->ctx_idr, map, request->ctx_id))) in drm_setsareactx()
|
H A D | drm_pci.c | 53 drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) in drm_core_ioremap() argument 55 if ((map->type == _DRM_AGP) && dev->agp) { in drm_core_ioremap() 77 (void) drm_ioremap(dev, map); in drm_core_ioremap() 83 drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev) in drm_core_ioremapfree() argument 87 if (map->type != _DRM_AGP) { in drm_core_ioremapfree() 88 if (map->handle && map->size) in drm_core_ioremapfree() 89 drm_ioremapfree(map); in drm_core_ioremapfree()
|
H A D | drm_drv.c | 469 if (entry->map && entry->map->type == _DRM_SHM && in drm_getsarea() 470 (entry->map->flags & _DRM_CONTAINS_LOCK)) { in drm_getsarea() 471 return entry->map; in drm_getsarea()
|
H A D | drm_stub.c | 144 (void) drm_rmmap_locked(dev, r_list->map); in drm_master_destroy() 505 (void) drm_rmmap(dev, r_list->map); in drm_put_dev()
|
/gfx-drm/usr/src/common/mapfiles/common/ |
H A D | Makefile | 32 $(ROOTDIR)/map.above4G \ 33 $(ROOTDIR)/map.below4G \ 34 $(ROOTDIR)/map.bssalign \ 35 $(ROOTDIR)/map.execdata \ 36 $(ROOTDIR)/map.default \ 37 $(ROOTDIR)/map.filter \ 38 $(ROOTDIR)/map.noexbss \ 39 $(ROOTDIR)/map.noexdata \ 40 $(ROOTDIR)/map.noexstk \ 41 $(ROOTDIR)/map.pagealign
|
H A D | map.default | 27 # cc -M /usr/lib/ld/map.default myprogram.c 37 # This is equivalent to map.above4G. 49 # This is equivalent to map.below4G.
|
H A D | map.noexbss | 24 # within an executable. This mapfile is similar to map.noexdata that 35 # cc -M /usr/lib/ld/map.noexbss myprogram.c 44 # See also /usr/lib/ld/map.noexdata.
|
H A D | map.noexdata | 34 # cc -M /usr/lib/ld/map.noexdata myprogram.c 40 # non-executable heap. See /usr/lib/ld/map.noexbss. 42 # See also /usr/lib/ld/map.execdata.
|
H A D | map.above4G | 27 # cc -m64 -M /usr/lib/ld/map.above4G myprogram.c 39 # On sparc (but not amd64), this is equivalent to map.default.
|
H A D | map.below4G | 27 # cc -m64 -M /usr/lib/ld/map.below4G myprogram.c 43 # This is equivalent to map.default.
|
H A D | map.execdata | 31 # cc -M /usr/lib/ld/map.execdata myprogram.c 46 # See also /usr/lib/ld/map.noexdata.
|
H A D | map.noexstk | 28 # cc -M /usr/lib/ld/map.noexstk myprogram.c
|
H A D | map.pagealign | 27 # cc -M /usr/lib/ld/map.pagealign myprogram.c
|
H A D | map.bssalign | 34 # cc -M /usr/lib/ld/map.bssalign myprogram.c
|
/gfx-drm/usr/src/uts/common/drm/ |
H A D | drmP.h | 270 #define DRM_READ8(map, offset) \ argument 271 *(volatile uint8_t *)((uintptr_t)((map)->handle) + (offset)) 272 #define DRM_READ16(map, offset) \ argument 273 *(volatile uint16_t *)((uintptr_t)((map)->handle) + (offset)) 274 #define DRM_READ32(map, offset) \ argument 276 #define DRM_READ64(map, offset) \ argument 278 #define DRM_WRITE8(map, offset, val) \ argument 280 #define DRM_WRITE16(map, offset, val) \ argument 282 #define DRM_WRITE32(map, offset, val) \ argument 284 #define DRM_WRITE64(map, offset, val) \ argument [all …]
|
/gfx-drm/usr/src/common/libdrm/patches/ |
H A D | xf86drm-c.patch | 81 drm_map_t map; 83 memclear(map); 84 - map.handle = (void *)(uintptr_t)handle; 85 + map.handle = (drm_handle_t)(uintptr_t)handle; 87 if(drmIoctl(fd, DRM_IOCTL_RM_MAP, &map))
|
/gfx-drm/usr/src/uts/intel/io/i915/ |
H A D | intel_ringbuffer.c | 1329 ring->map.size = ring->size; in intel_init_ring_buffer() 1331 ring->map.type = 0; in intel_init_ring_buffer() 1332 ring->map.flags = 0; in intel_init_ring_buffer() 1333 ring->map.mtrr = 0; in intel_init_ring_buffer() 1336 if (ring->map.handle == NULL) { in intel_init_ring_buffer() 1915 ring->map.offset = start; in intel_render_ring_init_dri() 1916 ring->map.size = size; in intel_render_ring_init_dri() 1917 ring->map.type = 0; in intel_render_ring_init_dri() 1918 ring->map.flags = 0; in intel_render_ring_init_dri() 1919 ring->map.mtrr = 0; in intel_render_ring_init_dri() [all …]
|
H A D | intel_ringbuffer.h | 183 drm_local_map_t map; member
|
H A D | i915_gem_gtt.c | 789 static void i915_gen6_gtt_ioremap(struct drm_local_map *map, struct drm_device *dev) in i915_gen6_gtt_ioremap() argument 796 >t_attr, &map->acc_handle); in i915_gen6_gtt_ioremap() 802 map->handle = (void *)(base + GEN6_GTT_OFFSET); in i915_gen6_gtt_ioremap()
|
H A D | i915_gem.c | 1030 ttoproc(curthread)->p_as, &vvaddr, obj->maplist.map->size, in i915_gem_mmap_ioctl() 1052 if (obj->maplist.map->gtt_mmap) in i915_gem_fault() 1085 obj->maplist.map->gtt_mmap = 1; in i915_gem_fault() 1107 struct ddi_umem_cookie *umem_cookie = obj->base.maplist.map->umem_cookie; in i915_gem_create_mmap_offset() 1124 obj->base.maplist.map->callback = 1; in i915_gem_create_mmap_offset() 1149 if (obj->base.maplist.map->gtt_mmap) { in i915_gem_release_mmap() 1160 obj->base.maplist.map->gtt_mmap = 0; in i915_gem_release_mmap()
|