Home
last modified time | relevance | path

Searched refs:NV_RD32 (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/video/fbdev/riva/
H A Dnv_driver.c60 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()
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()
172 switch (NV_RD32(chip->PFB,0x00000000) & 0x03) { in riva_get_memlen()
204 if (NV_RD32(chip->PFB, 0x00000000) & 0x00000100) { in riva_get_memlen()
240 switch ((NV_RD32(chip->PFB, 0x0000020C) >> 20) & in riva_get_memlen()
[all …]
H A Driva_hw.c66 NV_RD32(&chip->PGRAPH[0x000006B0/4], 0) & 0x01); in nv3Busy()
74 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv4Busy()
82 NV_RD32(&chip->PGRAPH[0x00000700/4], 0) & 0x01); in nv10Busy()
620 pll = NV_RD32(&chip->PRAMDAC0[0x00000504/4], 0); in nv3UpdateArbitrationSettings()
804 pll = NV_RD32(&chip->PRAMDAC0[0x00000504/4], 0); in nv4UpdateArbitrationSettings()
807 pll = NV_RD32(&chip->PRAMDAC0[0x00000500/4], 0); in nv4UpdateArbitrationSettings()
810 cfg1 = NV_RD32(&chip->PFB[0x00000204/4], 0); in nv4UpdateArbitrationSettings()
1053 pll = NV_RD32(&chip->PRAMDAC0[0x00000504/4], 0); in nv10UpdateArbitrationSettings()
1056 pll = NV_RD32(&chip->PRAMDAC0[0x00000500/4], 0); in nv10UpdateArbitrationSettings()
1059 cfg1 = NV_RD32(&chip->PFB[0x00000204/4], 0); in nv10UpdateArbitrationSettings()
[all …]
H A Driva_hw.h83 #define NV_RD32(p,i) (__raw_readl((void __iomem *)(p) + (i))) macro
559 (hwinst).FifoFreeCount = NV_RD32(&(hwinst).hwptr->FifoFree, 0) >> 2; \
H A Dfbdev.c298 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()
/openbmc/linux/drivers/video/fbdev/nvidia/
H A Dnv_hw.c147 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()
1168 NV_RD32(par->PRAMIN, in NVLoadStateExt()
1252 NV_RD32(par->PFB, 0x33C) & in NVLoadStateExt()
1275 NV_RD32(par->PRAMDAC, in NVLoadStateExt()
1376 NV_RD32(par->PFB, in NVLoadStateExt()
1380 NV_RD32(par->PFB, in NVLoadStateExt()
1387 NV_RD32(par->PFB, in NVLoadStateExt()
[all …]
H A Dnv_setup.c147 dac0_reg608 = NV_RD32(PRAMDAC, 0x0608); in NVIsConnected()
151 reg52C = NV_RD32(PRAMDAC, 0x052C); in NVIsConnected()
152 reg608 = NV_RD32(PRAMDAC, 0x0608); in NVIsConnected()
199 if (NV_RD32(par->PFB, 0x0000) & 0x00000100) { in nv4GetConfig()
204 switch (NV_RD32(par->PFB, 0x0000) & 0x00000003) { in nv4GetConfig()
234 if (!(NV_RD32(par->PMC, 0x0004) & 0x01000001)) { in nv10GetConfig()
262 if (NV_RD32(par->PEXTDEV, 0x0000) & (1 << 22)) in nv10GetConfig()
441 if (NV_RD32(par->PRAMDAC0, 0x0000052C) & 0x100) in NVCommonSetup()
445 if (NV_RD32(par->PRAMDAC0, 0x0000252C) & 0x100) in NVCommonSetup()
484 oldhead = NV_RD32(par->PCRTC0, 0x00000860); in NVCommonSetup()
[all …]
H A Dnv_backlight.c57 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()
H A Dnv_local.h67 #define NV_RD32(p,i) (__raw_readl((void __iomem *)(p) + (i))) macro
96 #define READ_GET(par) (NV_RD32(&(par)->FIFO[0x0011], 0) >> 2)
H A Dnvidia.c424 state->crtcSync = NV_RD32(par->PRAMDAC, 0x0828); 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()
451 state->vpll2 = NV_RD32(par->PRAMDAC0, 0x0520); in nvidia_calc_regs()
453 state->vpll2B = NV_RD32(par->PRAMDAC0, 0x057C); in nvidia_calc_regs()
472 state->dither = NV_RD32(par->PRAMDAC, 0x0528) & in nvidia_calc_regs()
477 state->dither = NV_RD32(par->PRAMDAC, 0x083C) & ~1; in nvidia_calc_regs()
620 par->FPDither = !!(NV_RD32(par->PRAMDAC, 0x0528) in nvidiafb_set_par()
623 par->FPDither = !!(NV_RD32(par->PRAMDAC, 0x083C) & 1); in nvidiafb_set_par()
[all …]
H A Dnv_accel.c101 while (--count && NV_RD32(par->PGRAPH, 0x0700)) ; in NVSync()