Lines Matching defs:depth
420 u32 depth, bpp;
490 static u32 depth_to_dst(u32 depth);
752 (depth_to_dst(par->crtc.depth) << 8) |
785 /* convert depth values to their register representation */
786 static u32 depth_to_dst(u32 depth)
788 if (depth <= 8)
790 else if (depth <= 15)
792 else if (depth == 16)
794 else if (depth <= 24)
796 else if (depth <= 32)
1038 u32 depth, bytpp;
1059 depth = bpp;
1061 depth = (var->green.length == 6) ? 16 : 15;
1078 /* convert depth into ATI register depth */
1079 dst = depth_to_dst(depth);
1082 printk(KERN_ERR "aty128fb: Invalid depth or RGBA\n");
1086 /* convert register depth to bytes per pixel */
1151 crtc->depth = depth;
1424 u32 depth,
1435 bpp = (depth+7) & ~7;
1566 if ((err = aty128_ddafifo(&fifo_reg, &pll, crtc.depth, par)))
2237 || (par->crtc.depth == 16 && regno > 63)
2238 || (par->crtc.depth == 15 && regno > 31))
2249 switch (par->crtc.depth) {
2266 if (par->crtc.depth == 16 && regno > 0) {