Lines Matching refs:r_list

467 	struct drm_map_list *r_list = NULL;  in drm_legacy_getmap_ioctl()  local
484 r_list = list_entry(list, struct drm_map_list, head); in drm_legacy_getmap_ioctl()
489 if (!r_list || !r_list->map) { in drm_legacy_getmap_ioctl()
494 map->offset = r_list->map->offset; in drm_legacy_getmap_ioctl()
495 map->size = r_list->map->size; in drm_legacy_getmap_ioctl()
496 map->type = r_list->map->type; in drm_legacy_getmap_ioctl()
497 map->flags = r_list->map->flags; in drm_legacy_getmap_ioctl()
498 map->handle = (void *)(unsigned long) r_list->user_token; in drm_legacy_getmap_ioctl()
499 map->mtrr = arch_phys_wc_index(r_list->map->mtrr); in drm_legacy_getmap_ioctl()
518 struct drm_map_list *r_list = NULL, *list_t; in drm_legacy_rmmap_locked() local
523 list_for_each_entry_safe(r_list, list_t, &dev->maplist, head) { in drm_legacy_rmmap_locked()
524 if (r_list->map == map) { in drm_legacy_rmmap_locked()
525 master = r_list->master; in drm_legacy_rmmap_locked()
526 list_del(&r_list->head); in drm_legacy_rmmap_locked()
528 r_list->user_token >> PAGE_SHIFT); in drm_legacy_rmmap_locked()
529 kfree(r_list); in drm_legacy_rmmap_locked()
585 struct drm_map_list *r_list, *list_temp; in drm_legacy_master_rmmaps() local
591 list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head) { in drm_legacy_master_rmmaps()
592 if (r_list->master == master) { in drm_legacy_master_rmmaps()
593 drm_legacy_rmmap_locked(dev, r_list->map); in drm_legacy_master_rmmaps()
594 r_list = NULL; in drm_legacy_master_rmmaps()
602 struct drm_map_list *r_list, *list_temp; in drm_legacy_rmmaps() local
604 list_for_each_entry_safe(r_list, list_temp, &dev->maplist, head) in drm_legacy_rmmaps()
605 drm_legacy_rmmap(dev, r_list->map); in drm_legacy_rmmaps()
628 struct drm_map_list *r_list; in drm_legacy_rmmap_ioctl() local
636 list_for_each_entry(r_list, &dev->maplist, head) { in drm_legacy_rmmap_ioctl()
637 if (r_list->map && in drm_legacy_rmmap_ioctl()
638 r_list->user_token == (unsigned long)request->handle && in drm_legacy_rmmap_ioctl()
639 r_list->map->flags & _DRM_REMOVABLE) { in drm_legacy_rmmap_ioctl()
640 map = r_list->map; in drm_legacy_rmmap_ioctl()