Lines Matching full:device
39 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hda_device_entry() local
42 nvkm_mask(device, 0x616548 + hoff, 0x00000070, head << 4); in gf119_sor_hda_device_entry()
48 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hda_eld() local
53 nvkm_wr32(device, 0x10ec00 + soff, (i << 8) | data[i]); in gf119_sor_hda_eld()
55 nvkm_wr32(device, 0x10ec00 + soff, (i << 8)); in gf119_sor_hda_eld()
56 nvkm_mask(device, 0x10ec10 + soff, 0x80000002, 0x80000002); in gf119_sor_hda_eld()
62 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hda_hpd() local
74 nvkm_mask(device, 0x10ec10 + soff, mask, data); in gf119_sor_hda_hpd()
87 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_watermark() local
90 nvkm_mask(device, 0x616610 + hoff, 0x0800003f, 0x08000000 | watermark); in gf119_sor_dp_watermark()
96 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_audio_sym() local
99 nvkm_mask(device, 0x616620 + hoff, 0x0000ffff, h); in gf119_sor_dp_audio_sym()
100 nvkm_mask(device, 0x616624 + hoff, 0x00ffffff, v); in gf119_sor_dp_audio_sym()
106 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_audio() local
111 nvkm_mask(device, 0x616618 + hoff, mask, data); in gf119_sor_dp_audio()
112 nvkm_msec(device, 2000, in gf119_sor_dp_audio()
113 if (!(nvkm_rd32(device, 0x616618 + hoff) & 0x80000000)) in gf119_sor_dp_audio()
121 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_vcpi() local
124 nvkm_mask(device, 0x616588 + hoff, 0x00003f3f, (slot_nr << 8) | slot); in gf119_sor_dp_vcpi()
125 nvkm_mask(device, 0x61658c + hoff, 0xffffffff, (aligned << 16) | pbn); in gf119_sor_dp_vcpi()
131 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_drive() local
136 data[0] = nvkm_rd32(device, 0x61c118 + loff) & ~(0x000000ff << shift); in gf119_sor_dp_drive()
137 data[1] = nvkm_rd32(device, 0x61c120 + loff) & ~(0x000000ff << shift); in gf119_sor_dp_drive()
138 data[2] = nvkm_rd32(device, 0x61c130 + loff); in gf119_sor_dp_drive()
142 nvkm_wr32(device, 0x61c118 + loff, data[0] | (dc << shift)); in gf119_sor_dp_drive()
143 nvkm_wr32(device, 0x61c120 + loff, data[1] | (pe << shift)); in gf119_sor_dp_drive()
144 nvkm_wr32(device, 0x61c130 + loff, data[2]); in gf119_sor_dp_drive()
146 data[3] = nvkm_rd32(device, 0x61c13c + loff) & ~(0x000000ff << shift); in gf119_sor_dp_drive()
147 nvkm_wr32(device, 0x61c13c + loff, data[3] | (pc << shift)); in gf119_sor_dp_drive()
153 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_pattern() local
167 nvkm_mask(device, 0x61c110 + soff, 0x1f1f1f1f, data); in gf119_sor_dp_pattern()
173 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_dp_links() local
186 nvkm_mask(device, 0x612300 + soff, 0x007c0000, clksor); in gf119_sor_dp_links()
187 nvkm_mask(device, 0x61c10c + loff, 0x401f4000, dpctrl); in gf119_sor_dp_links()
208 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hdmi_ctrl() local
220 nvkm_mask(device, 0x616798 + hoff, 0x40000000, 0x00000000); in gf119_sor_hdmi_ctrl()
221 nvkm_mask(device, 0x616730 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
222 nvkm_mask(device, 0x6167a4 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
223 nvkm_mask(device, 0x616714 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
228 nvkm_mask(device, 0x616714 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
230 nvkm_wr32(device, 0x61671c + hoff, avi_infoframe.header); in gf119_sor_hdmi_ctrl()
231 nvkm_wr32(device, 0x616720 + hoff, avi_infoframe.subpack0_low); in gf119_sor_hdmi_ctrl()
232 nvkm_wr32(device, 0x616724 + hoff, avi_infoframe.subpack0_high); in gf119_sor_hdmi_ctrl()
233 nvkm_wr32(device, 0x616728 + hoff, avi_infoframe.subpack1_low); in gf119_sor_hdmi_ctrl()
234 nvkm_wr32(device, 0x61672c + hoff, avi_infoframe.subpack1_high); in gf119_sor_hdmi_ctrl()
235 nvkm_mask(device, 0x616714 + hoff, 0x00000001, 0x00000001); in gf119_sor_hdmi_ctrl()
239 nvkm_mask(device, 0x616730 + hoff, 0x00010001, 0x00010000); in gf119_sor_hdmi_ctrl()
246 nvkm_wr32(device, 0x616738 + hoff, vendor_infoframe.header); in gf119_sor_hdmi_ctrl()
247 nvkm_wr32(device, 0x61673c + hoff, vendor_infoframe.subpack0_low); in gf119_sor_hdmi_ctrl()
248 nvkm_wr32(device, 0x616740 + hoff, vendor_infoframe.subpack0_high); in gf119_sor_hdmi_ctrl()
250 nvkm_mask(device, 0x616730 + hoff, 0x00000001, 0x00000001); in gf119_sor_hdmi_ctrl()
254 nvkm_mask(device, 0x6167a4 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
255 nvkm_wr32(device, 0x6167ac + hoff, 0x00000010); in gf119_sor_hdmi_ctrl()
256 nvkm_mask(device, 0x6167a4 + hoff, 0x00000001, 0x00000001); in gf119_sor_hdmi_ctrl()
259 nvkm_mask(device, 0x616798 + hoff, 0x401f007f, ctrl); in gf119_sor_hdmi_ctrl()
265 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_clock() local
272 nvkm_mask(device, 0x612300 + soff, 0x007c0000, speed << 18); in gf119_sor_clock()
277 nvkm_mask(device, 0x612300 + soff, 0x00000707, (div2 << 8) | div1); in gf119_sor_clock()
283 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_state() local
285 u32 ctrl = nvkm_rd32(device, 0x640200 + coff); in gf119_sor_state()
324 struct nvkm_device *device = disp->engine.subdev.device; in gf119_sor_cnt() local
325 *pmask = (nvkm_rd32(device, 0x612004) & 0x0000ff00) >> 8; in gf119_sor_cnt()
332 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_clock() local
334 nvkm_mask(device, 0x612280 + doff, 0x07070707, 0x00000000); in gf119_dac_clock()
340 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_state() local
342 u32 ctrl = nvkm_rd32(device, 0x640180 + coff); in gf119_dac_state()
372 struct nvkm_device *device = disp->engine.subdev.device; in gf119_dac_cnt() local
373 *pmask = (nvkm_rd32(device, 0x612004) & 0x000000f0) >> 4; in gf119_dac_cnt()
380 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_vblank_put() local
382 nvkm_mask(device, 0x6100c0 + hoff, 0x00000001, 0x00000000); in gf119_head_vblank_put()
388 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_vblank_get() local
390 nvkm_mask(device, 0x6100c0 + hoff, 0x00000001, 0x00000001); in gf119_head_vblank_get()
396 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_rgclk() local
397 nvkm_mask(device, 0x612200 + (head->id * 0x800), 0x0000000f, div); in gf119_head_rgclk()
403 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_state() local
407 data = nvkm_rd32(device, 0x640414 + hoff); in gf119_head_state()
410 data = nvkm_rd32(device, 0x640418 + hoff); in gf119_head_state()
413 data = nvkm_rd32(device, 0x64041c + hoff); in gf119_head_state()
416 data = nvkm_rd32(device, 0x640420 + hoff); in gf119_head_state()
419 state->hz = nvkm_rd32(device, 0x640450 + hoff); in gf119_head_state()
421 data = nvkm_rd32(device, 0x640404 + hoff); in gf119_head_state()
452 struct nvkm_device *device = disp->engine.subdev.device; in gf119_head_cnt() local
453 *pmask = nvkm_rd32(device, 0x612004) & 0x0000000f; in gf119_head_cnt()
454 return nvkm_rd32(device, 0x022448); in gf119_head_cnt()
461 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_chan_uevent_fini() local
462 nvkm_mask(device, 0x610090, 0x00000001 << index, 0x00000000 << index); in gf119_disp_chan_uevent_fini()
463 nvkm_wr32(device, 0x61008c, 0x00000001 << index); in gf119_disp_chan_uevent_fini()
470 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_chan_uevent_init() local
471 nvkm_wr32(device, 0x61008c, 0x00000001 << index); in gf119_disp_chan_uevent_init()
472 nvkm_mask(device, 0x610090, 0x00000001 << index, 0x00000001 << index); in gf119_disp_chan_uevent_init()
484 struct nvkm_device *device = chan->disp->engine.subdev.device; in gf119_disp_chan_intr() local
487 nvkm_mask(device, 0x610090, mask, 0x00000000); in gf119_disp_chan_intr()
488 nvkm_mask(device, 0x6100a0, mask, 0x00000000); in gf119_disp_chan_intr()
490 nvkm_mask(device, 0x6100a0, mask, mask); in gf119_disp_chan_intr()
499 struct nvkm_device *device = subdev->device; in gf119_disp_pioc_fini() local
503 nvkm_mask(device, 0x610490 + (ctrl * 0x10), 0x00000001, 0x00000000); in gf119_disp_pioc_fini()
504 if (nvkm_msec(device, 2000, in gf119_disp_pioc_fini()
505 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x00030000)) in gf119_disp_pioc_fini()
509 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_fini()
518 struct nvkm_device *device = subdev->device; in gf119_disp_pioc_init() local
523 nvkm_wr32(device, 0x610490 + (ctrl * 0x10), 0x00000001); in gf119_disp_pioc_init()
524 if (nvkm_msec(device, 2000, in gf119_disp_pioc_init()
525 u32 tmp = nvkm_rd32(device, 0x610490 + (ctrl * 0x10)); in gf119_disp_pioc_init()
530 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_init()
556 struct nvkm_device *device = subdev->device; in gf119_disp_dmac_fini() local
561 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00001010, 0x00001000); in gf119_disp_dmac_fini()
562 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000003, 0x00000000); in gf119_disp_dmac_fini()
563 if (nvkm_msec(device, 2000, in gf119_disp_dmac_fini()
564 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x001e0000)) in gf119_disp_dmac_fini()
568 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_dmac_fini()
571 chan->suspend_put = nvkm_rd32(device, 0x640000 + (ctrl * 0x1000)); in gf119_disp_dmac_fini()
578 struct nvkm_device *device = subdev->device; in gf119_disp_dmac_init() local
583 nvkm_wr32(device, 0x610494 + (ctrl * 0x0010), chan->push); in gf119_disp_dmac_init()
584 nvkm_wr32(device, 0x610498 + (ctrl * 0x0010), 0x00010000); in gf119_disp_dmac_init()
585 nvkm_wr32(device, 0x61049c + (ctrl * 0x0010), 0x00000001); in gf119_disp_dmac_init()
586 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000010, 0x00000010); in gf119_disp_dmac_init()
587 nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), chan->suspend_put); in gf119_disp_dmac_init()
588 nvkm_wr32(device, 0x610490 + (ctrl * 0x0010), 0x00000013); in gf119_disp_dmac_init()
591 if (nvkm_msec(device, 2000, in gf119_disp_dmac_init()
592 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x80000000)) in gf119_disp_dmac_init()
596 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_dmac_init()
927 struct nvkm_device *device = subdev->device; in gf119_disp_core_fini() local
930 nvkm_mask(device, 0x610490, 0x00000010, 0x00000000); in gf119_disp_core_fini()
931 nvkm_mask(device, 0x610490, 0x00000003, 0x00000000); in gf119_disp_core_fini()
932 if (nvkm_msec(device, 2000, in gf119_disp_core_fini()
933 if (!(nvkm_rd32(device, 0x610490) & 0x001e0000)) in gf119_disp_core_fini()
937 nvkm_rd32(device, 0x610490)); in gf119_disp_core_fini()
940 chan->suspend_put = nvkm_rd32(device, 0x640000); in gf119_disp_core_fini()
947 struct nvkm_device *device = subdev->device; in gf119_disp_core_init() local
950 nvkm_wr32(device, 0x610494, chan->push); in gf119_disp_core_init()
951 nvkm_wr32(device, 0x610498, 0x00010000); in gf119_disp_core_init()
952 nvkm_wr32(device, 0x61049c, 0x00000001); in gf119_disp_core_init()
953 nvkm_mask(device, 0x610490, 0x00000010, 0x00000010); in gf119_disp_core_init()
954 nvkm_wr32(device, 0x640000, chan->suspend_put); in gf119_disp_core_init()
955 nvkm_wr32(device, 0x610490, 0x01000013); in gf119_disp_core_init()
958 if (nvkm_msec(device, 2000, in gf119_disp_core_init()
959 if (!(nvkm_rd32(device, 0x610490) & 0x80000000)) in gf119_disp_core_init()
963 nvkm_rd32(device, 0x610490)); in gf119_disp_core_init()
993 struct nvkm_device *device = subdev->device; in gf119_disp_super() local
1001 mask[head->id] = nvkm_rd32(device, 0x6101d4 + (head->id * 0x800)); in gf119_disp_super()
1041 nvkm_wr32(device, 0x6101d4 + (head->id * 0x800), 0x00000000); in gf119_disp_super()
1043 nvkm_wr32(device, 0x6101d0, 0x80000000); in gf119_disp_super()
1051 struct nvkm_device *device = subdev->device; in gf119_disp_intr_error() local
1052 u32 stat = nvkm_rd32(device, 0x6101f0 + (chid * 12)); in gf119_disp_intr_error()
1055 u32 data = nvkm_rd32(device, 0x6101f4 + (chid * 12)); in gf119_disp_intr_error()
1056 u32 code = nvkm_rd32(device, 0x6101f8 + (chid * 12)); in gf119_disp_intr_error()
1075 nvkm_wr32(device, 0x61009c, (1 << chid)); in gf119_disp_intr_error()
1076 nvkm_wr32(device, 0x6101f0 + (chid * 12), 0x90000000); in gf119_disp_intr_error()
1083 struct nvkm_device *device = subdev->device; in gf119_disp_intr() local
1085 u32 intr = nvkm_rd32(device, 0x610088); in gf119_disp_intr()
1088 u32 stat = nvkm_rd32(device, 0x61008c); in gf119_disp_intr()
1092 nvkm_wr32(device, 0x61008c, 1 << chid); in gf119_disp_intr()
1098 u32 stat = nvkm_rd32(device, 0x61009c); in gf119_disp_intr()
1106 u32 stat = nvkm_rd32(device, 0x6100ac); in gf119_disp_intr()
1110 nvkm_wr32(device, 0x6100ac, disp->super.pending); in gf119_disp_intr()
1116 nvkm_wr32(device, 0x6100ac, stat); in gf119_disp_intr()
1126 u32 stat = nvkm_rd32(device, 0x6100bc + hoff); in gf119_disp_intr()
1129 nvkm_mask(device, 0x6100bc + hoff, 0, 0); in gf119_disp_intr()
1130 nvkm_rd32(device, 0x6100c0 + hoff); in gf119_disp_intr()
1138 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_fini() local
1140 nvkm_wr32(device, 0x6100b0, 0x00000000); in gf119_disp_fini()
1146 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_init() local
1159 tmp = nvkm_rd32(device, 0x616104 + hoff); in gf119_disp_init()
1160 nvkm_wr32(device, 0x6101b4 + hoff, tmp); in gf119_disp_init()
1161 tmp = nvkm_rd32(device, 0x616108 + hoff); in gf119_disp_init()
1162 nvkm_wr32(device, 0x6101b8 + hoff, tmp); in gf119_disp_init()
1163 tmp = nvkm_rd32(device, 0x61610c + hoff); in gf119_disp_init()
1164 nvkm_wr32(device, 0x6101bc + hoff, tmp); in gf119_disp_init()
1169 tmp = nvkm_rd32(device, 0x61a000 + (i * 0x800)); in gf119_disp_init()
1170 nvkm_wr32(device, 0x6101c0 + (i * 0x800), tmp); in gf119_disp_init()
1175 tmp = nvkm_rd32(device, 0x61c000 + (i * 0x800)); in gf119_disp_init()
1176 nvkm_wr32(device, 0x6301c4 + (i * 0x800), tmp); in gf119_disp_init()
1180 if (nvkm_rd32(device, 0x6100ac) & 0x00000100) { in gf119_disp_init()
1181 nvkm_wr32(device, 0x6100ac, 0x00000100); in gf119_disp_init()
1182 nvkm_mask(device, 0x6194e8, 0x00000001, 0x00000000); in gf119_disp_init()
1183 if (nvkm_msec(device, 2000, in gf119_disp_init()
1184 if (!(nvkm_rd32(device, 0x6194e8) & 0x00000002)) in gf119_disp_init()
1191 nvkm_wr32(device, 0x610010, (disp->inst->addr >> 8) | 9); in gf119_disp_init()
1194 nvkm_wr32(device, 0x610090, 0x00000000); in gf119_disp_init()
1195 nvkm_wr32(device, 0x6100a0, 0x00000000); in gf119_disp_init()
1196 nvkm_wr32(device, 0x6100b0, 0x00000307); in gf119_disp_init()
1206 nvkm_mask(device, 0x616308 + hoff, 0x00000111, 0x00000010); in gf119_disp_init()
1236 gf119_disp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in gf119_disp_new() argument
1239 return nvkm_disp_new_(&gf119_disp, device, type, inst, pdisp); in gf119_disp_new()