Lines Matching refs:depth
397 static void set_aperture(struct pm2fb_par *p, u32 depth) in set_aperture() argument
408 switch (depth) { in set_aperture()
686 u32 depth = (info->var.bits_per_pixel + 7) & ~7; in pm2fb_set_par() local
706 depth = (depth > 32) ? 32 : depth; in pm2fb_set_par()
707 data64 = depth > 8 || par->type == PM2_TYPE_PERMEDIA2V; in pm2fb_set_par()
715 hsstart = to3264(info->var.right_margin, depth, data64); in pm2fb_set_par()
716 hsend = hsstart + to3264(info->var.hsync_len, depth, data64); in pm2fb_set_par()
717 hbend = hsend + to3264(info->var.left_margin, depth, data64); in pm2fb_set_par()
718 htotal = to3264(xres, depth, data64) + hbend - 1; in pm2fb_set_par()
726 stride = to3264(width, depth, 1); in pm2fb_set_par()
727 base = to3264(info->var.yoffset * xres + info->var.xoffset, depth, 1); in pm2fb_set_par()
760 (depth == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; in pm2fb_set_par()
761 info->fix.line_length = info->var.xres * depth / 8; in pm2fb_set_par()
772 set_aperture(par, depth); in pm2fb_set_par()
776 switch (depth) { in pm2fb_set_par()
833 (depth == 8) ? 0 : PM2F_COLOR_KEY_TEST_OFF); in pm2fb_set_par()
969 u32 depth = (info->var.bits_per_pixel + 7) & ~7; in pm2fb_pan_display() local
972 depth = (depth > 32) ? 32 : depth; in pm2fb_pan_display()
973 base = to3264(var->yoffset * xres + var->xoffset, depth, 1); in pm2fb_pan_display()
1163 if (info->flags & FBINFO_HWACCEL_DISABLED || image->depth != 1) { in pm2fb_imageblit()
1369 cursor->image.depth > 1) in pm2fb_cursor()