Lines Matching refs:fpriv
79 struct tegra_drm_file *fpriv = file->driver_priv; in tegra_drm_ioctl_channel_open() local
135 err = xa_alloc(&fpriv->contexts, &args->context, context, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_open()
164 struct tegra_drm_file *fpriv = file->driver_priv; in tegra_drm_ioctl_channel_close() local
168 mutex_lock(&fpriv->lock); in tegra_drm_ioctl_channel_close()
170 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
172 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_close()
176 xa_erase(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
178 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_close()
187 struct tegra_drm_file *fpriv = file->driver_priv; in tegra_drm_ioctl_channel_map() local
198 mutex_lock(&fpriv->lock); in tegra_drm_ioctl_channel_map()
200 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_map()
202 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_map()
257 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_map()
268 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_map()
274 struct tegra_drm_file *fpriv = file->driver_priv; in tegra_drm_ioctl_channel_unmap() local
279 mutex_lock(&fpriv->lock); in tegra_drm_ioctl_channel_unmap()
281 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_unmap()
283 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_unmap()
289 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_channel_unmap()
301 struct tegra_drm_file *fpriv = file->driver_priv; in tegra_drm_ioctl_syncpoint_allocate() local
315 err = xa_insert(&fpriv->syncpoints, args->id, sp, GFP_KERNEL); in tegra_drm_ioctl_syncpoint_allocate()
326 struct tegra_drm_file *fpriv = file->driver_priv; in tegra_drm_ioctl_syncpoint_free() local
330 mutex_lock(&fpriv->lock); in tegra_drm_ioctl_syncpoint_free()
331 sp = xa_erase(&fpriv->syncpoints, args->id); in tegra_drm_ioctl_syncpoint_free()
332 mutex_unlock(&fpriv->lock); in tegra_drm_ioctl_syncpoint_free()