gf100_grctx_patch_wr32
gf100_grctx_patch_wr32(chan, 0x408004, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x408008, 0x80000000 | (size >> 8));
gf100_grctx_patch_wr32(chan, 0x418808, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x41880c, 0x80000000 | (size >> 8));
gf100_grctx_patch_wr32(chan, 0x40800c, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x408010, 0x80000000);
gf100_grctx_patch_wr32(chan, 0x419004, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x419008, 0x00000000);
gf100_grctx_patch_wr32(chan, 0x405830, (attrib << 16));
gf100_grctx_patch_wr32(chan, o, (attrib << 16) | bo);
gf100_grctx_patch_wr32(chan, 0x418810, 0x80000000 | addr >> 12);
gf100_grctx_patch_wr32(chan, 0x419848, 0x10000000 | addr >> 12);
void gf100_grctx_patch_wr32(struct gf100_gr_chan *, u32 addr, u32 data);
gf100_grctx_patch_wr32(chan, 0x405830, (beta << 16) | alpha);
gf100_grctx_patch_wr32(chan, 0x4064c4, ((alpha / 4) << 16) | max_batches);
gf100_grctx_patch_wr32(chan, o + 0x20, (t << 28) | (b << 16) | bo);
gf100_grctx_patch_wr32(chan, o + 0x44, (a << 16) | ao);
gf100_grctx_patch_wr32(chan, 0x405830, (beta << 16) | alpha);
gf100_grctx_patch_wr32(chan, 0x4064c4, ((alpha / 4) << 16) | max_batches);
gf100_grctx_patch_wr32(chan, o + 0xc0, (t << 28) | (b << 16) | bo);
gf100_grctx_patch_wr32(chan, o + 0xe4, (a << 16) | ao);
gf100_grctx_patch_wr32(chan, 0x17e91c, data0);
gf100_grctx_patch_wr32(chan, 0x17e920, data1);
gf100_grctx_patch_wr32(chan, 0x4064c8, (state_limit << 16) | token_limit);
gf100_grctx_patch_wr32(chan, 0x4064cc, 0x80000000);
gf100_grctx_patch_wr32(chan, 0x408004, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x408008, 0x80000000 | (size >> 8));
gf100_grctx_patch_wr32(chan, 0x418e24, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x418e28, 0x80000000 | (size >> 8));
gf100_grctx_patch_wr32(chan, 0x4064c8, (state_limit << 16) | token_limit);
gf100_grctx_patch_wr32(chan, 0x418e30, 0x80000000);
gf100_grctx_patch_wr32(chan, 0x405830, (attrib << 16) | alpha);
gf100_grctx_patch_wr32(chan, 0x4064c4, ((alpha / 4) << 16) | max_batches);
gf100_grctx_patch_wr32(chan, o + 0xc0, bs);
gf100_grctx_patch_wr32(chan, o + 0xf4, bo);
gf100_grctx_patch_wr32(chan, o + 0xe4, as);
gf100_grctx_patch_wr32(chan, o + 0xf8, ao);
gf100_grctx_patch_wr32(chan, u, ((bs / 3) << 16) | bs);
gf100_grctx_patch_wr32(chan, 0x419c2c, 0x10000000 | addr >> 12);
gf100_grctx_patch_wr32(chan, 0x40800c, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x408010, 0x8007d800);
gf100_grctx_patch_wr32(chan, 0x419004, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x419008, 0x00000000);
gf100_grctx_patch_wr32(chan, 0x405830, attrib);
gf100_grctx_patch_wr32(chan, 0x40585c, alpha);
gf100_grctx_patch_wr32(chan, 0x4064c4, ((alpha / 4) << 16) | max_batches);
gf100_grctx_patch_wr32(chan, o + 0xc0, bs);
gf100_grctx_patch_wr32(chan, o + 0xf4, bo);
gf100_grctx_patch_wr32(chan, o + 0xf0, bs);
gf100_grctx_patch_wr32(chan, o + 0xe4, as);
gf100_grctx_patch_wr32(chan, o + 0xf8, ao);
gf100_grctx_patch_wr32(chan, u, bs);
gf100_grctx_patch_wr32(chan, 0x418eec, 0x00000000);
gf100_grctx_patch_wr32(chan, 0x41befc, 0x00000000);
gf100_grctx_patch_wr32(chan, 0x419b00, 0x00000000 | addr >> 12);
gf100_grctx_patch_wr32(chan, 0x419b04, 0x80000000 | size >> 7);
gf100_grctx_patch_wr32(chan, 0x405830, attrib);
gf100_grctx_patch_wr32(chan, 0x40585c, alpha);
gf100_grctx_patch_wr32(chan, 0x4064c4, ((alpha / 4) << 16) | max_batches);
gf100_grctx_patch_wr32(chan, o + 0xc0, gs);
gf100_grctx_patch_wr32(chan, p, bs);
gf100_grctx_patch_wr32(chan, o + 0xf4, bo);
gf100_grctx_patch_wr32(chan, o + 0xf0, bs);
gf100_grctx_patch_wr32(chan, o + 0xe4, as);
gf100_grctx_patch_wr32(chan, o + 0xf8, ao);
gf100_grctx_patch_wr32(chan, u, bs);
gf100_grctx_patch_wr32(chan, 0x4181e4, 0x00000100);
gf100_grctx_patch_wr32(chan, 0x41befc, 0x00000100);
gf100_grctx_patch_wr32(chan, 0x4181e4, 0x00000100);
gf100_grctx_patch_wr32(chan, 0x41befc, 0x00000100);
gf100_grctx_patch_wr32(chan, 0x419e00, 0x00000000 | addr >> 12);
gf100_grctx_patch_wr32(chan, 0x419e04, 0x80000000 | size >> 7);
gf100_grctx_patch_wr32(chan, 0x405830, attrib);
gf100_grctx_patch_wr32(chan, 0x40585c, alpha);
gf100_grctx_patch_wr32(chan, 0x4064c4, ((alpha / 4) << 16) | max_batches);
gf100_grctx_patch_wr32(chan, o + 0xc0, gs);
gf100_grctx_patch_wr32(chan, o + 0xf4, bo);
gf100_grctx_patch_wr32(chan, o + 0xf0, bs);
gf100_grctx_patch_wr32(chan, o + 0xe4, as);
gf100_grctx_patch_wr32(chan, o + 0xf8, ao);
gf100_grctx_patch_wr32(chan, u, bs);
gf100_grctx_patch_wr32(chan, 0x408070, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x408074, size >> 8); /*XXX: guess */
gf100_grctx_patch_wr32(chan, 0x419034, addr >> 8);
gf100_grctx_patch_wr32(chan, 0x408078, 0x00000000);