/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 …]
|
/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 | 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 | tridentfb.c | 63 static int bpp = 8; variable 81 module_param(bpp, int, 0); 304 static void blade_init_accel(struct tridentfb_par *par, int pitch, int bpp) in blade_init_accel() argument 307 int tmp = bpp == 24 ? 2 : (bpp >> 4); in blade_init_accel() 378 static void xp_init_accel(struct tridentfb_par *par, int pitch, int bpp) in xp_init_accel() argument 380 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in xp_init_accel() 381 int v1 = pitch << (bpp == 24 ? 20 : (18 + x)); in xp_init_accel() 383 switch (pitch << (bpp >> 3)) { in xp_init_accel() 476 static void image_init_accel(struct tridentfb_par *par, int pitch, int bpp) in image_init_accel() argument 478 int tmp = bpp == 24 ? 2: (bpp >> 4); in image_init_accel() [all …]
|
D | bfin_adv7393fb.h | 66 u16 bpp; member 168 .bpp = 16, 184 .bpp = 16, 200 .bpp = 16, 216 .bpp = 16, 232 .bpp = 16, 248 .bpp = 16,
|
D | pxafb.c | 250 int bpp = -EINVAL; in pxafb_var_to_bpp() local 253 case 1: bpp = 0; break; in pxafb_var_to_bpp() 254 case 2: bpp = 1; break; in pxafb_var_to_bpp() 255 case 4: bpp = 2; break; in pxafb_var_to_bpp() 256 case 8: bpp = 3; break; in pxafb_var_to_bpp() 257 case 16: bpp = 4; break; in pxafb_var_to_bpp() 260 case 18: bpp = 6; break; /* 18-bits/pixel packed */ in pxafb_var_to_bpp() 261 case 19: bpp = 8; break; /* 19-bits/pixel packed */ in pxafb_var_to_bpp() 262 case 24: bpp = 9; break; in pxafb_var_to_bpp() 267 case 18: bpp = 5; break; /* 18-bits/pixel unpacked */ in pxafb_var_to_bpp() [all …]
|
D | atafb.c | 149 short bpp; member 617 int bpp = var->bits_per_pixel; in tt_decode_var() local 622 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 627 bpp = 1; in tt_decode_var() 629 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 631 if (bpp > 4) { in tt_decode_var() 637 bpp = 8; in tt_decode_var() 638 } else if (bpp > 2) { in tt_decode_var() 645 bpp = 4; in tt_decode_var() 650 bpp = 4; in tt_decode_var() [all …]
|
D | s1d13xxxfb.c | 451 u16 bpp; in s1d13xxxfb_bitblt_copyarea() local 456 bpp = (info->var.bits_per_pixel >> 3); in s1d13xxxfb_bitblt_copyarea() 457 stride = bpp * info->var.xres; in s1d13xxxfb_bitblt_copyarea() 461 dst = (((dy + height - 1) * stride) + (bpp * (dx + width - 1))); in s1d13xxxfb_bitblt_copyarea() 462 src = (((sy + height - 1) * stride) + (bpp * (sx + width - 1))); in s1d13xxxfb_bitblt_copyarea() 466 dst = (dy * stride) + (bpp * dx); in s1d13xxxfb_bitblt_copyarea() 467 src = (sy * stride) + (bpp * sx); in s1d13xxxfb_bitblt_copyarea() 500 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_CTL1, (bpp >> 1)); in s1d13xxxfb_bitblt_copyarea() 510 dbg_blit("(copyarea) bpp=%d=0x0%d, mem_offset1=%d, mem_offset2=%d\n", bpp, (bpp >> 1), in s1d13xxxfb_bitblt_copyarea() 538 u16 bpp = (info->var.bits_per_pixel >> 3); in s1d13xxxfb_bitblt_solidfill() local [all …]
|
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,
|
/drivers/gpu/drm/ |
D | drm_fourcc.c | 46 uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) in drm_mode_legacy_fb_format() argument 50 switch (bpp) { in drm_mode_legacy_fb_format() 115 int *bpp) in drm_fb_get_bpp_depth() argument 124 *bpp = 8; in drm_fb_get_bpp_depth() 135 *bpp = 16; in drm_fb_get_bpp_depth() 140 *bpp = 16; in drm_fb_get_bpp_depth() 145 *bpp = 24; in drm_fb_get_bpp_depth() 152 *bpp = 32; in drm_fb_get_bpp_depth() 163 *bpp = 32; in drm_fb_get_bpp_depth() 170 *bpp = 32; in drm_fb_get_bpp_depth() [all …]
|
/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()
|
/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()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 40 .bpp = 16, 46 .bpp = 16, 52 .bpp = 16, 58 .bpp = 32, 64 .bpp = 32, 70 .bpp = 16, 76 .bpp = 16, 82 .bpp = 12, 88 .bpp = 12, 94 .bpp = 16, [all …]
|
/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 …]
|
/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 …]
|
/drivers/gpu/drm/fsl-dcu/ |
D | fsl_dcu_drm_plane.c | 87 unsigned int alpha = DCU_LAYER_AB_NONE, bpp; in fsl_dcu_drm_plane_atomic_update() local 101 bpp = FSL_DCU_RGB565; in fsl_dcu_drm_plane_atomic_update() 104 bpp = FSL_DCU_RGB888; in fsl_dcu_drm_plane_atomic_update() 110 bpp = FSL_DCU_ARGB8888; in fsl_dcu_drm_plane_atomic_update() 116 bpp = FSL_DCU_ARGB4444; in fsl_dcu_drm_plane_atomic_update() 122 bpp = FSL_DCU_ARGB1555; in fsl_dcu_drm_plane_atomic_update() 125 bpp = FSL_DCU_YUV422; in fsl_dcu_drm_plane_atomic_update() 142 DCU_LAYER_BPP(bpp) | in fsl_dcu_drm_plane_atomic_update()
|
/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 …]
|
/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() 256 args->pitch = args->width * ((args->bpp + 7) / 8); in cirrus_dumb_create() 320 int bpp, int pitch) in cirrus_check_framebuffer() argument 325 if (bpp > cirrus_bpp) in cirrus_check_framebuffer() 327 if (bpp > 32) in cirrus_check_framebuffer()
|
/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()
|