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()
207 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hdmi_infoframe_vsi() local
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()
233 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hdmi_infoframe_avi() local
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()
255 struct nvkm_device *device = ior->disp->engine.subdev.device; in gf119_sor_hdmi_ctrl() local
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()
288 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_clock() local
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()
306 struct nvkm_device *device = sor->disp->engine.subdev.device; in gf119_sor_state() local
308 u32 ctrl = nvkm_rd32(device, 0x640200 + coff); in gf119_sor_state()
346 struct nvkm_device *device = disp->engine.subdev.device; in gf119_sor_cnt() local
347 *pmask = (nvkm_rd32(device, 0x612004) & 0x0000ff00) >> 8; in gf119_sor_cnt()
354 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_clock() local
356 nvkm_mask(device, 0x612280 + doff, 0x07070707, 0x00000000); in gf119_dac_clock()
362 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_state() local
364 u32 ctrl = nvkm_rd32(device, 0x640180 + coff); in gf119_dac_state()
394 struct nvkm_device *device = disp->engine.subdev.device; in gf119_dac_cnt() local
395 *pmask = (nvkm_rd32(device, 0x612004) & 0x000000f0) >> 4; in gf119_dac_cnt()
402 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_vblank_put() local
404 nvkm_mask(device, 0x6100c0 + hoff, 0x00000001, 0x00000000); in gf119_head_vblank_put()
410 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_vblank_get() local
412 nvkm_mask(device, 0x6100c0 + hoff, 0x00000001, 0x00000001); in gf119_head_vblank_get()
418 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_rgclk() local
419 nvkm_mask(device, 0x612200 + (head->id * 0x800), 0x0000000f, div); in gf119_head_rgclk()
425 struct nvkm_device *device = head->disp->engine.subdev.device; in gf119_head_state() local
429 data = nvkm_rd32(device, 0x640414 + hoff); in gf119_head_state()
432 data = nvkm_rd32(device, 0x640418 + hoff); in gf119_head_state()
435 data = nvkm_rd32(device, 0x64041c + hoff); in gf119_head_state()
438 data = nvkm_rd32(device, 0x640420 + hoff); 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()
474 struct nvkm_device *device = disp->engine.subdev.device; in gf119_head_cnt() local
475 *pmask = nvkm_rd32(device, 0x612004) & 0x0000000f; in gf119_head_cnt()
476 return nvkm_rd32(device, 0x022448); in gf119_head_cnt()
483 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_chan_uevent_fini() local
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()
492 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_chan_uevent_init() local
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()
506 struct nvkm_device *device = chan->disp->engine.subdev.device; in gf119_disp_chan_intr() local
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()
521 struct nvkm_device *device = subdev->device; in gf119_disp_pioc_fini() local
525 nvkm_mask(device, 0x610490 + (ctrl * 0x10), 0x00000001, 0x00000000); in gf119_disp_pioc_fini()
526 if (nvkm_msec(device, 2000, in gf119_disp_pioc_fini()
527 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x00030000)) in gf119_disp_pioc_fini()
531 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_fini()
540 struct nvkm_device *device = subdev->device; in gf119_disp_pioc_init() local
545 nvkm_wr32(device, 0x610490 + (ctrl * 0x10), 0x00000001); in gf119_disp_pioc_init()
546 if (nvkm_msec(device, 2000, in gf119_disp_pioc_init()
547 u32 tmp = nvkm_rd32(device, 0x610490 + (ctrl * 0x10)); in gf119_disp_pioc_init()
552 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_pioc_init()
578 struct nvkm_device *device = subdev->device; in gf119_disp_dmac_fini() local
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()
585 if (nvkm_msec(device, 2000, in gf119_disp_dmac_fini()
586 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x001e0000)) 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()
600 struct nvkm_device *device = subdev->device; in gf119_disp_dmac_init() local
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()
613 if (nvkm_msec(device, 2000, in gf119_disp_dmac_init()
614 if (!(nvkm_rd32(device, 0x610490 + (ctrl * 0x10)) & 0x80000000)) in gf119_disp_dmac_init()
618 nvkm_rd32(device, 0x610490 + (ctrl * 0x10))); in gf119_disp_dmac_init()
949 struct nvkm_device *device = subdev->device; in gf119_disp_core_fini() local
952 nvkm_mask(device, 0x610490, 0x00000010, 0x00000000); in gf119_disp_core_fini()
953 nvkm_mask(device, 0x610490, 0x00000003, 0x00000000); in gf119_disp_core_fini()
954 if (nvkm_msec(device, 2000, in gf119_disp_core_fini()
955 if (!(nvkm_rd32(device, 0x610490) & 0x001e0000)) 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()
969 struct nvkm_device *device = subdev->device; in gf119_disp_core_init() local
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()
980 if (nvkm_msec(device, 2000, in gf119_disp_core_init()
981 if (!(nvkm_rd32(device, 0x610490) & 0x80000000)) in gf119_disp_core_init()
985 nvkm_rd32(device, 0x610490)); in gf119_disp_core_init()
1015 struct nvkm_device *device = subdev->device; in gf119_disp_super() local
1023 mask[head->id] = nvkm_rd32(device, 0x6101d4 + (head->id * 0x800)); 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()
1072 struct nvkm_device *device = subdev->device; in gf119_disp_intr_error() local
1073 u32 stat = nvkm_rd32(device, 0x6101f0 + (chid * 12)); 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()
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()
1104 struct nvkm_device *device = subdev->device; in gf119_disp_intr() local
1106 u32 intr = nvkm_rd32(device, 0x610088); 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()
1119 u32 stat = nvkm_rd32(device, 0x61009c); in gf119_disp_intr()
1127 u32 stat = nvkm_rd32(device, 0x6100ac); in gf119_disp_intr()
1131 nvkm_wr32(device, 0x6100ac, disp->super.pending); in gf119_disp_intr()
1137 nvkm_wr32(device, 0x6100ac, stat); in gf119_disp_intr()
1147 u32 stat = nvkm_rd32(device, 0x6100bc + hoff); 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()
1159 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_fini() local
1161 nvkm_wr32(device, 0x6100b0, 0x00000000); in gf119_disp_fini()
1167 struct nvkm_device *device = disp->engine.subdev.device; in gf119_disp_init() local
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()
1190 tmp = nvkm_rd32(device, 0x61a000 + (i * 0x800)); in gf119_disp_init()
1191 nvkm_wr32(device, 0x6101c0 + (i * 0x800), tmp); 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()
1204 if (nvkm_msec(device, 2000, in gf119_disp_init()
1205 if (!(nvkm_rd32(device, 0x6194e8) & 0x00000002)) 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()
1227 nvkm_mask(device, 0x616308 + hoff, 0x00000111, 0x00000010); in gf119_disp_init()
1257 gf119_disp_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in gf119_disp_new() argument
1260 return nvkm_disp_new_(&gf119_disp, device, type, inst, pdisp); in gf119_disp_new()