Home
last modified time | relevance | path

Searched refs:bpc (Results 1 – 25 of 108) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dsc/
Drc_calc.c32 #define table_hash(mode, bpc, max_min) ((mode << 16) | (bpc << 8) | max_min) argument
38 #define TABLE_CASE(mode, bpc, max) case (table_hash(mode, BPC_##bpc, max)): \ argument
39 table = qp_table_##mode##_##bpc##bpc_##max; \
40 …table_size = sizeof(qp_table_##mode##_##bpc##bpc_##max)/sizeof(*qp_table_##mode##_##bpc##bpc_##max…
44 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, in get_qp_set() argument
48 int sel = table_hash(mode, bpc, max_min); in get_qp_set()
178 enum bits_per_comp bpc, u16 drm_bpp, in _do_calc_rc_params() argument
196 …rc->rc_quant_incr_limit0 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == … in _do_calc_rc_params()
197 …rc->rc_quant_incr_limit1 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == … in _do_calc_rc_params()
204 … = median3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)((3 * bpc * 3) - (3 * bpp_gro… in _do_calc_rc_params()
[all …]
Ddc_dsc.c914 uint32_t bpc = 0; in dc_dsc_get_policy_for_timing() local
937 bpc = 8; in dc_dsc_get_policy_for_timing()
940 bpc = 10; in dc_dsc_get_policy_for_timing()
943 bpc = 12; in dc_dsc_get_policy_for_timing()
955 policy->max_target_bpp = 3 * bpc; in dc_dsc_get_policy_for_timing()
961 policy->max_target_bpp = bpc * 3 / 2; in dc_dsc_get_policy_for_timing()
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/
Dpanel-simple.c63 unsigned int bpc; member
222 connector->display_info.bpc = panel->desc->bpc; in panel_simple_get_non_edid_modes()
583 desc->bpc != 6); in panel_simple_probe()
586 desc->bpc != 8); in panel_simple_probe()
591 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe()
592 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); in panel_simple_probe()
595 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe()
596 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); in panel_simple_probe()
613 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe()
614 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); in panel_simple_probe()
[all …]
Dpanel-boe-himax8279d.c32 unsigned int bpc; member
234 connector->display_info.bpc = pinfo->desc->bpc; in boe_panel_get_modes()
525 .bpc = 8,
825 .bpc = 8,
Dpanel-boe-tv101wum-nl6.c23 unsigned int bpc; member
603 .bpc = 8,
630 .bpc = 8,
658 .bpc = 8,
685 .bpc = 8,
712 .bpc = 8,
744 connector->display_info.bpc = boe->desc->bpc; in boe_panel_get_modes()
Dpanel-seiko-43wvf1g.c28 unsigned int bpc; member
111 connector->display_info.bpc = panel->desc->bpc; in seiko_panel_get_fixed_modes()
301 .bpc = 8,
Dpanel-innolux-p079zca.c32 unsigned int bpc; member
223 .bpc = 8,
370 .bpc = 8,
405 connector->display_info.bpc = innolux->desc->bpc; in innolux_panel_get_modes()
Dpanel-olimex-lcd-olinuxino.c45 u32 bpc; member
187 connector->display_info.bpc = lcd_info->bpc; in lcd_olinuxino_get_modes()
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_ddp_comp.c136 void mtk_dither_set(struct mtk_ddp_comp *comp, unsigned int bpc, in mtk_dither_set() argument
140 if (bpc == 0) in mtk_dither_set()
143 if (bpc >= MTK_MIN_BPC) { in mtk_dither_set()
147 DITHER_LSB_ERR_SHIFT_R(MTK_MAX_BPC - bpc) | in mtk_dither_set()
148 DITHER_ADD_LSHIFT_R(MTK_MAX_BPC - bpc) | in mtk_dither_set()
152 DITHER_LSB_ERR_SHIFT_B(MTK_MAX_BPC - bpc) | in mtk_dither_set()
153 DITHER_ADD_LSHIFT_B(MTK_MAX_BPC - bpc) | in mtk_dither_set()
154 DITHER_LSB_ERR_SHIFT_G(MTK_MAX_BPC - bpc) | in mtk_dither_set()
155 DITHER_ADD_LSHIFT_G(MTK_MAX_BPC - bpc), in mtk_dither_set()
163 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_od_config() argument
[all …]
Dmtk_drm_ddp_comp.h44 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
78 unsigned int vrefresh, unsigned int bpc, in mtk_ddp_comp_config() argument
82 comp->funcs->config(comp, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
180 void mtk_dither_set(struct mtk_ddp_comp *comp, unsigned int bpc,
Dmtk_drm_crtc.c251 unsigned int width, height, vrefresh, bpc = MTK_MAX_BPC; in mtk_crtc_ddp_hw_init() local
270 if (connector->display_info.bpc != 0 && in mtk_crtc_ddp_hw_init()
271 bpc > connector->display_info.bpc) in mtk_crtc_ddp_hw_init()
272 bpc = connector->display_info.bpc; in mtk_crtc_ddp_hw_init()
311 mtk_ddp_comp_config(comp, width, height, vrefresh, bpc, NULL); in mtk_crtc_ddp_hw_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_connectors.c104 int bpc = 8; in amdgpu_connector_get_monitor_bpc() local
112 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
113 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
120 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
121 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
129 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
130 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
135 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
136 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
145 bpc = 6; in amdgpu_connector_get_monitor_bpc()
[all …]
Datombios_crtc.c318 int bpc = amdgpu_crtc->bpc; in amdgpu_atombios_crtc_adjust_pll() local
359 switch (bpc) { in amdgpu_atombios_crtc_adjust_pll()
586 int bpc, in amdgpu_atombios_crtc_program_pll() argument
655 switch (bpc) { in amdgpu_atombios_crtc_program_pll()
686 switch (bpc) { in amdgpu_atombios_crtc_program_pll()
714 switch (bpc) { in amdgpu_atombios_crtc_program_pll()
757 amdgpu_crtc->bpc = 8; in amdgpu_atombios_crtc_prepare_pll()
773 amdgpu_crtc->bpc = amdgpu_connector_get_monitor_bpc(connector); in amdgpu_atombios_crtc_prepare_pll()
832 (amdgpu_crtc->bpc > 8)) in amdgpu_atombios_crtc_set_pll()
863 amdgpu_crtc->bpc, amdgpu_crtc->ss_enabled, &amdgpu_crtc->ss); in amdgpu_atombios_crtc_set_pll()
Datombios_crtc.h52 int bpc,
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_connectors.c126 int bpc = 8; in radeon_get_monitor_bpc() local
134 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
135 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
142 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
143 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
151 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
152 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
157 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
158 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
167 bpc = 6; in radeon_get_monitor_bpc()
[all …]
Devergreen_hdmi.c72 int bpc = 8; in evergreen_hdmi_update_acr() local
76 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr()
79 if (bpc > 8) in evergreen_hdmi_update_acr()
317 void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, u32 offset, int bpc) in dce4_hdmi_set_color_depth() argument
328 switch (bpc) { in dce4_hdmi_set_color_depth()
335 connector->name, bpc); in dce4_hdmi_set_color_depth()
/kernel/linux/linux-5.10/drivers/video/console/
Dsticon.c179 int size, i, bpc, pitch; in sticon_set_font() local
188 bpc = pitch * h; in sticon_set_font()
189 size = bpc * op->charcount; in sticon_set_font()
200 new_font->bytes_per_char = bpc; in sticon_set_font()
218 memcpy(p, data, bpc); in sticon_set_font()
220 p += bpc; in sticon_set_font()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
Dtc358775.c273 u8 bpc; member
426 if (tc->bpc == 8) in tc_bridge_enable()
431 dsiclk = mode->crtc_clock * 3 * tc->bpc / tc->num_dsi_lanes / 1000; in tc_bridge_enable()
434 t1 = hactive * (tc->bpc * 3 / 8) / tc->num_dsi_lanes; in tc_bridge_enable()
436 t3 = ((t2 * byteclk) / 100) - (hactive * (tc->bpc * 3 / 8) / in tc_bridge_enable()
455 tc->bpc); in tc_bridge_enable()
511 tc->bpc = 8; in tc_mode_valid()
515 tc->bpc = 6; in tc_mode_valid()
/kernel/linux/linux-5.10/drivers/gpu/drm/xlnx/
Dzynqmp_dp.c1111 unsigned int bpc) in zynqmp_dp_set_format() argument
1147 if (display->bpc && bpc > display->bpc) { in zynqmp_dp_set_format()
1150 bpc, display->bpc); in zynqmp_dp_set_format()
1151 bpc = display->bpc; in zynqmp_dp_set_format()
1156 switch (bpc) { in zynqmp_dp_set_format()
1174 bpc); in zynqmp_dp_set_format()
1176 bpc = 8; in zynqmp_dp_set_format()
1181 config->bpp = bpc * num_colors; in zynqmp_dp_set_format()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_hdmi.c2285 int bpc, bool has_hdmi_sink, bool ycbcr420_output) in intel_hdmi_deep_color_possible() argument
2292 if (crtc_state->pipe_bpp < bpc * 3) in intel_hdmi_deep_color_possible()
2307 if (bpc == 12 && !(hdmi->y420_dc_modes & in intel_hdmi_deep_color_possible()
2310 else if (bpc == 10 && !(hdmi->y420_dc_modes & in intel_hdmi_deep_color_possible()
2314 if (bpc == 12 && !(info->edid_hdmi_dc_modes & in intel_hdmi_deep_color_possible()
2317 else if (bpc == 10 && !(info->edid_hdmi_dc_modes & in intel_hdmi_deep_color_possible()
2327 int bpc) in hdmi_deep_color_possible() argument
2337 if (bpc == 10 && INTEL_GEN(dev_priv) < 11) in hdmi_deep_color_possible()
2349 bpc == 10 && IS_GEN(dev_priv, 11) && in hdmi_deep_color_possible()
2354 return intel_hdmi_deep_color_possible(crtc_state, bpc, in hdmi_deep_color_possible()
[all …]
Dintel_hdmi.h51 bool intel_hdmi_deep_color_possible(const struct intel_crtc_state *crtc_state, int bpc,
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c1528 if (connector->display_info.bpc && in cdns_mhdp_get_modes()
1529 connector->display_info.bpc < mhdp->display_fmt.bpc) in cdns_mhdp_get_modes()
1531 __func__, connector->display_info.bpc, in cdns_mhdp_get_modes()
1532 mhdp->display_fmt.bpc); in cdns_mhdp_get_modes()
1551 return fmt->bpc; in cdns_mhdp_get_bpp()
1556 bpp = fmt->bpc * 3; in cdns_mhdp_get_bpp()
1559 bpp = fmt->bpc * 2; in cdns_mhdp_get_bpp()
1562 bpp = fmt->bpc * 3 / 2; in cdns_mhdp_get_bpp()
1565 bpp = fmt->bpc * 3; in cdns_mhdp_get_bpp()
1707 u32 bpp, bpc, pxlfmt, framer; in cdns_mhdp_configure_video() local
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Dcdn-dp-core.c286 u8 lanes, bpc; in cdn_dp_connector_mode_valid() local
292 switch (display_info->bpc) { in cdn_dp_connector_mode_valid()
294 bpc = 10; in cdn_dp_connector_mode_valid()
297 bpc = 6; in cdn_dp_connector_mode_valid()
300 bpc = 8; in cdn_dp_connector_mode_valid()
304 requested = mode->clock * bpc * 3 / 1000; in cdn_dp_connector_mode_valid()
551 switch (display_info->bpc) { in cdn_dp_encoder_mode_set()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dsc.c452 enum dsc_bits_per_comp bpc = DSC_BPC_UNKNOWN; in dsc_dc_color_depth_to_dsc_bits_per_comp() local
456 bpc = DSC_BPC_8; in dsc_dc_color_depth_to_dsc_bits_per_comp()
459 bpc = DSC_BPC_10; in dsc_dc_color_depth_to_dsc_bits_per_comp()
462 bpc = DSC_BPC_12; in dsc_dc_color_depth_to_dsc_bits_per_comp()
465 bpc = DSC_BPC_UNKNOWN; in dsc_dc_color_depth_to_dsc_bits_per_comp()
469 return bpc; in dsc_dc_color_depth_to_dsc_bits_per_comp()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-bcm-qspi.c374 int bpp, int bpc, int flex_mode) in bcm_qspi_bspi_set_xfer_params() argument
377 bcm_qspi_write(qspi, BSPI, BSPI_BITS_PER_CYCLE, bpc); in bcm_qspi_bspi_set_xfer_params()
386 int bpc = 0, bpp = 0; in bcm_qspi_bspi_set_flex_mode() local
407 bpc = 0x00000001; in bcm_qspi_bspi_set_flex_mode()
409 bpc |= 0x00010100; /* address and mode are 2-bit */ in bcm_qspi_bspi_set_flex_mode()
414 bpc = 0x00000002; in bcm_qspi_bspi_set_flex_mode()
416 bpc |= 0x00020200; /* address and mode are 4-bit */ in bcm_qspi_bspi_set_flex_mode()
424 bcm_qspi_bspi_set_xfer_params(qspi, command, bpp, bpc, flex_mode); in bcm_qspi_bspi_set_flex_mode()

12345