Lines Matching +full:0 +full:x000300
40 const u32 hoff = 0x800 * head; in gf119_sor_hda_device_entry()
42 nvkm_mask(device, 0x616548 + hoff, 0x00000070, head << 4); in gf119_sor_hda_device_entry()
49 const u32 soff = 0x030 * ior->id + (head * 0x04); in gf119_sor_hda_eld()
52 for (i = 0; i < size; i++) in gf119_sor_hda_eld()
53 nvkm_wr32(device, 0x10ec00 + soff, (i << 8) | data[i]); in gf119_sor_hda_eld()
54 for (; i < 0x60; 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()
63 const u32 soff = 0x030 * ior->id + (head * 0x04); in gf119_sor_hda_hpd()
64 u32 data = 0x80000000; in gf119_sor_hda_hpd()
65 u32 mask = 0x80000001; in gf119_sor_hda_hpd()
69 data |= 0x00000001; in gf119_sor_hda_hpd()
71 mask |= 0x00000002; in gf119_sor_hda_hpd()
74 nvkm_mask(device, 0x10ec10 + soff, mask, data); in gf119_sor_hda_hpd()
88 const u32 hoff = head * 0x800; in gf119_sor_dp_watermark()
90 nvkm_mask(device, 0x616610 + hoff, 0x0800003f, 0x08000000 | watermark); in gf119_sor_dp_watermark()
97 const u32 hoff = head * 0x800; in gf119_sor_dp_audio_sym()
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()
107 const u32 hoff = 0x800 * head; in gf119_sor_dp_audio()
108 const u32 data = 0x80000000 | (0x00000001 * enable); in gf119_sor_dp_audio()
109 const u32 mask = 0x8000000d; in gf119_sor_dp_audio()
111 nvkm_mask(device, 0x616618 + hoff, mask, data); in gf119_sor_dp_audio()
113 if (!(nvkm_rd32(device, 0x616618 + hoff) & 0x80000000)) in gf119_sor_dp_audio()
122 const u32 hoff = head * 0x800; in gf119_sor_dp_vcpi()
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()
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()
139 if ((data[2] & 0x0000ff00) < (pu << 8) || ln == 0) in gf119_sor_dp_drive()
140 data[2] = (data[2] & ~0x0000ff00) | (pu << 8); 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()
158 case 0: data = 0x10101010; break; in gf119_sor_dp_pattern()
159 case 1: data = 0x01010101; break; in gf119_sor_dp_pattern()
160 case 2: data = 0x02020202; break; in gf119_sor_dp_pattern()
161 case 3: data = 0x03030303; break; in gf119_sor_dp_pattern()
167 nvkm_mask(device, 0x61c110 + soff, 0x1f1f1f1f, data); in gf119_sor_dp_pattern()
176 u32 dpctrl = 0x00000000; in gf119_sor_dp_links()
177 u32 clksor = 0x00000000; in gf119_sor_dp_links()
182 dpctrl |= 0x40000000; in gf119_sor_dp_links()
184 dpctrl |= 0x00004000; in gf119_sor_dp_links()
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()
188 return 0; in gf119_sor_dp_links()
193 .lanes = { 2, 1, 0, 3 },
209 const u32 hoff = head * 0x800; in gf119_sor_hdmi_infoframe_vsi()
213 nvkm_mask(device, 0x616730 + hoff, 0x00010001, 0x00010000); in gf119_sor_hdmi_infoframe_vsi()
222 nvkm_wr32(device, 0x616738 + hoff, vsi.header); in gf119_sor_hdmi_infoframe_vsi()
223 nvkm_wr32(device, 0x61673c + hoff, vsi.subpack0_low); in gf119_sor_hdmi_infoframe_vsi()
224 nvkm_wr32(device, 0x616740 + hoff, vsi.subpack0_high); in gf119_sor_hdmi_infoframe_vsi()
227 nvkm_mask(device, 0x616730 + hoff, 0x00000001, 0x00000001); in gf119_sor_hdmi_infoframe_vsi()
235 const u32 hoff = head * 0x800; in gf119_sor_hdmi_infoframe_avi()
239 nvkm_mask(device, 0x616714 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_infoframe_avi()
243 nvkm_wr32(device, 0x61671c + hoff, avi.header); in gf119_sor_hdmi_infoframe_avi()
244 nvkm_wr32(device, 0x616720 + hoff, avi.subpack0_low); in gf119_sor_hdmi_infoframe_avi()
245 nvkm_wr32(device, 0x616724 + hoff, avi.subpack0_high); in gf119_sor_hdmi_infoframe_avi()
246 nvkm_wr32(device, 0x616728 + hoff, avi.subpack1_low); in gf119_sor_hdmi_infoframe_avi()
247 nvkm_wr32(device, 0x61672c + hoff, avi.subpack1_high); in gf119_sor_hdmi_infoframe_avi()
249 nvkm_mask(device, 0x616714 + hoff, 0x00000001, 0x00000001); in gf119_sor_hdmi_infoframe_avi()
256 const u32 ctrl = 0x40000000 * enable | in gf119_sor_hdmi_ctrl()
259 const u32 hoff = head * 0x800; in gf119_sor_hdmi_ctrl()
261 if (!(ctrl & 0x40000000)) { in gf119_sor_hdmi_ctrl()
262 nvkm_mask(device, 0x616798 + hoff, 0x40000000, 0x00000000); in gf119_sor_hdmi_ctrl()
263 nvkm_mask(device, 0x616730 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
264 nvkm_mask(device, 0x6167a4 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
265 nvkm_mask(device, 0x616714 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
270 nvkm_mask(device, 0x6167a4 + hoff, 0x00000001, 0x00000000); in gf119_sor_hdmi_ctrl()
271 nvkm_wr32(device, 0x6167ac + hoff, 0x00000010); in gf119_sor_hdmi_ctrl()
272 nvkm_mask(device, 0x6167a4 + hoff, 0x00000001, 0x00000001); in gf119_sor_hdmi_ctrl()
275 nvkm_mask(device, 0x616798 + hoff, 0x401f007f, ctrl); in gf119_sor_hdmi_ctrl()
294 const u32 speed = sor->tmds.high_speed ? 0x14 : 0x0a; in gf119_sor_clock()
295 nvkm_mask(device, 0x612300 + soff, 0x007c0000, speed << 18); in gf119_sor_clock()
300 nvkm_mask(device, 0x612300 + soff, 0x00000707, (div2 << 8) | div1); in gf119_sor_clock()
307 const u32 coff = (state == &sor->asy) * 0x20000 + sor->id * 0x20; in gf119_sor_state()
308 u32 ctrl = nvkm_rd32(device, 0x640200 + coff); in gf119_sor_state()
310 state->proto_evo = (ctrl & 0x00000f00) >> 8; in gf119_sor_state()
312 case 0: state->proto = LVDS; state->link = 1; break; in gf119_sor_state()
323 state->head = ctrl & 0x0000000f; in gf119_sor_state()
347 *pmask = (nvkm_rd32(device, 0x612004) & 0x0000ff00) >> 8; in gf119_sor_cnt()
356 nvkm_mask(device, 0x612280 + doff, 0x07070707, 0x00000000); in gf119_dac_clock()
363 const u32 coff = (state == &dac->asy) * 0x20000 + dac->id * 0x20; in gf119_dac_state()
364 u32 ctrl = nvkm_rd32(device, 0x640180 + coff); in gf119_dac_state()
366 state->proto_evo = (ctrl & 0x00000f00) >> 8; in gf119_dac_state()
368 case 0: state->proto = CRT; break; in gf119_dac_state()
374 state->head = ctrl & 0x0000000f; in gf119_dac_state()
395 *pmask = (nvkm_rd32(device, 0x612004) & 0x000000f0) >> 4; in gf119_dac_cnt()
403 const u32 hoff = head->id * 0x800; in gf119_head_vblank_put()
404 nvkm_mask(device, 0x6100c0 + hoff, 0x00000001, 0x00000000); in gf119_head_vblank_put()
411 const u32 hoff = head->id * 0x800; in gf119_head_vblank_get()
412 nvkm_mask(device, 0x6100c0 + hoff, 0x00000001, 0x00000001); in gf119_head_vblank_get()
419 nvkm_mask(device, 0x612200 + (head->id * 0x800), 0x0000000f, div); in gf119_head_rgclk()
426 const u32 hoff = (state == &head->asy) * 0x20000 + head->id * 0x300; in gf119_head_state()
429 data = nvkm_rd32(device, 0x640414 + hoff); in gf119_head_state()
430 state->vtotal = (data & 0xffff0000) >> 16; in gf119_head_state()
431 state->htotal = (data & 0x0000ffff); in gf119_head_state()
432 data = nvkm_rd32(device, 0x640418 + hoff); in gf119_head_state()
433 state->vsynce = (data & 0xffff0000) >> 16; in gf119_head_state()
434 state->hsynce = (data & 0x0000ffff); in gf119_head_state()
435 data = nvkm_rd32(device, 0x64041c + hoff); in gf119_head_state()
436 state->vblanke = (data & 0xffff0000) >> 16; in gf119_head_state()
437 state->hblanke = (data & 0x0000ffff); in gf119_head_state()
438 data = nvkm_rd32(device, 0x640420 + hoff); in gf119_head_state()
439 state->vblanks = (data & 0xffff0000) >> 16; in gf119_head_state()
440 state->hblanks = (data & 0x0000ffff); in gf119_head_state()
441 state->hz = nvkm_rd32(device, 0x640450 + hoff); in gf119_head_state()
443 data = nvkm_rd32(device, 0x640404 + hoff); in gf119_head_state()
444 switch ((data & 0x000003c0) >> 6) { in gf119_head_state()
448 case 0: state->or.depth = 18; break; /*XXX: "default" */ in gf119_head_state()
475 *pmask = nvkm_rd32(device, 0x612004) & 0x0000000f; in gf119_head_cnt()
476 return nvkm_rd32(device, 0x022448); in gf119_head_cnt()
484 nvkm_mask(device, 0x610090, 0x00000001 << index, 0x00000000 << index); in gf119_disp_chan_uevent_fini()
485 nvkm_wr32(device, 0x61008c, 0x00000001 << index); in gf119_disp_chan_uevent_fini()
493 nvkm_wr32(device, 0x61008c, 0x00000001 << index); in gf119_disp_chan_uevent_init()
494 nvkm_mask(device, 0x610090, 0x00000001 << index, 0x00000001 << index); in gf119_disp_chan_uevent_init()
507 const u32 mask = 0x00000001 << chan->chid.user; in gf119_disp_chan_intr()
509 nvkm_mask(device, 0x610090, mask, 0x00000000); in gf119_disp_chan_intr()
510 nvkm_mask(device, 0x6100a0, mask, 0x00000000); in gf119_disp_chan_intr()
512 nvkm_mask(device, 0x6100a0, mask, mask); in gf119_disp_chan_intr()
525 nvkm_mask(device, 0x610490 + (ctrl * 0x10), 0x00000001, 0x00000000); in gf119_disp_pioc_fini()
527 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x00030000)) in gf119_disp_pioc_fini()
529 ) < 0) { in gf119_disp_pioc_fini()
531 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_fini()
545 nvkm_wr32(device, 0x610490 + (ctrl * 0x10), 0x00000001); in gf119_disp_pioc_init()
547 u32 tmp = nvkm_rd32(device, 0x610490 + (ctrl * 0x10)); in gf119_disp_pioc_init()
548 if ((tmp & 0x00030000) == 0x00010000) in gf119_disp_pioc_init()
550 ) < 0) { in gf119_disp_pioc_init()
552 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_init()
556 return 0; in gf119_disp_pioc_init()
571 chan->chid.user << 27 | 0x00000001); in gf119_disp_dmac_bind()
583 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00001010, 0x00001000); in gf119_disp_dmac_fini()
584 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000003, 0x00000000); in gf119_disp_dmac_fini()
586 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x001e0000)) in gf119_disp_dmac_fini()
588 ) < 0) { in gf119_disp_dmac_fini()
590 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_dmac_fini()
593 chan->suspend_put = nvkm_rd32(device, 0x640000 + (ctrl * 0x1000)); in gf119_disp_dmac_fini()
605 nvkm_wr32(device, 0x610494 + (ctrl * 0x0010), chan->push); in gf119_disp_dmac_init()
606 nvkm_wr32(device, 0x610498 + (ctrl * 0x0010), 0x00010000); in gf119_disp_dmac_init()
607 nvkm_wr32(device, 0x61049c + (ctrl * 0x0010), 0x00000001); in gf119_disp_dmac_init()
608 nvkm_mask(device, 0x610490 + (ctrl * 0x0010), 0x00000010, 0x00000010); in gf119_disp_dmac_init()
609 nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), chan->suspend_put); in gf119_disp_dmac_init()
610 nvkm_wr32(device, 0x610490 + (ctrl * 0x0010), 0x00000013); in gf119_disp_dmac_init()
614 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x80000000)) in gf119_disp_dmac_init()
616 ) < 0) { in gf119_disp_dmac_init()
618 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_dmac_init()
622 return 0; in gf119_disp_dmac_init()
651 .mthd = 0x0000,
653 { 0x0080, 0x665080 },
654 { 0x0084, 0x665084 },
655 { 0x0088, 0x665088 },
656 { 0x008c, 0x66508c },
657 { 0x0090, 0x665090 },
658 { 0x0094, 0x665094 },
659 { 0x00a0, 0x6650a0 },
660 { 0x00a4, 0x6650a4 },
661 { 0x00b0, 0x6650b0 },
662 { 0x00b4, 0x6650b4 },
663 { 0x00b8, 0x6650b8 },
664 { 0x00c0, 0x6650c0 },
665 { 0x00e0, 0x6650e0 },
666 { 0x00e4, 0x6650e4 },
667 { 0x00e8, 0x6650e8 },
668 { 0x0100, 0x665100 },
669 { 0x0104, 0x665104 },
670 { 0x0108, 0x665108 },
671 { 0x010c, 0x66510c },
672 { 0x0110, 0x665110 },
673 { 0x0118, 0x665118 },
674 { 0x011c, 0x66511c },
675 { 0x0120, 0x665120 },
676 { 0x0124, 0x665124 },
677 { 0x0130, 0x665130 },
678 { 0x0134, 0x665134 },
679 { 0x0138, 0x665138 },
680 { 0x013c, 0x66513c },
681 { 0x0140, 0x665140 },
682 { 0x0144, 0x665144 },
683 { 0x0148, 0x665148 },
684 { 0x014c, 0x66514c },
685 { 0x0150, 0x665150 },
686 { 0x0154, 0x665154 },
687 { 0x0158, 0x665158 },
688 { 0x015c, 0x66515c },
689 { 0x0160, 0x665160 },
690 { 0x0164, 0x665164 },
691 { 0x0168, 0x665168 },
692 { 0x016c, 0x66516c },
693 { 0x0400, 0x665400 },
694 { 0x0408, 0x665408 },
695 { 0x040c, 0x66540c },
696 { 0x0410, 0x665410 },
704 .addr = 0x001000,
705 .prev = -0x020000,
722 .mthd = 0x0000,
723 .addr = 0x000000,
725 { 0x0080, 0x661080 },
726 { 0x0084, 0x661084 },
727 { 0x0088, 0x661088 },
728 { 0x008c, 0x66108c },
729 { 0x0090, 0x661090 },
730 { 0x0094, 0x661094 },
731 { 0x00a0, 0x6610a0 },
732 { 0x00a4, 0x6610a4 },
733 { 0x00c0, 0x6610c0 },
734 { 0x00c4, 0x6610c4 },
735 { 0x00c8, 0x6610c8 },
736 { 0x00cc, 0x6610cc },
737 { 0x00e0, 0x6610e0 },
738 { 0x00e4, 0x6610e4 },
739 { 0x00e8, 0x6610e8 },
740 { 0x00ec, 0x6610ec },
741 { 0x00fc, 0x6610fc },
742 { 0x0100, 0x661100 },
743 { 0x0104, 0x661104 },
744 { 0x0108, 0x661108 },
745 { 0x010c, 0x66110c },
746 { 0x0110, 0x661110 },
747 { 0x0114, 0x661114 },
748 { 0x0118, 0x661118 },
749 { 0x011c, 0x66111c },
750 { 0x0130, 0x661130 },
751 { 0x0134, 0x661134 },
752 { 0x0138, 0x661138 },
753 { 0x013c, 0x66113c },
754 { 0x0140, 0x661140 },
755 { 0x0144, 0x661144 },
756 { 0x0148, 0x661148 },
757 { 0x014c, 0x66114c },
758 { 0x0150, 0x661150 },
759 { 0x0154, 0x661154 },
760 { 0x0158, 0x661158 },
761 { 0x015c, 0x66115c },
762 { 0x0160, 0x661160 },
763 { 0x0164, 0x661164 },
764 { 0x0168, 0x661168 },
765 { 0x016c, 0x66116c },
772 .mthd = 0x0020,
773 .addr = 0x000020,
775 { 0x0400, 0x661400 },
776 { 0x0404, 0x661404 },
777 { 0x0408, 0x661408 },
778 { 0x040c, 0x66140c },
779 { 0x0410, 0x661410 },
787 .addr = 0x001000,
788 .prev = -0x020000,
806 .mthd = 0x0000,
807 .addr = 0x000000,
809 { 0x0080, 0x660080 },
810 { 0x0084, 0x660084 },
811 { 0x0088, 0x660088 },
812 { 0x008c, 0x000000 },
819 .mthd = 0x0020,
820 .addr = 0x000020,
822 { 0x0180, 0x660180 },
823 { 0x0184, 0x660184 },
824 { 0x0188, 0x660188 },
825 { 0x0190, 0x660190 },
832 .mthd = 0x0020,
833 .addr = 0x000020,
835 { 0x0200, 0x660200 },
836 { 0x0204, 0x660204 },
837 { 0x0208, 0x660208 },
838 { 0x0210, 0x660210 },
845 .mthd = 0x0020,
846 .addr = 0x000020,
848 { 0x0300, 0x660300 },
849 { 0x0304, 0x660304 },
850 { 0x0308, 0x660308 },
851 { 0x0310, 0x660310 },
858 .mthd = 0x0300,
859 .addr = 0x000300,
861 { 0x0400, 0x660400 },
862 { 0x0404, 0x660404 },
863 { 0x0408, 0x660408 },
864 { 0x040c, 0x66040c },
865 { 0x0410, 0x660410 },
866 { 0x0414, 0x660414 },
867 { 0x0418, 0x660418 },
868 { 0x041c, 0x66041c },
869 { 0x0420, 0x660420 },
870 { 0x0424, 0x660424 },
871 { 0x0428, 0x660428 },
872 { 0x042c, 0x66042c },
873 { 0x0430, 0x660430 },
874 { 0x0434, 0x660434 },
875 { 0x0438, 0x660438 },
876 { 0x0440, 0x660440 },
877 { 0x0444, 0x660444 },
878 { 0x0448, 0x660448 },
879 { 0x044c, 0x66044c },
880 { 0x0450, 0x660450 },
881 { 0x0454, 0x660454 },
882 { 0x0458, 0x660458 },
883 { 0x045c, 0x66045c },
884 { 0x0460, 0x660460 },
885 { 0x0468, 0x660468 },
886 { 0x046c, 0x66046c },
887 { 0x0470, 0x660470 },
888 { 0x0474, 0x660474 },
889 { 0x0480, 0x660480 },
890 { 0x0484, 0x660484 },
891 { 0x048c, 0x66048c },
892 { 0x0490, 0x660490 },
893 { 0x0494, 0x660494 },
894 { 0x0498, 0x660498 },
895 { 0x04b0, 0x6604b0 },
896 { 0x04b8, 0x6604b8 },
897 { 0x04bc, 0x6604bc },
898 { 0x04c0, 0x6604c0 },
899 { 0x04c4, 0x6604c4 },
900 { 0x04c8, 0x6604c8 },
901 { 0x04d0, 0x6604d0 },
902 { 0x04d4, 0x6604d4 },
903 { 0x04e0, 0x6604e0 },
904 { 0x04e4, 0x6604e4 },
905 { 0x04e8, 0x6604e8 },
906 { 0x04ec, 0x6604ec },
907 { 0x04f0, 0x6604f0 },
908 { 0x04f4, 0x6604f4 },
909 { 0x04f8, 0x6604f8 },
910 { 0x04fc, 0x6604fc },
911 { 0x0500, 0x660500 },
912 { 0x0504, 0x660504 },
913 { 0x0508, 0x660508 },
914 { 0x050c, 0x66050c },
915 { 0x0510, 0x660510 },
916 { 0x0514, 0x660514 },
917 { 0x0518, 0x660518 },
918 { 0x051c, 0x66051c },
919 { 0x052c, 0x66052c },
920 { 0x0530, 0x660530 },
921 { 0x054c, 0x66054c },
922 { 0x0550, 0x660550 },
923 { 0x0554, 0x660554 },
924 { 0x0558, 0x660558 },
925 { 0x055c, 0x66055c },
933 .addr = 0x000000,
934 .prev = -0x020000,
952 nvkm_mask(device, 0x610490, 0x00000010, 0x00000000); in gf119_disp_core_fini()
953 nvkm_mask(device, 0x610490, 0x00000003, 0x00000000); in gf119_disp_core_fini()
955 if (!(nvkm_rd32(device, 0x610490) & 0x001e0000)) in gf119_disp_core_fini()
957 ) < 0) { in gf119_disp_core_fini()
959 nvkm_rd32(device, 0x610490)); in gf119_disp_core_fini()
962 chan->suspend_put = nvkm_rd32(device, 0x640000); in gf119_disp_core_fini()
972 nvkm_wr32(device, 0x610494, chan->push); in gf119_disp_core_init()
973 nvkm_wr32(device, 0x610498, 0x00010000); in gf119_disp_core_init()
974 nvkm_wr32(device, 0x61049c, 0x00000001); in gf119_disp_core_init()
975 nvkm_mask(device, 0x610490, 0x00000010, 0x00000010); in gf119_disp_core_init()
976 nvkm_wr32(device, 0x640000, chan->suspend_put); in gf119_disp_core_init()
977 nvkm_wr32(device, 0x610490, 0x01000013); in gf119_disp_core_init()
981 if (!(nvkm_rd32(device, 0x610490) & 0x80000000)) in gf119_disp_core_init()
983 ) < 0) { in gf119_disp_core_init()
985 nvkm_rd32(device, 0x610490)); in gf119_disp_core_init()
989 return 0; in gf119_disp_core_init()
1005 .ctrl = 0,
1006 .user = 0,
1023 mask[head->id] = nvkm_rd32(device, 0x6101d4 + (head->id * 0x800)); in gf119_disp_super()
1027 if (disp->super.pending & 0x00000001) { in gf119_disp_super()
1028 nv50_disp_chan_mthd(disp->chan[0], NV_DBG_DEBUG); in gf119_disp_super()
1031 if (!(mask[head->id] & 0x00001000)) in gf119_disp_super()
1036 if (disp->super.pending & 0x00000002) { in gf119_disp_super()
1038 if (!(mask[head->id] & 0x00001000)) in gf119_disp_super()
1043 if (!(mask[head->id] & 0x00010000)) in gf119_disp_super()
1048 if (!(mask[head->id] & 0x00001000)) in gf119_disp_super()
1053 if (disp->super.pending & 0x00000004) { in gf119_disp_super()
1055 if (!(mask[head->id] & 0x00001000)) in gf119_disp_super()
1062 nvkm_wr32(device, 0x6101d4 + (head->id * 0x800), 0x00000000); in gf119_disp_super()
1064 nvkm_wr32(device, 0x6101d0, 0x80000000); in gf119_disp_super()
1073 u32 stat = nvkm_rd32(device, 0x6101f0 + (chid * 12)); in gf119_disp_intr_error()
1074 u32 type = (stat & 0x00007000) >> 12; in gf119_disp_intr_error()
1075 u32 mthd = (stat & 0x00000ffc); in gf119_disp_intr_error()
1076 u32 data = nvkm_rd32(device, 0x6101f4 + (chid * 12)); in gf119_disp_intr_error()
1077 u32 code = nvkm_rd32(device, 0x6101f8 + (chid * 12)); in gf119_disp_intr_error()
1088 case 0x0080: in gf119_disp_intr_error()
1096 nvkm_wr32(device, 0x61009c, (1 << chid)); in gf119_disp_intr_error()
1097 nvkm_wr32(device, 0x6101f0 + (chid * 12), 0x90000000); in gf119_disp_intr_error()
1106 u32 intr = nvkm_rd32(device, 0x610088); in gf119_disp_intr()
1108 if (intr & 0x00000001) { in gf119_disp_intr()
1109 u32 stat = nvkm_rd32(device, 0x61008c); in gf119_disp_intr()
1113 nvkm_wr32(device, 0x61008c, 1 << chid); in gf119_disp_intr()
1115 intr &= ~0x00000001; in gf119_disp_intr()
1118 if (intr & 0x00000002) { in gf119_disp_intr()
1119 u32 stat = nvkm_rd32(device, 0x61009c); in gf119_disp_intr()
1121 if (chid >= 0) in gf119_disp_intr()
1123 intr &= ~0x00000002; in gf119_disp_intr()
1126 if (intr & 0x00100000) { in gf119_disp_intr()
1127 u32 stat = nvkm_rd32(device, 0x6100ac); in gf119_disp_intr()
1128 if (stat & 0x00000007) { in gf119_disp_intr()
1129 disp->super.pending = (stat & 0x00000007); in gf119_disp_intr()
1131 nvkm_wr32(device, 0x6100ac, disp->super.pending); in gf119_disp_intr()
1132 stat &= ~0x00000007; in gf119_disp_intr()
1137 nvkm_wr32(device, 0x6100ac, stat); in gf119_disp_intr()
1140 intr &= ~0x00100000; in gf119_disp_intr()
1144 const u32 hoff = head->id * 0x800; in gf119_disp_intr()
1145 u32 mask = 0x01000000 << head->id; in gf119_disp_intr()
1147 u32 stat = nvkm_rd32(device, 0x6100bc + hoff); in gf119_disp_intr()
1148 if (stat & 0x00000001) in gf119_disp_intr()
1150 nvkm_mask(device, 0x6100bc + hoff, 0, 0); in gf119_disp_intr()
1151 nvkm_rd32(device, 0x6100c0 + hoff); in gf119_disp_intr()
1161 nvkm_wr32(device, 0x6100b0, 0x00000000); in gf119_disp_fini()
1179 const u32 hoff = head->id * 0x800; in gf119_disp_init()
1180 tmp = nvkm_rd32(device, 0x616104 + hoff); in gf119_disp_init()
1181 nvkm_wr32(device, 0x6101b4 + hoff, tmp); in gf119_disp_init()
1182 tmp = nvkm_rd32(device, 0x616108 + hoff); in gf119_disp_init()
1183 nvkm_wr32(device, 0x6101b8 + hoff, tmp); in gf119_disp_init()
1184 tmp = nvkm_rd32(device, 0x61610c + hoff); in gf119_disp_init()
1185 nvkm_wr32(device, 0x6101bc + hoff, tmp); in gf119_disp_init()
1189 for (i = 0; i < disp->dac.nr; i++) { in gf119_disp_init()
1190 tmp = nvkm_rd32(device, 0x61a000 + (i * 0x800)); in gf119_disp_init()
1191 nvkm_wr32(device, 0x6101c0 + (i * 0x800), tmp); in gf119_disp_init()
1195 for (i = 0; i < disp->sor.nr; i++) { in gf119_disp_init()
1196 tmp = nvkm_rd32(device, 0x61c000 + (i * 0x800)); in gf119_disp_init()
1197 nvkm_wr32(device, 0x6301c4 + (i * 0x800), tmp); in gf119_disp_init()
1201 if (nvkm_rd32(device, 0x6100ac) & 0x00000100) { in gf119_disp_init()
1202 nvkm_wr32(device, 0x6100ac, 0x00000100); in gf119_disp_init()
1203 nvkm_mask(device, 0x6194e8, 0x00000001, 0x00000000); in gf119_disp_init()
1205 if (!(nvkm_rd32(device, 0x6194e8) & 0x00000002)) in gf119_disp_init()
1207 ) < 0) in gf119_disp_init()
1212 nvkm_wr32(device, 0x610010, (disp->inst->addr >> 8) | 9); in gf119_disp_init()
1215 nvkm_wr32(device, 0x610090, 0x00000000); in gf119_disp_init()
1216 nvkm_wr32(device, 0x6100a0, 0x00000000); in gf119_disp_init()
1217 nvkm_wr32(device, 0x6100b0, 0x00000307); in gf119_disp_init()
1226 const u32 hoff = head->id * 0x800; in gf119_disp_init()
1227 nvkm_mask(device, 0x616308 + hoff, 0x00000111, 0x00000010); in gf119_disp_init()
1230 return 0; in gf119_disp_init()
1245 .root = { 0,0,GF110_DISP },
1247 {{0,0,GF110_DISP_CURSOR }, nvkm_disp_chan_new, &gf119_disp_curs },
1248 {{0,0,GF110_DISP_OVERLAY }, nvkm_disp_chan_new, &gf119_disp_oimm },
1249 {{0,0,GF110_DISP_BASE_CHANNEL_DMA }, nvkm_disp_chan_new, &gf119_disp_base },
1250 {{0,0,GF110_DISP_CORE_CHANNEL_DMA }, nvkm_disp_core_new, &gf119_disp_core },
1251 {{0,0,GF110_DISP_OVERLAY_CONTROL_DMA}, nvkm_disp_chan_new, &gf119_disp_ovly },