drm/nouveau/mspdec: switch to device pri macros
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:10 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:18 +0000 (12:40 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/gk104.c

index 55ffb3f1f36ce24e9fc0ff636a83b1a02755eebc..f83d020f05de5cdad6faf13f2fed57d0b58a9e77 100644 (file)
@@ -60,14 +60,15 @@ static int
 g98_mspdec_init(struct nvkm_object *object)
 {
        struct nvkm_falcon *mspdec = (void *)object;
+       struct nvkm_device *device = mspdec->engine.subdev.device;
        int ret;
 
        ret = nvkm_falcon_init(mspdec);
        if (ret)
                return ret;
 
-       nv_wr32(mspdec, 0x085010, 0x0000ffd2);
-       nv_wr32(mspdec, 0x08501c, 0x0000fff2);
+       nvkm_wr32(device, 0x085010, 0x0000ffd2);
+       nvkm_wr32(device, 0x08501c, 0x0000fff2);
        return 0;
 }
 
index 7c5d01dcf92efc26135f39edf2099d033a01ea45..9bbeede03e068fe2ba5ef0e1e3f9bb45b390a89b 100644 (file)
@@ -59,14 +59,15 @@ static int
 gf100_mspdec_init(struct nvkm_object *object)
 {
        struct nvkm_falcon *mspdec = (void *)object;
+       struct nvkm_device *device = mspdec->engine.subdev.device;
        int ret;
 
        ret = nvkm_falcon_init(mspdec);
        if (ret)
                return ret;
 
-       nv_wr32(mspdec, 0x085010, 0x0000fff2);
-       nv_wr32(mspdec, 0x08501c, 0x0000fff2);
+       nvkm_wr32(device, 0x085010, 0x0000fff2);
+       nvkm_wr32(device, 0x08501c, 0x0000fff2);
        return 0;
 }
 
index 60755185e88e4ef2c789850fb855eb811f9e7354..fb742b442ce98c13102a21ae947b37635ae82432 100644 (file)
@@ -58,15 +58,16 @@ gk104_mspdec_cclass = {
 static int
 gk104_mspdec_init(struct nvkm_object *object)
 {
-       struct nvkm_falcon *falcon = (void *)object;
+       struct nvkm_falcon *mspdec = (void *)object;
+       struct nvkm_device *device = mspdec->engine.subdev.device;
        int ret;
 
-       ret = nvkm_falcon_init(falcon);
+       ret = nvkm_falcon_init(mspdec);
        if (ret)
                return ret;
 
-       nv_wr32(falcon, 0x085010, 0x0000fff2);
-       nv_wr32(falcon, 0x08501c, 0x0000fff2);
+       nvkm_wr32(device, 0x085010, 0x0000fff2);
+       nvkm_wr32(device, 0x08501c, 0x0000fff2);
        return 0;
 }