Lines Matching refs:depth
404 static void set_aperture(struct pm2fb_par *p, u32 depth)
415 switch (depth) {
574 DPRINTK("depth not supported: %u\n", var->bits_per_pixel);
675 DPRINTK("Checking graphics mode at %dx%d depth %d\n",
693 u32 depth = (info->var.bits_per_pixel + 7) & ~7;
713 depth = (depth > 32) ? 32 : depth;
714 data64 = depth > 8 || par->type == PM2_TYPE_PERMEDIA2V;
722 hsstart = to3264(info->var.right_margin, depth, data64);
723 hsend = hsstart + to3264(info->var.hsync_len, depth, data64);
724 hbend = hsend + to3264(info->var.left_margin, depth, data64);
725 htotal = to3264(xres, depth, data64) + hbend - 1;
733 stride = to3264(width, depth, 1);
734 base = to3264(info->var.yoffset * xres + info->var.xoffset, depth, 1);
767 (depth == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
768 info->fix.line_length = info->var.xres * depth / 8;
779 set_aperture(par, depth);
783 switch (depth) {
840 (depth == 8) ? 0 : PM2F_COLOR_KEY_TEST_OFF);
851 DPRINTK("Setting graphics mode at %dx%d depth %d\n",
976 u32 depth = (var->bits_per_pixel + 7) & ~7;
979 depth = (depth > 32) ? 32 : depth;
980 base = to3264(var->yoffset * xres + var->xoffset, depth, 1);
1170 if (info->flags & FBINFO_HWACCEL_DISABLED || image->depth != 1) {
1376 cursor->image.depth > 1)