Lines Matching refs:drm

114 	struct nouveau_drm *drm = nouveau_drm(dev);  in nv_crtc_calc_state_ext()  local
115 struct nvkm_bios *bios = nvxx_bios(&drm->device); in nv_crtc_calc_state_ext()
116 struct nvkm_clk *clk = nvxx_clk(&drm->device); in nv_crtc_calc_state_ext()
140 if (drm->device.info.chipset > 0x40 && dot_clock <= (pll_lim.vco1.max_freq / 2)) in nv_crtc_calc_state_ext()
150 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_crtc_calc_state_ext()
153 if (drm->device.info.chipset < 0x41) in nv_crtc_calc_state_ext()
159 NV_DEBUG(drm, "vpll: n1 %d n2 %d m1 %d m2 %d log2p %d\n", in nv_crtc_calc_state_ext()
162 NV_DEBUG(drm, "vpll: n %d m %d log2p %d\n", in nv_crtc_calc_state_ext()
173 struct nouveau_drm *drm = nouveau_drm(dev); in nv_crtc_dpms() local
177 NV_DEBUG(drm, "Setting dpms mode %d on CRTC %d\n", mode, in nv_crtc_dpms()
279 if (dev->overlayAdaptor && drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) in nv_crtc_mode_set_vga()
465 struct nouveau_drm *drm = nouveau_drm(dev); in nv_crtc_mode_set_regs() local
513 if (drm->device.info.chipset >= 0x11) in nv_crtc_mode_set_regs()
554 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) in nv_crtc_mode_set_regs()
560 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_crtc_mode_set_regs()
564 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) in nv_crtc_mode_set_regs()
567 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) in nv_crtc_mode_set_regs()
573 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { in nv_crtc_mode_set_regs()
585 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) in nv_crtc_mode_set_regs()
594 if (drm->device.info.chipset >= 0x11) in nv_crtc_mode_set_regs()
642 struct nouveau_drm *drm = nouveau_drm(dev); in nv_crtc_mode_set() local
645 NV_DEBUG(drm, "CTRC mode on CRTC %d:\n", nv_crtc->index); in nv_crtc_mode_set()
657 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_crtc_mode_set()
704 struct nouveau_drm *drm = nouveau_drm(dev); in nv_crtc_prepare() local
718 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { in nv_crtc_prepare()
827 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_crtc_do_mode_set_base() local
833 NV_DEBUG(drm, "index %d\n", nv_crtc->index); in nv04_crtc_do_mode_set_base()
837 NV_DEBUG(drm, "No FB bound\n"); in nv04_crtc_do_mode_set_base()
892 if (drm->device.info.family >= NV_DEVICE_INFO_V0_KELVIN) { in nv04_crtc_do_mode_set_base()
915 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv04_crtc_mode_set_base_atomic() local
916 struct drm_device *dev = drm->dev; in nv04_crtc_mode_set_base_atomic()
971 struct nouveau_drm *drm = nouveau_drm(dev); in nv11_cursor_upload() local
973 if (drm->device.info.chipset == 0x11) { in nv11_cursor_upload()
990 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv04_crtc_cursor_set() local
991 struct drm_device *dev = drm->dev; in nv04_crtc_cursor_set()
1014 if (drm->device.info.chipset >= 0x11) in nv04_crtc_cursor_set()
1041 struct nouveau_drm *drm; in nouveau_crtc_set_config() local
1057 drm = nouveau_drm(dev); in nouveau_crtc_set_config()
1068 if (active && !drm->have_disp_power_ref) { in nouveau_crtc_set_config()
1069 drm->have_disp_power_ref = true; in nouveau_crtc_set_config()
1074 if (!active && drm->have_disp_power_ref) { in nouveau_crtc_set_config()
1076 drm->have_disp_power_ref = false; in nouveau_crtc_set_config()