Lines Matching refs:depth
384 u32 depth, bpp;
457 static u32 depth_to_dst(u32 depth);
721 (depth_to_dst(par->crtc.depth) << 8) |
754 /* convert depth values to their register representation */
755 static u32 depth_to_dst(u32 depth)
757 if (depth <= 8)
759 else if (depth <= 15)
761 else if (depth == 16)
763 else if (depth <= 24)
765 else if (depth <= 32)
1003 u32 depth, bytpp;
1024 depth = bpp;
1026 depth = (var->green.length == 6) ? 16 : 15;
1043 /* convert depth into ATI register depth */
1044 dst = depth_to_dst(depth);
1047 printk(KERN_ERR "aty128fb: Invalid depth or RGBA\n");
1051 /* convert register depth to bytes per pixel */
1116 crtc->depth = depth;
1382 u32 depth,
1393 bpp = (depth+7) & ~7;
1523 if ((err = aty128_ddafifo(&fifo_reg, &pll, crtc.depth, par)))
2203 || (par->crtc.depth == 16 && regno > 63)
2204 || (par->crtc.depth == 15 && regno > 31))
2215 switch (par->crtc.depth) {
2232 if (par->crtc.depth == 16 && regno > 0) {