Lines Matching refs:dsp

1425 	struct display *dsp;  in rivafb_set_var()  local
1443 dsp = (con < 0) ? rivainfo->info.disp : &fb_display[con]; in rivafb_set_var()
1444 assert(dsp != NULL); in rivafb_set_var()
1448 chgvar = ((dsp->var.xres != var->xres) || in rivafb_set_var()
1449 (dsp->var.yres != var->yres) || in rivafb_set_var()
1450 (dsp->var.xres_virtual != var->xres_virtual) || in rivafb_set_var()
1451 (dsp->var.yres_virtual != var->yres_virtual) || in rivafb_set_var()
1452 (dsp->var.accel_flags != var->accel_flags) || in rivafb_set_var()
1453 (dsp->var.bits_per_pixel != var->bits_per_pixel) in rivafb_set_var()
1454 || memcmp(&dsp->var.red, &var->red, in rivafb_set_var()
1456 || memcmp(&dsp->var.green, &var->green, in rivafb_set_var()
1458 || memcmp(&dsp->var.blue, &var->blue, in rivafb_set_var()
1560 memcpy(&dsp->var, &v, sizeof(v)); in rivafb_set_var()
1562 riva_set_dispsw(rivainfo, dsp); in rivafb_set_var()
1566 dsp->scrollmode = SCROLL_YNOMOVE; in rivafb_set_var()
1568 dsp->scrollmode = 0; in rivafb_set_var()
1570 dsp->scrollmode = SCROLL_YREDRAW; in rivafb_set_var()
1576 rivafb_create_cursor(rivainfo, fontwidth(dsp), fontheight(dsp)); in rivafb_set_var()
1588 struct display *dsp; in rivafb_get_cmap() local
1595 dsp = (con < 0) ? rivainfo->info.disp : &fb_display[con]; in rivafb_get_cmap()
1601 } else if (dsp->cmap.len) /* non default colormap? */ in rivafb_get_cmap()
1602 fb_copy_cmap(&dsp->cmap, cmap, kspc ? 0 : 2); in rivafb_get_cmap()
1605 (riva_get_cmap_len(&dsp->var)), cmap, in rivafb_get_cmap()
1617 struct display *dsp; in rivafb_set_cmap() local
1625 dsp = (con < 0) ? rivainfo->info.disp : &fb_display[con]; in rivafb_set_cmap()
1627 cmap_len = riva_get_cmap_len(&dsp->var); in rivafb_set_cmap()
1628 if (dsp->cmap.len != cmap_len) { in rivafb_set_cmap()
1629 int err = fb_alloc_cmap(&dsp->cmap, cmap_len, 0); in rivafb_set_cmap()
1640 fb_copy_cmap(cmap, &dsp->cmap, kspc ? 0 : 1); in rivafb_set_cmap()
1664 struct display *dsp; in rivafb_pan_display() local
1676 dsp = (con < 0) ? rivainfo->info.disp : &fb_display[con]; in rivafb_pan_display()
1680 || var->yoffset >= dsp->var.yres_virtual in rivafb_pan_display()
1683 if (var->xoffset + dsp->var.xres > dsp->var.xres_virtual || in rivafb_pan_display()
1684 var->yoffset + dsp->var.yres > dsp->var.yres_virtual) in rivafb_pan_display()
1688 base = var->yoffset * dsp->line_length + var->xoffset; in rivafb_pan_display()
1694 dsp->var.xoffset = var->xoffset; in rivafb_pan_display()
1695 dsp->var.yoffset = var->yoffset; in rivafb_pan_display()
1698 dsp->var.vmode |= FB_VMODE_YWRAP; in rivafb_pan_display()
1700 dsp->var.vmode &= ~FB_VMODE_YWRAP; in rivafb_pan_display()
1736 struct display *dsp; in rivafb_switch() local
1742 dsp = (con < 0) ? rivainfo->info.disp : &fb_display[con]; in rivafb_switch()
1757 rivainfo->currcon_display = dsp; in rivafb_switch()
1759 rivafb_set_var(&dsp->var, con, info); in rivafb_switch()
1760 riva_set_dispsw(rivainfo, dsp); in rivafb_switch()