/openbmc/linux/drivers/pwm/ |
H A D | pwm-berlin.c | 219 struct berlin_pwm_chip *bpc; in berlin_pwm_probe() local 222 bpc = devm_kzalloc(&pdev->dev, sizeof(*bpc), GFP_KERNEL); in berlin_pwm_probe() 223 if (!bpc) in berlin_pwm_probe() 227 if (IS_ERR(bpc->base)) in berlin_pwm_probe() 228 return PTR_ERR(bpc->base); in berlin_pwm_probe() 231 if (IS_ERR(bpc->clk)) in berlin_pwm_probe() 232 return PTR_ERR(bpc->clk); in berlin_pwm_probe() 238 bpc->chip.dev = &pdev->dev; in berlin_pwm_probe() 240 bpc->chip.npwm = 4; in berlin_pwm_probe() 242 ret = pwmchip_add(&bpc->chip); in berlin_pwm_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/display/ |
H A D | drm_dsc_helper.c | 343 u8 bpc; member 357 .bpp = DSC_BPP(6), .bpc = 8, 367 .bpp = DSC_BPP(8), .bpc = 8, 377 .bpp = DSC_BPP(8), .bpc = 10, 391 .bpp = DSC_BPP(8), .bpc = 12, 402 .bpp = DSC_BPP(10), .bpc = 8, 433 .bpp = DSC_BPP(12), .bpc = 8, 505 .bpp = DSC_BPP(6), .bpc = 8, 559 .bpp = DSC_BPP(8), .bpc = 8, 781 .bpp = DSC_BPP(6), .bpc = 8, [all …]
|
/openbmc/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… 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() 227 rc->flatness_det_thresh = 2 << (bpc - 8); in _do_calc_rc_params() 229 get_qp_set(rc->qp_min, cm, bpc, DAL_MM_MIN, bpp); in _do_calc_rc_params() [all …]
|
/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-simple.c | 263 connector->display_info.bpc = panel->desc->bpc; in panel_simple_get_non_edid_modes() 631 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe() 649 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe() 730 .bpc = 8, 756 .bpc = 8, 795 .bpc = 8, 810 .bpc = 6, 836 .bpc = 6, 865 .bpc = 6, 889 .bpc = 6, [all …]
|
H A D | panel-edp.c | 360 connector->display_info.bpc = panel->desc->bpc; in panel_edp_get_non_edid_modes() 914 } else if (desc->bpc != 6 && desc->bpc != 8 && desc->bpc != 10) { in panel_edp_probe() 981 .bpc = 6, 1004 .bpc = 6, 1031 .bpc = 8, 1058 .bpc = 6, 1085 .bpc = 6, 1107 .bpc = 8, 1147 .bpc = 8, 1190 .bpc = 8, [all …]
|
H A D | panel-boe-himax8279d.c | 31 unsigned int bpc; member 233 connector->display_info.bpc = pinfo->desc->bpc; in boe_panel_get_modes() 524 .bpc = 8, 824 .bpc = 8,
|
H A D | panel-seiko-43wvf1g.c | 30 unsigned int bpc; member 114 connector->display_info.bpc = panel->desc->bpc; in seiko_panel_get_fixed_modes() 312 .bpc = 8,
|
H A D | panel-innolux-p079zca.c | 31 unsigned int bpc; member 222 .bpc = 8, 369 .bpc = 8, 404 connector->display_info.bpc = innolux->desc->bpc; in innolux_panel_get_modes()
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_qp_tables.c | 452 if (bpc == (_bpc)) { \ 454 return rc_range_##_minmax##qp420_##_bpc##bpc[_row][_col]; \ 456 return rc_range_##_minmax##qp444_##_bpc##bpc[_row][_col]; \ 460 u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i, bool is_420) in intel_lookup_range_min_qp() argument 466 MISSING_CASE(bpc); in intel_lookup_range_min_qp() 470 u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i, bool is_420) in intel_lookup_range_max_qp() argument 476 MISSING_CASE(bpc); in intel_lookup_range_max_qp()
|
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);
|
H A D | intel_hdmi.c | 1896 switch (bpc) { in intel_hdmi_source_bpc_possible() 1904 MISSING_CASE(bpc); in intel_hdmi_source_bpc_possible() 1916 switch (bpc) { in intel_hdmi_sink_bpc_possible() 1949 int bpc; in intel_hdmi_mode_clock_valid() local 1956 for (bpc = 12; bpc >= 8; bpc -= 2) { in intel_hdmi_mode_clock_valid() 2082 int bpc; in intel_hdmi_compute_bpc() local 2096 bpc = 8; in intel_hdmi_compute_bpc() 2098 for (; bpc >= 8; bpc -= 2) { in intel_hdmi_compute_bpc() 2106 return bpc; in intel_hdmi_compute_bpc() 2126 if (bpc < 0) in intel_hdmi_compute_clock() [all …]
|
H A D | intel_hdmi.h | 52 int bpc, bool has_hdmi_sink); 53 int intel_hdmi_tmds_clock(int clock, int bpc, enum intel_output_format sink_format);
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_disp_drv.h | 19 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 29 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 38 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 42 unsigned int bpc, unsigned int cfg, 55 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 65 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 69 unsigned int h, unsigned int vrefresh, unsigned int bpc, 81 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 114 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 135 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
|
H A D | mtk_drm_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() 148 DITHER_ADD_LSHIFT_G(MTK_MAX_BPC - bpc), in mtk_dither_set_common() 192 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dsc_config() argument 222 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_od_config() argument [all …]
|
/openbmc/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()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_connectors.c | 105 int bpc = 8; in amdgpu_connector_get_monitor_bpc() local 114 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc() 122 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc() 131 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc() 137 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc() 146 bpc = 6; in amdgpu_connector_get_monitor_bpc() 148 bpc = 8; in amdgpu_connector_get_monitor_bpc() 163 bpc = 12; in amdgpu_connector_get_monitor_bpc() 190 bpc = 8; in amdgpu_connector_get_monitor_bpc() 198 bpc = 8; in amdgpu_connector_get_monitor_bpc() [all …]
|
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()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_connectors.c | 105 int bpc = 8; in radeon_get_monitor_bpc() local 114 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc() 122 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc() 131 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc() 137 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc() 146 bpc = 6; in radeon_get_monitor_bpc() 148 bpc = 8; in radeon_get_monitor_bpc() 158 bpc = 8; in radeon_get_monitor_bpc() 170 bpc = 12; in radeon_get_monitor_bpc() 205 bpc = 8; in radeon_get_monitor_bpc() [all …]
|
H A D | evergreen_hdmi.c | 73 int bpc = 8; in evergreen_hdmi_update_acr() local 77 bpc = radeon_crtc->bpc; in evergreen_hdmi_update_acr() 80 if (bpc > 8) in evergreen_hdmi_update_acr() 318 void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, u32 offset, int bpc) in dce4_hdmi_set_color_depth() argument 329 switch (bpc) { in dce4_hdmi_set_color_depth() 336 connector->name, bpc); in dce4_hdmi_set_color_depth()
|
/openbmc/linux/drivers/video/console/ |
H A D | sticon.c | 178 int size, i, bpc, pitch; in sticon_set_font() local 187 bpc = pitch * h; in sticon_set_font() 188 size = bpc * op->charcount; in sticon_set_font() 199 new_font->bytes_per_char = bpc; in sticon_set_font() 217 memcpy(p, data, bpc); in sticon_set_font() 219 p += bpc; in sticon_set_font()
|
/openbmc/linux/drivers/gpu/drm/ci/xfails/ |
H A D | amdgpu-stoney-fails.txt | 15 kms_hdr@bpc-switch,Fail 16 kms_hdr@bpc-switch-dpms,Fail
|
/openbmc/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()
|
/openbmc/qemu/target/rx/ |
H A D | gdbstub.c | 43 return gdb_get_regl(mem_buf, env->bpc); in rx_cpu_gdb_read_register() 96 env->bpc = ldl_p(mem_buf); in rx_cpu_gdb_write_register()
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | tc358775.c | 273 u8 bpc; member 427 if (tc->bpc == 8) in tc_bridge_enable() 432 dsiclk = mode->crtc_clock * 3 * tc->bpc / tc->num_dsi_lanes / 1000; in tc_bridge_enable() 435 t1 = hactive * (tc->bpc * 3 / 8) / tc->num_dsi_lanes; in tc_bridge_enable() 437 t3 = ((t2 * byteclk) / 100) - (hactive * (tc->bpc * 3 / 8) / in tc_bridge_enable() 456 tc->bpc); in tc_bridge_enable() 509 tc->bpc = 8; in tc_mode_valid() 513 tc->bpc = 6; in tc_mode_valid()
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_hdmi.c | 148 unsigned int bpc, in vc4_hdmi_mode_needs_scrambling() argument 1932 if (vic == 1 && bpc != 8) { in vc4_hdmi_sink_supports_format_bpc() 1972 if (bpc != 12) { in vc4_hdmi_sink_supports_format_bpc() 2036 unsigned int bpc, in vc4_hdmi_encoder_compute_mode_clock() argument 2045 bpc = 8; in vc4_hdmi_encoder_compute_mode_clock() 2047 clock = clock * bpc; in vc4_hdmi_encoder_compute_mode_clock() 2074 unsigned int bpc) in vc4_hdmi_encoder_compute_format() argument 2088 mode, bpc, format); in vc4_hdmi_encoder_compute_format() 2122 unsigned int bpc; in vc4_hdmi_encoder_compute_config() local 2125 for (bpc = max_bpc; bpc >= 8; bpc -= 2) { in vc4_hdmi_encoder_compute_config() [all …]
|