Lines Matching defs:depth
401 static void set_aperture(struct pm2fb_par *p, u32 depth)
412 switch (depth) {
571 DPRINTK("depth not supported: %u\n", var->bits_per_pixel);
677 DPRINTK("Checking graphics mode at %dx%d depth %d\n",
695 u32 depth = (info->var.bits_per_pixel + 7) & ~7;
715 depth = (depth > 32) ? 32 : depth;
716 data64 = depth > 8 || par->type == PM2_TYPE_PERMEDIA2V;
724 hsstart = to3264(info->var.right_margin, depth, data64);
725 hsend = hsstart + to3264(info->var.hsync_len, depth, data64);
726 hbend = hsend + to3264(info->var.left_margin, depth, data64);
727 htotal = to3264(xres, depth, data64) + hbend - 1;
735 stride = to3264(width, depth, 1);
736 base = to3264(info->var.yoffset * xres + info->var.xoffset, depth, 1);
769 (depth == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
770 info->fix.line_length = info->var.xres * depth / 8;
781 set_aperture(par, depth);
785 switch (depth) {
842 (depth == 8) ? 0 : PM2F_COLOR_KEY_TEST_OFF);
853 DPRINTK("Setting graphics mode at %dx%d depth %d\n",
978 u32 depth = (info->var.bits_per_pixel + 7) & ~7;
981 depth = (depth > 32) ? 32 : depth;
982 base = to3264(var->yoffset * xres + var->xoffset, depth, 1);
1172 if (info->flags & FBINFO_HWACCEL_DISABLED || image->depth != 1) {
1378 cursor->image.depth > 1)