/Linux-v5.10/drivers/video/fbdev/riva/ |
D | nv_driver.c | 54 volatile U032 __iomem *PRAMDAC = par->riva.PRAMDAC0; in riva_is_connected() local 58 if(second) PRAMDAC += 0x800; in riva_is_connected() 60 reg52C = NV_RD32(PRAMDAC, 0x052C); in riva_is_connected() 61 reg608 = NV_RD32(PRAMDAC, 0x0608); in riva_is_connected() 63 NV_WR32(PRAMDAC, 0x0608, reg608 & ~0x00010000); in riva_is_connected() 65 NV_WR32(PRAMDAC, 0x052C, reg52C & 0x0000FEEE); in riva_is_connected() 67 NV_WR32(PRAMDAC, 0x052C, NV_RD32(PRAMDAC, 0x052C) | 1); in riva_is_connected() 74 present = (NV_RD32(PRAMDAC, 0x0608) & (1 << 28)) ? TRUE : FALSE; in riva_is_connected() 79 NV_WR32(PRAMDAC, 0x052C, reg52C); in riva_is_connected() 80 NV_WR32(PRAMDAC, 0x0608, reg608); in riva_is_connected() [all …]
|
D | nvreg.h | 149 #define PRAMDAC_Write(reg,value) DEVICE_WRITE(PRAMDAC,reg,value) 150 #define PRAMDAC_Read(reg) DEVICE_READ(PRAMDAC,reg) 151 #define PRAMDAC_Print(reg) DEVICE_PRINT(PRAMDAC,reg) 152 #define PRAMDAC_Def(mask,value) DEVICE_DEF(PRAMDAC,mask,value) 153 #define PRAMDAC_Val(mask,value) DEVICE_VALUE(PRAMDAC,mask,value) 154 #define PRAMDAC_Mask(mask) DEVICE_MASK(PRAMDAC,mask)
|
D | riva_hw.c | 1551 NV_WR32(chip->PRAMDAC, 0x00000404, NV_RD32(chip->PRAMDAC, 0x00000404) | (1 << 25)); in LoadStateExt() 1648 NV_WR32(chip->PRAMDAC, 0x0528, state->dither); in LoadStateExt() 1651 NV_WR32(chip->PRAMDAC, 0x083C, state->dither); in LoadStateExt() 1699 NV_WR32(chip->PRAMDAC, 0x00000848 , state->scale); in LoadStateExt() 1701 NV_WR32(chip->PRAMDAC, 0x00000600 , state->general); in LoadStateExt() 1757 state->general = NV_RD32(chip->PRAMDAC, 0x00000600); in UnloadStateExt() 1758 state->scale = NV_RD32(chip->PRAMDAC, 0x00000848); in UnloadStateExt() 1804 state->dither = NV_RD32(chip->PRAMDAC, 0x0528); in UnloadStateExt() 1807 state->dither = NV_RD32(chip->PRAMDAC, 0x083C); in UnloadStateExt()
|
D | riva_hw.h | 461 volatile U032 __iomem *PRAMDAC; member
|
D | fbdev.c | 784 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) & in riva_load_video_mode() 1601 NV_WR32(par->riva.PRAMDAC, 0x0000300, temp); in rivafb_cursor()
|
/Linux-v5.10/drivers/video/fbdev/nvidia/ |
D | nv_setup.c | 145 volatile u32 __iomem *PRAMDAC = par->PRAMDAC0; in NVIsConnected() local 150 dac0_reg608 = NV_RD32(PRAMDAC, 0x0608); in NVIsConnected() 151 PRAMDAC += 0x800; in NVIsConnected() 154 reg52C = NV_RD32(PRAMDAC, 0x052C); in NVIsConnected() 155 reg608 = NV_RD32(PRAMDAC, 0x0608); in NVIsConnected() 157 NV_WR32(PRAMDAC, 0x0608, reg608 & ~0x00010000); in NVIsConnected() 159 NV_WR32(PRAMDAC, 0x052C, reg52C & 0x0000FEEE); in NVIsConnected() 161 NV_WR32(PRAMDAC, 0x052C, NV_RD32(PRAMDAC, 0x052C) | 1); in NVIsConnected() 169 present = (NV_RD32(PRAMDAC, 0x0608) & (1 << 28)) ? 1 : 0; in NVIsConnected() 179 NV_WR32(PRAMDAC, 0x052C, reg52C); in NVIsConnected() [all …]
|
D | nv_hw.c | 83 NV_WR32(par->PRAMDAC, 0x0300, NV_RD32(par->PRAMDAC, 0x0300)); in NVShowHideCursor() 1274 NV_WR32(par->PRAMDAC, 0x0608, in NVLoadStateExt() 1275 NV_RD32(par->PRAMDAC, in NVLoadStateExt() 1287 NV_WR32(par->PRAMDAC, 0x0608, in NVLoadStateExt() 1288 NV_RD32(par->PRAMDAC, 0x0608) | in NVLoadStateExt() 1294 NV_WR32(par->PRAMDAC, 0x0608, in NVLoadStateExt() 1295 NV_RD32(par->PRAMDAC, 0x0608) | in NVLoadStateExt() 1522 NV_WR32(par->PRAMDAC, 0x0404, NV_RD32(par->PRAMDAC, 0x0404) | in NVLoadStateExt() 1539 NV_WR32(par->PRAMDAC, 0x0528, state->dither); in NVLoadStateExt() 1541 NV_WR32(par->PRAMDAC, 0x083C, state->dither); in NVLoadStateExt() [all …]
|
D | nv_backlight.c | 65 fpcontrol = NV_RD32(par->PRAMDAC, 0x0848) & 0xCFFFFFCC; in nvidia_bl_update_status() 77 NV_WR32(par->PRAMDAC, 0x848, fpcontrol); in nvidia_bl_update_status()
|
D | nvidia.c | 413 state->scale = NV_RD32(par->PRAMDAC, 0x00000848) & 0xfff000ff; in nvidia_calc_regs() 423 state->crtcSync = NV_RD32(par->PRAMDAC, 0x0828); in nvidia_calc_regs() 471 state->dither = NV_RD32(par->PRAMDAC, 0x0528) & in nvidia_calc_regs() 476 state->dither = NV_RD32(par->PRAMDAC, 0x083C) & ~1; in nvidia_calc_regs() 552 NV_WR32(par->PRAMDAC, 0x0000300, temp); in nvidiafb_cursor() 619 par->FPDither = !!(NV_RD32(par->PRAMDAC, 0x0528) in nvidiafb_set_par() 622 par->FPDither = !!(NV_RD32(par->PRAMDAC, 0x083C) & 1); in nvidiafb_set_par()
|
D | nv_type.h | 173 volatile u32 __iomem *PRAMDAC; member
|