Lines Matching refs:saved
50 struct regstate *saved = (struct regstate *) state->vidstate; in save_vga_text() local
89 saved->vga_font0[i] = vga_r(fbbase, i); in save_vga_text()
100 saved->vga_font1[i] = vga_r(fbbase, i); in save_vga_text()
111 saved->vga_text[i] = vga_r(fbbase, i); in save_vga_text()
119 saved->vga_text[8192+i] = vga_r(fbbase + 2 * 8192, i); in save_vga_text()
140 struct regstate *saved = (struct regstate *) state->vidstate; in restore_vga_text() local
175 vga_w(fbbase, i, saved->vga_font0[i]); in restore_vga_text()
186 vga_w(fbbase, i, saved->vga_font1[i]); in restore_vga_text()
197 vga_w(fbbase, i, saved->vga_text[i]); in restore_vga_text()
205 vga_w(fbbase, i, saved->vga_text[8192+i]); in restore_vga_text()
228 struct regstate *saved = (struct regstate *) state->vidstate; in save_vga_mode() local
232 saved->misc = vga_r(state->vgabase, VGA_MIS_R); in save_vga_mode()
233 if (saved->misc & 1) in save_vga_mode()
239 saved->crtc[i] = vga_rcrtcs(state->vgabase, iobase, i); in save_vga_mode()
245 saved->attr[i] = vga_rattr(state->vgabase, i); in save_vga_mode()
251 saved->gfx[i] = vga_rgfx(state->vgabase, i); in save_vga_mode()
254 saved->seq[i] = vga_rseq(state->vgabase, i); in save_vga_mode()
259 struct regstate *saved = (struct regstate *) state->vidstate; in restore_vga_mode() local
263 vga_w(state->vgabase, VGA_MIS_W, saved->misc); in restore_vga_mode()
265 if (saved->misc & 1) in restore_vga_mode()
272 saved->seq[VGA_SEQ_CLOCK_MODE] | 0x20); in restore_vga_mode()
282 vga_wseq(state->vgabase, i, saved->seq[i]); in restore_vga_mode()
286 vga_wcrtcs(state->vgabase, iobase, 17, saved->crtc[17] & ~0x80); in restore_vga_mode()
288 vga_wcrtcs(state->vgabase, iobase, i, saved->crtc[i]); in restore_vga_mode()
291 vga_wgfx(state->vgabase, i, saved->gfx[i]); in restore_vga_mode()
295 vga_wattr(state->vgabase, i, saved->attr[i]); in restore_vga_mode()
302 saved->seq[VGA_SEQ_CLOCK_MODE] & ~(1 << 5)); in restore_vga_mode()
311 struct regstate *saved = (struct regstate *) state->vidstate; in save_vga_cmap() local
319 saved->vga_cmap[i] = vga_r(state->vgabase, VGA_PEL_D); in save_vga_cmap()
324 struct regstate *saved = (struct regstate *) state->vidstate; in restore_vga_cmap() local
332 vga_w(state->vgabase, VGA_PEL_D, saved->vga_cmap[i]); in restore_vga_cmap()
338 struct regstate *saved = (struct regstate *) state->vidstate; in vga_cleanup() local
340 vfree(saved->vga_font0); in vga_cleanup()
341 vfree(saved->vga_font1); in vga_cleanup()
342 vfree(saved->vga_text); in vga_cleanup()
343 vfree(saved->vga_cmap); in vga_cleanup()
344 vfree(saved->attr); in vga_cleanup()
345 kfree(saved); in vga_cleanup()
352 struct regstate *saved; in save_vga() local
354 saved = kzalloc(sizeof(struct regstate), GFP_KERNEL); in save_vga()
356 if (saved == NULL) in save_vga()
359 state->vidstate = (void *)saved; in save_vga()
362 saved->vga_cmap = vmalloc(768); in save_vga()
363 if (!saved->vga_cmap) { in save_vga()
384 saved->attr = vmalloc(total); in save_vga()
385 if (!saved->attr) { in save_vga()
389 saved->crtc = saved->attr + state->num_attr; in save_vga()
390 saved->gfx = saved->crtc + state->num_crtc; in save_vga()
391 saved->seq = saved->gfx + state->num_gfx; in save_vga()
421 saved->vga_font0 = vmalloc(4 * 8192); in save_vga()
422 if (!saved->vga_font0) { in save_vga()
433 saved->vga_font1 = vmalloc(state->memsize); in save_vga()
434 if (!saved->vga_font1) { in save_vga()
444 saved->vga_text = vmalloc(8192 * 2); in save_vga()
445 if (!saved->vga_text) { in save_vga()