/linux-6.3-rc2/drivers/pwm/ |
A D | pwm-berlin.c | 218 struct berlin_pwm_chip *bpc; in berlin_pwm_probe() local 221 bpc = devm_kzalloc(&pdev->dev, sizeof(*bpc), GFP_KERNEL); in berlin_pwm_probe() 222 if (!bpc) in berlin_pwm_probe() 226 if (IS_ERR(bpc->base)) in berlin_pwm_probe() 227 return PTR_ERR(bpc->base); in berlin_pwm_probe() 230 if (IS_ERR(bpc->clk)) in berlin_pwm_probe() 231 return PTR_ERR(bpc->clk); in berlin_pwm_probe() 237 bpc->chip.dev = &pdev->dev; in berlin_pwm_probe() 239 bpc->chip.npwm = 4; in berlin_pwm_probe() 241 ret = pwmchip_add(&bpc->chip); in berlin_pwm_probe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dml/dsc/ |
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 …]
|
/linux-6.3-rc2/drivers/gpu/drm/panel/ |
A D | panel-simple.c | 264 connector->display_info.bpc = panel->desc->bpc; in panel_simple_get_non_edid_modes() 635 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe() 653 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe() 734 .bpc = 8, 760 .bpc = 8, 784 .bpc = 6, 810 .bpc = 6, 839 .bpc = 6, 863 .bpc = 6, 889 .bpc = 6, [all …]
|
A D | panel-edp.c | 339 connector->display_info.bpc = panel->desc->bpc; in panel_edp_get_non_edid_modes() 879 } else if (desc->bpc != 6 && desc->bpc != 8 && desc->bpc != 10) { in panel_edp_probe() 948 .bpc = 6, 971 .bpc = 6, 997 .bpc = 6, 1022 .bpc = 8, 1049 .bpc = 6, 1076 .bpc = 6, 1098 .bpc = 8, 1138 .bpc = 8, [all …]
|
A D | panel-boe-himax8279d.c | 32 unsigned int bpc; member 234 connector->display_info.bpc = pinfo->desc->bpc; in boe_panel_get_modes() 525 .bpc = 8, 825 .bpc = 8,
|
A D | panel-seiko-43wvf1g.c | 29 unsigned int bpc; member 112 connector->display_info.bpc = panel->desc->bpc; in seiko_panel_get_fixed_modes() 302 .bpc = 8,
|
A D | panel-innolux-p079zca.c | 32 unsigned int bpc; member 223 .bpc = 8, 370 .bpc = 8, 405 connector->display_info.bpc = innolux->desc->bpc; in innolux_panel_get_modes()
|
A D | panel-boe-tv101wum-nl6.c | 23 unsigned int bpc; member 1322 .bpc = 8, 1351 .bpc = 8, 1379 .bpc = 8, 1406 .bpc = 8, 1434 .bpc = 8, 1461 .bpc = 8, 1488 .bpc = 8, 1520 connector->display_info.bpc = boe->desc->bpc; in boe_panel_get_modes()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/display/ |
A D | intel_qp_tables.c | 287 if (bpc == (_bpc)) \ 288 return rc_range_##_minmax##qp444_##_bpc##bpc[_row][_col]; \ 291 u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i) in intel_lookup_range_min_qp() argument 297 MISSING_CASE(bpc); in intel_lookup_range_min_qp() 301 u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i) in intel_lookup_range_max_qp() argument 307 MISSING_CASE(bpc); in intel_lookup_range_max_qp()
|
A D | intel_qp_tables.h | 11 u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i); 12 u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i);
|
A D | intel_hdmi.c | 1906 switch (bpc) { in intel_hdmi_source_bpc_possible() 1914 MISSING_CASE(bpc); in intel_hdmi_source_bpc_possible() 1925 switch (bpc) { in intel_hdmi_sink_bpc_possible() 1957 int bpc; in intel_hdmi_mode_clock_valid() local 1964 for (bpc = 12; bpc >= 8; bpc -= 2) { in intel_hdmi_mode_clock_valid() 2080 int bpc; in intel_hdmi_compute_bpc() local 2094 bpc = 8; in intel_hdmi_compute_bpc() 2096 for (; bpc >= 8; bpc -= 2) { in intel_hdmi_compute_bpc() 2103 return bpc; in intel_hdmi_compute_bpc() 2123 if (bpc < 0) in intel_hdmi_compute_clock() [all …]
|
A D | intel_hdmi.h | 48 int bpc, bool has_hdmi_sink, bool ycbcr420_output); 49 int intel_hdmi_tmds_clock(int clock, int bpc, bool ycbcr420_output);
|
/linux-6.3-rc2/drivers/gpu/drm/mediatek/ |
A D | mtk_disp_drv.h | 17 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 27 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 36 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 40 unsigned int bpc, unsigned int cfg, 53 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 63 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 67 unsigned int h, unsigned int vrefresh, unsigned int bpc, 79 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 105 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
|
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 …]
|
A D | mtk_drm_ddp_comp.h | 51 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 99 unsigned int vrefresh, unsigned int bpc, in mtk_ddp_comp_config() argument 103 comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dsc/ |
A D | rc_calc.c | 43 enum bits_per_comp bpc; in calc_rc_params() local 52 bpc = (pps->bits_per_component == 8) ? BPC_8 : (pps->bits_per_component == 10) in calc_rc_params() 58 _do_calc_rc_params(rc, mode, bpc, drm_bpp, is_navite_422_or_420, in calc_rc_params()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
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 …]
|
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()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
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() 206 bpc = 8; in radeon_get_monitor_bpc() [all …]
|
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()
|
/linux-6.3-rc2/drivers/video/console/ |
A D | sticon.c | 180 int size, i, bpc, pitch; in sticon_set_font() local 189 bpc = pitch * h; in sticon_set_font() 190 size = bpc * op->charcount; in sticon_set_font() 201 new_font->bytes_per_char = bpc; in sticon_set_font() 219 memcpy(p, data, bpc); in sticon_set_font() 221 p += bpc; in sticon_set_font()
|
/linux-6.3-rc2/drivers/gpu/drm/tegra/ |
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-6.3-rc2/drivers/gpu/drm/bridge/ |
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() 512 tc->bpc = 8; in tc_mode_valid() 516 tc->bpc = 6; in tc_mode_valid()
|
/linux-6.3-rc2/drivers/gpu/drm/vc4/ |
A D | vc4_hdmi.c | 148 unsigned int bpc, in vc4_hdmi_mode_needs_scrambling() argument 1701 if (vic == 1 && bpc != 8) { in vc4_hdmi_sink_supports_format_bpc() 1741 if (bpc != 12) { in vc4_hdmi_sink_supports_format_bpc() 1805 unsigned int bpc, in vc4_hdmi_encoder_compute_mode_clock() argument 1814 bpc = 8; in vc4_hdmi_encoder_compute_mode_clock() 1816 clock = clock * bpc; in vc4_hdmi_encoder_compute_mode_clock() 1843 unsigned int bpc) in vc4_hdmi_encoder_compute_format() argument 1857 mode, bpc, format); in vc4_hdmi_encoder_compute_format() 1891 unsigned int bpc; in vc4_hdmi_encoder_compute_config() local 1894 for (bpc = max_bpc; bpc >= 8; bpc -= 2) { in vc4_hdmi_encoder_compute_config() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/xlnx/ |
A D | zynqmp_dp.c | 1107 unsigned int bpc) in zynqmp_dp_set_format() argument 1141 if (info && info->bpc && bpc > info->bpc) { in zynqmp_dp_set_format() 1144 bpc, info->bpc); in zynqmp_dp_set_format() 1145 bpc = info->bpc; in zynqmp_dp_set_format() 1150 switch (bpc) { in zynqmp_dp_set_format() 1168 bpc); in zynqmp_dp_set_format() 1170 bpc = 8; in zynqmp_dp_set_format() 1175 config->bpp = bpc * num_colors; in zynqmp_dp_set_format()
|