/drivers/video/adf/ |
D | adf_fops.c | 725 struct adf_file *fpriv = NULL; in adf_file_open() local 740 fpriv = kzalloc(sizeof(*fpriv), GFP_KERNEL); in adf_file_open() 741 if (!fpriv) { in adf_file_open() 746 INIT_LIST_HEAD(&fpriv->head); in adf_file_open() 747 fpriv->obj = obj; in adf_file_open() 748 init_waitqueue_head(&fpriv->event_wait); in adf_file_open() 750 file->private_data = fpriv; in adf_file_open() 759 list_add_tail(&fpriv->head, &obj->file_list); in adf_file_open() 764 kfree(fpriv); in adf_file_open() 772 struct adf_file *fpriv = file->private_data; in adf_file_release() local [all …]
|
/drivers/pci/ |
D | proc.c | 214 struct pci_filp_private *fpriv = file->private_data; in proc_bus_pci_ioctl() local 225 fpriv->mmap_state = pci_mmap_io; in proc_bus_pci_ioctl() 229 fpriv->mmap_state = pci_mmap_mem; in proc_bus_pci_ioctl() 234 fpriv->write_combine = 1; in proc_bus_pci_ioctl() 236 fpriv->write_combine = 0; in proc_bus_pci_ioctl() 253 struct pci_filp_private *fpriv = file->private_data; in proc_bus_pci_mmap() local 269 fpriv->mmap_state, in proc_bus_pci_mmap() 270 fpriv->write_combine); in proc_bus_pci_mmap() 279 struct pci_filp_private *fpriv = kmalloc(sizeof(*fpriv), GFP_KERNEL); in proc_bus_pci_open() local 281 if (!fpriv) in proc_bus_pci_open() [all …]
|
/drivers/gpu/host1x/drm/ |
D | drm.c | 285 struct host1x_drm_file *fpriv; in tegra_drm_open() local 287 fpriv = kzalloc(sizeof(*fpriv), GFP_KERNEL); in tegra_drm_open() 288 if (!fpriv) in tegra_drm_open() 291 INIT_LIST_HEAD(&fpriv->contexts); in tegra_drm_open() 292 filp->driver_priv = fpriv; in tegra_drm_open() 405 struct host1x_drm_file *fpriv = file->driver_priv; in tegra_open_channel() local 420 list_add(&context->list, &fpriv->contexts); in tegra_open_channel() 433 struct host1x_drm_file *fpriv = file->driver_priv; in tegra_close_channel() local 437 if (!host1x_drm_file_owns_context(fpriv, context)) in tegra_close_channel() 450 struct host1x_drm_file *fpriv = file->driver_priv; in tegra_get_syncpt() local [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_kms.c | 474 struct radeon_fpriv *fpriv; in radeon_driver_open_kms() local 478 fpriv = kzalloc(sizeof(*fpriv), GFP_KERNEL); in radeon_driver_open_kms() 479 if (unlikely(!fpriv)) { in radeon_driver_open_kms() 483 radeon_vm_init(rdev, &fpriv->vm); in radeon_driver_open_kms() 487 bo_va = radeon_vm_bo_add(rdev, &fpriv->vm, in radeon_driver_open_kms() 493 radeon_vm_fini(rdev, &fpriv->vm); in radeon_driver_open_kms() 494 kfree(fpriv); in radeon_driver_open_kms() 498 file_priv->driver_priv = fpriv; in radeon_driver_open_kms() 518 struct radeon_fpriv *fpriv = file_priv->driver_priv; in radeon_driver_postclose_kms() local 524 bo_va = radeon_vm_bo_find(&fpriv->vm, in radeon_driver_postclose_kms() [all …]
|
D | radeon_gem.c | 145 struct radeon_fpriv *fpriv = file_priv->driver_priv; in radeon_gem_object_open() local 146 struct radeon_vm *vm = &fpriv->vm; in radeon_gem_object_open() 175 struct radeon_fpriv *fpriv = file_priv->driver_priv; in radeon_gem_object_close() local 176 struct radeon_vm *vm = &fpriv->vm; in radeon_gem_object_close() 441 struct radeon_fpriv *fpriv = filp->driver_priv; in radeon_gem_va_ioctl() local 511 bo_va = radeon_vm_bo_find(&fpriv->vm, rbo); in radeon_gem_va_ioctl()
|
D | r600_cp.c | 2584 struct drm_file *fpriv, in r600_ib_get() argument 2594 buf->file_priv = fpriv; in r600_ib_get() 2600 struct drm_file *fpriv, int l, int r) in r600_ib_free() argument 2607 radeon_cp_discard_buffer(dev, fpriv->master, buf); in r600_ib_free() 2612 int r600_cs_legacy_ioctl(struct drm_device *dev, void *data, struct drm_file *fpriv) in r600_cs_legacy_ioctl() argument 2632 r = r600_ib_get(dev, fpriv, &buf); in r600_cs_legacy_ioctl() 2639 r = r600_cs_legacy(dev, data, fpriv, family, ib, &l); in r600_cs_legacy_ioctl() 2645 r600_ib_free(dev, buf, fpriv, l, r); in r600_cs_legacy_ioctl()
|
D | radeon_cs.c | 418 struct radeon_fpriv *fpriv = parser->filp->driver_priv; in radeon_cs_ib_vm_chunk() local 419 struct radeon_vm *vm = &fpriv->vm; in radeon_cs_ib_vm_chunk()
|
D | radeon_drv.h | 449 extern int r600_cs_legacy_ioctl(struct drm_device *dev, void *data, struct drm_file *fpriv);
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_drm.h | 68 nouveau_cli(struct drm_file *fpriv) in nouveau_cli() argument 70 return fpriv ? fpriv->driver_priv : NULL; in nouveau_cli()
|
D | nouveau_drm.c | 590 nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) in nouveau_drm_open() argument 599 snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid)); in nouveau_drm_open() 614 fpriv->driver_priv = cli; in nouveau_drm_open() 623 nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv) in nouveau_drm_preclose() argument 625 struct nouveau_cli *cli = nouveau_cli(fpriv); in nouveau_drm_preclose() 637 nouveau_drm_postclose(struct drm_device *dev, struct drm_file *fpriv) in nouveau_drm_postclose() argument 639 struct nouveau_cli *cli = nouveau_cli(fpriv); in nouveau_drm_postclose()
|