Lines Matching defs:map
1558 drm_map_t map;
1560 memclear(map);
1561 map.offset = offset;
1562 map.size = size;
1563 map.type = (enum drm_map_type)type;
1564 map.flags = (enum drm_map_flags)flags;
1565 if (drmIoctl(fd, DRM_IOCTL_ADD_MAP, &map))
1568 *handle = (drm_handle_t)(uintptr_t)map.handle;
1574 drm_map_t map;
1576 memclear(map);
1577 map.handle = (void *)(uintptr_t)handle;
1579 if(drmIoctl(fd, DRM_IOCTL_RM_MAP, &map))
2790 drm_ctx_priv_map_t map;
2792 memclear(map);
2793 map.ctx_id = ctx_id;
2794 map.handle = (void *)(uintptr_t)handle;
2796 if (drmIoctl(fd, DRM_IOCTL_SET_SAREA_CTX, &map))
2804 drm_ctx_priv_map_t map;
2806 memclear(map);
2807 map.ctx_id = ctx_id;
2809 if (drmIoctl(fd, DRM_IOCTL_GET_SAREA_CTX, &map))
2812 *handle = (drm_handle_t)(uintptr_t)map.handle;
2821 drm_map_t map;
2823 memclear(map);
2824 map.offset = idx;
2825 if (drmIoctl(fd, DRM_IOCTL_GET_MAP, &map))
2827 *offset = map.offset;
2828 *size = map.size;
2829 *type = (drmMapType)map.type;
2830 *flags = (drmMapFlags)map.flags;
2831 *handle = (unsigned long)map.handle;
2832 *mtrr = map.mtrr;