Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/gpu/drm/rockchip/
Drockchip_drm_fbdev.c55 unsigned int bytes_per_pixel; in rockchip_drm_fbdev_create() local
61 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rockchip_drm_fbdev_create()
65 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create()
101 offset = fbi->var.xoffset * bytes_per_pixel; in rockchip_drm_fbdev_create()
/Linux-v4.19/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_drm_fbdev.c68 unsigned int bytes_per_pixel; in hibmc_drm_fb_create() local
76 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in hibmc_drm_fb_create()
80 mode_cmd.pitches[0] = mode_cmd.width * bytes_per_pixel; in hibmc_drm_fb_create()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/calcs/
Ddce_calcs.c167 data->bytes_per_pixel[0] = 1; in calculate_bandwidth()
168 data->bytes_per_pixel[2] = 1; in calculate_bandwidth()
171 data->bytes_per_pixel[1] = 2; in calculate_bandwidth()
172 data->bytes_per_pixel[3] = 2; in calculate_bandwidth()
181 data->bytes_per_pixel[0] = 2; in calculate_bandwidth()
182 data->bytes_per_pixel[2] = 2; in calculate_bandwidth()
189 data->bytes_per_pixel[0] = 4; in calculate_bandwidth()
190 data->bytes_per_pixel[2] = 4; in calculate_bandwidth()
360 data->bytes_per_pixel[maximum_number_of_surfaces - 2] = 1; in calculate_bandwidth()
361 data->bytes_per_pixel[maximum_number_of_surfaces - 1] = 2; in calculate_bandwidth()
[all …]
Dcalcs_logger.h397 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] bytes_per_pixel[%d]:%d", i, data->bytes_per_pixel[i]); in print_bw_calcs_data()
/Linux-v4.19/drivers/gpu/drm/tegra/
Dfb.c213 unsigned int bytes_per_pixel; in tegra_fbdev_probe() local
221 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_probe()
225 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe()
264 offset = info->var.xoffset * bytes_per_pixel + in tegra_fbdev_probe()
/Linux-v4.19/drivers/media/platform/vivid/
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()
Dvivid-core.h279 int bytes_per_pixel; member
/Linux-v4.19/drivers/video/fbdev/vermilion/
Dvermilion.h223 u32 bytes_per_pixel; member
Dvermilion.c786 vinfo->bytes_per_pixel = var->bits_per_pixel >> 3; in vmlfb_set_par_locked()
787 vinfo->stride = ALIGN(var->xres_virtual * vinfo->bytes_per_pixel, 0x40); in vmlfb_set_par_locked()
870 var->xoffset * vinfo->bytes_per_pixel); in vmlfb_set_par_locked()
957 var->xoffset * vinfo->bytes_per_pixel); in vmlfb_pan_display()
/Linux-v4.19/drivers/media/usb/usbvision/
Dusbvision-core.c489 int clipmask_index, bytes_per_pixel; in usbvision_parse_lines_422() local
505 bytes_per_pixel = frame->v4l2_format.bytes_per_pixel; in usbvision_parse_lines_422()
506 stretch_bytes = (usbvision->stretch_width - 1) * bytes_per_pixel; in usbvision_parse_lines_422()
878 int clipmask_even_index, clipmask_odd_index, bytes_per_pixel; in usbvision_parse_lines_420() local
888 bytes_per_pixel = frame->v4l2_format.bytes_per_pixel; in usbvision_parse_lines_420()
889 stretch_bytes = (usbvision->stretch_width - 1) * bytes_per_pixel; in usbvision_parse_lines_420()
1771 usbvision->palette.bytes_per_pixel); in usbvision_frames_alloc()
Dusbvision.h274 int bytes_per_pixel; member
Dusbvision-video.c707 usbvision->palette.bytes_per_pixel; in vidioc_querybuf()
830 usbvision->curwidth * usbvision->palette.bytes_per_pixel; in vidioc_g_fmt_vid_cap()
859 usbvision->palette.bytes_per_pixel; in vidioc_try_fmt_vid_cap()
/Linux-v4.19/drivers/media/pci/ivtv/
Divtvfb.c172 int bytes_per_pixel; member
234 oi->display_byte_stride = osd->pixel_stride * oi->bytes_per_pixel; in ivtvfb_set_osd_coords()
557 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var()
980 oi->bytes_per_pixel = oi->bits_per_pixel / 8; in ivtvfb_init_vidmode()
1008 start_window.width * oi->bytes_per_pixel; in ivtvfb_init_vidmode()
/Linux-v4.19/drivers/video/fbdev/
Dimxfb.c856 int bytes_per_pixel; in imxfb_probe() local
924 bytes_per_pixel = (m->bpp + 7) / 8; in imxfb_probe()
927 m->mode.xres * m->mode.yres * bytes_per_pixel); in imxfb_probe()
/Linux-v4.19/drivers/video/fbdev/intelfb/
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-v4.19/drivers/gpu/drm/amd/amdgpu/
Ddce_v8_0.c627 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
793 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v8_0_average_bandwidth()
845 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v8_0_latency_watermark()
847 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v8_0_latency_watermark()
987 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v8_0_program_watermarks()
1026 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v8_0_program_watermarks()
Ddce_v6_0.c489 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
655 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v6_0_average_bandwidth()
707 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v6_0_latency_watermark()
709 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v6_0_latency_watermark()
858 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v6_0_program_watermarks()
885 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v6_0_program_watermarks()
Ddce_v11_0.c718 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
884 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v11_0_average_bandwidth()
936 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v11_0_latency_watermark()
938 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v11_0_latency_watermark()
1078 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v11_0_program_watermarks()
1117 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v11_0_program_watermarks()
Ddce_v10_0.c692 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
858 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce_v10_0_average_bandwidth()
910 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce_v10_0_latency_watermark()
912 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce_v10_0_latency_watermark()
1052 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v10_0_program_watermarks()
1091 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce_v10_0_program_watermarks()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/
Ddce_calcs.h374 uint32_t bytes_per_pixel[maximum_number_of_surfaces]; member
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c52 #define GEOM(xshift, yshift, bytes_per_pixel) { \ argument
55 .cpp = (bytes_per_pixel), \
/Linux-v4.19/drivers/gpu/drm/mgag200/
Dmgag200_mode.c1568 uint64_t bytes_per_pixel = (bits_per_pixel + 7) / 8; in mga_vga_calculate_mode_bandwidth() local
1581 bandwidth = pixels_per_second * bytes_per_pixel * 100; in mga_vga_calculate_mode_bandwidth()
/Linux-v4.19/drivers/gpu/drm/radeon/
Devergreen.c1938 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
2048 bpp.full = dfixed_const(wm->bytes_per_pixel); in evergreen_average_bandwidth()
2088 lb_fill_bw = min(dfixed_trunc(a), wm->disp_clk * wm->bytes_per_pixel / 1000); in evergreen_latency_watermark()
2090 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in evergreen_latency_watermark()
2197 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in evergreen_program_watermarks()
2224 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in evergreen_program_watermarks()
Dsi.c2064 u32 bytes_per_pixel; /* bytes per pixel display + overlay */ member
2191 bpp.full = dfixed_const(wm->bytes_per_pixel); in dce6_average_bandwidth()
2234 lb_fill_bw = min(tmp, wm->disp_clk * wm->bytes_per_pixel / 1000); in dce6_latency_watermark()
2236 a.full = dfixed_const(max_src_lines_per_dst_line * wm->src_width * wm->bytes_per_pixel); in dce6_latency_watermark()
2346 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce6_program_watermarks()
2373 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ in dce6_program_watermarks()
/Linux-v4.19/drivers/dma/ipu/
Dipu_idmac.c91 static uint32_t bytes_per_pixel(enum pixel_fmt fmt) in bytes_per_pixel() function
668 stride_bytes = stride * bytes_per_pixel(pixel_fmt); in ipu_init_channel_buffer()

12