Lines Matching defs:list

93 int drm_map_handle(struct drm_device *dev, struct drm_map_list *list)
97 ret = idr_get_new_above(&dev->map_idr, list, 1, &newid);
101 list->user_token = newid << PAGE_SHIFT;
110 * type. Adds the map to the map list drm_device::maplist. Adds MTRR's where
119 struct drm_map_list *list;
171 list = drm_find_matching_map(dev, map);
172 if (list != NULL) {
173 if (list->map->size != map->size) {
177 list->map->size);
178 list->map->size = map->size;
182 *maplist = list;
196 list = drm_find_matching_map(dev, map);
197 if (list != NULL) {
198 if(list->map->size != map->size) {
201 map->type, map->size, list->map->size);
202 list->map->size = map->size;
206 *maplist = list;
280 list = kmalloc(sizeof(*list), GFP_KERNEL);
281 if (!list) {
287 (void) memset(list, 0, sizeof(*list));
288 list->map = map;
291 list_add(&list->head, &dev->maplist, (caddr_t)list);
297 ret = drm_map_handle(dev, list);
302 kfree(list, sizeof(struct drm_map_list));
310 list->master = dev->primary->master;
311 *maplist = list;
319 struct drm_map_list *list;
322 rc = drm_addmap_core(dev, offset, size, type, flags, &list);
324 *map_ptr = list->map;
361 * Remove a map private from list and deallocate resources if the mapping
364 * Searches the map on drm_device::maplist, removes it from the list, see if
379 /* Find the list entry for the map and remove it */
534 * reallocates the buffer list of the same size order to accommodate the new
926 &request->list[count];
928 struct drm_freelist *list = &dma->bufs[i].freelist;
936 &list->low_mark,
937 sizeof(list->low_mark)) ||
939 &list->high_mark,
940 sizeof(list->high_mark)))
1005 * Unreserve the buffers in list, previously reserved using drmDMA.
1033 if (DRM_COPY_FROM_USER(&idx, &request->list[i], sizeof (idx)))
1125 list32 = (drm_buf_pub_32_t *)(uintptr_t)request->list;
1154 if (DRM_COPY_TO_USER(&request->list[i].idx,
1156 sizeof (request->list[0].idx))) {
1160 if (DRM_COPY_TO_USER(&request->list[i].total,
1162 sizeof (request->list[0].total))) {
1166 if (DRM_COPY_TO_USER(&request->list[i].used, &zero,
1173 if (DRM_COPY_TO_USER(&request->list[i].address,