Lines Matching defs:gr
849 gk104_grctx_generate_r418800(struct gf100_gr *gr)
851 struct nvkm_device *device = gr->base.engine.subdev.device;
866 struct nvkm_device *device = chan->gr->base.engine.subdev.device;
878 const struct gf100_grctx_func *grctx = chan->gr->func->grctx;
894 gk104_grctx_generate_unkn(struct gf100_gr *gr)
896 struct nvkm_device *device = gr->base.engine.subdev.device;
906 gk104_grctx_generate_r419f78(struct gf100_gr *gr)
908 struct nvkm_device *device = gr->base.engine.subdev.device;
915 gk104_grctx_generate_gpc_tpc_nr(struct gf100_gr *gr)
917 struct nvkm_device *device = gr->base.engine.subdev.device;
918 nvkm_wr32(device, 0x405b00, (gr->tpc_total << 8) | gr->gpc_nr);
922 gk104_grctx_generate_alpha_beta_tables(struct gf100_gr *gr)
924 struct nvkm_device *device = gr->base.engine.subdev.device;
928 u32 atarget = max_t(u32, gr->tpc_total * i / 32, 1);
929 u32 btarget = gr->tpc_total - atarget;
933 for (gpc = 0; gpc < gr->gpc_nr; gpc++) {
934 for (ppc = 0; ppc < gr->func->ppc_nr; ppc++) {
935 u32 ppc_tpcs = gr->ppc_tpc_nr[gpc][ppc];
946 pmask = gr->ppc_tpc_mask[gpc][ppc];
951 pmask ^= gr->ppc_tpc_mask[gpc][ppc];
961 for (j = 0; j < gr->gpc_nr; j += 4, amask >>= 32, bmask >>= 32) {