Lines Matching refs:device
32 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_clear() local
33 nvkm_wr32(device, 0x17e270, start); in gm107_ltc_cbc_clear()
34 nvkm_wr32(device, 0x17e274, limit); in gm107_ltc_cbc_clear()
35 nvkm_wr32(device, 0x17e26c, 0x00000004); in gm107_ltc_cbc_clear()
41 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_wait() local
46 nvkm_msec(device, 2000, in gm107_ltc_cbc_wait()
47 if (!nvkm_rd32(device, addr)) in gm107_ltc_cbc_wait()
57 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_color() local
58 nvkm_mask(device, 0x17e338, 0x0000000f, i); in gm107_ltc_zbc_clear_color()
59 nvkm_wr32(device, 0x17e33c, color[0]); in gm107_ltc_zbc_clear_color()
60 nvkm_wr32(device, 0x17e340, color[1]); in gm107_ltc_zbc_clear_color()
61 nvkm_wr32(device, 0x17e344, color[2]); in gm107_ltc_zbc_clear_color()
62 nvkm_wr32(device, 0x17e348, color[3]); in gm107_ltc_zbc_clear_color()
68 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_depth() local
69 nvkm_mask(device, 0x17e338, 0x0000000f, i); in gm107_ltc_zbc_clear_depth()
70 nvkm_wr32(device, 0x17e34c, depth); in gm107_ltc_zbc_clear_depth()
77 struct nvkm_device *device = subdev->device; in gm107_ltc_lts_isr() local
79 u32 stat = nvkm_rd32(device, base + 0x00c); in gm107_ltc_lts_isr()
83 nvkm_wr32(device, base + 0x00c, stat); in gm107_ltc_lts_isr()
90 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_intr() local
93 mask = nvkm_rd32(device, 0x00017c); in gm107_ltc_intr()
105 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_oneinit() local
106 const u32 parts = nvkm_rd32(device, 0x022438); in gm107_ltc_oneinit()
107 const u32 mask = nvkm_rd32(device, 0x021c14); in gm107_ltc_oneinit()
108 const u32 slice = nvkm_rd32(device, 0x17e280) >> 28; in gm107_ltc_oneinit()
123 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_init() local
124 u32 lpg128 = !(nvkm_rd32(device, 0x100c80) & 0x00000001); in gm107_ltc_init()
126 nvkm_wr32(device, 0x17e27c, ltc->ltc_nr); in gm107_ltc_init()
127 nvkm_wr32(device, 0x17e278, ltc->tag_base); in gm107_ltc_init()
128 nvkm_mask(device, 0x17e264, 0x00000002, lpg128 ? 0x00000002 : 0x00000000); in gm107_ltc_init()
146 gm107_ltc_new(struct nvkm_device *device, int index, struct nvkm_ltc **pltc) in gm107_ltc_new() argument
148 return nvkm_ltc_new_(&gm107_ltc, device, index, pltc); in gm107_ltc_new()