Lines Matching refs:vbase

195 static int __sst_wait_idle(u_long vbase);
196 #define sst_wait_idle() __sst_wait_idle(sst_info->mmio.vbase)
375 #define sst_read(reg) __sst_read(sst_info->mmio.vbase, reg)
376 #define sst_write(reg,val) __sst_write(sst_info->mmio.vbase, reg, val)
377 #define sst_set_bits(reg,val) __sst_set_bits(sst_info->mmio.vbase, reg, val)
378 #define sst_unset_bits(reg,val) __sst_unset_bits(sst_info->mmio.vbase, reg, val)
379 #define sst_dac_read(reg) __sst_dac_read(sst_info->mmio.vbase, reg)
380 #define sst_dac_write(reg,val) __sst_dac_write(sst_info->mmio.vbase, reg, val)
381 #define dac_i_read(reg) __dac_i_read(sst_info->mmio.vbase, reg)
382 #define dac_i_write(reg,val) __dac_i_write(sst_info->mmio.vbase, reg, val)
384 static inline u32 __sst_read(u_long vbase, u32 reg) in __sst_read() argument
388 ret = readl(vbase + reg); in __sst_read()
393 static inline void __sst_write(u_long vbase, u32 reg, u32 val) in __sst_write() argument
396 writel(val, vbase + reg); in __sst_write()
399 static inline void __sst_set_bits(u_long vbase, u32 reg, u32 val) in __sst_set_bits() argument
402 __sst_write(vbase, reg, __sst_read(vbase, reg) | val); in __sst_set_bits()
405 static inline void __sst_unset_bits(u_long vbase, u32 reg, u32 val) in __sst_unset_bits() argument
408 __sst_write(vbase, reg, __sst_read(vbase, reg) & ~val); in __sst_unset_bits()
413 static u8 __sst_dac_read(u_long vbase, u8 reg) in __sst_dac_read() argument
424 __sst_write(vbase, DAC_DATA, ((u32)reg << 8) | DAC_READ_CMD ); in __sst_dac_read()
425 __sst_wait_idle(vbase); in __sst_dac_read()
427 ret=(__sst_read(vbase, DAC_READ) & 0xff); in __sst_dac_read()
432 static void __sst_dac_write(u_long vbase, u8 reg, u8 val) in __sst_dac_write() argument
441 __sst_write(vbase, DAC_DATA,(((u32)reg << 8)) | (u32)val); in __sst_dac_write()
445 static u32 __dac_i_read(u_long vbase, u8 reg) in __dac_i_read() argument
449 __sst_dac_write(vbase, DACREG_ADDR_I, reg); in __dac_i_read()
450 ret = __sst_dac_read(vbase, DACREG_DATA_I); in __dac_i_read()
454 static void __dac_i_write(u_long vbase, u8 reg,u8 val) in __dac_i_write() argument
457 __sst_dac_write(vbase, DACREG_ADDR_I, reg); in __dac_i_write()
458 __sst_dac_write(vbase, DACREG_DATA_I, val); in __dac_i_write()
858 display->screen_base = (char *) sst_info->video.vbase; in sstfb_set_var()
1000 writew( p >> 6 , sst_info->video.vbase + p); in sstfb_ioctl()
1027 memset_io(sst_info->video.vbase, 0, sst_info->video.len); in sstfb_ioctl()
1057 u_long fbbase_virt = sst_info->video.vbase; in sst_get_memsize()
1100 static int __sst_wait_idle(u_long vbase) in __sst_wait_idle() argument
1106 if (__sst_read(vbase, STATUS) & STATUS_FBI_BUSY) { in __sst_wait_idle()
1848 sst_info->mmio.vbase = (u_long) ioremap_nocache(sst_info->mmio.base, 0x400000); in sstfb_probe()
1849 if (!sst_info->mmio.vbase) { in sstfb_probe()
1854 sst_info->video.vbase = (u_long) ioremap_nocache(sst_info->video.base, 0x400000); in sstfb_probe()
1855 if (!sst_info->video.vbase) { in sstfb_probe()
1871 sst_info->video.base, sst_info->video.vbase, in sstfb_probe()
1875 f_ddprintk("regbase_virt: %#lx\n", sst_info->mmio.vbase); in sstfb_probe()
1877 f_ddprintk("fbbase_virt: %#lx\n", sst_info->video.vbase); in sstfb_probe()
1908 memset_io(sst_info->video.vbase, 0, sst_info->video.len); in sstfb_probe()
1945 iounmap((void*)sst_info->video.vbase); in sstfb_remove()
1946 iounmap((void*)sst_info->mmio.vbase); in sstfb_remove()
2000 u_long fbbase_virt = sst_info->video.vbase; in sstfb_test16()
2043 u_long fbbase_virt = sst_info->video.vbase; in sstfb_test32()