Lines Matching refs:drm

87 	struct nouveau_drm *drm = nouveau_drm(dev);  in NVSetOwner()  local
92 if (drm->device.info.chipset == 0x11) { in NVSetOwner()
103 if (drm->device.info.chipset == 0x11) { /* set me harder */ in NVSetOwner()
135 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_decode_pll() local
152 else if (drm->device.info.chipset == 0x30 || drm->device.info.chipset == 0x35) { in nouveau_hw_decode_pll()
167 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_get_pllvals() local
168 struct nvif_object *device = &drm->device.object; in nouveau_hw_get_pllvals()
169 struct nvkm_bios *bios = nvxx_bios(&drm->device); in nouveau_hw_get_pllvals()
187 if (drm->device.info.family == NV_DEVICE_INFO_V0_CELSIUS && reg1 >= NV_PRAMDAC_VPLL_COEFF) { in nouveau_hw_get_pllvals()
254 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_fix_bad_vpll() local
255 struct nvif_device *device = &drm->device; in nouveau_hw_fix_bad_vpll()
271 NV_WARN(drm, "VPLL %d outwith limits, attempting to fix\n", head + 1); in nouveau_hw_fix_bad_vpll()
306 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_save_vga_fonts() local
322 NV_INFO(drm, "%sing VGA fonts\n", save ? "Sav" : "Restor"); in nouveau_hw_save_vga_fonts()
327 NV_ERROR(drm, "Failed to map VRAM, " in nouveau_hw_save_vga_fonts()
390 struct nouveau_drm *drm = nouveau_drm(dev); in nv_save_state_ramdac() local
394 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) in nv_save_state_ramdac()
401 if (drm->device.info.chipset == 0x11) in nv_save_state_ramdac()
408 if (drm->device.info.chipset >= 0x30) in nv_save_state_ramdac()
450 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { in nv_save_state_ramdac()
465 struct nouveau_drm *drm = nouveau_drm(dev); in nv_load_state_ramdac() local
466 struct nvkm_clk *clk = nvxx_clk(&drm->device); in nv_load_state_ramdac()
471 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) in nv_load_state_ramdac()
478 if (drm->device.info.chipset == 0x11) in nv_load_state_ramdac()
485 if (drm->device.info.chipset >= 0x30) in nv_load_state_ramdac()
522 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { in nv_load_state_ramdac()
587 struct nouveau_drm *drm = nouveau_drm(dev); in nv_save_state_ext() local
603 if (drm->device.info.family >= NV_DEVICE_INFO_V0_KELVIN) in nv_save_state_ext()
606 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) in nv_save_state_ext()
615 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { in nv_save_state_ext()
619 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) in nv_save_state_ext()
622 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_save_state_ext()
634 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { in nv_save_state_ext()
662 struct nouveau_drm *drm = nouveau_drm(dev); in nv_load_state_ext() local
663 struct nvif_object *device = &drm->device.object; in nv_load_state_ext()
668 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { in nv_load_state_ext()
680 nvif_wr32(device, NV_PVIDEO_LIMIT(0), drm->device.info.ram_size - 1); in nv_load_state_ext()
681 nvif_wr32(device, NV_PVIDEO_LIMIT(1), drm->device.info.ram_size - 1); in nv_load_state_ext()
682 nvif_wr32(device, NV_PVIDEO_UVPLANE_LIMIT(0), drm->device.info.ram_size - 1); in nv_load_state_ext()
683 nvif_wr32(device, NV_PVIDEO_UVPLANE_LIMIT(1), drm->device.info.ram_size - 1); in nv_load_state_ext()
690 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) in nv_load_state_ext()
693 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { in nv_load_state_ext()
716 if (drm->device.info.family >= NV_DEVICE_INFO_V0_KELVIN) in nv_load_state_ext()
719 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) in nv_load_state_ext()
726 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) in nv_load_state_ext()
732 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { in nv_load_state_ext()
740 if (drm->device.info.family < NV_DEVICE_INFO_V0_KELVIN) { in nv_load_state_ext()
743 nvif_msec(&drm->device, 650, in nv_load_state_ext()
747 nvif_msec(&drm->device, 650, in nv_load_state_ext()
810 struct nouveau_drm *drm = nouveau_drm(dev); in nouveau_hw_save_state() local
812 if (drm->device.info.chipset == 0x11) in nouveau_hw_save_state()