| /linux/drivers/gpu/drm/amd/display/dc/dml/dsc/ |
| H A D | rc_calc_fpu.c | 31 #define table_hash(mode, bpc, max_min) ((mode << 16) | (bpc << 8) | max_min) argument 37 #define TABLE_CASE(mode, bpc, max) case (table_hash(mode, BPC_##bpc, max)): \ argument 38 table = qp_table_##mode##_##bpc##bpc_##max; \ 39 …table_size = sizeof(qp_table_##mode##_##bpc##bpc_##max)/sizeof(*qp_table_##mode##_##bpc##bpc_##max… 64 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, in get_qp_set() argument 68 int sel = table_hash(mode, bpc, max_min); in get_qp_set() 167 enum bits_per_comp bpc, in _do_calc_rc_params() argument 189 …rc->rc_quant_incr_limit0 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == … in _do_calc_rc_params() 190 …rc->rc_quant_incr_limit1 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == … in _do_calc_rc_params() 197 … = median3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)((3 * bpc * 3) - (3 * bpp_gro… in _do_calc_rc_params() [all …]
|
| H A D | rc_calc_fpu.h | 83 enum bits_per_comp bpc,
|
| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-simple.c | 74 unsigned int bpc; member 270 connector->display_info.bpc = panel->desc->bpc; in panel_simple_get_non_edid_modes() 535 int ret, bpc; in panel_simple_override_nondefault_lvds_datamapping() local 556 bpc = 8; in panel_simple_override_nondefault_lvds_datamapping() 559 bpc = 6; in panel_simple_override_nondefault_lvds_datamapping() 562 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) { in panel_simple_override_nondefault_lvds_datamapping() 570 override_desc->bpc = bpc; in panel_simple_override_nondefault_lvds_datamapping() 686 desc->bpc != 6); in panel_simple_probe() 689 desc->bpc != 8); in panel_simple_probe() 696 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe() [all …]
|
| H A D | panel-edp.c | 190 unsigned int bpc; member 370 connector->display_info.bpc = panel->desc->bpc; in panel_edp_get_non_edid_modes() 913 } else if (desc->bpc != 6 && desc->bpc != 8 && desc->bpc != 10) { in panel_edp_probe() 914 dev_warn(dev, "Expected bpc in {6,8,10} but got: %u\n", desc->bpc); in panel_edp_probe() 1007 .bpc = 6, 1043 .bpc = 6, 1070 .bpc = 6, 1097 .bpc = 6, 1132 .bpc = 8, 1175 .bpc = 8, [all …]
|
| H A D | panel-boe-himax8279d.c | 31 unsigned int bpc; member 210 connector->display_info.bpc = pinfo->desc->bpc; in boe_panel_get_modes() 501 .bpc = 8, 801 .bpc = 8,
|
| H A D | panel-boe-tv101wum-nl6.c | 24 unsigned int bpc; member 1438 .bpc = 8, 1467 .bpc = 8, 1495 .bpc = 8, 1522 .bpc = 8, 1550 .bpc = 8, 1577 .bpc = 8, 1605 .bpc = 8, 1632 .bpc = 8, 1665 connector->display_info.bpc = boe->desc->bpc; in boe_panel_get_modes()
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_disp_drv.h | 19 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 30 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 39 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 43 unsigned int bpc, unsigned int cfg, 58 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 68 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 72 unsigned int h, unsigned int vrefresh, unsigned int bpc, 86 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 124 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 148 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
|
| H A D | mtk_ddp_comp.c | 129 unsigned int bpc, unsigned int cfg, in mtk_dither_set_common() argument 133 if (bpc == 0) in mtk_dither_set_common() 136 if (bpc >= MTK_MIN_BPC) { in mtk_dither_set_common() 140 DITHER_LSB_ERR_SHIFT_R(MTK_MAX_BPC - bpc) | in mtk_dither_set_common() 141 DITHER_ADD_LSHIFT_R(MTK_MAX_BPC - bpc) | in mtk_dither_set_common() 145 DITHER_LSB_ERR_SHIFT_B(MTK_MAX_BPC - bpc) | in mtk_dither_set_common() 146 DITHER_ADD_LSHIFT_B(MTK_MAX_BPC - bpc) | in mtk_dither_set_common() 147 DITHER_LSB_ERR_SHIFT_G(MTK_MAX_BPC - bpc) | in mtk_dither_set_common() 148 DITHER_ADD_LSHIFT_G(MTK_MAX_BPC - bpc), in mtk_dither_set_common() 156 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dither_config() argument [all …]
|
| H A D | mtk_ddp_comp.h | 58 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 145 unsigned int vrefresh, unsigned int bpc, in mtk_ddp_comp_config() argument 149 comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
|
| H A D | mtk_ethdr.h | 15 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
|
| H A D | mtk_crtc.c | 346 unsigned int width, height, vrefresh, bpc = MTK_MAX_BPC; in mtk_crtc_ddp_hw_init() local 365 if (connector->display_info.bpc != 0 && in mtk_crtc_ddp_hw_init() 366 bpc > connector->display_info.bpc) in mtk_crtc_ddp_hw_init() 367 bpc = connector->display_info.bpc; in mtk_crtc_ddp_hw_init() 410 mtk_ddp_comp_config(comp, width, height, vrefresh, bpc, NULL); in mtk_crtc_ddp_hw_init()
|
| /linux/drivers/gpu/drm/amd/display/dc/dsc/ |
| H A D | rc_calc.c | 44 enum bits_per_comp bpc; in calc_rc_params() local 53 bpc = (pps->bits_per_component == 8) ? BPC_8 : (pps->bits_per_component == 10) in calc_rc_params() 59 _do_calc_rc_params(rc, mode, bpc, drm_bpp, is_navite_422_or_420, in calc_rc_params()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_qp_tables.h | 11 u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i, bool is_420); 12 u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i, bool is_420);
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | evergreen_hdmi.c | 74 int bpc = 8; in evergreen_hdmi_update_acr() local 78 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr() 81 if (bpc > 8) in evergreen_hdmi_update_acr() 319 void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, u32 offset, int bpc) in dce4_hdmi_set_color_depth() argument 330 switch (bpc) { in dce4_hdmi_set_color_depth() 337 connector->name, bpc); in dce4_hdmi_set_color_depth()
|
| H A D | evergreen_hdmi.h | 65 u32 offset, int bpc);
|
| /linux/drivers/video/console/ |
| H A D | sticon.c | 164 int size, i, bpc, pitch; in sticon_set_font() local 173 bpc = pitch * h; in sticon_set_font() 174 size = bpc * op->charcount; in sticon_set_font() 185 new_font->bytes_per_char = bpc; in sticon_set_font() 203 memcpy(p, data, bpc); in sticon_set_font() 205 p += bpc; in sticon_set_font()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | atombios_crtc.c | 317 int bpc = amdgpu_crtc->bpc; in amdgpu_atombios_crtc_adjust_pll() local 358 switch (bpc) { in amdgpu_atombios_crtc_adjust_pll() 585 int bpc, in amdgpu_atombios_crtc_program_pll() argument 654 switch (bpc) { in amdgpu_atombios_crtc_program_pll() 685 switch (bpc) { in amdgpu_atombios_crtc_program_pll() 713 switch (bpc) { in amdgpu_atombios_crtc_program_pll() 756 amdgpu_crtc->bpc = 8; in amdgpu_atombios_crtc_prepare_pll() 772 amdgpu_crtc->bpc = amdgpu_connector_get_monitor_bpc(connector); in amdgpu_atombios_crtc_prepare_pll() 831 (amdgpu_crtc->bpc > 8)) in amdgpu_atombios_crtc_set_pll() 862 amdgpu_crtc->bpc, amdgpu_crtc->ss_enabled, &amdgpu_crtc->ss); in amdgpu_atombios_crtc_set_pll()
|
| H A D | atombios_crtc.h | 52 int bpc,
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | plane.c | 489 bool tegra_plane_format_is_yuv(unsigned int format, unsigned int *planes, unsigned int *bpc) in tegra_plane_format_is_yuv() argument 497 if (bpc) in tegra_plane_format_is_yuv() 498 *bpc = 8; in tegra_plane_format_is_yuv() 514 if (bpc) in tegra_plane_format_is_yuv() 515 *bpc = 8; in tegra_plane_format_is_yuv() 528 if (bpc) in tegra_plane_format_is_yuv() 529 *bpc = 8; in tegra_plane_format_is_yuv()
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | disp.c | 390 asyh->or.bpc = min_t(u8, asyh->or.bpc, 10); in nv50_outp_atomic_fix_depth() 393 while (asyh->or.bpc > 6) { in nv50_outp_atomic_fix_depth() 394 mode_rate = DIV_ROUND_UP(mode->clock * asyh->or.bpc * 3, 8); in nv50_outp_atomic_fix_depth() 398 asyh->or.bpc -= 2; in nv50_outp_atomic_fix_depth() 422 asyh->or.bpc = connector->display_info.bpc; in nv50_outp_atomic_check() 992 asyh->or.bpc = connector->display_info.bpc; in nv50_msto_atomic_check() 993 asyh->dp.pbn = drm_dp_calc_pbn_mode(clock, asyh->or.bpc * 3 << 4); in nv50_msto_atomic_check() 1016 nv50_dp_bpc_to_depth(unsigned int bpc) in nv50_dp_bpc_to_depth() argument 1018 switch (bpc) { in nv50_dp_bpc_to_depth() 1068 nv50_dp_bpc_to_depth(asyh->or.bpc)); in nv50_msto_atomic_enable() [all …]
|
| /linux/include/linux/phy/ |
| H A D | phy-hdmi.h | 18 unsigned int bpc; member
|
| /linux/drivers/gpu/drm/bridge/cadence/ |
| H A D | cdns-mhdp8546-core.c | 1479 if (connector->display_info.bpc && in cdns_mhdp_get_modes() 1480 connector->display_info.bpc < mhdp->display_fmt.bpc) in cdns_mhdp_get_modes() 1482 __func__, connector->display_info.bpc, in cdns_mhdp_get_modes() 1483 mhdp->display_fmt.bpc); in cdns_mhdp_get_modes() 1502 return fmt->bpc; in cdns_mhdp_get_bpp() 1507 bpp = fmt->bpc * 3; in cdns_mhdp_get_bpp() 1510 bpp = fmt->bpc * 2; in cdns_mhdp_get_bpp() 1513 bpp = fmt->bpc * 3 / 2; in cdns_mhdp_get_bpp() 1516 bpp = fmt->bpc * 3; in cdns_mhdp_get_bpp() 1705 u32 bpp, bpc, pxlfmt, framer; in cdns_mhdp_configure_video() local [all …]
|
| /linux/drivers/gpu/drm/xlnx/ |
| H A D | zynqmp_dp.c | 1222 unsigned int bpc) in zynqmp_dp_set_format() argument 1256 if (info && info->bpc && bpc > info->bpc) { in zynqmp_dp_set_format() 1259 bpc, info->bpc); in zynqmp_dp_set_format() 1260 bpc = info->bpc; in zynqmp_dp_set_format() 1265 switch (bpc) { in zynqmp_dp_set_format() 1283 bpc); in zynqmp_dp_set_format() 1285 bpc = 8; in zynqmp_dp_set_format() 1290 config->bpp = bpc * num_colors; in zynqmp_dp_set_format()
|
| /linux/drivers/spi/ |
| H A D | spi-bcm-qspi.c | 407 int bpp, int bpc, int flex_mode) in bcm_qspi_bspi_set_xfer_params() argument 410 bcm_qspi_write(qspi, BSPI, BSPI_BITS_PER_CYCLE, bpc); in bcm_qspi_bspi_set_xfer_params() 419 int bpc = 0, bpp = 0; in bcm_qspi_bspi_set_flex_mode() local 441 bpc = 0x00000001; in bcm_qspi_bspi_set_flex_mode() 443 bpc |= 0x00010100; /* address and mode are 2-bit */ in bcm_qspi_bspi_set_flex_mode() 448 bpc = 0x00000002; in bcm_qspi_bspi_set_flex_mode() 450 bpc |= 0x00020200; /* address and mode are 4-bit */ in bcm_qspi_bspi_set_flex_mode() 458 bcm_qspi_bspi_set_xfer_params(qspi, command, bpp, bpc, flex_mode); in bcm_qspi_bspi_set_flex_mode()
|
| /linux/arch/mips/alchemy/common/ |
| H A D | clock.c | 409 struct clk_hw *pc, *bpc, *free; in alchemy_clk_fgcs_detr() local 415 bpc = NULL; in alchemy_clk_fgcs_detr() 450 bpc = pc; in alchemy_clk_fgcs_detr() 477 bpc = free; in alchemy_clk_fgcs_detr() 489 req->best_parent_hw = bpc; in alchemy_clk_fgcs_detr()
|