Lines Matching refs:device
33 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_cbc_clear() local
34 nvkm_wr32(device, 0x17e8cc, start); in gf100_ltc_cbc_clear()
35 nvkm_wr32(device, 0x17e8d0, limit); in gf100_ltc_cbc_clear()
36 nvkm_wr32(device, 0x17e8c8, 0x00000004); in gf100_ltc_cbc_clear()
42 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_cbc_wait() local
47 nvkm_msec(device, 2000, in gf100_ltc_cbc_wait()
48 if (!nvkm_rd32(device, addr)) in gf100_ltc_cbc_wait()
58 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_zbc_clear_color() local
59 nvkm_mask(device, 0x17ea44, 0x0000000f, i); in gf100_ltc_zbc_clear_color()
60 nvkm_wr32(device, 0x17ea48, color[0]); in gf100_ltc_zbc_clear_color()
61 nvkm_wr32(device, 0x17ea4c, color[1]); in gf100_ltc_zbc_clear_color()
62 nvkm_wr32(device, 0x17ea50, color[2]); in gf100_ltc_zbc_clear_color()
63 nvkm_wr32(device, 0x17ea54, color[3]); in gf100_ltc_zbc_clear_color()
69 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_zbc_clear_depth() local
70 nvkm_mask(device, 0x17ea44, 0x0000000f, i); in gf100_ltc_zbc_clear_depth()
71 nvkm_wr32(device, 0x17ea58, depth); in gf100_ltc_zbc_clear_depth()
96 struct nvkm_device *device = subdev->device; in gf100_ltc_lts_intr() local
98 u32 intr = nvkm_rd32(device, base + 0x020); in gf100_ltc_lts_intr()
107 nvkm_wr32(device, base + 0x020, intr); in gf100_ltc_lts_intr()
113 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_intr() local
116 mask = nvkm_rd32(device, 0x00017c); in gf100_ltc_intr()
128 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_invalidate() local
131 nvkm_wr32(device, 0x70004, 0x00000001); in gf100_ltc_invalidate()
132 taken = nvkm_wait_msec(device, 2, 0x70004, 0x00000003, 0x00000000); in gf100_ltc_invalidate()
143 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_flush() local
146 nvkm_wr32(device, 0x70010, 0x00000001); in gf100_ltc_flush()
147 taken = nvkm_wait_msec(device, 2, 0x70010, 0x00000003, 0x00000000); in gf100_ltc_flush()
160 struct nvkm_ram *ram = ltc->subdev.device->fb->ram; in gf100_ltc_oneinit_tag_ram()
211 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_oneinit() local
212 const u32 parts = nvkm_rd32(device, 0x022438); in gf100_ltc_oneinit()
213 const u32 mask = nvkm_rd32(device, 0x022554); in gf100_ltc_oneinit()
214 const u32 slice = nvkm_rd32(device, 0x17e8dc) >> 28; in gf100_ltc_oneinit()
229 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_init() local
230 u32 lpg128 = !(nvkm_rd32(device, 0x100c80) & 0x00000001); in gf100_ltc_init()
232 nvkm_mask(device, 0x17e820, 0x00100000, 0x00000000); /* INTR_EN &= ~0x10 */ in gf100_ltc_init()
233 nvkm_wr32(device, 0x17e8d8, ltc->ltc_nr); in gf100_ltc_init()
234 nvkm_wr32(device, 0x17e8d4, ltc->tag_base); in gf100_ltc_init()
235 nvkm_mask(device, 0x17e8c0, 0x00000002, lpg128 ? 0x00000002 : 0x00000000); in gf100_ltc_init()
253 gf100_ltc_new(struct nvkm_device *device, int index, struct nvkm_ltc **pltc) in gf100_ltc_new() argument
255 return nvkm_ltc_new_(&gf100_ltc, device, index, pltc); in gf100_ltc_new()