Home
last modified time | relevance | path

Searched refs:bytes_per_pixel (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/gpu/drm/rockchip/
A Drockchip_drm_fbdev.c47 unsigned int bytes_per_pixel; in rockchip_drm_fbdev_create() local
53 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rockchip_drm_fbdev_create()
57 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create()
90 offset = fbi->var.xoffset * bytes_per_pixel; in rockchip_drm_fbdev_create()
/linux/drivers/gpu/drm/amd/display/dc/calcs/
A Ddce_calcs.c185 data->bytes_per_pixel[0] = 1; in calculate_bandwidth()
186 data->bytes_per_pixel[2] = 1; in calculate_bandwidth()
189 data->bytes_per_pixel[1] = 2; in calculate_bandwidth()
190 data->bytes_per_pixel[3] = 2; in calculate_bandwidth()
199 data->bytes_per_pixel[0] = 2; in calculate_bandwidth()
200 data->bytes_per_pixel[2] = 2; in calculate_bandwidth()
207 data->bytes_per_pixel[0] = 4; in calculate_bandwidth()
208 data->bytes_per_pixel[2] = 4; in calculate_bandwidth()
703 switch (data->bytes_per_pixel[i]) { in calculate_bandwidth()
1014 switch (data->bytes_per_pixel[i]) { in calculate_bandwidth()
[all …]
/linux/drivers/gpu/drm/tegra/
A Dfb.c221 unsigned int bytes_per_pixel; in tegra_fbdev_probe() local
229 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_probe()
233 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe()
269 offset = info->var.xoffset * bytes_per_pixel + in tegra_fbdev_probe()
/linux/drivers/media/test-drivers/vivid/
A Dvivid-osd.c104 dev->display_byte_stride = var->xres * dev->bytes_per_pixel; in vivid_fb_set_var()
272 dev->bytes_per_pixel = dev->bits_per_pixel / 8; in vivid_fb_init_vidmode()
277 dev->display_byte_stride = start_window.width * dev->bytes_per_pixel; in vivid_fb_init_vidmode()
A Dvivid-core.h297 int bytes_per_pixel; member
/linux/drivers/staging/media/atomisp/pci/runtime/frame/src/
A Dframe.c42 unsigned int bytes_per_pixel);
55 unsigned int bytes_per_pixel);
636 unsigned int bytes_per_pixel) in frame_init_single_plane() argument
640 stride = subpixels_per_line * bytes_per_pixel; in frame_init_single_plane()
675 unsigned int bytes_per_pixel) in frame_init_mipi_plane() argument
679 stride = subpixels_per_line * bytes_per_pixel; in frame_init_mipi_plane()
/linux/drivers/gpu/drm/amd/display/dc/dml/dsc/
A Drc_calc_fpu.c276 u32 bytes_per_pixel; in _do_bytes_per_pixel_calc() local
288 bytes_per_pixel = (u32)dsc_ceil(d_bytes_per_pixel * 0x10000000); in _do_bytes_per_pixel_calc()
290 return bytes_per_pixel; in _do_bytes_per_pixel_calc()
/linux/drivers/gpu/drm/amd/display/dc/dsc/
A Ddscc_types.h45 uint32_t bytes_per_pixel; /* In u3.28 format */ member
A Drc_calc_dpi.c104 dsc_params->bytes_per_pixel = calc_dsc_bytes_per_pixel(pps); in dscc_compute_dsc_parameters()
/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/
A Dvirtual_isys.c733 s32 bytes_per_pixel; in calculate_ibuf_ctrl_cfg() local
739 bytes_per_pixel = ceil_div(bits_per_pixel, bits_per_byte); in calculate_ibuf_ctrl_cfg()
742 * bytes_per_pixel; in calculate_ibuf_ctrl_cfg()
773 cfg->dest_buf_cfg.stride = bytes_per_pixel in calculate_ibuf_ctrl_cfg()
/linux/drivers/gpu/drm/amd/display/dc/core/
A Ddc_link_hwss.c503 uint32_t bytes_per_pixel_int = config->bytes_per_pixel / precision; in dsc_optc_config_log()
504 uint32_t bytes_per_pixel_mod = config->bytes_per_pixel % precision; in dsc_optc_config_log()
515 config->bytes_per_pixel, bytes_per_pixel_int, (uint32_t)ll_bytes_per_pix_fraq); in dsc_optc_config_log()
586 dsc_optc_cfg.bytes_per_pixel,
597 dsc_optc_cfg.bytes_per_pixel,
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
A Ddsc.h50 uint32_t bytes_per_pixel; /* Bytes per pixel in u3.28 format */ member
/linux/drivers/media/test-drivers/
A Dvim2m.c446 unsigned int width, height, bytesperline, bytes_per_pixel; in device_process() local
454 bytes_per_pixel = q_data_in->fmt->depth >> 3; in device_process()
532 p_in_x[1] = p_line - x_offset * bytes_per_pixel; in device_process()
534 p_in_x[1] = p_line + x_offset * bytes_per_pixel; in device_process()
549 p_in_x[0] = p_line - x_offset * bytes_per_pixel; in device_process()
551 p_in_x[0] = p_line + x_offset * bytes_per_pixel; in device_process()
/linux/drivers/media/pci/ivtv/
A Divtvfb.c165 int bytes_per_pixel; member
227 oi->display_byte_stride = osd->pixel_stride * oi->bytes_per_pixel; in ivtvfb_set_osd_coords()
550 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var()
973 oi->bytes_per_pixel = oi->bits_per_pixel / 8; in ivtvfb_init_vidmode()
1001 start_window.width * oi->bytes_per_pixel; in ivtvfb_init_vidmode()
/linux/drivers/video/fbdev/vermilion/
A Dvermilion.h209 u32 bytes_per_pixel; member
A Dvermilion.c772 vinfo->bytes_per_pixel = var->bits_per_pixel >> 3; in vmlfb_set_par_locked()
773 vinfo->stride = ALIGN(var->xres_virtual * vinfo->bytes_per_pixel, 0x40); in vmlfb_set_par_locked()
856 var->xoffset * vinfo->bytes_per_pixel); in vmlfb_set_par_locked()
943 var->xoffset * vinfo->bytes_per_pixel); in vmlfb_pan_display()
/linux/drivers/staging/media/hantro/
A Dhantro_hevc.c34 int bytes_per_pixel = sps->bit_depth_luma_minus8 == 0 ? 1 : 2; in hantro_hevc_chroma_offset() local
37 sps->pic_height_in_luma_samples * bytes_per_pixel; in hantro_hevc_chroma_offset()
/linux/drivers/video/fbdev/
A Dimxfb.c871 int bytes_per_pixel; in imxfb_probe() local
939 bytes_per_pixel = (m->bpp + 7) / 8; in imxfb_probe()
942 m->mode.xres * m->mode.yres * bytes_per_pixel); in imxfb_probe()
/linux/drivers/video/fbdev/intelfb/
A Dintelfbhw.c316 int bytes_per_pixel; in intelfbhw_validate_mode() local
323 bytes_per_pixel = var->bits_per_pixel / 8; in intelfbhw_validate_mode()
324 if (bytes_per_pixel == 3) in intelfbhw_validate_mode()
325 bytes_per_pixel = 4; in intelfbhw_validate_mode()
328 tmp = var->yres_virtual * var->xres_virtual * bytes_per_pixel; in intelfbhw_validate_mode()
/linux/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_dsc.c408 dsc_optc_cfg->bytes_per_pixel = dsc_params.bytes_per_pixel; in dsc_prepare_config()
/linux/drivers/gpu/drm/mgag200/
A Dmgag200_mode.c685 uint64_t bytes_per_pixel = (bits_per_pixel + 7) / 8; in mga_vga_calculate_mode_bandwidth() local
698 bandwidth = pixels_per_second * bytes_per_pixel * 100; in mga_vga_calculate_mode_bandwidth()
/linux/drivers/gpu/drm/amd/amdgpu/
A Ddce_v8_0.c642 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
808 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v8_0_average_bandwidth()
860 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v8_0_latency_watermark()
862 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v8_0_latency_watermark()
1002 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v8_0_program_watermarks()
1041 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v8_0_program_watermarks()
A Ddce_v6_0.c505 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
671 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v6_0_average_bandwidth()
723 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v6_0_latency_watermark()
725 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v6_0_latency_watermark()
874 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v6_0_program_watermarks()
901 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v6_0_program_watermarks()
A Ddce_v10_0.c707 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
873 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v10_0_average_bandwidth()
925 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v10_0_latency_watermark()
927 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v10_0_latency_watermark()
1067 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v10_0_program_watermarks()
1106 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v10_0_program_watermarks()
/linux/drivers/gpu/drm/amd/display/dc/inc/
A Ddce_calcs.h374 uint32_t bytes_per_pixel[maximum_number_of_surfaces]; member

Completed in 82 milliseconds

12