/linux-4.1.27/drivers/gpu/drm/udl/ |
D | udl_transfer.c | 85 static inline u16 get_pixel_val16(const uint8_t *pixel, int bpp) in get_pixel_val16() argument 88 if (bpp == 2) in get_pixel_val16() 90 else if (bpp == 4) in get_pixel_val16() 127 const uint8_t *const cmd_buffer_end, int bpp) in udl_compress_hline16() argument 156 min((int)(pixel_end - pixel) / bpp, in udl_compress_hline16() 157 (int)(cmd_buffer_end - cmd) / 2))) * bpp; in udl_compress_hline16() 159 prefetch_range((void *) pixel, (cmd_pixel_end - pixel) * bpp); in udl_compress_hline16() 160 pixel_val16 = get_pixel_val16(pixel, bpp); in udl_compress_hline16() 169 pixel += bpp; in udl_compress_hline16() 172 pixel_val16 = get_pixel_val16(pixel, bpp); in udl_compress_hline16() [all …]
|
D | udl_fb.c | 155 int bpp = (fb->base.bits_per_pixel / 8); in udl_handle_damage() local 225 const int byte_offset = line_offset + (x * bpp); in udl_handle_damage() 226 const int dev_byte_offset = (fb->base.width * bpp * i) + (x * bpp); in udl_handle_damage() 227 if (udl_render_hline(dev, bpp, &urb, in udl_handle_damage() 230 (x2 - x + 1) * bpp, in udl_handle_damage() 246 atomic_add(width*height*bpp, &udl->bytes_rendered); in udl_handle_damage()
|
/linux-4.1.27/drivers/video/fbdev/ |
D | c2p_iplan2.c | 48 static inline void store_iplan2(void *dst, u32 bpp, u32 d[4]) in store_iplan2() argument 52 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2() 61 static inline void store_iplan2_masked(void *dst, u32 bpp, u32 d[4], u32 mask) in store_iplan2_masked() argument 65 for (i = 0; i < bpp/2; i++, dst += 4) in store_iplan2_masked() 86 u32 height, u32 dst_nextline, u32 src_nextline, u32 bpp) in c2p_iplan2() argument 96 dst += dy*dst_nextline+(dx & ~15)*bpp; in c2p_iplan2() 113 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2() 114 p += bpp*2; in c2p_iplan2() 125 store_iplan2_masked(p, bpp, d.words, first); in c2p_iplan2() 126 p += bpp*2; in c2p_iplan2() [all …]
|
D | c2p_planar.c | 48 static inline void store_planar(void *dst, u32 dst_inc, u32 bpp, u32 d[8]) in store_planar() argument 52 for (i = 0; i < bpp; i++, dst += dst_inc) in store_planar() 61 static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp, in store_planar_masked() argument 66 for (i = 0; i < bpp; i++, dst += dst_inc) in store_planar_masked() 88 u32 src_nextline, u32 bpp) in c2p_planar() argument 113 store_planar_masked(p, dst_nextplane, bpp, d.words, in c2p_planar() 126 store_planar_masked(p, dst_nextplane, bpp, in c2p_planar() 136 store_planar(p, dst_nextplane, bpp, d.words); in c2p_planar() 146 store_planar_masked(p, dst_nextplane, bpp, in c2p_planar()
|
D | tridentfb.c | 57 static int bpp = 8; variable 75 module_param(bpp, int, 0); 183 static void blade_init_accel(struct tridentfb_par *par, int pitch, int bpp) in blade_init_accel() argument 186 int tmp = bpp == 24 ? 2 : (bpp >> 4); in blade_init_accel() 257 static void xp_init_accel(struct tridentfb_par *par, int pitch, int bpp) in xp_init_accel() argument 259 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in xp_init_accel() 260 int v1 = pitch << (bpp == 24 ? 20 : (18 + x)); in xp_init_accel() 262 switch (pitch << (bpp >> 3)) { in xp_init_accel() 355 static void image_init_accel(struct tridentfb_par *par, int pitch, int bpp) in image_init_accel() argument 357 int tmp = bpp == 24 ? 2: (bpp >> 4); in image_init_accel() [all …]
|
D | sh7760fb.c | 125 u16 lddfr, int *bpp, int *gray) in sh7760fb_get_color_info() argument 160 if (bpp) in sh7760fb_get_color_info() 161 *bpp = lbpp; in sh7760fb_get_color_info() 173 int ret, bpp; in sh7760fb_check_var() local 176 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, NULL); in sh7760fb_check_var() 180 var->bits_per_pixel = bpp; in sh7760fb_check_var() 207 int ret, bpp, gray; in sh7760fb_set_par() local 228 ret = sh7760fb_get_color_info(info->dev, par->pd->lddfr, &bpp, &gray); in sh7760fb_set_par() 233 vdln, bpp, gray ? "grayscale" : "color", in sh7760fb_set_par() 273 stride *= (bpp + 7) >> 3; in sh7760fb_set_par() [all …]
|
D | bfin_adv7393fb.h | 68 u16 bpp; member 170 .bpp = 16, 186 .bpp = 16, 202 .bpp = 16, 218 .bpp = 16, 234 .bpp = 16, 250 .bpp = 16,
|
D | pxafb.c | 247 int bpp = -EINVAL; in pxafb_var_to_bpp() local 250 case 1: bpp = 0; break; in pxafb_var_to_bpp() 251 case 2: bpp = 1; break; in pxafb_var_to_bpp() 252 case 4: bpp = 2; break; in pxafb_var_to_bpp() 253 case 8: bpp = 3; break; in pxafb_var_to_bpp() 254 case 16: bpp = 4; break; in pxafb_var_to_bpp() 257 case 18: bpp = 6; break; /* 18-bits/pixel packed */ in pxafb_var_to_bpp() 258 case 19: bpp = 8; break; /* 19-bits/pixel packed */ in pxafb_var_to_bpp() 259 case 24: bpp = 9; break; in pxafb_var_to_bpp() 264 case 18: bpp = 5; break; /* 18-bits/pixel unpacked */ in pxafb_var_to_bpp() [all …]
|
D | atafb.c | 149 short bpp; member 620 int bpp = var->bits_per_pixel; in tt_decode_var() local 625 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 630 bpp = 1; in tt_decode_var() 632 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 634 if (bpp > 4) { in tt_decode_var() 640 bpp = 8; in tt_decode_var() 641 } else if (bpp > 2) { in tt_decode_var() 648 bpp = 4; in tt_decode_var() 653 bpp = 4; in tt_decode_var() [all …]
|
D | amba-clcd-versatile.c | 28 .bpp = 16, 52 .bpp = 16, 77 .bpp = 16, 101 .bpp = 16, 126 .bpp = 16,
|
D | au1100fb.h | 78 u32 bpp; /* Maximum depth supported */ member 276 .bpp = 16, 289 .bpp = 16, 300 .bpp = 16, 327 .bpp = 4, 349 .bpp = 16, 361 .bpp = 16,
|
D | s1d13xxxfb.c | 452 u16 bpp; in s1d13xxxfb_bitblt_copyarea() local 457 bpp = (info->var.bits_per_pixel >> 3); in s1d13xxxfb_bitblt_copyarea() 458 stride = bpp * info->var.xres; in s1d13xxxfb_bitblt_copyarea() 462 dst = (((dy + height - 1) * stride) + (bpp * (dx + width - 1))); in s1d13xxxfb_bitblt_copyarea() 463 src = (((sy + height - 1) * stride) + (bpp * (sx + width - 1))); in s1d13xxxfb_bitblt_copyarea() 467 dst = (dy * stride) + (bpp * dx); in s1d13xxxfb_bitblt_copyarea() 468 src = (sy * stride) + (bpp * sx); in s1d13xxxfb_bitblt_copyarea() 501 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_CTL1, (bpp >> 1)); in s1d13xxxfb_bitblt_copyarea() 511 dbg_blit("(copyarea) bpp=%d=0x0%d, mem_offset1=%d, mem_offset2=%d\n", bpp, (bpp >> 1), in s1d13xxxfb_bitblt_copyarea() 539 u16 bpp = (info->var.bits_per_pixel >> 3); in s1d13xxxfb_bitblt_solidfill() local [all …]
|
D | c2p.h | 15 u32 src_nextline, u32 bpp); 19 u32 bpp);
|
D | da8xx-fb.c | 481 if (cfg->bpp == 12 && cfg->stn_565_mode) in lcd_cfg_display() 525 u32 bpp, u32 raster_order) in lcd_cfg_frame_buffer() argument 529 if (bpp > 16 && lcd_revision == LCD_VERSION_1) in lcd_cfg_frame_buffer() 578 switch (bpp) { in lcd_cfg_frame_buffer() 784 u32 bpp; in lcd_init() local 816 bpp = cfg->bpp; in lcd_init() 818 if (bpp == 12) in lcd_init() 819 bpp = 16; in lcd_init() 821 (unsigned int)panel->yres, bpp, in lcd_init() 956 int bpp = var->bits_per_pixel >> 3; in fb_check_var() local [all …]
|
D | pm3fb.c | 189 static inline int pm3fb_shift_bpp(unsigned bpp, int v) in pm3fb_shift_bpp() argument 191 switch (bpp) { in pm3fb_shift_bpp() 199 DPRINTK("Unsupported depth %u\n", bpp); in pm3fb_shift_bpp() 738 const unsigned bpp = info->var.bits_per_pixel; in pm3fb_write_mode() local 747 pm3fb_shift_bpp(bpp, htotal - 1)); in pm3fb_write_mode() 749 pm3fb_shift_bpp(bpp, hsend)); in pm3fb_write_mode() 751 pm3fb_shift_bpp(bpp, hsstart)); in pm3fb_write_mode() 753 pm3fb_shift_bpp(bpp, hbend)); in pm3fb_write_mode() 755 pm3fb_shift_bpp(bpp, hbend)); in pm3fb_write_mode() 757 pm3fb_shift_bpp(bpp, width)); in pm3fb_write_mode() [all …]
|
D | sa1100fb.h | 76 #define SA1100_PALETTE_MODE_VAL(bpp) (((bpp) & 0x018) << 9) argument
|
D | amba-clcd.c | 490 fb->fb.var.bits_per_pixel = fb->panel->bpp; in clcdfb_register() 654 unsigned int bpp; in clcdfb_of_init_display() local 680 bpp = max_bandwidth / (1000 / 8) in clcdfb_of_init_display() 682 bpp = rounddown_pow_of_two(bpp); in clcdfb_of_init_display() 683 if (bpp > 32) in clcdfb_of_init_display() 684 bpp = 32; in clcdfb_of_init_display() 686 bpp = 32; in clcdfb_of_init_display() 687 fb->panel->bpp = bpp; in clcdfb_of_init_display() 763 fb->panel->bpp / 8; in clcdfb_of_dma_setup()
|
D | amifb.c | 722 u_short bpp; /* vmode */ member 1155 par->bpp = var->bits_per_pixel; in ami_decode_var() 1157 if (par->bpp < 1) in ami_decode_var() 1158 par->bpp = 1; in ami_decode_var() 1159 if (par->bpp > maxdepth[clk_shift]) { in ami_decode_var() 1161 par->bpp = maxdepth[clk_shift]; in ami_decode_var() 1168 if (par->bpp < 6) in ami_decode_var() 1169 par->bpp = 6; in ami_decode_var() 1170 if (par->bpp != 6) { in ami_decode_var() 1171 if (par->bpp < 8) in ami_decode_var() [all …]
|
D | macfb.c | 201 unsigned int bpp = info->var.bits_per_pixel; in v8_brazil_setpalette() local 204 if (bpp > 8) in v8_brazil_setpalette() 215 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in v8_brazil_setpalette() 296 unsigned int bpp = info->var.bits_per_pixel; in toby_setpalette() local 302 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in toby_setpalette()
|
D | sh_mobile_lcdcfb.c | 632 unsigned int bpp; member 640 .bpp = 16, 645 .bpp = 24, 650 .bpp = 32, 655 .bpp = 12, 660 .bpp = 12, 665 .bpp = 16, 670 .bpp = 16, 675 .bpp = 24, 680 .bpp = 24, [all …]
|
D | tdfxfb.c | 866 u32 bpp = info->var.bits_per_pixel; in tdfxfb_fillrect() local 868 u32 fmt = stride | ((bpp + ((bpp == 8) ? 0 : 8)) << 13); in tdfxfb_fillrect() 886 dstbase += dx * bpp >> 3; in tdfxfb_fillrect() 910 u32 bpp = info->var.bits_per_pixel; in tdfxfb_copyarea() local 913 u32 fmt = stride | ((bpp + ((bpp == 8) ? 0 : 8)) << 13); in tdfxfb_copyarea() 924 srcbase += sx * bpp >> 3; in tdfxfb_copyarea() 934 dstbase += dx * bpp >> 3; in tdfxfb_copyarea() 969 u32 bpp = info->var.bits_per_pixel; in tdfxfb_imageblit() local 970 u32 dstfmt = stride | ((bpp + ((bpp == 8) ? 0 : 8)) << 13); in tdfxfb_imageblit() 980 srcfmt = stride | ((bpp + ((bpp == 8) ? 0 : 8)) << 13) | in tdfxfb_imageblit() [all …]
|
D | i740fb.c | 217 static u32 i740_calc_fifo(struct i740fb_par *par, u32 freq, int bpp) in i740_calc_fifo() argument 229 switch (bpp) { in i740_calc_fifo() 413 u32 bpp, base, dacspeed24, mem; in i740fb_decode_var() local 431 bpp = var->bits_per_pixel; in i740fb_decode_var() 432 switch (bpp) { in i740fb_decode_var() 434 bpp = 8; in i740fb_decode_var() 442 bpp = 15; in i740fb_decode_var() 451 bpp = 24; in i740fb_decode_var() 460 bpp = 32; in i740fb_decode_var() 497 mem = vxres * vyres * ((bpp + 1) / 8); in i740fb_decode_var() [all …]
|
D | stifb.c | 1089 int bpp, xres, yres; in stifb_init_fb() local 1139 bpp = 8; in stifb_init_fb() 1173 bpp = 32; in stifb_init_fb() 1186 bpp = bpp_pref; in stifb_init_fb() 1188 bpp = 32; in stifb_init_fb() 1190 bpp = 8; in stifb_init_fb() 1203 bpp = 1; /* default to 1 bpp */ in stifb_init_fb() 1219 fix->line_length = (fb->sti->glob_cfg->total_x * bpp) / 8; in stifb_init_fb() 1229 switch (bpp) { in stifb_init_fb() 1255 var->bits_per_pixel = bpp; in stifb_init_fb()
|
D | jz4740_fb.c | 224 if (jzfb->pdata->bpp == 18) in jzfb_num_data_pins() 263 switch (jzfb->pdata->bpp) { in jzfb_get_controller_bpp() 270 return jzfb->pdata->bpp; in jzfb_get_controller_bpp() 294 var->bits_per_pixel != jzfb->pdata->bpp) in jzfb_check_var() 303 switch (jzfb->pdata->bpp) { in jzfb_check_var() 382 switch (pdata->bpp) { in jzfb_set_par() 676 fb->var.bits_per_pixel = pdata->bpp; in jzfb_probe()
|
D | bfin_adv7393fb.c | 161 fbdev->av1->x_modify = fbdev->modes[mode].bpp / 8; in dma_desc_list() 165 1) * (fbdev->modes[mode].bpp / 8); in dma_desc_list() 188 fbdev->av2->x_modify = (fbdev->modes[mode].bpp / 8); in dma_desc_list() 193 1) * (fbdev->modes[mode].bpp / 8); in dma_desc_list() 403 (fbdev->modes[mode].bpp / 8); in bfin_adv7393_fb_probe() 406 fbdev->modes[mode].xres * (fbdev->modes[mode].bpp / 8); in bfin_adv7393_fb_probe() 453 bfin_adv7393_fb_defined.bits_per_pixel = fbdev->modes[mode].bpp; in bfin_adv7393_fb_probe()
|
D | sbuslib.h | 15 struct device_node *dp, int bpp);
|
D | imxfb.c | 367 var->bits_per_pixel = imxfb_mode->bpp; in imxfb_check_var() 689 u32 bpp; in imxfb_of_read_mode() local 702 ret = of_property_read_u32(np, "bits-per-pixel", &bpp); in imxfb_of_read_mode() 710 if (bpp < 1 || bpp > 255) { in imxfb_of_read_mode() 715 imxfb_mode->bpp = bpp; in imxfb_of_read_mode() 887 bytes_per_pixel = (m->bpp + 7) / 8; in imxfb_probe()
|
D | wm8505fb.c | 272 u32 bpp; in wm8505fb_probe() local 319 ret = of_property_read_u32(pdev->dev.of_node, "bits-per-pixel", &bpp); in wm8505fb_probe() 332 fb_mem_len = mode.xres * mode.yres * 2 * (bpp / 8); in wm8505fb_probe() 342 fbi->fb.var.bits_per_pixel = bpp; in wm8505fb_probe()
|
D | vt8623fb.c | 389 u32 bpp = info->var.bits_per_pixel; in vt8623fb_set_par() local 391 if (bpp != 0) { in vt8623fb_set_par() 393 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par() 399 info->pixmap.blit_x = (bpp == 4) ? (1 << (8 - 1)) : (~(u32)0); in vt8623fb_set_par() 402 offset_value = (info->var.xres_virtual * bpp) / 64; in vt8623fb_set_par() 403 fetch_value = ((info->var.xres * bpp) / 128) + 4; in vt8623fb_set_par() 405 if (bpp == 4) in vt8623fb_set_par()
|
D | sh_mipi_dsi.c | 136 int bpp; in sh_mipi_setup() local 341 bpp = linelength / mode->xres; /* byte / pixel */ in sh_mipi_setup() 342 if ((pdata->lane / div) > bpp) { in sh_mipi_setup() 343 tmp = mode->xres / bpp; /* output cycle */ in sh_mipi_setup()
|
D | imsttfb.c | 564 set_imstt_regvals_ibm (struct imstt_par *par, u_int bpp) in set_imstt_regvals_ibm() argument 567 __u8 pformat = (bpp >> 3) + 2; in set_imstt_regvals_ibm() 584 set_imstt_regvals_tvp (struct imstt_par *par, u_int bpp) in set_imstt_regvals_tvp() argument 590 switch (bpp) { in set_imstt_regvals_tvp() 656 set_imstt_regvals (struct fb_info *info, u_int bpp) in set_imstt_regvals() argument 663 set_imstt_regvals_ibm(par, bpp); in set_imstt_regvals() 665 set_imstt_regvals_tvp(par, bpp); in set_imstt_regvals() 678 switch (bpp) { in set_imstt_regvals() 883 u_int bpp = info->var.bits_per_pixel; in imsttfb_setcolreg() local 893 if (0 && bpp == 16) /* screws up X */ in imsttfb_setcolreg() [all …]
|
D | vt8500lcdfb.c | 282 u32 bpp; in vt8500lcd_probe() local 354 ret = of_property_read_u32(pdev->dev.of_node, "bits-per-pixel", &bpp); in vt8500lcd_probe() 359 fb_mem_len = of_mode.xres * of_mode.yres * 2 * (bpp / 8); in vt8500lcd_probe() 409 fbi->fb.var.bits_per_pixel = bpp; in vt8500lcd_probe()
|
D | au1200fb.c | 1291 unsigned int val, bpp; in set_window() local 1345 bpp = winbpp(val) / 8; in set_window() 1347 val |= (((pdata->xsize * bpp) << 8) & LCD_WINCTRL2_BX); in set_window() 1520 int bpp; in au1200fb_init_fbinfo() local 1524 bpp = winbpp(win->w[fbdev->plane].mode_winctrl1); in au1200fb_init_fbinfo() 1541 bpp)) { in au1200fb_init_fbinfo() 1651 int bpp, plane, ret, irq; in au1200fb_drv_probe() local 1675 bpp = winbpp(win->w[plane].mode_winctrl1); in au1200fb_drv_probe() 1694 fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; in au1200fb_drv_probe()
|
/linux-4.1.27/drivers/video/fbdev/core/ |
D | sysimgblt.c | 58 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() local 59 u32 null_bits = 32 - bpp; in color_imageblit() 82 color <<= FB_LEFT_POS(p, bpp); in color_imageblit() 90 shift += bpp; in color_imageblit() 115 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local 118 u32 null_bits = 32 - bpp; in slow_imageblit() 124 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 125 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 153 shift += bpp; in slow_imageblit() 189 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local [all …]
|
D | cfbimgblt.c | 83 int i, n, bpp = p->var.bits_per_pixel; in color_imageblit() local 84 u32 null_bits = 32 - bpp; in color_imageblit() 108 color <<= FB_LEFT_POS(p, bpp); in color_imageblit() 116 shift += bpp; in color_imageblit() 143 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local 146 u32 null_bits = 32 - bpp; in slow_imageblit() 153 fgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 154 bgcolor <<= FB_LEFT_POS(p, bpp); in slow_imageblit() 182 shift += bpp; in slow_imageblit() 219 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local [all …]
|
D | fb_draw.h | 25 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument 27 switch (bpp) { in pixel_to_pat() 45 WARN(1, "pixel_to_pat(): unsupported pixelformat %d\n", bpp); in pixel_to_pat() 51 pixel_to_pat( u32 bpp, u32 pixel) in pixel_to_pat() argument 53 switch (bpp) { in pixel_to_pat() 71 WARN(1, "pixel_to_pat(): unsupported pixelformat %d\n", bpp); in pixel_to_pat() 147 unsigned bpp = info->var.bits_per_pixel; in fb_compute_bswapmask() local 149 if ((bpp < 8) && (info->var.nonstd & FB_NONSTD_REV_PIX_IN_B)) { in fb_compute_bswapmask() 154 bswapmask = 7 - bpp + 1; in fb_compute_bswapmask()
|
D | sysfillrect.c | 248 u32 bpp = p->var.bits_per_pixel; in sys_fillrect() local 261 pat = pixel_to_pat( bpp, fg); in sys_fillrect() 265 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in sys_fillrect() 267 left = bits % bpp; in sys_fillrect() 291 fill_op32(p, dst, dst_idx, pat, width*bpp, bits); in sys_fillrect() 301 left = bpp - right; in sys_fillrect() 303 right = bpp - left; in sys_fillrect() 321 r = dst_idx % bpp; in sys_fillrect() 323 pat2 = le_long_to_cpu(rolx(cpu_to_le_long(pat), r, bpp)); in sys_fillrect() 325 width*bpp, bits); in sys_fillrect()
|
D | cfbfillrect.c | 283 u32 bpp = p->var.bits_per_pixel; in cfb_fillrect() local 296 pat = pixel_to_pat(bpp, fg); in cfb_fillrect() 300 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in cfb_fillrect() 302 left = bits % bpp; in cfb_fillrect() 327 fill_op32(p, dst, dst_idx, pat, width*bpp, bits, in cfb_fillrect() 338 left = bpp - right; in cfb_fillrect() 340 right = bpp - left; in cfb_fillrect() 357 r = dst_idx % bpp; in cfb_fillrect() 359 pat2 = le_long_to_cpu(rolx(cpu_to_le_long(pat), r, bpp)); in cfb_fillrect() 361 width*bpp, bits); in cfb_fillrect()
|
D | modedb.c | 600 const struct fb_videomode *mode, unsigned int bpp) in fb_try_mode() argument 606 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 613 var->bits_per_pixel = bpp; in fb_try_mode() 699 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 721 bpp = simple_strtol(&name[i+1], NULL, in fb_find_mode() 786 if (!ret && !fb_try_mode(var, info, &cvt_mode, bpp)) { in fb_find_mode() 821 !fb_try_mode(var, info, &db[i], bpp)) { in fb_find_mode() 832 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode() 841 if (!fb_try_mode(var, info, &db[i], bpp)) { in fb_find_mode() 859 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | intel_dsi_pll.c | 59 u32 bpp; in dsi_rr_formula() local 72 bpp = 24; in dsi_rr_formula() 75 bpp = 18; in dsi_rr_formula() 78 bpp = 16; in dsi_rr_formula() 92 hsync_bytes = DIV_ROUND_UP(hsync * bpp, 8); in dsi_rr_formula() 93 hbp_bytes = DIV_ROUND_UP(hbp * bpp, 8); in dsi_rr_formula() 94 hactive_bytes = DIV_ROUND_UP(hactive * bpp, 8); in dsi_rr_formula() 95 hfp_bytes = DIV_ROUND_UP(hfp * bpp, 8); in dsi_rr_formula() 140 u32 bpp; in dsi_clk_from_pclk() local 146 bpp = 24; in dsi_clk_from_pclk() [all …]
|
D | intel_dsi.c | 682 static u16 txbyteclkhs(u16 pixels, int bpp, int lane_count, in txbyteclkhs() argument 685 return DIV_ROUND_UP(DIV_ROUND_UP(pixels * bpp * burst_mode_ratio, in txbyteclkhs() 697 unsigned int bpp = intel_crtc->config->pipe_bpp; in set_dsi_timings() local 721 hactive = txbyteclkhs(hactive, bpp, lane_count, in set_dsi_timings() 723 hfp = txbyteclkhs(hfp, bpp, lane_count, intel_dsi->burst_mode_ratio); in set_dsi_timings() 724 hsync = txbyteclkhs(hsync, bpp, lane_count, in set_dsi_timings() 726 hbp = txbyteclkhs(hbp, bpp, lane_count, intel_dsi->burst_mode_ratio); in set_dsi_timings() 754 unsigned int bpp = intel_crtc->config->pipe_bpp; in intel_dsi_prepare() local 833 txbyteclkhs(adjusted_mode->htotal, bpp, in intel_dsi_prepare() 840 bpp, intel_dsi->lane_count, in intel_dsi_prepare()
|
D | intel_dp_mst.c | 40 int bpp, i; in intel_dp_mst_compute_config() local 49 bpp = 24; in intel_dp_mst_compute_config() 88 mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->clock, bpp); in intel_dp_mst_compute_config() 93 intel_link_compute_m_n(bpp, lane_count, in intel_dp_mst_compute_config()
|
/linux-4.1.27/drivers/gpu/drm/shmobile/ |
D | shmob_drm_kms.c | 34 .bpp = 16, 40 .bpp = 24, 46 .bpp = 32, 52 .bpp = 12, 58 .bpp = 12, 64 .bpp = 16, 70 .bpp = 16, 76 .bpp = 24, 82 .bpp = 24, 125 unsigned int chroma_cpp = format->bpp == 24 ? 2 : 1; in shmob_drm_fb_create()
|
D | shmob_drm_plane.c | 50 unsigned int bpp; in shmob_drm_plane_compute_base() local 52 bpp = splane->format->yuv ? 8 : splane->format->bpp; in shmob_drm_plane_compute_base() 55 + y * fb->pitches[0] + x * bpp / 8; in shmob_drm_plane_compute_base() 58 bpp = splane->format->bpp - 8; in shmob_drm_plane_compute_base() 61 + y / (bpp == 4 ? 2 : 1) * fb->pitches[1] in shmob_drm_plane_compute_base() 62 + x * (bpp == 16 ? 2 : 1); in shmob_drm_plane_compute_base()
|
D | shmob_drm_crtc.c | 310 unsigned int bpp; in shmob_drm_crtc_compute_base() local 312 bpp = scrtc->format->yuv ? 8 : scrtc->format->bpp; in shmob_drm_crtc_compute_base() 315 + y * fb->pitches[0] + x * bpp / 8; in shmob_drm_crtc_compute_base() 318 bpp = scrtc->format->bpp - 8; in shmob_drm_crtc_compute_base() 321 + y / (bpp == 4 ? 2 : 1) * fb->pitches[1] in shmob_drm_crtc_compute_base() 322 + x * (bpp == 16 ? 2 : 1); in shmob_drm_crtc_compute_base()
|
D | shmob_drm_kms.h | 24 unsigned int bpp; member
|
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/ |
D | arb.c | 47 int bpp; member 58 int pagemiss, cas, width, bpp; in nv04_calc_arb() local 71 bpp = arb->bpp; in nv04_calc_arb() 88 crtc_drain_rate = pclk_freq * bpp / 8; in nv04_calc_arb() 98 p1 = p1 * bpp / 8; in nv04_calc_arb() 128 drain_rate = pclk_freq * arb->bpp / 8; /* kB/s */ in nv10_calc_arb() 165 + (arb->bpp == 32 ? 8 : 4); /* Margin of error. */ in nv10_calc_arb() 197 nv04_update_arb(struct drm_device *dev, int VClk, int bpp, in nv04_update_arb() argument 211 sim_data.bpp = bpp; in nv04_update_arb() 253 nouveau_calc_arb(struct drm_device *dev, int vclk, int bpp, int *burst, int *lwm) in nouveau_calc_arb() argument [all …]
|
D | hw.h | 57 extern void nouveau_calc_arb(struct drm_device *, int vclk, int bpp, 390 nv_pitch_align(struct drm_device *dev, uint32_t width, int bpp) in nv_pitch_align() argument 395 if (bpp == 15) in nv_pitch_align() 396 bpp = 16; in nv_pitch_align() 397 if (bpp == 24) in nv_pitch_align() 398 bpp = 8; in nv_pitch_align() 402 mask = 128 / bpp - 1; in nv_pitch_align() 404 mask = 512 / bpp - 1; in nv_pitch_align()
|
/linux-4.1.27/include/linux/sunrpc/ |
D | cache.h | 89 char **bpp, int *blen); 227 extern void qword_add(char **bpp, int *lp, char *str); 228 extern void qword_addhex(char **bpp, int *lp, char *buf, int blen); 229 extern int qword_get(char **bpp, char *dest, int bufsize); 231 static inline int get_int(char **bpp, int *anint) in get_int() argument 236 int len = qword_get(bpp, buf, sizeof(buf)); in get_int() 251 static inline int get_uint(char **bpp, unsigned int *anint) in get_uint() argument 254 int len = qword_get(bpp, buf, sizeof(buf)); in get_uint() 267 static inline int get_time(char **bpp, time_t *time) in get_time() argument 271 int len = qword_get(bpp, buf, sizeof(buf)); in get_time() [all …]
|
/linux-4.1.27/Documentation/fb/ |
D | arkfb.txt | 19 * 4 bpp pseudocolor modes (with 18bit palette, two variants) 20 * 8 bpp pseudocolor mode (with 18bit palette) 21 * 16 bpp truecolor modes (RGB 555 and RGB 565) 22 * 24 bpp truecolor mode (RGB 888) 23 * 32 bpp truecolor mode (RGB 888) 24 * text mode (activated by bpp = 0) 36 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 54 * support for fontwidths != 8 in 4 bpp modes
|
D | s3fb.txt | 26 * 4 bpp pseudocolor modes (with 18bit palette, two variants) 27 * 8 bpp pseudocolor mode (with 18bit palette) 28 * 16 bpp truecolor modes (RGB 555 and RGB 565) 29 * 24 bpp truecolor mode (RGB 888) on (only on Virge VX) 30 * 32 bpp truecolor mode (RGB 888) on (not on Virge VX) 31 * text mode (activated by bpp = 0) 45 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 62 * 24 bpp mode support on more cards 63 * support for fontwidths != 8 in 4 bpp modes
|
D | vt8623fb.txt | 18 * 4 bpp pseudocolor modes (with 18bit palette, two variants) 19 * 8 bpp pseudocolor mode (with 18bit palette) 20 * 16 bpp truecolor mode (RGB 565) 21 * 32 bpp truecolor mode (RGB 888) 22 * text mode (activated by bpp = 0) 33 There are two 4 bpp modes. First mode (selected if nonstd == 0) is mode with 49 * support for fontwidths != 8 in 4 bpp modes
|
D | matroxfb.txt | 42 bpp | 640x400 640x480 768x576 800x600 960x720 54 bpp | 1024x768 1152x864 1280x1024 1408x1056 1600x1200 83 architectures there are some glitches for 24bpp videomodes. 8, 16 and 32bpp 180 inv24 - change timings parameters for 24bpp modes on Millennium and 202 4bpp, 8bpp). In DIRECTCOLOR modes it is limited to characters 233 has 8bpp support. Otherwise first available of 640x350x4bpp, 291 + 24bpp does not support correctly XF-FBDev on big-endian architectures. 309 (and it works with 8bpp on about 320 MHz dotclocks (and changed mclk)). 323 + 4bpp is available only on Millennium I and Millennium II. It is hardware 325 + selection between 1:5:5:5 and 5:6:5 16bpp videomode is done by -rgba [all …]
|
D | sm501.txt | 5 sm501fb.bpp= SM501 Display driver: 10 "<xres>x<yres>[-<bpp>][@<refresh>]"
|
D | sa1100fb.txt | 14 video=sa1100fb:bpp:<value>,lccr0:<value>,lccr1:<value>,lccr2:<value>,lccr3:<value> 17 controller. The bits per pixel (bpp) value should be 4, 8, 12, or 32 bpp:<value> Configure for <value> bits per pixel
|
D | pvr2fb.txt | 32 mode:X - default video mode with format [xres]x[yres]-<bpp>@<refresh rate> 36 24bpp and 32bpp modes function poorly. Work to fix that is
|
D | intel810.txt | 36 - Full and optimized hardware acceleration at 8, 16 and 24 bpp 87 f. "bpp:<value>" 162 than 8 bpp. Useful for color tuning, such as gamma control. 167 o. <xres>x<yres>[-<bpp>][@<refresh>] 184 append="video=i810fb:vram:2,xres:1024,yres:768,bpp:8,hsync1:30,hsync2:55, \ 187 This will initialize the framebuffer to 1024x768 at 8bpp. The framebuffer 211 modprobe i810fb vram=2 xres=1024 bpp=8 hsync1=30 hsync2=55 vsync1=50 \ 216 options i810fb vram=2 xres=1024 bpp=16 hsync1=30 hsync2=55 vsync1=50 \
|
D | tgafb.txt | 10 ZLxP-E1 (8bpp, 2 MB VRAM) 11 ZLxP-E2 (32bpp, 8 MB VRAM) 12 ZLxP-E3 (32bpp, 16 MB VRAM, Zbuffer)
|
D | modedb.txt | 23 <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd] 24 <name>[-<bpp>][@<refresh>] 26 with <xres>, <yres>, <bpp> and <refresh> decimal numbers and <name> a string. 30 <bpp> and <refresh>, if specified) the timings will be calculated using 131 video=<driver>:<xres>x<yres>[-<bpp>][@refresh]
|
D | tridentfb.txt | 15 is enabled. This means that range of possible resolutions and bpp is 62 bpp - bits per pixel (8,16 or 32)
|
D | viafb.txt | 26 color depth: 8 bpp, 16 bpp, 32 bpp supports. 174 and bpp, need to call VIAFB specified ioctl interface VIAFB_SET_DEVICE
|
/linux-4.1.27/drivers/video/fbdev/omap/ |
D | lcdc.c | 62 int bpp; member 199 xelem = lcdc.xres * lcdc.bpp / 8 / esize; in setup_lcd_dma() 209 xelem = lcdc.yres * lcdc.bpp / 16; in setup_lcd_dma() 223 int bpp = lcdc.bpp; in setup_lcd_dma() local 230 bpp = 16; in setup_lcd_dma() 233 lcdc.screen_width * bpp / 8 / esize); in setup_lcd_dma() 325 lcdc.bpp = 8; in omap_lcdc_setup_plane() 330 lcdc.bpp = 16; in omap_lcdc_setup_plane() 335 lcdc.bpp = 16; in omap_lcdc_setup_plane() 341 lcdc.bpp = 12; in omap_lcdc_setup_plane() [all …]
|
D | omapfb_main.c | 158 int bpp = panel->bpp; in ctrl_init() local 161 if (bpp == 12) in ctrl_init() 162 bpp = 16; in ctrl_init() 163 def_size = def_vxres * def_vyres * bpp / 8; in ctrl_init() 392 int bpp; in set_fb_fix() local 408 bpp = var->bits_per_pixel; in set_fb_fix() 416 bpp = 16; in set_fb_fix() 426 fix->line_length = var->xres_virtual * bpp / 8; in set_fb_fix() 467 if (plane->fbdev->panel->bpp == 12) in set_color_mode() 484 int bpp; in set_fb_var() local [all …]
|
D | lcd_palmte.c | 59 .bpp = 8,
|
D | lcd_palmz71.c | 60 .bpp = 16,
|
D | lcd_inn1510.c | 60 .bpp = 16,
|
D | lcd_palmtt.c | 64 .bpp = 16,
|
D | lcd_htcherald.c | 65 .bpp = 16,
|
D | lcd_osk.c | 81 .bpp = 16,
|
D | lcd_inn1610.c | 81 .bpp = 16,
|
D | lcd_h3.c | 76 .bpp = 16,
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | mac_via.h | 268 static inline int rbv_set_video_bpp(int bpp) in rbv_set_video_bpp() argument 270 char val = (bpp==1)?0:(bpp==2)?1:(bpp==4)?2:(bpp==8)?3:-1; in rbv_set_video_bpp()
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 39 .bpp = 16, 45 .bpp = 16, 51 .bpp = 16, 57 .bpp = 32, 63 .bpp = 32, 69 .bpp = 16, 75 .bpp = 16, 81 .bpp = 12, 87 .bpp = 12, 94 .bpp = 16, [all …]
|
D | rcar_du_kms.h | 26 unsigned int bpp; member
|
D | rcar_du_plane.c | 67 mwr = fb->pitches[0] * 8 / state->format->bpp; in rcar_du_plane_setup_fb() 69 if (interlaced && state->format->bpp == 32) in rcar_du_plane_setup_fb() 88 (!interlaced && state->format->bpp == 32 ? 2 : 1)); in rcar_du_plane_setup_fb() 100 (state->format->bpp == 16 ? 2 : 1) / 2); in rcar_du_plane_setup_fb()
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_dir2_priv.h | 33 struct xfs_buf **bpp); 50 xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); 59 struct xfs_buf **bpp); 63 xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); 73 struct xfs_buf **bpp, __uint16_t magic); 117 xfs_dablk_t fbno, struct xfs_buf **bpp);
|
D | xfs_da_btree.h | 166 int level, struct xfs_buf **bpp, int whichfork); 189 struct xfs_buf **bpp, int which_fork); 202 struct xfs_buf **bpp, int whichfork,
|
D | xfs_ialloc.h | 131 struct xfs_buf **bpp); /* allocation group hdr buf */ 164 xfs_agnumber_t agno, struct xfs_buf **bpp);
|
D | xfs_alloc.h | 195 struct xfs_buf **bpp); /* buffer for the ag freelist header */ 235 xfs_agnumber_t agno, int flags, struct xfs_buf **bpp);
|
/linux-4.1.27/drivers/gpu/drm/bochs/ |
D | bochs_hw.c | 157 bochs->bpp = 32; in bochs_hw_setmode() 158 bochs->stride = mode->hdisplay * (bochs->bpp / 8); in bochs_hw_setmode() 162 bochs->xres, bochs->yres, bochs->bpp, in bochs_hw_setmode() 168 bochs_dispi_write(bochs, VBE_DISPI_INDEX_BPP, bochs->bpp); in bochs_hw_setmode() 187 x * (bochs->bpp / 8); in bochs_hw_setbase() 189 int vx = (offset % bochs->stride) * 8 / bochs->bpp; in bochs_hw_setbase()
|
/linux-4.1.27/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 73 unsigned int bpp; member 103 .l.bpp = 4, 105 .s.bpp = 2, 112 .l.bpp = 4, 114 .s.bpp = 2, 121 .l.bpp = 4, 123 .s.bpp = 2, 130 .l.bpp = 4, 132 .s.bpp = 2, 139 .l.bpp = 2, [all …]
|
D | am437x-vpfe.h | 70 int bpp; member 258 unsigned int bpp; member
|
/linux-4.1.27/arch/arm/mach-sa1100/ |
D | lart.c | 34 .pixclock = 150000, .bpp = 4, 50 .pixclock = 150000, .bpp = 16, 63 .pixclock = 39721, .bpp = 16, 79 .pixclock = 63291, .bpp = 16,
|
D | shannon.c | 61 .pixclock = 152500, .bpp = 8,
|
D | h3100.c | 63 .pixclock = 406977, .bpp = 4,
|
/linux-4.1.27/drivers/gpu/drm/cirrus/ |
D | cirrus_main.c | 56 u32 bpp, depth; in cirrus_user_framebuffer_create() local 58 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in cirrus_user_framebuffer_create() 61 bpp, mode_cmd->pitches[0])) in cirrus_user_framebuffer_create() 247 args->pitch = args->width * ((args->bpp + 7) / 8); in cirrus_dumb_create() 318 int bpp, int pitch) in cirrus_check_framebuffer() argument 323 if (bpp > cirrus_bpp) in cirrus_check_framebuffer() 325 if (bpp > 32) in cirrus_check_framebuffer()
|
D | cirrus_fbdev.c | 27 int bpp = (afbdev->gfb.base.bits_per_pixel + 7)/8; in cirrus_dirty_update() local 87 src_offset = dst_offset = i * afbdev->gfb.base.pitches[0] + (x * bpp); in cirrus_dirty_update() 88 memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, width * bpp); in cirrus_dirty_update() 143 u32 bpp, depth; in cirrusfb_create_object() local 148 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in cirrusfb_create_object() 151 bpp, mode_cmd->pitches[0])) in cirrusfb_create_object()
|
D | cirrus_drv.c | 23 MODULE_PARM_DESC(bpp, "Max bits-per-pixel (default:24)"); 24 module_param_named(bpp, cirrus_bpp, int, 0400);
|
/linux-4.1.27/drivers/video/fbdev/via/ |
D | via_utility.h | 30 void viafb_set_gamma_table(int bpp, unsigned int *gamma_table); 32 void viafb_get_gamma_support_state(int bpp, unsigned int *support_state);
|
D | via_utility.c | 132 void viafb_set_gamma_table(int bpp, unsigned int *gamma_table) in viafb_set_gamma_table() argument 145 if (bpp == 8) in viafb_set_gamma_table() 236 void viafb_get_gamma_support_state(int bpp, unsigned int *support_state) in viafb_get_gamma_support_state() argument 238 if (bpp == 8) in viafb_get_gamma_support_state()
|
D | ioctl.h | 99 unsigned short bpp; member 120 u32 bpp; member 201 int viafb_ioctl_hotplug(int hres, int vres, int bpp);
|
D | ioctl.c | 81 int viafb_ioctl_hotplug(int hres, int vres, int bpp) in viafb_ioctl_hotplug() argument
|
D | accel.c | 27 static int viafb_set_bpp(void __iomem *engine, u8 bpp) in viafb_set_bpp() argument 34 switch (bpp) { in viafb_set_bpp() 45 printk(KERN_WARNING "viafb_set_bpp: Unsupported bpp %d\n", bpp); in viafb_set_bpp()
|
/linux-4.1.27/arch/arm/mach-pxa/ |
D | cm-x2xx.c | 201 .bpp = 8, 226 .bpp = 8, 250 .bpp = 8, 274 .bpp = 8, 298 .bpp = 16, 321 .bpp = 8,
|
D | lpd270.c | 294 .bpp = 16, 316 .bpp = 16, 338 .bpp = 16, 360 .bpp = 16, 382 .bpp = 16, 404 .bpp = 16,
|
D | zylonite.c | 143 .bpp = 16, 157 .bpp = 16, 177 .bpp = 16, 190 .bpp = 16,
|
D | vpac270.c | 484 .bpp = 32, 500 .bpp = 16, 516 .bpp = 16, 532 .bpp = 16,
|
D | am200epd.c | 49 .bpp = 16, 63 .bpp = 16, 77 .bpp = 16,
|
D | palm27x.c | 91 .bpp = 16, 106 .bpp = 16, 121 .bpp = 16,
|
D | littleton.c | 155 .bpp = 16, 169 .bpp = 16,
|
D | pcm990-baseboard.c | 110 .bpp = 16, 132 .bpp = 16,
|
D | colibri-pxa3xx.c | 83 .bpp = 32,
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
D | armada_drm.h | 32 static inline uint32_t armada_pitch(uint32_t width, uint32_t bpp) in armada_pitch() argument 34 uint32_t pitch = bpp != 4 ? width * ((bpp + 7) / 8) : width / 2; in armada_pitch()
|
/linux-4.1.27/drivers/video/fbdev/aty/ |
D | mach64_gx.c | 80 const union aty_pll *pll, u32 bpp, u32 accel) in aty_set_dac_514() argument 99 switch (bpp) { in aty_set_dac_514() 123 u32 bpp, union aty_pll *pll) in aty_var_to_pll_514() argument 205 const union aty_pll *pll, u32 bpp, in aty_set_dac_ATI68860_B() argument 214 switch (bpp) { in aty_set_dac_ATI68860_B() 288 const union aty_pll *pll, u32 bpp, in aty_set_dac_ATT21C498() argument 298 switch (bpp) { in aty_set_dac_ATT21C498() 341 u32 bpp, union aty_pll *pll) in aty_var_to_pll_18818() argument 497 u32 bpp, union aty_pll *pll) in aty_var_to_pll_1703() argument 613 u32 bpp, union aty_pll *pll) in aty_var_to_pll_8398() argument [all …]
|
D | mach64_ct.c | 18 static int aty_dsp_gt (const struct fb_info *info, u32 bpp, struct pll_ct *pll); 19 static int aty_var_to_pll_ct(const struct fb_info *info, u32 vclk_per, u32 bpp, union aty_pll *pll); 119 static int aty_dsp_gt(const struct fb_info *info, u32 bpp, struct pll_ct *pll) in aty_dsp_gt() argument 132 if (bpp>=8) in aty_dsp_gt() 133 divider = divider * (bpp >> 2); in aty_dsp_gt() 137 if (bpp == 0) in aty_dsp_gt() 250 static int aty_var_to_pll_ct(const struct fb_info *info, u32 vclk_per, u32 bpp, union aty_pll *pll) in aty_var_to_pll_ct() argument 257 if (M64_HAS(GTB_DSP) && (err = aty_dsp_gt(info, bpp, &pll->ct))) in aty_var_to_pll_ct()
|
D | aty128fb.c | 434 u32 depth, bpp; member 754 if (par->crtc.bpp == 24) { in aty128_init_engine() 1057 u32 xres, yres, vxres, vyres, xoffset, yoffset, bpp, dst; in aty128_var_to_crtc() local 1071 bpp = var->bits_per_pixel; in aty128_var_to_crtc() 1081 if (bpp != 16) in aty128_var_to_crtc() 1082 depth = bpp; in aty128_var_to_crtc() 1175 crtc->bpp = bpp; in aty128_var_to_crtc() 1453 u32 n, d, bpp; in aty128_ddafifo() local 1456 bpp = (depth+7) & ~7; in aty128_ddafifo() 1459 d = pll->vclk * bpp; in aty128_ddafifo() [all …]
|
D | atyfb_base.c | 779 static u32 calc_line_length(struct atyfb_par *par, u32 vxres, u32 bpp) in calc_line_length() argument 781 u32 line_length = vxres * bpp / 8; in calc_line_length() 795 u32 xres, yres, vxres, vyres, xoffset, yoffset, bpp; in aty_var_to_crtc() local 809 bpp = var->bits_per_pixel; in aty_var_to_crtc() 810 if (bpp == 16) in aty_var_to_crtc() 811 bpp = (var->green.length == 5) ? 15 : 16; in aty_var_to_crtc() 824 if (bpp <= 8) { in aty_var_to_crtc() 825 bpp = 8; in aty_var_to_crtc() 830 } else if (bpp <= 15) { in aty_var_to_crtc() 831 bpp = 16; in aty_var_to_crtc() [all …]
|
D | atyfb.h | 16 u32 bpp; member 303 const union aty_pll * pll, u32 bpp, u32 accel); 318 int (*var_to_pll) (const struct fb_info * info, u32 vclk_per, u32 bpp, union aty_pll * pll);
|
/linux-4.1.27/drivers/hid/ |
D | hid-picolcd_fb.c | 151 static int picolcd_fb_update_tile(u8 *vbitmap, const u8 *bitmap, int bpp, in picolcd_fb_update_tile() argument 158 if (bpp == 1) { in picolcd_fb_update_tile() 166 } else if (bpp == 8) { in picolcd_fb_update_tile() 221 memset(fbdata->bitmap, 0, PICOLCDFB_SIZE*fbdata->bpp); in picolcd_fb_reset() 261 fbdata->bpp, chip, tile)) in picolcd_fb_update() 366 __u32 bpp = var->bits_per_pixel; in picolcd_fb_check_var() local 372 if (bpp >= 8) { in picolcd_fb_check_var() 390 if (info->var.bits_per_pixel == fbdata->bpp) in picolcd_set_par() 425 fbdata->bpp = info->var.bits_per_pixel; in picolcd_set_par() 547 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()
|
/linux-4.1.27/arch/arm/mach-nspire/ |
D | clcd.c | 38 .bpp = 16, 60 .bpp = 8, 90 panel_size = ((panel->mode.xres * panel->mode.yres) * panel->bpp) / 8; in nspire_clcd_setup()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_fb.c | 96 int radeon_align_pitch(struct radeon_device *rdev, int width, int bpp, bool tiled) in radeon_align_pitch() argument 102 switch (bpp / 8) { in radeon_align_pitch() 146 u32 bpp, depth; in radeonfb_create_pinned_object() local 148 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in radeonfb_create_pinned_object() 151 mode_cmd->pitches[0] = radeon_align_pitch(rdev, mode_cmd->width, bpp, in radeonfb_create_pinned_object() 152 fb_tiled) * ((bpp + 1) / 8); in radeonfb_create_pinned_object() 172 switch (bpp) { in radeonfb_create_pinned_object()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | mdfld_dsi_dpi.c | 417 int num_lane, int bpp) in mdfld_dsi_dpi_to_byte_clock_count() argument 419 return (u16)((pixel_clock_count * bpp) / (num_lane * 8)); in mdfld_dsi_dpi_to_byte_clock_count() 430 int num_lane, int bpp) in mdfld_dsi_dpi_timing_calculation() argument 449 pclk_hsync, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() 451 pclk_hbp, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() 453 pclk_hfp, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() 455 pclk_hactive, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() 457 pclk_vsync, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() 459 pclk_vbp, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() 461 pclk_vfp, num_lane, bpp); in mdfld_dsi_dpi_timing_calculation() [all …]
|
D | framebuffer.c | 247 u32 bpp, depth; in psb_framebuffer_init() local 250 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in psb_framebuffer_init() 254 switch (bpp) { in psb_framebuffer_init() 350 u32 bpp, depth; in psbfb_create() local 356 bpp = sizes->surface_bpp; in psbfb_create() 360 if (bpp == 24) in psbfb_create() 361 bpp = 32; in psbfb_create() 369 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); in psbfb_create() 397 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 64); in psbfb_create() 419 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth); in psbfb_create()
|
D | intel_bios.c | 67 dev_priv->edp.bpp = 18; in parse_edp() 71 dev_priv->edp.bpp); in parse_edp() 79 dev_priv->edp.bpp = 18; in parse_edp() 82 dev_priv->edp.bpp = 24; in parse_edp() 85 dev_priv->edp.bpp = 30; in parse_edp() 115 dev_priv->edp.lanes, dev_priv->edp.rate, dev_priv->edp.bpp); in parse_edp()
|
D | cdv_intel_dp.c | 368 cdv_intel_dp_link_required(int pixel_clock, int bpp) in cdv_intel_dp_link_required() argument 370 return (pixel_clock * bpp + 7) / 8; in cdv_intel_dp_link_required() 529 (cdv_intel_dp_link_required(mode->clock, dev_priv->edp.bpp) in cdv_intel_dp_mode_valid() 906 int bpp = 24; in cdv_intel_dp_mode_fixup() local 911 bpp = dev_priv->edp.bpp; in cdv_intel_dp_mode_fixup() 918 if (cdv_intel_dp_link_required(refclock, bpp) <= link_avail) { in cdv_intel_dp_mode_fixup() 970 cdv_intel_dp_compute_m_n(int bpp, in cdv_intel_dp_compute_m_n() argument 977 m_n->gmch_m = (pixel_clock * bpp + 7) >> 3; in cdv_intel_dp_compute_m_n() 994 int lane_count = 4, bpp = 24; in cdv_intel_dp_set_m_n() local 1015 bpp = dev_priv->edp.bpp; in cdv_intel_dp_set_m_n() [all …]
|
D | mdfld_dsi_dpi.h | 60 int num_lane, int bpp);
|
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_plane.c | 62 int bpp[ATMEL_HLCDC_MAX_PLANES]; member 632 state->bpp[i] = drm_format_plane_cpp(fb->pixel_format, i); in atmel_hlcdc_plane_atomic_check() 633 if (!state->bpp[i]) in atmel_hlcdc_plane_atomic_check() 641 state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 644 state->pstride[i] = -fb->pitches[i] - state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 650 xdiv) * state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 652 state->bpp[i]) - fb->pitches[i]; in atmel_hlcdc_plane_atomic_check() 653 state->pstride[i] = -2 * state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 659 xdiv) * state->bpp[i]; in atmel_hlcdc_plane_atomic_check() 662 (2 * state->bpp[i]); in atmel_hlcdc_plane_atomic_check() [all …]
|
/linux-4.1.27/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 295 int bpp = 0, npb = 0, ro, go, bo, to; in ipu_cpmem_set_format_rgb() local 321 bpp = 0; in ipu_cpmem_set_format_rgb() 325 bpp = 1; in ipu_cpmem_set_format_rgb() 329 bpp = 3; in ipu_cpmem_set_format_rgb() 333 bpp = 5; in ipu_cpmem_set_format_rgb() 339 ipu_ch_param_write_field(ch, IPU_FIELD_BPP, bpp); in ipu_cpmem_set_format_rgb() 349 int bpp = 0, npb = 0; in ipu_cpmem_set_format_passthrough() local 353 bpp = 0; in ipu_cpmem_set_format_passthrough() 357 bpp = 1; in ipu_cpmem_set_format_passthrough() 361 bpp = 3; in ipu_cpmem_set_format_passthrough() [all …]
|
/linux-4.1.27/fs/nfsd/ |
D | nfs4idmap.c | 128 idtoname_request(struct cache_detail *cd, struct cache_head *ch, char **bpp, in idtoname_request() argument 134 qword_add(bpp, blen, ent->authname); in idtoname_request() 136 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in idtoname_request() 137 qword_add(bpp, blen, idstr); in idtoname_request() 139 (*bpp)[-1] = '\n'; in idtoname_request() 301 nametoid_request(struct cache_detail *cd, struct cache_head *ch, char **bpp, in nametoid_request() argument 306 qword_add(bpp, blen, ent->authname); in nametoid_request() 307 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in nametoid_request() 308 qword_add(bpp, blen, ent->name); in nametoid_request() 310 (*bpp)[-1] = '\n'; in nametoid_request()
|
D | export.c | 53 char **bpp, int *blen) in expkey_request() argument 59 qword_add(bpp, blen, ek->ek_client->name); in expkey_request() 61 qword_add(bpp, blen, type); in expkey_request() 62 qword_addhex(bpp, blen, (char*)ek->ek_fsid, key_len(ek->ek_fsidtype)); in expkey_request() 63 (*bpp)[-1] = '\n'; in expkey_request() 321 char **bpp, int *blen) in svc_export_request() argument 327 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request() 328 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request() 331 (*bpp)[0] = '\n'; in svc_export_request() 334 qword_add(bpp, blen, pth); in svc_export_request() [all …]
|
/linux-4.1.27/Documentation/arm/SA1100/ |
D | ADSBitsy | 19 - SA1100 LCD frame buffer (8/16bpp...sort of) 37 - 16bpp mode requires a different cable than what ships with the board. 39 if you compile with 16bit mode support and switch into a lower bpp
|
D | Pangolin | 18 - SA1100 LCD controller for 800x600 16bpp TFT-LCD 19 - MQ-200 driver for 800x600 16bpp TFT-LCD
|
D | GraphicsMaster | 19 - SA1100 LCD frame buffer (8/16bpp...sort of) 47 - 16bpp mode requires a different cable than what ships with the board. 49 if you compile with 16bit mode support and switch into a lower bpp
|
D | GraphicsClient | 63 - SA1100 LCD frame buffer (8/16bpp...sort of) 91 - 16bpp mode requires a different cable than what ships with the board. 93 if you compile with 16bit mode support and switch into a lower bpp
|
/linux-4.1.27/drivers/staging/sm750fb/ |
D | readme | 10 Use 1280,8bpp index color and 60 hz mode: 32 2) if you put 800x600 into the paramter without bpp and 33 refresh rate, kernel driver will defaulty use 16bpp and 60hz
|
/linux-4.1.27/fs/jfs/ |
D | jfs_mount.c | 464 int readSuper(struct super_block *sb, struct buffer_head **bpp) in readSuper() argument 467 *bpp = sb_bread(sb, SUPER1_OFF >> sb->s_blocksize_bits); in readSuper() 468 if (*bpp) in readSuper() 472 *bpp = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits); in readSuper() 473 if (*bpp) in readSuper()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_dquot.c | 410 struct xfs_buf **bpp) in xfs_qm_dqrepair() argument 423 0, bpp, NULL); in xfs_qm_dqrepair() 426 ASSERT(*bpp == NULL); in xfs_qm_dqrepair() 429 (*bpp)->b_ops = &xfs_dquot_buf_ops; in xfs_qm_dqrepair() 431 ASSERT(xfs_buf_islocked(*bpp)); in xfs_qm_dqrepair() 432 d = (struct xfs_dqblk *)(*bpp)->b_addr; in xfs_qm_dqrepair() 442 xfs_trans_brelse(tp, *bpp); in xfs_qm_dqrepair() 933 struct xfs_buf **bpp) in xfs_qm_dqflush() argument 945 *bpp = NULL; in xfs_qm_dqflush() 1042 *bpp = bp; in xfs_qm_dqflush()
|
D | xfs_trans.h | 183 struct xfs_buf **bpp, 194 struct xfs_buf **bpp, in xfs_trans_read_buf() argument 199 flags, bpp, ops); in xfs_trans_read_buf()
|
D | xfs_trans_buf.c | 248 struct xfs_buf **bpp, in xfs_trans_read_buf_map() argument 255 *bpp = NULL; in xfs_trans_read_buf_map() 287 *bpp = bp; in xfs_trans_read_buf_map() 334 *bpp = bp; in xfs_trans_read_buf_map()
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
D | qxl_dumb.c | 41 pitch = args->width * ((args->bpp + 1) / 8); in qxl_mode_dumb_create() 45 switch (args->bpp) { in qxl_mode_dumb_create()
|
D | qxl_fb.c | 454 int bpp; in qxlfb_create_pinned_object() local 457 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &bpp, &depth); in qxlfb_create_pinned_object() 513 int bpp = sizes->surface_bpp; in qxlfb_create() local 520 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 1) / 8), 64); in qxlfb_create() 521 mode_cmd.pixel_format = drm_mode_legacy_fb_format(bpp, depth); in qxlfb_create()
|
/linux-4.1.27/drivers/media/platform/blackfin/ |
D | bfin_capture.c | 52 int bpp; /* bits per pixel */ member 83 int bpp; member 115 .bpp = 16, 122 .bpp = 16, 129 .bpp = 16, 136 .bpp = 16, 143 .bpp = 16, 277 params.bpp = bcap_dev->bpp; in bcap_start_streaming() 625 pixfmt->bytesperline = pixfmt->width * fmt->bpp / 8; in bcap_try_format() 687 bcap_dev->bpp = bcap_fmt.bpp; in bcap_s_fmt_vid_cap()
|
D | ppi.c | 223 bytes_per_line = params->width * params->bpp / 8; in ppi_set_params() 225 hcount = params->width * params->bpp / params->dlen; in ppi_set_params() 226 hdelay = params->hdelay * params->bpp / params->dlen; in ppi_set_params() 227 samples_per_line = params->line * params->bpp / params->dlen; in ppi_set_params() 288 * params->bpp / params->dlen; in ppi_set_params()
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
D | mach-qt2410.c | 118 .bpp = 16, 140 .bpp = 16, 162 .bpp = 16,
|
D | mach-bast.c | 425 .bpp = 4, 443 .bpp = 8, 461 .bpp = 16,
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/ |
D | mdp4_lcdc_encoder.c | 113 int bpp, nchan, swap; in setup_phy() local 118 bpp = 3 * connector->display_info.bpc; in setup_phy() 120 if (!bpp) in setup_phy() 121 bpp = 18; in setup_phy() 127 switch (bpp) { in setup_phy() 226 dev_err(dev->dev, "unknown bpp: %d\n", bpp); in setup_phy()
|
/linux-4.1.27/sound/usb/caiaq/ |
D | device.c | 264 int rate, int depth, int bpp) in snd_usb_caiaq_set_audio_params() argument 285 tmp[2] = bpp & 0xff; in snd_usb_caiaq_set_audio_params() 286 tmp[3] = bpp >> 8; in snd_usb_caiaq_set_audio_params() 290 rate, depth, bpp); in snd_usb_caiaq_set_audio_params() 306 cdev->bpp = bpp; in snd_usb_caiaq_set_audio_params()
|
D | audio.c | 207 int bytes_per_sample, bpp, ret, i; in snd_usb_caiaq_pcm_prepare() local 266 bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE) in snd_usb_caiaq_pcm_prepare() 269 if (bpp > MAX_ENDPOINT_SIZE) in snd_usb_caiaq_pcm_prepare() 270 bpp = MAX_ENDPOINT_SIZE; in snd_usb_caiaq_pcm_prepare() 273 runtime->sample_bits, bpp); in snd_usb_caiaq_pcm_prepare() 517 if (iso->actual_length < cdev->bpp) in read_in_urb()
|
/linux-4.1.27/drivers/gpu/drm/mgag200/ |
D | mgag200_mode.c | 1035 u32 bpp; in mga_crtc_mode_set() local 1039 bpp = 32; in mga_crtc_mode_set() 1041 bpp = 16; in mga_crtc_mode_set() 1043 bpp = 8; in mga_crtc_mode_set() 1045 mb = (mode->clock * bpp) / 1000; in mga_crtc_mode_set() 1487 int bpp = 32; in mga_vga_mode_valid() local 1495 if (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid() 1503 if (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid() 1513 bpp > (31877 * 1024))) in mga_vga_mode_valid() 1516 (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid() [all …]
|
D | mgag200_fb.c | 29 int bpp = (mfbdev->mfb.base.bits_per_pixel + 7)/8; in mga_dirty_update() local 90 src_offset = dst_offset = i * mfbdev->mfb.base.pitches[0] + (x * bpp); in mga_dirty_update() 91 memcpy_toio(bo->kmap.virtual + src_offset, mfbdev->sysram + src_offset, (x2 - x + 1) * bpp); in mga_dirty_update()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | uvc_v4l2.c | 58 u8 bpp; member 96 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format() 127 bpl = format->bpp * fmt->fmt.pix.width / 8; in uvc_v4l2_set_format() 131 video->bpp = format->bpp; in uvc_v4l2_set_format()
|
/linux-4.1.27/drivers/gpu/drm/ast/ |
D | ast_fb.c | 53 int bpp = (afbdev->afb.base.bits_per_pixel + 7)/8; in ast_dirty_update() local 114 src_offset = dst_offset = i * afbdev->afb.base.pitches[0] + (x * bpp); in ast_dirty_update() 115 memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, (x2 - x + 1) * bpp); in ast_dirty_update() 170 u32 bpp, depth; in astfb_create_object() local 175 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &depth, &bpp); in astfb_create_object()
|
/linux-4.1.27/drivers/video/fbdev/nvidia/ |
D | nv_hw.c | 244 int data, pagemiss, cas, width, video_enable, bpp; in nv4CalcArbitration() local 259 bpp = arb->pix_bpp; in nv4CalcArbitration() 296 crtc_drain_rate = pclk_freq * bpp / 8; in nv4CalcArbitration() 332 crtc_drain_rate = pclk_freq * bpp / 8; in nv4CalcArbitration() 343 p1 = p1 * bpp / 8; in nv4CalcArbitration() 417 int data, pagemiss, width, video_enable, bpp; in nv10CalcArbitration() local 437 bpp = arb->pix_bpp; in nv10CalcArbitration() 468 mclk_extra = (bpp == 32) ? 31 : 42; /* Margin of error */ in nv10CalcArbitration() 471 mclk_extra = (bpp == 32) ? 8 : 4; /* Margin of error */ in nv10CalcArbitration() 508 crtc_drain_rate = pclk_freq * bpp / 8; /* MB/s */ in nv10CalcArbitration() [all …]
|
D | nvidia.c | 77 static int bpp = 8; variable 185 if(((par->Chipset & 0xffff) == 0x0328) && (state->bpp == 32)) { in nvidia_panel_tweak() 1122 switch (bpp) { in nvidia_set_fbinfo() 1124 bpp = 8; in nvidia_set_fbinfo() 1127 bpp = 16; in nvidia_set_fbinfo() 1130 bpp = 32; in nvidia_set_fbinfo() 1139 nvidiafb_default_var.bits_per_pixel = bpp; in nvidia_set_fbinfo() 1146 specs->modedb_len, &modedb, bpp); in nvidia_set_fbinfo() 1151 specs->modedb, specs->modedb_len, &modedb, bpp); in nvidia_set_fbinfo() 1511 bpp = simple_strtoul(this_opt+4, NULL, 0); in nvidiafb_setup() [all …]
|
/linux-4.1.27/arch/x86/boot/ |
D | video-vesa.c | 95 mi->depth = vminfo.bpp; in vesa_probe() 219 boot_params.screen_info.lfb_depth = vminfo.bpp; in vesa_store_mode_params_graphics() 228 if (vminfo.bpp <= 8) in vesa_store_mode_params_graphics()
|
D | vesa.h | 48 u8 bpp; /* 25 */ member
|
/linux-4.1.27/drivers/video/fbdev/sis/ |
D | sis_accel.h | 193 #define SiS300SetupDSTColorDepth(bpp) \ argument 195 MMIO_OUT16(ivideo->mmio_vbase, BR(1)+2, bpp);\ 323 #define SiS310SetupDSTColorDepth(bpp) \ argument 325 MMIO_OUT16(ivideo->mmio_vbase, AGP_BASE, bpp);\
|
/linux-4.1.27/drivers/video/fbdev/matrox/ |
D | matroxfb_base.c | 432 int bpp) in matroxfb_get_final_bppShift() argument 438 bppshft2 = bpp; in matroxfb_get_final_bppShift() 450 int xres, int bpp) in matroxfb_test_and_set_rounding() argument 457 switch (bpp) { in matroxfb_test_and_set_rounding() 483 int bpp) in matroxfb_pitch_adjust() argument 490 if (!bpp) return xres; in matroxfb_pitch_adjust() 496 if ((*width >= xres) && (matroxfb_test_and_set_rounding(minfo, *width, bpp) == *width)) { in matroxfb_pitch_adjust() 503 xres_new = matroxfb_test_and_set_rounding(minfo, xres, bpp); in matroxfb_pitch_adjust() 535 unsigned char bpp; in matroxfb_decode_var() member 553 unsigned int bpp = var->bits_per_pixel; in matroxfb_decode_var() local [all …]
|
/linux-4.1.27/drivers/video/fbdev/riva/ |
D | riva_hw.c | 659 int data, pagemiss, cas,width, video_enable, color_key_enable, bpp, align; in nv4CalcArbitration() local 676 bpp = arb->pix_bpp; in nv4CalcArbitration() 716 crtc_drain_rate = pclk_freq * bpp/8; in nv4CalcArbitration() 747 crtc_drain_rate = pclk_freq * bpp/8; in nv4CalcArbitration() 757 p1 = p1 * bpp / 8; in nv4CalcArbitration() 845 int data, pagemiss, cas,width, video_enable, color_key_enable, bpp, align; in nv10CalcArbitration() local 867 bpp = arb->pix_bpp; in nv10CalcArbitration() 904 mclk_extra = (bpp == 32) ? 31 : 42; /* Margin of error */ in nv10CalcArbitration() 909 mclk_extra = (bpp == 32) ? 8 : 4; /* Margin of error */ in nv10CalcArbitration() 946 crtc_drain_rate = pclk_freq * bpp/8; /* MB/s */ in nv10CalcArbitration() [all …]
|
/linux-4.1.27/drivers/media/platform/omap/ |
D | omap_vout_vrfb.c | 213 vout->pix.height, vout->bpp, yuv_mode); in omap_vout_vrfb_buffer_setup() 237 pixsize = vout->bpp * vout->vrfb_bpp; in omap_vout_prepare_vrfb() 244 (vout->pix.width * vout->bpp)) + 1; in omap_vout_prepare_vrfb() 251 elem_count = vout->pix.width * vout->bpp; in omap_vout_prepare_vrfb()
|
D | omap_vout.c | 152 int ifmt, bpp = 0; in omap_vout_try_format() local 174 bpp = YUYV_BPP; in omap_vout_try_format() 179 bpp = RGB565_BPP; in omap_vout_try_format() 183 bpp = RGB24_BPP; in omap_vout_try_format() 188 bpp = RGB32_BPP; in omap_vout_try_format() 191 pix->bytesperline = pix->width * bpp; in omap_vout_try_format() 194 return bpp; in omap_vout_try_format() 703 *size = PAGE_ALIGN(vout->pix.width * vout->pix.height * vout->bpp); in omap_vout_buffer_setup() 783 vb->size = vb->width * vb->height * vout->bpp; in omap_vout_buffer_prepare() 1119 int ret, bpp; in vidioc_s_fmt_vid_out() local [all …]
|
/linux-4.1.27/arch/arm/mach-integrator/ |
D | impd1.c | 98 .bpp = 16, 126 .bpp = 16, 155 .bpp = 16, 187 .bpp = 16,
|
/linux-4.1.27/drivers/staging/xgifb/ |
D | XGI_main_26.c | 245 && (XGIbios_mode[i].bpp == 8)) { in XGIfb_GetXG21DefaultLVDSModeIdx() 259 unsigned int bpp; in XGIfb_search_mode() local 262 if (sscanf(name, "%ux%ux%u", &xres, &yres, &bpp) != 3) in XGIfb_search_mode() 265 if (bpp == 24) in XGIfb_search_mode() 266 bpp = 32; /* That's for people who mix up color and fb depth. */ in XGIfb_search_mode() 271 XGIbios_mode[i].bpp == bpp) { in XGIfb_search_mode() 318 if (XGIbios_mode[myindex].bpp > 8) in XGIfb_validate_mode() 502 if (XGIbios_mode[myindex].bpp == 32) in XGIfb_validate_mode() 520 XGIbios_mode[myindex].bpp / 8; in XGIfb_validate_mode() 977 (XGIbios_mode[xgifb_info->mode_idx].bpp in XGIfb_do_set_var() [all …]
|
/linux-4.1.27/drivers/gpu/drm/tilcdc/ |
D | tilcdc_crtc.c | 90 unsigned int depth, bpp; in update_scanout() local 92 drm_fb_get_bpp_depth(fb->pixel_format, &depth, &bpp); in update_scanout() 96 (crtc->y * fb->pitches[0]) + (crtc->x * bpp/8); in update_scanout() 341 unsigned int depth, bpp; in tilcdc_crtc_mode_set() local 343 drm_fb_get_bpp_depth(crtc->primary->fb->pixel_format, &depth, &bpp); in tilcdc_crtc_mode_set() 344 switch (bpp) { in tilcdc_crtc_mode_set()
|
D | tilcdc_drv.c | 163 u32 bpp = 0; in tilcdc_load() local 282 bpp = mod->preferred_bpp; in tilcdc_load() 283 if (bpp > 0) in tilcdc_load() 287 priv->fbdev = drm_fbdev_cma_init(dev, bpp, in tilcdc_load()
|
D | tilcdc_drv.h | 137 uint32_t bpp; member
|
/linux-4.1.27/drivers/video/fbdev/geode/ |
D | display_gx.c | 55 int gx_line_delta(int xres, int bpp) in gx_line_delta() argument 58 return (xres * (bpp >> 3) + 7) & ~0x7; in gx_line_delta()
|
D | lxfb.h | 60 static inline unsigned int lx_get_pitch(unsigned int xres, int bpp) in lx_get_pitch() argument 62 return (((xres * (bpp >> 3)) + 7) & ~7); in lx_get_pitch()
|
/linux-4.1.27/Documentation/devicetree/bindings/drm/tilcdc/ |
D | panel.txt | 9 - bpp: Bits per pixel 43 bpp = <16>;
|
/linux-4.1.27/arch/blackfin/mach-bf548/include/mach/ |
D | bf54x-lq043.h | 29 struct bfin_bf54xfb_val bpp; member
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
D | av7110_hw.c | 876 int bpp; in LoadBitmap() local 888 bpp=8; delta = 1; in LoadBitmap() 890 bpp=4; delta = 2; in LoadBitmap() 892 bpp=2; delta = 4; in LoadBitmap() 894 bpp=1; delta = 8; in LoadBitmap() 899 av7110->bmplen = ((dx * dy * bpp + 7) & ~7) / 8; in LoadBitmap() 916 << ((delta - d - 1) * bpp)); in LoadBitmap() 1010 uint w, h, bpp, bpl, size, lpb, bnum, brest; in OSDSetBlock() local 1020 bpp = av7110->osdbpp[av7110->osdwin] + 1; in OSDSetBlock() 1021 bpl = ((w * bpp + 7) & ~7) / 8; in OSDSetBlock()
|
/linux-4.1.27/drivers/media/platform/xilinx/ |
D | xilinx-dma.c | 363 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_buffer_queue() 565 align = lcm(dma->align, info->bpp); in __xvip_dma_try_format() 568 width = rounddown(pix->width * info->bpp, align); in __xvip_dma_try_format() 570 pix->width = clamp(width, min_width, max_width) / info->bpp; in __xvip_dma_try_format() 578 min_bpl = pix->width * info->bpp; in __xvip_dma_try_format() 672 dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_init()
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
D | rfbi.c | 633 static int rfbi_configure_bus(int rfbi_module, int bpp, int lines) in rfbi_configure_bus() argument 641 switch (bpp) { in rfbi_configure_bus() 679 if ((bpp % lines) == 0) { in rfbi_configure_bus() 680 switch (bpp / lines) { in rfbi_configure_bus() 694 } else if ((2 * bpp % lines) == 0) { in rfbi_configure_bus() 695 if ((2 * bpp / lines) == 3) in rfbi_configure_bus() 760 bpp, lines, cycle1, cycle2, cycle3); in rfbi_configure_bus()
|
/linux-4.1.27/drivers/dma/ipu/ |
D | ipu_idmac.c | 200 u32 bpp:3; member 248 u32 bpp:3; member 300 params->pp.bpp = 3; in ipu_ch_param_set_size() 307 params->pp.bpp = 0; in ipu_ch_param_set_size() 313 params->ip.bpp = 2; in ipu_ch_param_set_size() 326 params->ip.bpp = 1; /* 24 BPP & RGB PFS */ in ipu_ch_param_set_size() 339 params->ip.bpp = 1; /* 24 BPP & RGB PFS */ in ipu_ch_param_set_size() 354 params->ip.bpp = 0; in ipu_ch_param_set_size() 369 params->ip.bpp = 0; in ipu_ch_param_set_size() 383 params->ip.bpp = 2; in ipu_ch_param_set_size() [all …]
|
/linux-4.1.27/include/drm/ |
D | exynos_drm.h | 45 unsigned int bpp; member
|
/linux-4.1.27/arch/arm/plat-samsung/include/plat/ |
D | fb-s3c2410.h | 35 unsigned short bpp; member
|
/linux-4.1.27/arch/powerpc/boot/ |
D | redboot.h | 43 short bpp; /* Bits/pixel */ member
|
/linux-4.1.27/arch/mips/include/asm/mach-jz4740/ |
D | jz4740_fb.h | 53 unsigned int bpp; member
|
/linux-4.1.27/arch/powerpc/platforms/512x/ |
D | mpc512x_shared.c | 227 unsigned long mode, pix_fmt, res, bpp; in mpc512x_init_diu() local 262 bpp = ((pix_fmt >> 16) & 0x3) + 1; in mpc512x_init_diu() 264 diu_shared_fb.fb_len = ((res & 0xfff0000) >> 16) * (res & 0xfff) * bpp; in mpc512x_init_diu()
|
/linux-4.1.27/include/linux/platform_data/ |
D | video-nuc900fb.h | 53 unsigned short bpp; member
|
D | video-ep93xx.h | 44 int bpp; member
|
D | video-imxfb.h | 57 unsigned char bpp; member
|
D | video-pxafb.h | 74 u_char bpp; member
|
/linux-4.1.27/include/video/ |
D | da8xx-fb.h | 51 int bpp; member
|
D | sa1100fb.h | 37 u_char bpp; member
|
D | mbxfb.h | 19 struct mbxfb_val bpp; member
|
/linux-4.1.27/arch/powerpc/sysdev/ |
D | fsl_soc.h | 33 unsigned int bpp);
|
/linux-4.1.27/net/sunrpc/ |
D | svcauth_unix.c | 145 char **bpp, int *blen) in ip_map_request() argument 155 qword_add(bpp, blen, im->m_class); in ip_map_request() 156 qword_add(bpp, blen, text_addr); in ip_map_request() 157 (*bpp)[-1] = '\n'; in ip_map_request() 463 char **bpp, int *blen) in unix_gid_request() argument 469 qword_add(bpp, blen, tuid); in unix_gid_request() 470 (*bpp)[-1] = '\n'; in unix_gid_request()
|
/linux-4.1.27/drivers/video/fbdev/msm/ |
D | mdp_ppp.c | 520 #define IMG_LEN(rect_h, w, rect_w, bpp) (((rect_h) * w) * bpp) argument 526 static void get_len(struct mdp_img *img, struct mdp_rect *rect, uint32_t bpp, in get_len() argument 529 *len0 = IMG_LEN(rect->h, img->width, rect->w, bpp); in get_len() 585 uint32_t base, uint32_t bpp, uint32_t cfg, in get_chroma_addr() argument 596 *addr = base + (img->width * img->height * bpp); in get_chroma_addr() 597 *addr += offset * bpp; in get_chroma_addr()
|
/linux-4.1.27/arch/arm/mach-ep93xx/ |
D | simone.c | 39 .bpp = 16,
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fb.c | 49 unsigned bpp; member 88 DRM_ERROR("Bad depth %u, bpp %u.\n", par->depth, par->bpp); in vmw_fb_setcolreg() 169 par->bpp, par->depth); in vmw_fb_set_par() 449 par->bpp = fb_bpp; in vmw_fb_init() 511 info->var.bits_per_pixel = par->bpp; in vmw_fb_init()
|
/linux-4.1.27/drivers/parport/ |
D | TODO-parport | 16 3. Support more hardware (eg m68k, Sun bpp).
|
/linux-4.1.27/drivers/video/fbdev/intelfb/ |
D | intelfbhw.h | 587 u32 w, u32 h, u32 color, u32 pitch, u32 bpp, 591 u32 bpp); 594 u32 pitch, u32 bpp);
|
/linux-4.1.27/drivers/gpu/drm/tegra/ |
D | fb.c | 148 unsigned int size, bpp; in tegra_fb_create() local 156 bpp = drm_format_plane_cpp(cmd->pixel_format, i); in tegra_fb_create() 159 width * bpp + cmd->offsets[i]; in tegra_fb_create()
|
D | dc.c | 193 unsigned int bpp) in compute_dda_inc() argument 203 switch (bpp) { in compute_dda_inc() 235 unsigned h_offset, v_offset, h_size, v_size, h_dda, v_dda, bpp; in tegra_dc_setup_window() local 245 bpp = window->bits_per_pixel / 8; in tegra_dc_setup_window() 247 bpp = planar ? 1 : 2; in tegra_dc_setup_window() 263 h_offset = window->src.x * bpp; in tegra_dc_setup_window() 265 h_size = window->src.w * bpp; in tegra_dc_setup_window() 276 bpp = 2; in tegra_dc_setup_window() 278 h_dda = compute_dda_inc(window->src.w, window->dst.w, false, bpp); in tegra_dc_setup_window() 279 v_dda = compute_dda_inc(window->src.h, window->dst.h, true, bpp); in tegra_dc_setup_window()
|
/linux-4.1.27/include/media/blackfin/ |
D | ppi.h | 56 int bpp; /* bits per pixel */ member
|
/linux-4.1.27/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 107 int bpp; /* Bytes per pixel */ member 115 .bpp = 2, 122 .bpp = 2, 129 .bpp = 2, 136 .bpp = 2, 143 .bpp = 2, 150 .bpp = 2, 157 .bpp = 2, 164 .bpp = 1, 1432 pix->bytesperline = pix->width * f->bpp; in mcam_vidioc_try_fmt_vid_cap()
|
/linux-4.1.27/drivers/gpu/drm/msm/edp/ |
D | edp_ctrl.c | 431 u32 bpp; in edp_fill_link_cfg() local 436 bpp = ctrl->color_depth * 3; in edp_fill_link_cfg() 444 prate *= bpp; in edp_fill_link_cfg() 724 u32 prate, lrate, bpp; in edp_link_rate_down_shift() local 732 bpp = ctrl->color_depth * 3; in edp_link_rate_down_shift() 734 prate *= bpp; in edp_link_rate_down_shift() 754 bpp); in edp_link_rate_down_shift()
|
/linux-4.1.27/drivers/gpu/drm/sti/ |
D | sti_gdp.c | 259 unsigned int depth, bpp; in sti_gdp_prepare_layer() local 285 drm_fb_get_bpp_depth(layer->format, &depth, &bpp); in sti_gdp_prepare_layer() 287 top_field->gam_gdp_pml += layer->src_x * (bpp >> 3); in sti_gdp_prepare_layer()
|
/linux-4.1.27/fs/nfs/ |
D | dns_resolve.c | 132 char **bpp, int *blen) in nfs_dns_request() argument 136 qword_add(bpp, blen, key->hostname); in nfs_dns_request() 137 (*bpp)[-1] = '\n'; in nfs_dns_request()
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | grfioctl.h | 85 unsigned int bpp, bppu; /* bits per pixel and used bpp */ member
|
/linux-4.1.27/drivers/media/platform/ |
D | sh_vou.c | 135 unsigned char bpp; member 145 .bpp = 12, 152 .bpp = 16, 159 .bpp = 24, 166 .bpp = 16, 173 .bpp = 16, 247 *size = vou_fmt[vou_dev->pix_idx].bpp * vou_dev->pix.width * in sh_vou_buf_setup() 271 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_buf_prepare()
|
/linux-4.1.27/Documentation/video4linux/bttv/ |
D | PROBLEMS | 53 - When using 32 bpp in XFree or 24+8bpp mode in AccelX 3.1 the system
|
/linux-4.1.27/include/media/davinci/ |
D | vpfe_capture.h | 50 int bpp; member
|
/linux-4.1.27/drivers/staging/sm7xxfb/ |
D | sm7xx.h | 104 int bpp; member
|
/linux-4.1.27/drivers/media/platform/davinci/ |
D | vpfe_capture.c | 142 .bpp = 1, 151 .bpp = 2, 160 .bpp = 1, 169 .bpp = 2, 178 .bpp = 2, 187 .bpp = 1, 895 min_width /= vpfe_pix_fmt->bpp; in vpfe_check_format() 898 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp); in vpfe_check_format() 910 pixfmt->bytesperline = (((pixfmt->width * vpfe_pix_fmt->bpp) + 31) in vpfe_check_format() 921 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp, in vpfe_check_format()
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
D | vsp1_video.h | 44 unsigned int bpp[3]; member
|
/linux-4.1.27/Documentation/devicetree/bindings/fb/ |
D | sm501fb.txt | 17 <xres>x<yres>[-<bpp>][@<refresh>]
|
/linux-4.1.27/include/uapi/drm/ |
D | drm_mode.h | 332 __u32 bpp; member 513 uint32_t bpp; member
|
/linux-4.1.27/drivers/gpu/drm/msm/ |
D | msm_drv.h | 297 static inline int align_pitch(int width, int bpp) in align_pitch() argument 299 int bytespp = (bpp + 7) / 8; in align_pitch()
|