drm/nouveau/engine: rename some functions to avoid upcoming conflicts
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:16 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:34 +0000 (12:40 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
drivers/gpu/drm/nouveau/include/nvkm/engine/gr.h
drivers/gpu/drm/nouveau/include/nvkm/engine/mpeg.h
drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c

index 3212b12a70eda2286c3e1c8dafff4e4f87fdda33..f98980e15f264d2447461409f6a3ecafb791f894 100644 (file)
@@ -40,9 +40,9 @@ struct nvkm_engine *nvkm_engine(void *obj, int idx);
 
 #define nvkm_engine_destroy(p)                                              \
        nvkm_subdev_destroy(&(p)->subdev)
-#define nvkm_engine_init(p)                                                 \
+#define nvkm_engine_init_old(p)                                                \
        nvkm_subdev_init_old(&(p)->subdev)
-#define nvkm_engine_fini(p,s)                                               \
+#define nvkm_engine_fini_old(p,s)                                              \
        nvkm_subdev_fini_old(&(p)->subdev, (s))
 
 int nvkm_engine_create_(struct nvkm_object *, struct nvkm_object *,
index fb8d2b5a0567168ef3ba882b336574a5a9a01c68..0af10f9db9e29e1d34af3a98c1ca00a4bdcd7515 100644 (file)
@@ -91,9 +91,9 @@ nvkm_fifo(void *obj)
 #define nvkm_fifo_create(o,e,c,fc,lc,d)                                     \
        nvkm_fifo_create_((o), (e), (c), (fc), (lc), sizeof(**d), (void **)d)
 #define nvkm_fifo_init(p)                                                   \
-       nvkm_engine_init(&(p)->engine)
+       nvkm_engine_init_old(&(p)->engine)
 #define nvkm_fifo_fini(p,s)                                                 \
-       nvkm_engine_fini(&(p)->engine, (s))
+       nvkm_engine_fini_old(&(p)->engine, (s))
 
 int nvkm_fifo_create_(struct nvkm_object *, struct nvkm_object *,
                         struct nvkm_oclass *, int min, int max,
index 74bf2fe9a3ca3e459abc84134999dc35ee02b107..0fd02c27b869b3348a0a3524dd42b2ea7440bca7 100644 (file)
@@ -42,9 +42,9 @@ nvkm_gr(void *obj)
 #define nvkm_gr_destroy(d)                                               \
        nvkm_engine_destroy(&(d)->engine)
 #define nvkm_gr_init(d)                                                  \
-       nvkm_engine_init(&(d)->engine)
+       nvkm_engine_init_old(&(d)->engine)
 #define nvkm_gr_fini(d,s)                                                \
-       nvkm_engine_fini(&(d)->engine, (s))
+       nvkm_engine_fini_old(&(d)->engine, (s))
 
 #define _nvkm_gr_dtor _nvkm_engine_dtor
 #define _nvkm_gr_init _nvkm_engine_init
index 24cfd93f65d5f26b2e9ea6c7f0401f2ea77b8113..db5c3d5a0752023f81fa5ef6fd4882d41ad4dddd 100644 (file)
@@ -32,9 +32,9 @@ struct nvkm_mpeg {
 #define nvkm_mpeg_destroy(d)                                                \
        nvkm_engine_destroy(&(d)->engine)
 #define nvkm_mpeg_init(d)                                                   \
-       nvkm_engine_init(&(d)->engine)
+       nvkm_engine_init_old(&(d)->engine)
 #define nvkm_mpeg_fini(d,s)                                                 \
-       nvkm_engine_fini(&(d)->engine, (s))
+       nvkm_engine_fini_old(&(d)->engine, (s))
 
 #define _nvkm_mpeg_dtor _nvkm_engine_dtor
 #define _nvkm_mpeg_init _nvkm_engine_init
index c46e5595573b501552937df85d7e1e1b7d759986..8dae95829f66462a3a99fc10a6847ffe85d23f3e 100644 (file)
@@ -33,9 +33,9 @@ struct nvkm_sw {
 #define nvkm_sw_destroy(d)                                            \
        nvkm_engine_destroy(&(d)->engine)
 #define nvkm_sw_init(d)                                               \
-       nvkm_engine_init(&(d)->engine)
+       nvkm_engine_init_old(&(d)->engine)
 #define nvkm_sw_fini(d,s)                                             \
-       nvkm_engine_fini(&(d)->engine, (s))
+       nvkm_engine_fini_old(&(d)->engine, (s))
 
 #define _nvkm_sw_dtor _nvkm_engine_dtor
 #define _nvkm_sw_init _nvkm_engine_init
index 312df6fa57078df13590f9c0df36ef1c2a5284b0..67892295e51ca8005b5c64e67ce94261fc54c736 100644 (file)
@@ -163,7 +163,7 @@ g84_cipher_init(struct nvkm_object *object)
        struct nvkm_device *device = cipher->subdev.device;
        int ret;
 
-       ret = nvkm_engine_init(cipher);
+       ret = nvkm_engine_init_old(cipher);
        if (ret)
                return ret;
 
index 7e6744536fa0a681fb17a571aa99bd4c4ed5232e..fea8516220f3c43a670d9f02673fb2cba00687c7 100644 (file)
@@ -129,7 +129,7 @@ _nvkm_disp_fini(struct nvkm_object *object, bool suspend)
                nvkm_connector_fini(conn);
        }
 
-       return nvkm_engine_fini(&disp->engine, suspend);
+       return nvkm_engine_fini_old(&disp->engine, suspend);
 }
 
 int
@@ -140,7 +140,7 @@ _nvkm_disp_init(struct nvkm_object *object)
        struct nvkm_output *outp;
        int ret;
 
-       ret = nvkm_engine_init(&disp->engine);
+       ret = nvkm_engine_init_old(&disp->engine);
        if (ret)
                return ret;
 
index d2849ece1ba669cd8f31a05e77699ac227495deb..52f6a6e4921670cb019451930f0d458f6916f56f 100644 (file)
@@ -67,7 +67,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
        u32 caps;
 
        /* enable engine, and determine its capabilities */
-       ret = nvkm_engine_init(&falcon->engine);
+       ret = nvkm_engine_init_old(&falcon->engine);
        if (ret)
                return ret;
 
@@ -254,7 +254,7 @@ _nvkm_falcon_fini(struct nvkm_object *object, bool suspend)
        nvkm_mask(device, base + 0x048, 0x00000003, 0x00000000);
        nvkm_wr32(device, base + 0x014, 0xffffffff);
 
-       return nvkm_engine_fini(&falcon->engine, suspend);
+       return nvkm_engine_fini_old(&falcon->engine, suspend);
 }
 
 int
index ac27f511163af3787b09e540fe24fab88fc1dc8d..a441fd3b69bc1d5de98a4f2e36f98840f2494c0b 100644 (file)
@@ -813,14 +813,14 @@ int
 _nvkm_pm_fini(struct nvkm_object *object, bool suspend)
 {
        struct nvkm_pm *pm = (void *)object;
-       return nvkm_engine_fini(&pm->engine, suspend);
+       return nvkm_engine_fini_old(&pm->engine, suspend);
 }
 
 int
 _nvkm_pm_init(struct nvkm_object *object)
 {
        struct nvkm_pm *pm = (void *)object;
-       return nvkm_engine_init(&pm->engine);
+       return nvkm_engine_init_old(&pm->engine);
 }
 
 void
index 974d7a0d7a36bbd89cabfbb7d62a686470eafe39..45dd8b8da4c952dcfda665d770bae607e80dc69f 100644 (file)
@@ -90,7 +90,7 @@ _nvkm_xtensa_init(struct nvkm_object *object)
        int i, ret;
        u32 tmp;
 
-       ret = nvkm_engine_init(&xtensa->engine);
+       ret = nvkm_engine_init_old(&xtensa->engine);
        if (ret)
                return ret;
 
@@ -161,5 +161,5 @@ _nvkm_xtensa_fini(struct nvkm_object *object, bool suspend)
        if (!suspend)
                nvkm_gpuobj_ref(NULL, &xtensa->gpu_fw);
 
-       return nvkm_engine_fini(&xtensa->engine, suspend);
+       return nvkm_engine_fini_old(&xtensa->engine, suspend);
 }