/solaris-x11-s11/open-src/kernel/drm/src/ |
H A D | drm_ioctl.c | 131 struct drm_map *map = data; local 137 idx = (int)map->offset; 150 if (!r_list || !r_list->map) { 155 map->offset = r_list->map->offset; 156 map->size = r_list->map->size; 157 map->type = r_list->map->type; 158 map [all...] |
H A D | drm_pci.c | 53 drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) argument 55 if ((map->type == _DRM_AGP) && dev->agp) { 57 * During AGP mapping initialization, we map AGP aperture 64 * and kernel space, and directly map the actual physical 77 (void) drm_ioremap(dev, map); 83 drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev) argument 87 if (map->type != _DRM_AGP) { 88 if (map->handle && map->size) 89 drm_ioremapfree(map); [all...] |
H A D | drm_context.c | 149 * Gets the map from drm_device::ctx_idr with the handle specified and 156 struct drm_local_map *map; local 161 map = idr_find(&dev->ctx_idr, request->ctx_id); 162 if (!map) { 169 if (_entry->map == map) { 200 struct drm_local_map *map = NULL; local 205 if (r_list->map 214 map = r_list->map; [all...] |
H A D | drm_memory.c | 171 DRM_ERROR("failed to map regs: " 181 drm_ioremap(struct drm_device *dev, struct drm_local_map *map) argument 188 iomap.paddr = map->offset; 189 iomap.size = map->size; 194 map->offset, map->size); 198 map->handle = (void *)iomap.kvaddr; 199 map->acc_handle = iomap.acc_handle; 202 "map->handle=%p, map 209 drm_ioremapfree(struct drm_local_map *map) argument [all...] |
H A D | drm_bufs.c | 58 struct drm_local_map *map) 64 * while PCI resources may live above that, we ignore the map 69 if (!entry->map || 70 map->type != entry->map->type || 73 switch (map->type) { 75 if (map->flags != _DRM_CONTAINS_LOCK) 80 if ((entry->map->offset & 0xffffffff) == 81 (map->offset & 0xffffffff)) 86 if (entry->map 57 drm_find_matching_map(struct drm_device *dev, struct drm_local_map *map) argument 118 struct drm_local_map *map; local 342 struct drm_map *map = data; local 370 drm_rmmap_locked(struct drm_device *dev, struct drm_local_map *map) argument 422 drm_rmmap(struct drm_device *dev, struct drm_local_map *map) argument 452 struct drm_local_map *map = NULL; local 1101 struct drm_local_map *map = dev->agp_buffer_map; local [all...] |
H A D | drm_gem.c | 255 DRM_ERROR("obj %p map incorrect 0x%lx != 0x%lx", 276 drm_local_map_t *map; local 291 map = drm_alloc(sizeof (struct drm_local_map), DRM_MEM_MAPS); 292 if (map == NULL) { 293 DRM_DEBUG("map == NULL"); 297 map->handle = obj; 298 map->offset = (uintptr_t)map->handle; 299 map->offset &= 0xffffffffUL; 300 map 662 struct drm_local_map *map = obj->maplist.map; local [all...] |
H A D | drm_sunmod.c | 191 return (entry->map); 205 drm_local_map_t *map = NULL; local 216 map = __find_local_map(drm_dev, off); 217 if (!map) { 225 *pvtp = map->handle; 302 drm_gem_map, /* devmap_ops map routine */ 310 struct drm_local_map *map, size_t len, size_t *maplen) 316 map->offset, (uint_t)len, ®off); 336 struct drm_local_map *map, size_t len, size_t *maplen) 340 if (!map 309 __devmap_general(struct drm_device *dev, devmap_cookie_t dhp, struct drm_local_map *map, size_t len, size_t *maplen) argument 335 __devmap_shm(struct drm_device *dev, devmap_cookie_t dhp, struct drm_local_map *map, size_t len, size_t *maplen) argument 358 __devmap_agp(struct drm_device *dev, devmap_cookie_t dhp, struct drm_local_map *map, size_t len, size_t *maplen) argument 384 __devmap_sg(struct drm_device *dev, devmap_cookie_t dhp, struct drm_local_map *map, size_t len, size_t *maplen) argument 410 __devmap_gem(struct drm_device *dev, devmap_cookie_t dhp, struct drm_local_map *map, size_t *maplen) argument 599 drm_local_map_t *map = NULL; local [all...] |
/solaris-x11-s11/open-src/kernel/efb/src/ |
H A D | drm_context.c | 177 drm_local_map_t *map; local 198 map = dev->context_sareas[request.ctx_id]; 201 if (!map) 204 request.handle = map->handle; 227 drm_local_map_t *map = NULL; local 243 TAILQ_FOREACH(map, &dev->maplist, link) { 244 if (map->handle == request.handle) { 249 dev->context_sareas[request.ctx_id] = map;
|
H A D | drm_ioctl.c | 132 drm_map_t map; local 142 map.offset = map32.offset; 143 map.size = map32.size; 144 map.type = map32.type; 145 map.flags = map32.flags; 146 map.handle = map32.handle; 147 map.mtrr = map32.mtrr; 150 DRM_COPYFROM_WITH_RETURN(&map, (void *)data, sizeof (map)); 152 idx = (int)map [all...] |
H A D | drm_memory.c | 174 DRM_ERROR("do_ioremap: failed to map regs: regno=%d," 184 drm_ioremap(drm_device_t *softstate, drm_local_map_t *map) argument 192 iomap.physical = map->offset; 193 iomap.size = map->size; 198 map->offset, map->size); 203 map->dev_handle = iomap.drm_handle; 204 map->handle = (void *)iomap.drm_base; 205 map->dev_addr = iomap.drm_base; 208 "map 215 drm_ioremapfree(drm_local_map_t *map) argument [all...] |
H A D | drm_bufs.c | 70 drm_local_map_t *map; local 72 TAILQ_FOREACH(map, &dev->maplist, link) { 73 if ((map->type == type) && ((map->offset == offset) || 74 (map->flags == _DRM_CONTAINS_LOCK) && 75 (map->type == _DRM_SHM))) 76 return (map); 86 drm_local_map_t *map; local 109 * map, and just hand that back if so. 111 map 216 drm_local_map_t *map; local 271 drm_rmmap(drm_device_t *dev, drm_local_map_t *map) argument 320 drm_local_map_t *map; local 829 drm_local_map_t *map = dev->agp_buffer_map; local [all...] |
H A D | drm_pci.c | 120 drm_core_ioremap(struct drm_local_map *map, drm_device_t *dev) argument 122 if ((map->type == _DRM_AGP) && dev->agp) { 124 * During AGP mapping initialization, we map AGP aperture 131 * and kernel space, and directly map the actual physical 144 (void) drm_ioremap(dev, map); 150 drm_core_ioremapfree(struct drm_local_map *map, drm_device_t *dev) argument 154 if (map->type != _DRM_AGP) { 155 if (map->handle && map->size) 156 drm_ioremapfree(map); 170 drm_local_map_t *map; local [all...] |
H A D | radeon_cp.c | 1129 * Initialize the memory controller. With new memory map, the fb 1362 /* if we require new memory map but we don't have it fail */ 1579 /* New let's set the memory map ... */ 1583 DRM_INFO("Setting GART location based on new memory map\n"); 1618 DRM_INFO("Setting GART location based on old memory map\n"); 2348 drm_local_map_t *map; local 2367 _DRM_WRITE_COMBINING, &map);
|
H A D | drm_drv.c | 175 drm_local_map_t *map; local 179 _DRM_CONTAINS_LOCK, &map); 239 drm_local_map_t *map, *mapsave; local 301 TAILQ_FOREACH_SAFE(map, &dev->maplist, link, mapsave) { 302 if (!map->kernel_owned) 303 drm_rmmap(dev, map); 379 drm_local_map_t *map; local 387 while ((map = TAILQ_FIRST(&dev->maplist)) != NULL) { 388 drm_rmmap(dev, map);
|
H A D | drm_sunmod.c | 415 drm_local_map_t *map; local 483 TAILQ_FOREACH(map, &dp->maplist, link) { 485 ((u_offset_t)((uintptr_t)map->handle) & 0xffffffff)) 494 if (map == NULL) { 495 TAILQ_FOREACH(map, &dp->maplist, link) { 496 if (handle == (map->offset & 0xffffffff)) 501 if (map == NULL) { 505 cmn_err(CE_WARN, "Can't find map, offset=0x%llx, len=%x\n", 508 TAILQ_FOREACH(map, &dp->maplist, link) { 509 tmp = (u_offset_t)((uintptr_t)map [all...] |
H A D | efb_drv.c | 378 /* map to the internal stream number */ 436 /* map to the internal stream number */ 704 int map = cmap & 0x1; local 719 flags = efb_priv->cmap_flags[map]; 723 v |= map<<5; 760 efb_cmap_read(efb_private_t *efb_priv, int start, int count, int map) argument 771 v |= map<<5; 778 efb_priv->colormap[map][0][idx] = 782 efb_priv->colormap[map][1][idx] = 786 efb_priv->colormap[map][ [all...] |
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/ |
H A D | DPSCAPClient.h | 94 char *map[_NFILE]; /* map DPY_NUMBER to agent name */ member in struct:__anon246
|
H A D | dpsXcmu.c | 699 is wasteful of map entries, so we specify a symmetrical cube and 703 we don't actually allocate map entries, but it's handy to be able to 1381 XStandardColormap *map, 1388 Colormap cmap = map->colormap; 1403 if (map->blue_max == 0 || vinfo->class == DirectColor) total = 2; 1428 if (map->blue_max != 0 || npixels >= 2) success = True; 1444 /* If there are enough free cells, shrink the map to fit. 1446 if (((map->blue_max == 0 || vinfo->class == DirectColor) && 1448 ShrinkMapToFit(map, count, vinfo); 1532 XStandardColormap *map, 1379 AllocateColormap( Display *dpy, XStandardColormap *map, XVisualInfo *vinfo, int *count, PixelRec *pixels, int *first, int *remain, unsigned long delta) argument 1531 ShrinkMapToFit( XStandardColormap *map, int *space, XVisualInfo *vinfo) argument 1565 DefineProperty( Display *dpy, XStandardColormap *map, XVisualInfo *vinfo, XStandardColormap *prop, int nProp, Atom atom) argument [all...] |
/solaris-x11-s11/open-src/kernel/i915/src/ |
H A D | intel_ringbuffer.h | 183 drm_local_map_t map; member in struct:intel_ring_buffer
|
H A D | i915_gem_gtt.c | 769 static void i915_gen6_gtt_ioremap(struct drm_local_map *map, struct drm_device *dev) argument 776 >t_attr, &map->acc_handle); 779 DRM_ERROR("failed to map GTT"); 782 map->handle = (void *)(base + GEN6_GTT_OFFSET); 822 DRM_ERROR("Failed to map the gtt page table"); 1056 * required to map the aperture.
|
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdpstk/ |
H A D | XDPSshare.c | 223 XDPSStandardColormap *map) 226 map, (XDPSStandardColormap *) NULL, 232 XDPSStandardColormap *map) 235 map, (XDPSStandardColormap *) NULL, 281 Colormap map = None; local 333 map = cmap.colormap; 342 map = rgbMap->colormap; 354 if (doRGB && map != cmap.colormap) { 356 } else map = cmap.colormap; 361 if (doRGB && map ! 221 XDPSSetContextRGBMap( DPSContext context, XDPSStandardColormap *map) argument 230 XDPSSetContextGrayMap( DPSContext context, XDPSStandardColormap *map) argument [all...] |
/solaris-x11-s11/open-src/kernel/sys/drm/ |
H A D | drmP.h | 269 #define DRM_READ8(map, offset) \ 270 *(volatile uint8_t *)((uintptr_t)((map)->handle) + (offset)) 271 #define DRM_READ16(map, offset) \ 272 *(volatile uint16_t *)((uintptr_t)((map)->handle) + (offset)) 273 #define DRM_READ32(map, offset) \ 274 *(volatile uint32_t *)((uintptr_t)((map)->handle) + (offset)) 275 #define DRM_READ64(map, offset) \ 276 *(volatile uint64_t *)((uintptr_t)((map)->handle) + (offset)) 277 #define DRM_WRITE8(map, offset, val) \ 278 *(volatile uint8_t *)((uintptr_t)((map) 561 struct drm_local_map *map; /**< mapping */ member in struct:drm_map_list [all...] |