* [PATCH 0/3] drm/exynos: Replace {un/reference} with {put, get} functions
@ 2018-06-18 13:17 Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 1/3] drm/exynos: Replace drm_framebuffer_{un/reference} with put, get functions Thomas Zimmermann
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Zimmermann @ 2018-06-18 13:17 UTC (permalink / raw)
To: inki.dae, jy0922.shim, sw0312.kim, kyungmin.park
Cc: Thomas Zimmermann, dri-devel
This patch set replaces functions named {un,reference} by their
{put,get} counterparts. Affected data types are struct drm_framebuffer,
struct drm_gem_object, and struct drm_device.
With the reference-counting functions being named {put,get}, the DRM
interface is more aligned to Linux kernel nameing standard. The patch
set does not change driver-internal interfaces.
Thomas Zimmermann (3):
drm/exynos: Replace drm_framebuffer_{un/reference} with put,get
functions
drm/exynos: Replace drm_gem_object_unreference_unlocked with put
function
drm/exynos: Replace drm_dev_unref with drm_dev_put
drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ++--
drivers/gpu/drm/exynos/exynos_drm_fb.c | 2 +-
drivers/gpu/drm/exynos/exynos_drm_gem.c | 10 +++++-----
drivers/gpu/drm/exynos/exynos_drm_plane.c | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
--
2.14.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] drm/exynos: Replace drm_framebuffer_{un/reference} with put, get functions
2018-06-18 13:17 [PATCH 0/3] drm/exynos: Replace {un/reference} with {put, get} functions Thomas Zimmermann
@ 2018-06-18 13:17 ` Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 2/3] drm/exynos: Replace drm_gem_object_unreference_unlocked with put function Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 3/3] drm/exynos: Replace drm_dev_unref with drm_dev_put Thomas Zimmermann
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Zimmermann @ 2018-06-18 13:17 UTC (permalink / raw)
To: inki.dae, jy0922.shim, sw0312.kim, kyungmin.park
Cc: Thomas Zimmermann, dri-devel
This patch unifies the naming of DRM functions for reference counting
of struct drm_framebuffer. The resulting code is more aligned with the
rest of the Linux kernel interfaces.
Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
---
drivers/gpu/drm/exynos/exynos_drm_plane.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c
index eb9915da7dec..dba29aec59b4 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_plane.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c
@@ -132,7 +132,7 @@ static void exynos_drm_plane_reset(struct drm_plane *plane)
if (plane->state) {
exynos_state = to_exynos_plane_state(plane->state);
if (exynos_state->base.fb)
- drm_framebuffer_unreference(exynos_state->base.fb);
+ drm_framebuffer_put(exynos_state->base.fb);
kfree(exynos_state);
plane->state = NULL;
}
--
2.14.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] drm/exynos: Replace drm_gem_object_unreference_unlocked with put function
2018-06-18 13:17 [PATCH 0/3] drm/exynos: Replace {un/reference} with {put, get} functions Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 1/3] drm/exynos: Replace drm_framebuffer_{un/reference} with put, get functions Thomas Zimmermann
@ 2018-06-18 13:17 ` Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 3/3] drm/exynos: Replace drm_dev_unref with drm_dev_put Thomas Zimmermann
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Zimmermann @ 2018-06-18 13:17 UTC (permalink / raw)
To: inki.dae, jy0922.shim, sw0312.kim, kyungmin.park
Cc: Thomas Zimmermann, dri-devel
This patch unifies the naming of DRM functions for reference counting
of struct drm_gem_object. The resulting code is more aligned with the
rest of the Linux kernel interfaces.
Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
---
drivers/gpu/drm/exynos/exynos_drm_fb.c | 2 +-
drivers/gpu/drm/exynos/exynos_drm_gem.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c
index 7fcc1a7ab1a0..27b7d34d776c 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fb.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c
@@ -138,7 +138,7 @@ exynos_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
err:
while (i--)
- drm_gem_object_unreference_unlocked(&exynos_gem[i]->base);
+ drm_gem_object_put_unlocked(&exynos_gem[i]->base);
return ERR_PTR(ret);
}
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index 6e1494fa71b4..bdf5a7655228 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
@@ -143,7 +143,7 @@ static int exynos_drm_gem_handle_create(struct drm_gem_object *obj,
DRM_DEBUG_KMS("gem handle = 0x%x\n", *handle);
/* drop reference from allocate - handle holds it now. */
- drm_gem_object_unreference_unlocked(obj);
+ drm_gem_object_put_unlocked(obj);
return 0;
}
@@ -186,7 +186,7 @@ unsigned long exynos_drm_gem_get_size(struct drm_device *dev,
exynos_gem = to_exynos_gem(obj);
- drm_gem_object_unreference_unlocked(obj);
+ drm_gem_object_put_unlocked(obj);
return exynos_gem->size;
}
@@ -329,13 +329,13 @@ void exynos_drm_gem_put_dma_addr(struct drm_device *dev,
return;
}
- drm_gem_object_unreference_unlocked(obj);
+ drm_gem_object_put_unlocked(obj);
/*
* decrease obj->refcount one more time because we has already
* increased it at exynos_drm_gem_get_dma_addr().
*/
- drm_gem_object_unreference_unlocked(obj);
+ drm_gem_object_put_unlocked(obj);
}
static int exynos_drm_gem_mmap_buffer(struct exynos_drm_gem *exynos_gem,
@@ -383,7 +383,7 @@ int exynos_drm_gem_get_ioctl(struct drm_device *dev, void *data,
args->flags = exynos_gem->flags;
args->size = exynos_gem->size;
- drm_gem_object_unreference_unlocked(obj);
+ drm_gem_object_put_unlocked(obj);
return 0;
}
--
2.14.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] drm/exynos: Replace drm_dev_unref with drm_dev_put
2018-06-18 13:17 [PATCH 0/3] drm/exynos: Replace {un/reference} with {put, get} functions Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 1/3] drm/exynos: Replace drm_framebuffer_{un/reference} with put, get functions Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 2/3] drm/exynos: Replace drm_gem_object_unreference_unlocked with put function Thomas Zimmermann
@ 2018-06-18 13:17 ` Thomas Zimmermann
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Zimmermann @ 2018-06-18 13:17 UTC (permalink / raw)
To: inki.dae, jy0922.shim, sw0312.kim, kyungmin.park
Cc: Thomas Zimmermann, dri-devel
This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.
Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index a81b4a5e24a7..ed3cc2989f93 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -420,7 +420,7 @@ static int exynos_drm_bind(struct device *dev)
err_free_private:
kfree(private);
err_free_drm:
- drm_dev_unref(drm);
+ drm_dev_put(drm);
return ret;
}
@@ -444,7 +444,7 @@ static void exynos_drm_unbind(struct device *dev)
drm->dev_private = NULL;
dev_set_drvdata(dev, NULL);
- drm_dev_unref(drm);
+ drm_dev_put(drm);
}
static const struct component_master_ops exynos_drm_ops = {
--
2.14.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-18 13:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-18 13:17 [PATCH 0/3] drm/exynos: Replace {un/reference} with {put, get} functions Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 1/3] drm/exynos: Replace drm_framebuffer_{un/reference} with put, get functions Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 2/3] drm/exynos: Replace drm_gem_object_unreference_unlocked with put function Thomas Zimmermann
2018-06-18 13:17 ` [PATCH 3/3] drm/exynos: Replace drm_dev_unref with drm_dev_put Thomas Zimmermann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.