From 44e9a0258a4cab4a22fc44d1440ea882e3ad0334 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 23 Mar 2015 21:35:38 +0000 Subject: freedreno: annotate the private symbols They are less and easier to track than the public ones. The macro drm_public will be going away by the end of the series. Cc: Rob Clark Signed-off-by: Emil Velikov --- freedreno/kgsl/kgsl_pipe.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'freedreno/kgsl/kgsl_pipe.c') diff --git a/freedreno/kgsl/kgsl_pipe.c b/freedreno/kgsl/kgsl_pipe.c index 1a795ba3..fc76b2b8 100644 --- a/freedreno/kgsl/kgsl_pipe.c +++ b/freedreno/kgsl/kgsl_pipe.c @@ -75,7 +75,8 @@ static int kgsl_pipe_wait(struct fd_pipe *pipe, uint32_t timestamp) return ret; } -int kgsl_pipe_timestamp(struct kgsl_pipe *kgsl_pipe, uint32_t *timestamp) +drm_private int kgsl_pipe_timestamp(struct kgsl_pipe *kgsl_pipe, + uint32_t *timestamp) { struct kgsl_cmdstream_readtimestamp req = { .type = KGSL_TIMESTAMP_RETIRED @@ -113,13 +114,13 @@ static struct fd_pipe_funcs funcs = { .destroy = kgsl_pipe_destroy, }; -int is_kgsl_pipe(struct fd_pipe *pipe) +drm_private int is_kgsl_pipe(struct fd_pipe *pipe) { return pipe->funcs == &funcs; } /* add buffer to submit list when it is referenced in cmdstream: */ -void kgsl_pipe_add_submit(struct kgsl_pipe *kgsl_pipe, +drm_private void kgsl_pipe_add_submit(struct kgsl_pipe *kgsl_pipe, struct kgsl_bo *kgsl_bo) { struct fd_pipe *pipe = &kgsl_pipe->base; @@ -134,7 +135,7 @@ void kgsl_pipe_add_submit(struct kgsl_pipe *kgsl_pipe, } /* prepare buffers on submit list before flush: */ -void kgsl_pipe_pre_submit(struct kgsl_pipe *kgsl_pipe) +drm_private void kgsl_pipe_pre_submit(struct kgsl_pipe *kgsl_pipe) { struct fd_pipe *pipe = &kgsl_pipe->base; struct kgsl_bo *kgsl_bo = NULL; @@ -150,7 +151,8 @@ void kgsl_pipe_pre_submit(struct kgsl_pipe *kgsl_pipe) } /* process buffers on submit list after flush: */ -void kgsl_pipe_post_submit(struct kgsl_pipe *kgsl_pipe, uint32_t timestamp) +drm_private void kgsl_pipe_post_submit(struct kgsl_pipe *kgsl_pipe, + uint32_t timestamp) { struct fd_pipe *pipe = &kgsl_pipe->base; struct kgsl_bo *kgsl_bo = NULL, *tmp; @@ -168,7 +170,8 @@ void kgsl_pipe_post_submit(struct kgsl_pipe *kgsl_pipe, uint32_t timestamp) kgsl_pipe_process_pending(kgsl_pipe, timestamp); } -void kgsl_pipe_process_pending(struct kgsl_pipe *kgsl_pipe, uint32_t timestamp) +drm_private void kgsl_pipe_process_pending(struct kgsl_pipe *kgsl_pipe, + uint32_t timestamp) { struct fd_pipe *pipe = &kgsl_pipe->base; struct kgsl_bo *kgsl_bo = NULL, *tmp; @@ -201,7 +204,8 @@ static int getprop(int fd, enum kgsl_property_type type, } } while (0) -struct fd_pipe * kgsl_pipe_new(struct fd_device *dev, enum fd_pipe_id id) +drm_private struct fd_pipe * kgsl_pipe_new(struct fd_device *dev, + enum fd_pipe_id id) { static const char *paths[] = { [FD_PIPE_3D] = "/dev/kgsl-3d0", -- cgit v1.2.3