Home
last modified time | relevance | path

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

123456

/linux-6.1.9/drivers/pwm/
Dpwm-berlin.c59 static inline u32 berlin_pwm_readl(struct berlin_pwm_chip *bpc, in berlin_pwm_readl() argument
62 return readl_relaxed(bpc->base + channel * 0x10 + offset); in berlin_pwm_readl()
65 static inline void berlin_pwm_writel(struct berlin_pwm_chip *bpc, in berlin_pwm_writel() argument
69 writel_relaxed(value, bpc->base + channel * 0x10 + offset); in berlin_pwm_writel()
93 struct berlin_pwm_chip *bpc = to_berlin_pwm_chip(chip); in berlin_pwm_config() local
98 cycles = clk_get_rate(bpc->clk); in berlin_pwm_config()
115 value = berlin_pwm_readl(bpc, pwm->hwpwm, BERLIN_PWM_CONTROL); in berlin_pwm_config()
120 berlin_pwm_writel(bpc, pwm->hwpwm, value, BERLIN_PWM_CONTROL); in berlin_pwm_config()
122 berlin_pwm_writel(bpc, pwm->hwpwm, duty, BERLIN_PWM_DUTY); in berlin_pwm_config()
123 berlin_pwm_writel(bpc, pwm->hwpwm, period, BERLIN_PWM_TCNT); in berlin_pwm_config()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/dsc/
Drc_calc_fpu.c31 #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 …]
/linux-6.1.9/drivers/gpu/drm/panel/
Dpanel-simple.c72 unsigned int bpc; member
264 connector->display_info.bpc = panel->desc->bpc; in panel_simple_get_non_edid_modes()
625 desc->bpc != 6); in panel_simple_probe()
628 desc->bpc != 8); in panel_simple_probe()
635 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe()
636 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); in panel_simple_probe()
653 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe()
654 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); in panel_simple_probe()
734 .bpc = 8,
760 .bpc = 8,
[all …]
Dpanel-edp.c175 unsigned int bpc; member
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()
880 dev_warn(dev, "Expected bpc in {6,8,10} but got: %u\n", desc->bpc); in panel_edp_probe()
948 .bpc = 6,
971 .bpc = 6,
997 .bpc = 6,
1022 .bpc = 8,
1049 .bpc = 6,
1076 .bpc = 6,
[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-seiko-43wvf1g.c29 unsigned int bpc; member
112 connector->display_info.bpc = panel->desc->bpc; in seiko_panel_get_fixed_modes()
302 .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-boe-tv101wum-nl6.c23 unsigned int bpc; member
1315 .bpc = 8,
1344 .bpc = 8,
1372 .bpc = 8,
1399 .bpc = 8,
1427 .bpc = 8,
1454 .bpc = 8,
1481 .bpc = 8,
1513 connector->display_info.bpc = boe->desc->bpc; in boe_panel_get_modes()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_qp_tables.c287 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()
Dintel_qp_tables.h11 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);
Dintel_hdmi.c1884 int intel_hdmi_tmds_clock(int clock, int bpc, bool ycbcr420_output) in intel_hdmi_tmds_clock() argument
1895 return DIV_ROUND_CLOSEST(clock * bpc, 8); in intel_hdmi_tmds_clock()
1898 static bool intel_hdmi_source_bpc_possible(struct drm_i915_private *i915, int bpc) in intel_hdmi_source_bpc_possible() argument
1900 switch (bpc) { in intel_hdmi_source_bpc_possible()
1908 MISSING_CASE(bpc); in intel_hdmi_source_bpc_possible()
1914 int bpc, bool has_hdmi_sink, bool ycbcr420_output) in intel_hdmi_sink_bpc_possible() argument
1919 switch (bpc) { in intel_hdmi_sink_bpc_possible()
1939 MISSING_CASE(bpc); in intel_hdmi_sink_bpc_possible()
1951 int bpc; in intel_hdmi_mode_clock_valid() local
1958 for (bpc = 12; bpc >= 8; bpc -= 2) { in intel_hdmi_mode_clock_valid()
[all …]
Dintel_hdmi.h48 int bpc, bool has_hdmi_sink, bool ycbcr420_output);
49 int intel_hdmi_tmds_clock(int clock, int bpc, bool ycbcr420_output);
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_disp_drv.h17 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);
Dmtk_drm_ddp_comp.c129 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 …]
Dmtk_drm_ddp_comp.h51 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.1.9/drivers/gpu/drm/amd/display/dc/dsc/
Drc_calc.c43 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.1.9/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()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_connectors.c105 int bpc = 8; in radeon_get_monitor_bpc() local
113 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
114 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
121 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
122 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
130 if (connector->display_info.bpc) in radeon_get_monitor_bpc()
131 bpc = connector->display_info.bpc; in radeon_get_monitor_bpc()
136 if (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()
[all …]
Devergreen_hdmi.c73 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.1.9/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()
/linux-6.1.9/drivers/gpu/drm/tegra/
Dplane.c489 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.1.9/drivers/gpu/drm/bridge/
Dtc358775.c274 u8 bpc; member
428 if (tc->bpc == 8) in tc_bridge_enable()
433 dsiclk = mode->crtc_clock * 3 * tc->bpc / tc->num_dsi_lanes / 1000; in tc_bridge_enable()
436 t1 = hactive * (tc->bpc * 3 / 8) / tc->num_dsi_lanes; in tc_bridge_enable()
438 t3 = ((t2 * byteclk) / 100) - (hactive * (tc->bpc * 3 / 8) / in tc_bridge_enable()
457 tc->bpc); in tc_bridge_enable()
513 tc->bpc = 8; in tc_mode_valid()
517 tc->bpc = 6; in tc_mode_valid()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_hdmi.c125 unsigned int bpc, enum vc4_hdmi_output_format fmt);
145 unsigned int bpc, in vc4_hdmi_mode_needs_scrambling() argument
148 unsigned long long clock = vc4_hdmi_encoder_compute_mode_clock(mode, bpc, fmt); in vc4_hdmi_mode_needs_scrambling()
1685 unsigned int format, unsigned int bpc) in vc4_hdmi_sink_supports_format_bpc() argument
1690 if (vic == 1 && bpc != 8) { in vc4_hdmi_sink_supports_format_bpc()
1691 drm_dbg(dev, "VIC1 requires a bpc of 8, got %u\n", bpc); in vc4_hdmi_sink_supports_format_bpc()
1696 (format != VC4_HDMI_OUTPUT_RGB || bpc != 8)) { in vc4_hdmi_sink_supports_format_bpc()
1708 if (bpc == 10 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30)) { in vc4_hdmi_sink_supports_format_bpc()
1713 if (bpc == 12 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_36)) { in vc4_hdmi_sink_supports_format_bpc()
1730 if (bpc != 12) { in vc4_hdmi_sink_supports_format_bpc()
[all …]
/linux-6.1.9/drivers/gpu/drm/xlnx/
Dzynqmp_dp.c1113 unsigned int bpc) in zynqmp_dp_set_format() argument
1149 if (display->bpc && bpc > display->bpc) { in zynqmp_dp_set_format()
1152 bpc, display->bpc); in zynqmp_dp_set_format()
1153 bpc = display->bpc; in zynqmp_dp_set_format()
1158 switch (bpc) { in zynqmp_dp_set_format()
1176 bpc); in zynqmp_dp_set_format()
1178 bpc = 8; in zynqmp_dp_set_format()
1183 config->bpp = bpc * num_colors; in zynqmp_dp_set_format()

123456