Lines Matching refs:fix
264 static int maxinefb_get_fix(struct fb_fix_screeninfo *fix, int con, in maxinefb_get_fix() argument
271 memset(fix, 0, sizeof(struct fb_fix_screeninfo)); in maxinefb_get_fix()
272 strcpy(fix->id, DRIVER_DESCR); in maxinefb_get_fix()
273 fix->smem_start = ip->fb_start; in maxinefb_get_fix()
274 fix->smem_len = ip->fb_size; in maxinefb_get_fix()
275 fix->type = FB_TYPE_PACKED_PIXELS; in maxinefb_get_fix()
276 fix->ypanstep = 1; in maxinefb_get_fix()
277 fix->ywrapstep = 1; in maxinefb_get_fix()
278 fix->visual = FB_VISUAL_PSEUDOCOLOR; in maxinefb_get_fix()
281 case 1: fix->line_length = var->xres / 8; break; in maxinefb_get_fix()
284 case 2: fix->line_length = var->xres / 4; break; in maxinefb_get_fix()
287 case 4: fix->line_length = var->xres / 2; break; in maxinefb_get_fix()
291 fix->line_length = var->xres; in maxinefb_get_fix()
295 fix->accel = FB_ACCEL_NONE; in maxinefb_get_fix()
331 struct fb_fix_screeninfo fix; in maxinefb_set_disp() local
337 maxinefb_get_fix(&fix, con, &ip->info); in maxinefb_set_disp()
338 disp->screen_base = (u8 *)fix.smem_start; in maxinefb_set_disp()
339 disp->visual = fix.visual; in maxinefb_set_disp()
340 disp->type = fix.type; in maxinefb_set_disp()
341 disp->type_aux = fix.type_aux; in maxinefb_set_disp()
342 disp->ypanstep = fix.ypanstep; in maxinefb_set_disp()
343 disp->ywrapstep = fix.ywrapstep; in maxinefb_set_disp()
344 disp->line_length = fix.line_length; in maxinefb_set_disp()
345 disp->next_line = fix.line_length; in maxinefb_set_disp()