/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_dsc_1_2.c | 97 u32 bpp; local 137 bpp = dsc->bits_per_pixel; 138 /* as per hw requirement bpp should be programmed 142 bpp = 2 * bpp; 144 data |= bpp << 10;
|
/linux-master/drivers/media/platform/ti/cal/ |
H A D | cal-camerarx.c | 55 u32 bpp; local 66 bpp = fmtinfo->bpp; 68 freq = v4l2_get_link_freq(phy->source->ctrl_handler, bpp, 2 * num_lanes); 671 fse->min_width = CAL_MIN_WIDTH_BYTES * 8 / ALIGN(fmtinfo->bpp, 8); 672 fse->max_width = CAL_MAX_WIDTH_BYTES * 8 / ALIGN(fmtinfo->bpp, 8); 686 unsigned int bpp; local 701 bpp = ALIGN(fmtinfo->bpp, 8); 704 CAL_MIN_WIDTH_BYTES * 8 / bpp, [all...] |
/linux-master/drivers/media/pci/zoran/ |
H A D | zoran_driver.c | 168 int bpp; local 178 bpp = (format->depth + 7) / 8; 180 zr->buffer_size = height * width * bpp; 183 if (height * width * bpp > zr->buffer_size) { 191 if ((bpp == 2 && (width & 1)) || (bpp == 3 && (width & 3))) { 199 zr->v4l_settings.bytesperline = bpp * zr->v4l_settings.width; 398 int bpp; local 420 bpp = DIV_ROUND_UP(zoran_formats[i].depth, 8); 422 bpp [all...] |
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_dir2_block.c | 31 static int xfs_dir2_block_lookup_int(xfs_da_args_t *args, struct xfs_buf **bpp, 139 struct xfs_buf **bpp) 145 err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, 0, bpp, 147 if (err || !*bpp) 151 fa = xfs_dir3_block_header_check(dp, *bpp); 153 __xfs_buf_mark_corrupt(*bpp, fa); 154 xfs_trans_brelse(tp, *bpp); 155 *bpp = NULL; 160 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_BLOCK_BUF); 679 struct xfs_buf **bpp, /* returne 136 xfs_dir3_block_read( struct xfs_trans *tp, struct xfs_inode *dp, struct xfs_buf **bpp) argument 677 xfs_dir2_block_lookup_int( xfs_da_args_t *args, struct xfs_buf **bpp, int *entno) argument [all...] |
H A D | xfs_dir2_data.c | 421 struct xfs_buf **bpp) 426 err = xfs_da_read_buf(tp, dp, bno, flags, bpp, XFS_DATA_FORK, 428 if (err || !*bpp) 432 fa = xfs_dir3_data_header_check(dp, *bpp); 434 __xfs_buf_mark_corrupt(*bpp, fa); 435 xfs_trans_brelse(tp, *bpp); 436 *bpp = NULL; 441 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_DATA_BUF); 695 struct xfs_buf **bpp) /* output block buffer */ 755 *bpp 416 xfs_dir3_data_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp) argument 692 xfs_dir3_data_init( struct xfs_da_args *args, xfs_dir2_db_t blkno, struct xfs_buf **bpp) argument [all...] |
/linux-master/drivers/media/platform/qcom/camss/ |
H A D | camss-csiphy.c | 29 u8 bpp; member in struct:csiphy_format 116 return formats[i].bpp; 120 return formats[0].bpp; 134 u8 bpp = csiphy_get_bpp(csiphy->formats, csiphy->nformats, local 138 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); 247 u8 bpp = csiphy_get_bpp(csiphy->formats, csiphy->nformats, local 252 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes);
|
/linux-master/drivers/video/fbdev/ |
H A D | pm3fb.c | 183 static inline int pm3fb_shift_bpp(unsigned bpp, int v) argument 185 switch (bpp) { 193 DPRINTK("Unsupported depth %u\n", bpp); 621 /* Too large of a cursor or wrong bpp :-( */ 732 const unsigned bpp = info->var.bits_per_pixel; local 741 pm3fb_shift_bpp(bpp, htotal - 1)); 743 pm3fb_shift_bpp(bpp, hsend)); 745 pm3fb_shift_bpp(bpp, hsstart)); 747 pm3fb_shift_bpp(bpp, hbend)); 749 pm3fb_shift_bpp(bpp, hben 915 unsigned bpp = var->red.length + var->green.length local 1018 const unsigned bpp = info->var.bits_per_pixel; local [all...] |
H A D | sh_mobile_lcdcfb.c | 539 unsigned int bpp; member in struct:sh_mobile_lcdc_format_info 547 .bpp = 16, 552 .bpp = 24, 557 .bpp = 32, 562 .bpp = 12, 567 .bpp = 12, 572 .bpp = 16, 577 .bpp = 16, 582 .bpp = 24, 587 .bpp [all...] |
H A D | macfb.c | 194 unsigned int bpp = info->var.bits_per_pixel; local 201 * In 8bpp, all regnos are valid. 202 * In 4bpp, the regnos are 0x0f, 0x1f, 0x2f, etc, etc 203 * In 2bpp, the regnos are 0x3f, 0x7f, 0xbf, 0xff 205 regno = (regno << (8 - bpp)) | (0xFF >> bpp); 283 unsigned int bpp = info->var.bits_per_pixel; local 289 regno = (regno << (8 - bpp)) | (0xFF >> bpp);
|
H A D | i740fb.c | 209 static u32 i740_calc_fifo(struct i740fb_par *par, u32 freq, int bpp) argument 221 switch (bpp) { 403 u32 bpp, base, dacspeed24, mem, freq; local 409 dev_dbg(info->device, " xoff: %i, yoff: %i, bpp: %i, graysc: %i\n", 421 bpp = var->bits_per_pixel; 422 switch (bpp) { 424 bpp = 8; 426 dev_err(info->device, "requested pixclock %i MHz out of range (max. %i MHz at 8bpp)\n", 432 bpp = 15; 436 dev_err(info->device, "requested pixclock %i MHz out of range (max. %i MHz at 15/16bpp)\ [all...] |
H A D | stifb.c | 42 * - 1bpp mode is completely untested 50 * #define FALLBACK_TO_1BPP to fall back to 1 bpp, or 1194 int bpp, xres, yres; local 1241 /* default to 8 bpp on most graphic chips */ 1242 bpp = 8; 1276 bpp = 32; 1289 bpp = bpp_pref; 1291 bpp = 32; 1293 bpp = 8; 1304 "- now trying 1bpp mod [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_buf.c | 224 struct xfs_buf **bpp) 230 *bpp = NULL; 277 *bpp = bp; 593 struct xfs_buf **bpp) 613 *bpp = bp; 630 struct xfs_buf **bpp) 671 *bpp = bp; 678 *bpp = new_bp; 722 struct xfs_buf **bpp) 786 *bpp 219 _xfs_buf_alloc( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) argument 589 xfs_buf_lookup( struct xfs_buf_cache *bch, struct xfs_buf_map *map, xfs_buf_flags_t flags, struct xfs_buf **bpp) argument 622 xfs_buf_find_insert( struct xfs_buftarg *btp, struct xfs_buf_cache *bch, struct xfs_perag *pag, struct xfs_buf_map *cmap, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) argument 717 xfs_buf_get_map( struct xfs_buftarg *btp, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) argument 845 xfs_buf_read_map( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops, xfs_failaddr_t fa) argument 957 xfs_buf_read_uncached( struct xfs_buftarg *target, xfs_daddr_t daddr, size_t numblks, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops) argument 993 xfs_buf_get_uncached( struct xfs_buftarg *target, size_t numblks, xfs_buf_flags_t flags, struct xfs_buf **bpp) argument [all...] |
/linux-master/drivers/video/fbdev/core/ |
H A D | modedb.c | 539 * @bpp: color depth in bits per pixel 548 const struct fb_videomode *mode, unsigned int bpp) 554 mode->xres, mode->yres, bpp, mode->refresh); 561 var->bits_per_pixel = bpp; 595 * <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][p][m] 599 * <name>[-<bpp>][@<refresh>] 601 * with <xres>, <yres>, <bpp> and <refresh> decimal numbers and 604 * If 'M' is present after yres (and before refresh/bpp if present), 652 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; local 675 bpp 547 fb_try_mode(struct fb_var_screeninfo *var, struct fb_info *info, const struct fb_videomode *mode, unsigned int bpp) argument [all...] |
/linux-master/drivers/media/platform/st/stm32/ |
H A D | stm32-dcmi.c | 104 u8 bpp; member in struct:dcmi_format 1031 pix->bytesperline = pix->width * sd_fmt->bpp; 1550 .bpp = 2, 1554 .bpp = 2, 1558 .bpp = 2, 1562 .bpp = 2, 1566 .bpp = 2, 1570 .bpp = 2, 1574 .bpp = 1, 1578 .bpp [all...] |
/linux-master/drivers/video/fbdev/omap/ |
H A D | omapfb_main.c | 141 int bpp = panel->bpp; local 143 /* 12 bpp is packed in 16 bits */ 144 if (bpp == 12) 145 bpp = 16; 146 def_size = def_vxres * def_vyres * bpp / 8; 232 * palette if one is available. For now we support only 16bpp and thus store 372 int bpp; local 388 bpp = var->bits_per_pixel; 395 /* 12bpp i 465 int bpp; local [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | vlv_dsi_pll.c | 51 u32 bpp = mipi_dsi_pixel_format_to_bpp(fmt); local 55 dsi_clk_khz = DIV_ROUND_CLOSEST(pclk * bpp, lane_count); 121 int bpp = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format); local 168 return DIV_ROUND_CLOSEST(dsi_clock * intel_dsi->lane_count, bpp); 343 int bpp = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format); local 349 return DIV_ROUND_CLOSEST(dsi_clk * intel_dsi->lane_count, bpp);
|
/linux-master/drivers/media/platform/xilinx/ |
H A D | xilinx-dma.c | 351 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; 543 align = lcm(dma->align, info->bpp); 546 width = rounddown(pix->width * info->bpp, align); 548 pix->width = clamp(width, min_width, max_width) / info->bpp; 556 min_bpl = pix->width * info->bpp; 650 dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp;
|
/linux-master/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_capture.c | 92 address += info->bpp[0] * width_aligned * height; 99 address += info->bpp[1] * 132 stride_luma = width * info->bpp[0]; 136 stride_chroma = width * info->bpp[1] / info->hdiv; 404 pix_format->bytesperline = width_aligned * info->bpp[0]; 411 pix_format->sizeimage += info->bpp[i] *
|
/linux-master/drivers/gpu/drm/msm/dp/ |
H A D | dp_ctrl.c | 49 int bpp; /* bits */ member in struct:dp_tu_calc_input 62 u8 bpp; member in struct:dp_vc_tu_mapping_table 153 ctrl->panel->dp_mode.bpp); 187 ctrl->panel->dp_mode.bpp); 206 int bpp; member in struct:tu_algo_data 337 tu->bpp = in->bpp; 353 switch (tu->bpp) { 355 tu->bpp = 16; 359 tu->bpp [all...] |
/linux-master/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_framebuffer.c | 46 u32 alignment_w = 0, alignment_h = 0, alignment_header, n_blocks, bpp; local 91 bpp = komeda_get_afbc_format_bpp(info, fb->modifier); 93 ALIGN(bpp * AFBC_SUPERBLK_PIXELS / 8,
|
/linux-master/drivers/gpu/drm/tests/ |
H A D | drm_cmdline_parser_test.c | 214 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 261 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 285 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 309 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 333 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 357 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 381 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 408 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 432 KUNIT_EXPECT_EQ(test, mode.bpp, 24); 509 KUNIT_EXPECT_EQ(test, mode.bpp, 2 [all...] |
/linux-master/drivers/video/fbdev/aty/ |
H A D | atyfb.h | 19 u32 bpp; member in struct:crtc 301 const union aty_pll * pll, u32 bpp, u32 accel); 316 int (*var_to_pll) (const struct fb_info * info, u32 vclk_per, u32 bpp, union aty_pll * pll);
|
/linux-master/drivers/gpu/drm/loongson/ |
H A D | lsdc_gem.c | 224 if (args->bpp != 32 && args->bpp != 16) 227 pitch = args->width * args->bpp / 8;
|
/linux-master/arch/powerpc/platforms/512x/ |
H A D | mpc512x_shared.c | 209 unsigned long mode, pix_fmt, res, bpp; local 244 bpp = ((pix_fmt >> 16) & 0x3) + 1; 246 diu_shared_fb.fb_len = ((res & 0xfff0000) >> 16) * (res & 0xfff) * bpp;
|
/linux-master/drivers/gpu/drm/meson/ |
H A D | meson_dw_mipi_dsi.c | 156 int bpp; local 160 bpp = mipi_dsi_pixel_format_to_bpp(mipi_dsi->dsi_device->format); 163 bpp, mipi_dsi->dsi_device->lanes,
|