/drivers/video/fbdev/riva/ |
D | nv_driver.c | 60 reg52C = NV_RD32(PRAMDAC, 0x052C); in riva_is_connected() 61 reg608 = NV_RD32(PRAMDAC, 0x0608); 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() 77 NV_RD32(par->riva.PRAMDAC0, 0x0608) & 0x0000EFFF); in riva_is_connected() 139 if (NV_RD32(par->riva.PRAMDAC0, 0x0000052C) & 0x100) in riva_is_second() 145 if(NV_RD32(par->riva.PRAMDAC0, 0x0000252C) & 0x100) in riva_is_second() 166 if (NV_RD32(chip->PFB, 0x00000000) & 0x00000020) { in riva_get_memlen() 167 if (((NV_RD32(chip->PMC, 0x00000000) & 0xF0) == 0x20) in riva_get_memlen() 168 && ((NV_RD32(chip->PMC, 0x00000000)&0x0F)>=0x02)) { in riva_get_memlen() [all …]
|
D | riva_hw.c | 65 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv3Busy() 66 NV_RD32(&chip->PGRAPH[0x000006B0/4], 0) & 0x01); in nv3Busy() 73 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv4Busy() 74 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv4Busy() 81 return ((NV_RD32(&chip->Rop->FifoFree, 0) < chip->FifoEmptyCount) || in nv10Busy() 82 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv10Busy() 620 pll = NV_RD32(&chip->PRAMDAC0[0x00000504/4], 0); in nv3UpdateArbitrationSettings() 627 sim_data.memory_width = (NV_RD32(&chip->PEXTDEV[0x00000000/4], 0) & 0x10) ? in nv3UpdateArbitrationSettings() 804 pll = NV_RD32(&chip->PRAMDAC0[0x00000504/4], 0); in nv4UpdateArbitrationSettings() 807 pll = NV_RD32(&chip->PRAMDAC0[0x00000500/4], 0); in nv4UpdateArbitrationSettings() [all …]
|
D | fbdev.c | 298 tmp_pmc = NV_RD32(par->riva.PMC, 0x10F0) & 0x0000FFFF; in riva_bl_update_status() 299 tmp_pcrt = NV_RD32(par->riva.PCRTC0, 0x081C) & 0xFFFFFFFC; in riva_bl_update_status() 779 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) & in riva_load_video_mode() 786 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) & in riva_load_video_mode() 788 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) | in riva_load_video_mode() 794 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) | in riva_load_video_mode() 796 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) & in riva_load_video_mode() 799 newmode.ext.vpll2 = NV_RD32(par->riva.PRAMDAC0, 0x00000520); in riva_load_video_mode()
|
D | riva_hw.h | 83 #define NV_RD32(p,i) (__raw_readl((void __iomem *)(p) + (i))) macro 559 (hwinst).FifoFreeCount = NV_RD32(&(hwinst).hwptr->FifoFree, 0) >> 2; \
|
/drivers/video/fbdev/nvidia/ |
D | nv_hw.c | 83 NV_WR32(par->PRAMDAC, 0x0300, NV_RD32(par->PRAMDAC, 0x0300)); in NVShowHideCursor() 147 pll = NV_RD32(par->PMC, 0x4020); in nvGetClocks() 149 pll = NV_RD32(par->PMC, 0x4024); in nvGetClocks() 162 pll = NV_RD32(par->PMC, 0x4000); in nvGetClocks() 164 pll = NV_RD32(par->PMC, 0x4004); in nvGetClocks() 172 pll = NV_RD32(par->PRAMDAC0, 0x0504); in nvGetClocks() 176 pll = NV_RD32(par->PRAMDAC0, 0x0574); in nvGetClocks() 186 pll = NV_RD32(par->PRAMDAC0, 0x0500); in nvGetClocks() 190 pll = NV_RD32(par->PRAMDAC0, 0x0570); in nvGetClocks() 202 pll = NV_RD32(par->PRAMDAC0, 0x0504); in nvGetClocks() [all …]
|
D | nv_setup.c | 147 dac0_reg608 = NV_RD32(PRAMDAC, 0x0608); in NVIsConnected() 151 reg52C = NV_RD32(PRAMDAC, 0x052C); in NVIsConnected() 152 reg608 = NV_RD32(PRAMDAC, 0x0608); in NVIsConnected() 158 NV_WR32(PRAMDAC, 0x052C, NV_RD32(PRAMDAC, 0x052C) | 1); in NVIsConnected() 161 NV_WR32(par->PRAMDAC0, 0x0608, NV_RD32(par->PRAMDAC0, 0x0608) | in NVIsConnected() 166 present = (NV_RD32(PRAMDAC, 0x0608) & (1 << 28)) ? 1 : 0; in NVIsConnected() 199 if (NV_RD32(par->PFB, 0x0000) & 0x00000100) { in nv4GetConfig() 201 ((NV_RD32(par->PFB, 0x0000) >> 12) & 0x0F) * 1024 * 2 + in nv4GetConfig() 204 switch (NV_RD32(par->PFB, 0x0000) & 0x00000003) { in nv4GetConfig() 220 par->CrystalFreqKHz = (NV_RD32(par->PEXTDEV, 0x0000) & 0x00000040) ? in nv4GetConfig() [all …]
|
D | nv_backlight.c | 57 tmp_pmc = NV_RD32(par->PMC, 0x10F0) & 0x0000FFFF; in nvidia_bl_update_status() 58 tmp_pcrt = NV_RD32(par->PCRTC0, 0x081C) & 0xFFFFFFFC; in nvidia_bl_update_status() 59 fpcontrol = NV_RD32(par->PRAMDAC, 0x0848) & 0xCFFFFFCC; in nvidia_bl_update_status()
|
D | nvidia.c | 414 state->scale = NV_RD32(par->PRAMDAC, 0x00000848) & 0xfff000ff; in nvidia_calc_regs() 424 state->crtcSync = NV_RD32(par->PRAMDAC, 0x0828); in nvidia_calc_regs() 440 state->head = NV_RD32(par->PCRTC0, 0x00000860) & ~0x00001000; in nvidia_calc_regs() 441 state->head2 = NV_RD32(par->PCRTC0, 0x00002860) | 0x00001000; in nvidia_calc_regs() 444 state->vpll = NV_RD32(par->PRAMDAC0, 0x00000508); in nvidia_calc_regs() 446 state->vpllB = NV_RD32(par->PRAMDAC0, 0x00000578); in nvidia_calc_regs() 448 state->head = NV_RD32(par->PCRTC0, 0x00000860) | 0x00001000; in nvidia_calc_regs() 449 state->head2 = NV_RD32(par->PCRTC0, 0x00002860) & ~0x00001000; in nvidia_calc_regs() 451 state->vpll2 = NV_RD32(par->PRAMDAC0, 0x0520); in nvidia_calc_regs() 453 state->vpll2B = NV_RD32(par->PRAMDAC0, 0x057C); in nvidia_calc_regs() [all …]
|
D | nv_local.h | 67 #define NV_RD32(p,i) (__raw_readl((void __iomem *)(p) + (i))) macro 96 #define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2)
|
D | nv_accel.c | 101 while (--count && NV_RD32(par->PGRAPH, 0x0700)) ; in NVSync()
|