aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:08 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:40:11 +1000
commitbfee3f3d97db88bfb732735eb4955ad3381ac758 (patch)
tree446fe6e7af9404c3419ed2d551d97af3c4491628 /drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
parent6189f1b0938dc0621c27494031b83ffae566e318 (diff)
drm/nouveau/gr: cosmetic changes
This is purely preparation for upcoming commits, there should be no code changes here. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
index c011bf327276..c44b2e157ec2 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm20b.c
@@ -22,63 +22,63 @@
#include "ctxgf100.h"
static void
-gm20b_grctx_generate_r406028(struct gf100_gr_priv *priv)
+gm20b_grctx_generate_r406028(struct gf100_gr *gr)
{
u32 tpc_per_gpc = 0;
int i;
- for (i = 0; i < priv->gpc_nr; i++)
- tpc_per_gpc |= priv->tpc_nr[i] << (4 * i);
+ for (i = 0; i < gr->gpc_nr; i++)
+ tpc_per_gpc |= gr->tpc_nr[i] << (4 * i);
- nv_wr32(priv, 0x406028, tpc_per_gpc);
- nv_wr32(priv, 0x405870, tpc_per_gpc);
+ nv_wr32(gr, 0x406028, tpc_per_gpc);
+ nv_wr32(gr, 0x405870, tpc_per_gpc);
}
static void
-gm20b_grctx_generate_main(struct gf100_gr_priv *priv, struct gf100_grctx *info)
+gm20b_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
{
- struct gf100_grctx_oclass *oclass = (void *)nv_engine(priv)->cclass;
+ struct gf100_grctx_oclass *oclass = (void *)nv_engine(gr)->cclass;
int idle_timeout_save;
int i, tmp;
- gf100_gr_mmio(priv, priv->fuc_sw_ctx);
+ gf100_gr_mmio(gr, gr->fuc_sw_ctx);
- gf100_gr_wait_idle(priv);
+ gf100_gr_wait_idle(gr);
- idle_timeout_save = nv_rd32(priv, 0x404154);
- nv_wr32(priv, 0x404154, 0x00000000);
+ idle_timeout_save = nv_rd32(gr, 0x404154);
+ nv_wr32(gr, 0x404154, 0x00000000);
oclass->attrib(info);
- oclass->unkn(priv);
+ oclass->unkn(gr);
- gm204_grctx_generate_tpcid(priv);
- gm20b_grctx_generate_r406028(priv);
- gk104_grctx_generate_r418bb8(priv);
+ gm204_grctx_generate_tpcid(gr);
+ gm20b_grctx_generate_r406028(gr);
+ gk104_grctx_generate_r418bb8(gr);
for (i = 0; i < 8; i++)
- nv_wr32(priv, 0x4064d0 + (i * 0x04), 0x00000000);
+ nv_wr32(gr, 0x4064d0 + (i * 0x04), 0x00000000);
- nv_wr32(priv, 0x405b00, (priv->tpc_total << 8) | priv->gpc_nr);
+ nv_wr32(gr, 0x405b00, (gr->tpc_total << 8) | gr->gpc_nr);
- gk104_grctx_generate_rop_active_fbps(priv);
- nv_wr32(priv, 0x408908, nv_rd32(priv, 0x410108) | 0x80000000);
+ gk104_grctx_generate_rop_active_fbps(gr);
+ nv_wr32(gr, 0x408908, nv_rd32(gr, 0x410108) | 0x80000000);
- for (tmp = 0, i = 0; i < priv->gpc_nr; i++)
- tmp |= ((1 << priv->tpc_nr[i]) - 1) << (i * 4);
- nv_wr32(priv, 0x4041c4, tmp);
+ for (tmp = 0, i = 0; i < gr->gpc_nr; i++)
+ tmp |= ((1 << gr->tpc_nr[i]) - 1) << (i * 4);
+ nv_wr32(gr, 0x4041c4, tmp);
- gm204_grctx_generate_405b60(priv);
+ gm204_grctx_generate_405b60(gr);
- gf100_gr_wait_idle(priv);
+ gf100_gr_wait_idle(gr);
- nv_wr32(priv, 0x404154, idle_timeout_save);
- gf100_gr_wait_idle(priv);
+ nv_wr32(gr, 0x404154, idle_timeout_save);
+ gf100_gr_wait_idle(gr);
- gf100_gr_mthd(priv, priv->fuc_method);
- gf100_gr_wait_idle(priv);
+ gf100_gr_mthd(gr, gr->fuc_method);
+ gf100_gr_wait_idle(gr);
- gf100_gr_icmd(priv, priv->fuc_bundle);
+ gf100_gr_icmd(gr, gr->fuc_bundle);
oclass->pagepool(info);
oclass->bundle(info);
}
@@ -107,4 +107,4 @@ gm20b_grctx_oclass = &(struct gf100_grctx_oclass) {
.attrib_nr = 0x400,
.alpha_nr_max = 0xc00,
.alpha_nr = 0x800,
-}.base; \ No newline at end of file
+}.base;