Lines Matching refs:current_par
92 static struct acornfb_par current_par; variable
203 if (current_par.using_vram && info->fix.smem_len == 2048*1024) in acornfb_set_timing()
215 if (current_par.using_vram && current_par.vram_half_sam == 2048) in acornfb_set_timing()
270 if (regno >= current_par.palette_size) in acornfb_setcolreg()
288 current_par.palette[regno] = pal; in acornfb_setcolreg()
296 pal.vidc20.red = current_par.palette[i & 31].vidc20.red; in acornfb_setcolreg()
297 pal.vidc20.green = current_par.palette[(i >> 1) & 31].vidc20.green; in acornfb_setcolreg()
298 pal.vidc20.blue = current_par.palette[(i >> 2) & 31].vidc20.blue; in acornfb_setcolreg()
329 if (current_par.using_vram) in acornfb_adjust_timing()
330 sam_size = current_par.vram_half_sam * 2; in acornfb_adjust_timing()
374 current_par.screen_end = info->fix.smem_start + size; in acornfb_adjust_timing()
524 current_par.palette_size = 2; in acornfb_set_par()
528 current_par.palette_size = 4; in acornfb_set_par()
532 current_par.palette_size = 16; in acornfb_set_par()
536 current_par.palette_size = VIDC_PALETTE_SIZE; in acornfb_set_par()
541 current_par.palette_size = 32; in acornfb_set_par()
545 current_par.palette_size = VIDC_PALETTE_SIZE; in acornfb_set_par()
568 size = current_par.screen_end; in acornfb_set_par()
570 if (current_par.using_vram) { in acornfb_set_par()
571 size -= current_par.vram_half_sam; in acornfb_set_par()
572 control = DMA_CR_E | (current_par.vram_half_sam / 256); in acornfb_set_par()
698 fb_info.pseudo_palette = current_par.pseudo_palette; in acornfb_init_fbinfo()
727 current_par.dram_size = 0; in acornfb_init_fbinfo()
728 current_par.montype = -1; in acornfb_init_fbinfo()
729 current_par.dpms = 0; in acornfb_init_fbinfo()
765 current_par.montype = -2; in acornfb_parse_mon()
805 current_par.montype = -1; in acornfb_parse_mon()
810 current_par.montype = -2; in acornfb_parse_montype()
814 current_par.montype = 0; in acornfb_parse_montype()
817 current_par.montype = 1; in acornfb_parse_montype()
820 current_par.montype = 2; in acornfb_parse_montype()
823 current_par.montype = 3; in acornfb_parse_montype()
826 current_par.montype = 4; in acornfb_parse_montype()
829 current_par.montype = -1; in acornfb_parse_montype()
831 current_par.montype = simple_strtoul(opt, &opt, 0); in acornfb_parse_montype()
833 if (current_par.montype == -2 || in acornfb_parse_montype()
834 current_par.montype > NR_MONTYPES) { in acornfb_parse_montype()
837 current_par.montype = -1; in acornfb_parse_montype()
841 current_par.dpms = 1; in acornfb_parse_montype()
869 current_par.dram_size = size; in acornfb_parse_dram()
971 current_par.dev = &dev->dev; in acornfb_probe()
973 if (current_par.montype == -1) in acornfb_probe()
974 current_par.montype = acornfb_detect_monitortype(); in acornfb_probe()
976 if (current_par.montype == -1 || current_par.montype > NR_MONTYPES) in acornfb_probe()
977 current_par.montype = 4; in acornfb_probe()
979 if (current_par.montype >= 0) { in acornfb_probe()
980 fb_info.monspecs = monspecs[current_par.montype]; in acornfb_probe()
981 fb_info.monspecs.dpms = current_par.dpms; in acornfb_probe()
1006 current_par.using_vram = 0; in acornfb_probe()
1013 if (vram_size && !current_par.dram_size) { in acornfb_probe()
1015 current_par.vram_half_sam = vram_size / 1024; in acornfb_probe()
1016 current_par.using_vram = 1; in acornfb_probe()
1017 } else if (current_par.dram_size) in acornfb_probe()
1018 size = current_par.dram_size; in acornfb_probe()
1031 if (!current_par.using_vram) { in acornfb_probe()
1040 base = dma_alloc_wc(current_par.dev, size, &handle, in acornfb_probe()
1052 current_par.palette_size = VIDC_PALETTE_SIZE; in acornfb_probe()
1104 current_par.using_vram ? 'V' : 'D', in acornfb_probe()