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, 2000, 0x70004, 0x00000003, 0x00000000); in gf100_ltc_invalidate()
141 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_flush() local
144 nvkm_wr32(device, 0x70010, 0x00000001); in gf100_ltc_flush()
145 taken = nvkm_wait_msec(device, 2000, 0x70010, 0x00000003, 0x00000000); in gf100_ltc_flush()
156 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_oneinit_tag_ram() local
157 struct nvkm_fb *fb = device->fb; in gf100_ltc_oneinit_tag_ram()
159 u32 bits = (nvkm_rd32(device, 0x100c80) & 0x00001000) ? 16 : 17; in gf100_ltc_oneinit_tag_ram()
189 ret = nvkm_ram_get(device, NVKM_RAM_MM_NORMAL, 0x01, 12, tag_size, in gf100_ltc_oneinit_tag_ram()
210 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_oneinit() local
211 const u32 parts = nvkm_rd32(device, 0x022438); in gf100_ltc_oneinit()
212 const u32 mask = nvkm_rd32(device, 0x022554); in gf100_ltc_oneinit()
213 const u32 slice = nvkm_rd32(device, 0x17e8dc) >> 28; in gf100_ltc_oneinit()
228 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_init() local
229 u32 lpg128 = !(nvkm_rd32(device, 0x100c80) & 0x00000001); in gf100_ltc_init()
231 nvkm_mask(device, 0x17e820, 0x00100000, 0x00000000); /* INTR_EN &= ~0x10 */ in gf100_ltc_init()
232 nvkm_wr32(device, 0x17e8d8, ltc->ltc_nr); in gf100_ltc_init()
233 nvkm_wr32(device, 0x17e8d4, ltc->tag_base); in gf100_ltc_init()
234 nvkm_mask(device, 0x17e8c0, 0x00000002, lpg128 ? 0x00000002 : 0x00000000); in gf100_ltc_init()
253 gf100_ltc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in gf100_ltc_new() argument
256 return nvkm_ltc_new_(&gf100_ltc, device, type, inst, pltc); in gf100_ltc_new()