Displaying 10 results from an estimated 10 matches for "err_remov".
Did you mean:
err_remove
2023 Feb 14
3
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...obj, 1, 0, GFP_NOWAIT);
-
spin_unlock(&file_priv->table_lock);
idr_preload_end();
- mutex_unlock(&dev->object_name_lock);
if (ret < 0)
- goto err_unref;
-
- handle = ret;
+ goto err_close;
- ret = drm_vma_node_allow(&obj->vma_node, file_priv);
- if (ret)
- goto err_remove;
+ mutex_unlock(&dev->object_name_lock);
- if (obj->funcs->open) {
- ret = obj->funcs->open(obj, file_priv);
- if (ret)
- goto err_revoke;
- }
+ *handlep = ret;
- *handlep = handle;
return 0;
+err_close:
+ if (obj->funcs->close)
+ obj->funcs->close(obj,...
2023 Feb 14
3
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...obj, 1, 0, GFP_NOWAIT);
-
spin_unlock(&file_priv->table_lock);
idr_preload_end();
- mutex_unlock(&dev->object_name_lock);
if (ret < 0)
- goto err_unref;
-
- handle = ret;
+ goto err_close;
- ret = drm_vma_node_allow(&obj->vma_node, file_priv);
- if (ret)
- goto err_remove;
+ mutex_unlock(&dev->object_name_lock);
- if (obj->funcs->open) {
- ret = obj->funcs->open(obj, file_priv);
- if (ret)
- goto err_revoke;
- }
+ *handlep = ret;
- *handlep = handle;
return 0;
+err_close:
+ if (obj->funcs->close)
+ obj->funcs->close(obj,...
2023 Feb 20
2
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...ex_unlock(&dev->object_name_lock);
>> ????? if (ret < 0)
>> -??????? goto err_unref;
>> -
>> -??? handle = ret;
>> +??????? goto err_close;
>> -??? ret = drm_vma_node_allow(&obj->vma_node, file_priv);
>> -??? if (ret)
>> -??????? goto err_remove;
>> +??? mutex_unlock(&dev->object_name_lock);
>> -??? if (obj->funcs->open) {
>> -??????? ret = obj->funcs->open(obj, file_priv);
>> -??????? if (ret)
>> -??????????? goto err_revoke;
>> -??? }
>> +??? *handlep = ret;
>> -??? *han...
2023 Feb 20
2
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...ex_unlock(&dev->object_name_lock);
>> ????? if (ret < 0)
>> -??????? goto err_unref;
>> -
>> -??? handle = ret;
>> +??????? goto err_close;
>> -??? ret = drm_vma_node_allow(&obj->vma_node, file_priv);
>> -??? if (ret)
>> -??????? goto err_remove;
>> +??? mutex_unlock(&dev->object_name_lock);
>> -??? if (obj->funcs->open) {
>> -??????? ret = obj->funcs->open(obj, file_priv);
>> -??????? if (ret)
>> -??????????? goto err_revoke;
>> -??? }
>> +??? *handlep = ret;
>> -??? *han...
2023 Feb 20
1
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...if (ret < 0)
>>>> -??????? goto err_unref;
>>>> -
>>>> -??? handle = ret;
>>>> +??????? goto err_close;
>>>> -??? ret = drm_vma_node_allow(&obj->vma_node, file_priv);
>>>> -??? if (ret)
>>>> -??????? goto err_remove;
>>>> +??? mutex_unlock(&dev->object_name_lock);
>>>> -??? if (obj->funcs->open) {
>>>> -??????? ret = obj->funcs->open(obj, file_priv);
>>>> -??????? if (ret)
>>>> -??????????? goto err_revoke;
>>>> -??? }...
2023 Feb 20
1
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...if (ret < 0)
>>>> -??????? goto err_unref;
>>>> -
>>>> -??? handle = ret;
>>>> +??????? goto err_close;
>>>> -??? ret = drm_vma_node_allow(&obj->vma_node, file_priv);
>>>> -??? if (ret)
>>>> -??????? goto err_remove;
>>>> +??? mutex_unlock(&dev->object_name_lock);
>>>> -??? if (obj->funcs->open) {
>>>> -??????? ret = obj->funcs->open(obj, file_priv);
>>>> -??????? if (ret)
>>>> -??????????? goto err_revoke;
>>>> -??? }...
2023 Feb 14
0
[PATCH] drm/gem: Expose the buffer object handle to userspace last
...e_lock);
> idr_preload_end();
>
> - mutex_unlock(&dev->object_name_lock);
> if (ret < 0)
> - goto err_unref;
> -
> - handle = ret;
> + goto err_close;
>
> - ret = drm_vma_node_allow(&obj->vma_node, file_priv);
> - if (ret)
> - goto err_remove;
> + mutex_unlock(&dev->object_name_lock);
>
> - if (obj->funcs->open) {
> - ret = obj->funcs->open(obj, file_priv);
> - if (ret)
> - goto err_revoke;
> - }
> + *handlep = ret;
>
> - *handlep = handle;
> return 0;
>
> +err_c...
2023 Feb 14
0
[Nouveau] [PATCH] drm/gem: Expose the buffer object handle to userspace last
...e_lock);
> idr_preload_end();
>
> - mutex_unlock(&dev->object_name_lock);
> if (ret < 0)
> - goto err_unref;
> -
> - handle = ret;
> + goto err_close;
>
> - ret = drm_vma_node_allow(&obj->vma_node, file_priv);
> - if (ret)
> - goto err_remove;
> + mutex_unlock(&dev->object_name_lock);
>
> - if (obj->funcs->open) {
> - ret = obj->funcs->open(obj, file_priv);
> - if (ret)
> - goto err_revoke;
> - }
> + *handlep = ret;
>
> - *handlep = handle;
> return 0;
>
> +err_c...
2023 Feb 20
0
[Nouveau] [PATCH] drm/gem: Expose the buffer object handle to userspace last
...me_lock);
>>> ????? if (ret < 0)
>>> -??????? goto err_unref;
>>> -
>>> -??? handle = ret;
>>> +??????? goto err_close;
>>> -??? ret = drm_vma_node_allow(&obj->vma_node, file_priv);
>>> -??? if (ret)
>>> -??????? goto err_remove;
>>> +??? mutex_unlock(&dev->object_name_lock);
>>> -??? if (obj->funcs->open) {
>>> -??????? ret = obj->funcs->open(obj, file_priv);
>>> -??????? if (ret)
>>> -??????????? goto err_revoke;
>>> -??? }
>>> +??? *handl...
2020 Sep 23
25
[PATCH v3 00/22] Convert all remaining drivers to GEM object functions
The GEM and PRIME related callbacks in struct drm_driver are deprecated in
favor of GEM object functions in struct drm_gem_object_funcs. This patchset
converts the remaining drivers to object functions and removes most of the
obsolete interfaces.
Version 3 of this patchset mostly fixes drm_gem_prime_handle_to_fd and
updates i.MX's dcss driver. The driver was missing from earlier versions
and