Lines Matching refs:viapar
306 struct viafb_par *viapar = info->par; in viafb_setup_engine() local
308 u32 chip_name = viapar->shared->chip_info.gfx_chip_name; in viafb_setup_engine()
310 engine = viapar->shared->vdev->engine_mmio; in viafb_setup_engine()
328 viapar->shared->hw_bitblt = hw_bitblt_1; in viafb_setup_engine()
333 viapar->shared->hw_bitblt = hw_bitblt_2; in viafb_setup_engine()
336 viapar->shared->hw_bitblt = NULL; in viafb_setup_engine()
339 viapar->fbmem_free -= CURSOR_SIZE; in viafb_setup_engine()
340 viapar->shared->cursor_vram_addr = viapar->fbmem_free; in viafb_setup_engine()
341 viapar->fbmem_used += CURSOR_SIZE; in viafb_setup_engine()
343 viapar->fbmem_free -= VQ_SIZE; in viafb_setup_engine()
344 viapar->shared->vq_vram_addr = viapar->fbmem_free; in viafb_setup_engine()
345 viapar->fbmem_used += VQ_SIZE; in viafb_setup_engine()
357 viapar->shared->vdev->camera_fbmem_size = 3*VGA_HEIGHT*VGA_WIDTH*2; in viafb_setup_engine()
358 viapar->fbmem_free -= viapar->shared->vdev->camera_fbmem_size; in viafb_setup_engine()
359 viapar->fbmem_used += viapar->shared->vdev->camera_fbmem_size; in viafb_setup_engine()
360 viapar->shared->vdev->camera_fbmem_offset = viapar->fbmem_free; in viafb_setup_engine()
363 viafb_reset_engine(viapar); in viafb_setup_engine()
367 void viafb_reset_engine(struct viafb_par *viapar) in viafb_reset_engine() argument
369 void __iomem *engine = viapar->shared->vdev->engine_mmio; in viafb_reset_engine()
372 vq_len, chip_name = viapar->shared->chip_info.gfx_chip_name; in viafb_reset_engine()
375 switch (viapar->shared->chip_info.twod_engine) { in viafb_reset_engine()
415 vq_start_addr = viapar->shared->vq_vram_addr; in viafb_reset_engine()
416 vq_end_addr = viapar->shared->vq_vram_addr + VQ_SIZE - 1; in viafb_reset_engine()
470 writel(viapar->shared->cursor_vram_addr, engine + VIA_REG_CURSOR_MODE); in viafb_reset_engine()
480 struct viafb_par *viapar = info->par; in viafb_show_hw_cursor() local
481 u32 temp, iga_path = viapar->iga_path; in viafb_show_hw_cursor()
483 temp = readl(viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); in viafb_show_hw_cursor()
500 writel(temp, viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); in viafb_show_hw_cursor()
505 struct viafb_par *viapar = info->par; in viafb_wait_engine_idle() local
508 void __iomem *engine = viapar->shared->vdev->engine_mmio; in viafb_wait_engine_idle()
510 switch (viapar->shared->chip_info.twod_engine) { in viafb_wait_engine_idle()