Lines Matching refs:file
346 * functions & device file and adds it to the master fd list.
1272 * @filp: file * from the ioctl
1309 mutex_lock(&file->fbs_lock);
1315 list_for_each(lh, &file->fbs)
1323 list_for_each_entry(fb, struct drm_framebuffer, &file->fbs, filp_head) {
1325 mutex_unlock(&file->fbs_lock);
1332 mutex_unlock(&file->fbs_lock);
1336 mode_group = &file->master->minor->mode_group;
1337 if (file->master->minor->type == DRM_MINOR_CONTROL) {
1363 if (file->master->minor->type == DRM_MINOR_CONTROL) {
1390 if (file->master->minor->type == DRM_MINOR_CONTROL) {
1421 if (file->master->minor->type == DRM_MINOR_CONTROL) {
1461 * @filp: file * from the ioctl
1519 * @filp: file * from the ioctl
1696 * @file_priv: DRM file info
1743 * @file_priv: DRM file info
1809 * @file_prive: DRM file info
1981 * @filp: file * from the ioctl
2215 return drm_mode_cursor_common(dev, &new_req, file);
2222 return drm_mode_cursor_common(dev, req, file);
2262 * @filp: file * from the ioctl
2302 fb = dev->mode_config.funcs->fb_create(dev, file, &r);
2308 mutex_lock(&file->fbs_lock);
2310 list_add(&fb->filp_head, &file->fbs, (caddr_t)fb);
2312 mutex_unlock(&file->fbs_lock);
2441 * @filp: file * from the ioctl
2482 fb = dev->mode_config.funcs->fb_create(dev, file, r);
2488 mutex_lock(&file->fbs_lock);
2490 list_add(&fb->filp_head, &file->fbs, (caddr_t)fb);
2492 mutex_unlock(&file->fbs_lock);
2500 * @filp: file * from the ioctl
2521 mutex_lock(&file->fbs_lock);
2527 list_for_each_entry(fbl, struct drm_framebuffer, &file->fbs, filp_head)
2539 mutex_unlock(&file->fbs_lock);
2546 mutex_unlock(&file->fbs_lock);
2554 * @filp: file * from the ioctl
2584 ret = fb->funcs->create_handle(fb, file, &r->handle);
2648 ret = fb->funcs->dirty(fb, file, flags, r->color,
2665 * drm_fb_release - remove and free the FBs on this file
2666 * @filp: file * from the ioctl
3147 return drm_mode_obj_set_property_ioctl(dev_id, dev, &obj_set_prop, file, ioctl_mode, credp);
3527 if (file->event_space < sizeof e->event) {
3531 file->event_space -= sizeof e->event;
3537 file->event_space += sizeof e->event;
3546 e->base.file_priv = file;
3556 file->event_space += sizeof e->event;
3610 return dev->driver->dumb_create(file, dev, args);
3622 return dev->driver->dumb_map_offset(file, dev, args->handle, &args->offset);
3633 return dev->driver->dumb_destroy(file, dev, args->handle);