Home
last modified time | relevance | path

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

123456

/linux/drivers/pwm/
H A Dpwm-berlin.c62 static inline u32 berlin_pwm_readl(struct berlin_pwm_chip *bpc, in berlin_pwm_readl() argument
65 return readl_relaxed(bpc->base + channel * 0x10 + offset); in berlin_pwm_readl()
68 static inline void berlin_pwm_writel(struct berlin_pwm_chip *bpc, in berlin_pwm_writel() argument
72 writel_relaxed(value, bpc->base + channel * 0x10 + offset); in berlin_pwm_writel()
78 struct berlin_pwm_chip *bpc = to_berlin_pwm_chip(chip); in berlin_pwm_config() local
83 cycles = clk_get_rate(bpc->clk); in berlin_pwm_config()
100 value = berlin_pwm_readl(bpc, pwm->hwpwm, BERLIN_PWM_CONTROL); in berlin_pwm_config()
105 berlin_pwm_writel(bpc, pwm->hwpwm, value, BERLIN_PWM_CONTROL); in berlin_pwm_config()
107 berlin_pwm_writel(bpc, pwm->hwpwm, duty, BERLIN_PWM_DUTY); in berlin_pwm_config()
108 berlin_pwm_writel(bpc, pwm->hwpwm, period, BERLIN_PWM_TCNT); in berlin_pwm_config()
[all …]
/linux/drivers/gpu/drm/display/
H A Ddrm_dsc_helper.c344 u8 bpc; member
358 .bpp = DSC_BPP(6), .bpc = 8,
368 .bpp = DSC_BPP(8), .bpc = 8,
378 .bpp = DSC_BPP(8), .bpc = 10,
392 .bpp = DSC_BPP(8), .bpc = 12,
403 .bpp = DSC_BPP(10), .bpc = 8,
413 .bpp = DSC_BPP(10), .bpc = 10,
423 .bpp = DSC_BPP(10), .bpc = 12,
434 .bpp = DSC_BPP(12), .bpc = 8,
444 .bpp = DSC_BPP(12), .bpc = 10,
[all …]
H A Ddrm_hdmi_helper.c212 unsigned int bpc, enum hdmi_colorspace fmt) in drm_hdmi_compute_mode_clock() argument
221 if (vic == 1 && bpc != 8) in drm_hdmi_compute_mode_clock()
232 if (bpc > 12) in drm_hdmi_compute_mode_clock()
242 bpc = 8; in drm_hdmi_compute_mode_clock()
256 return DIV_ROUND_CLOSEST_ULL(clock * bpc, 8); in drm_hdmi_compute_mode_clock()
/linux/drivers/gpu/drm/amd/display/dc/dml/dsc/
H A 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/drivers/gpu/drm/panel/
H A Dpanel-simple.c73 unsigned int bpc; member
261 connector->display_info.bpc = panel->desc->bpc; in panel_simple_get_non_edid_modes()
531 int ret, bpc; in panel_simple_override_nondefault_lvds_datamapping() local
552 bpc = 8; in panel_simple_override_nondefault_lvds_datamapping()
555 bpc = 6; in panel_simple_override_nondefault_lvds_datamapping()
558 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) { in panel_simple_override_nondefault_lvds_datamapping()
566 override_desc->bpc = bpc; in panel_simple_override_nondefault_lvds_datamapping()
648 desc->bpc != 6); in panel_simple_probe()
651 desc->bpc != 8); in panel_simple_probe()
658 if (desc->bpc != 6 && desc->bpc != 8) in panel_simple_probe()
[all …]
H A Dpanel-edp.c190 unsigned int bpc; member
370 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()
915 dev_warn(dev, "Expected bpc in {6,8,10} but got: %u\n", desc->bpc); in panel_edp_probe()
1008 .bpc = 6,
1044 .bpc = 6,
1071 .bpc = 6,
1098 .bpc = 6,
1133 .bpc = 8,
1176 .bpc = 8,
[all …]
H A Dpanel-boe-himax8279d.c31 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 Dpanel-seiko-43wvf1g.c30 unsigned int bpc; member
112 connector->display_info.bpc = panel->desc->bpc; in seiko_panel_get_fixed_modes()
264 .bpc = 8,
H A Dpanel-innolux-p079zca.c24 unsigned int bpc; member
156 .bpc = 8,
321 .bpc = 8,
356 connector->display_info.bpc = innolux->desc->bpc; in innolux_panel_get_modes()
H A Dpanel-olimex-lcd-olinuxino.c45 u32 bpc; member
151 connector->display_info.bpc = lcd_info->bpc; in lcd_olinuxino_get_modes()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_qp_tables.c449 if (bpc == (_bpc)) { \
451 return rc_range_##_minmax##qp420_##_bpc##bpc[_row][_col]; \
453 return rc_range_##_minmax##qp444_##_bpc##bpc[_row][_col]; \
457 u8 intel_lookup_range_min_qp(int bpc, int buf_i, int bpp_i, bool is_420) in intel_lookup_range_min_qp() argument
463 MISSING_CASE(bpc); in intel_lookup_range_min_qp()
467 u8 intel_lookup_range_max_qp(int bpc, int buf_i, int bpp_i, bool is_420) in intel_lookup_range_max_qp() argument
473 MISSING_CASE(bpc); in intel_lookup_range_max_qp()
H A Dintel_hdmi.c1929 int intel_hdmi_tmds_clock(int clock, int bpc, in intel_hdmi_tmds_clock() argument
1941 return DIV_ROUND_CLOSEST(clock * bpc, 8); in intel_hdmi_tmds_clock()
1944 static bool intel_hdmi_source_bpc_possible(struct intel_display *display, int bpc) in intel_hdmi_source_bpc_possible() argument
1946 switch (bpc) { in intel_hdmi_source_bpc_possible()
1954 MISSING_CASE(bpc); in intel_hdmi_source_bpc_possible()
1960 int bpc, bool has_hdmi_sink, in intel_hdmi_sink_bpc_possible() argument
1966 switch (bpc) { in intel_hdmi_sink_bpc_possible()
1986 MISSING_CASE(bpc); in intel_hdmi_sink_bpc_possible()
1999 int bpc; in intel_hdmi_mode_clock_valid() local
2006 for (bpc = 12; bpc >= 8; bpc -= 2) { in intel_hdmi_mode_clock_valid()
[all …]
H A Dintel_qp_tables.h11 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 Dintel_hdmi.h55 int bpc, bool has_hdmi_sink);
56 int intel_hdmi_tmds_clock(int clock, int bpc, enum intel_output_format sink_format);
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_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 …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_connectors.c105 int bpc = 8; in amdgpu_connector_get_monitor_bpc() local
113 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
114 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
121 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
122 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
130 if (connector->display_info.bpc) in amdgpu_connector_get_monitor_bpc()
131 bpc = connector->display_info.bpc; in amdgpu_connector_get_monitor_bpc()
136 if (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()
[all …]
H A Datombios_crtc.c317 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/drivers/gpu/drm/amd/display/dc/dsc/
H A Drc_calc.c44 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/radeon/
H A 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 …]
H A Devergreen_hdmi.c74 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()
/linux/drivers/video/console/
H A Dsticon.c164 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/tegra/
H A 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/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
H A Ddml2_core_utils.c194 …double bpc = (double)display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_inde… in dml2_core_utils_get_stream_output_bpp() local
198 out_bpp[k] = bpc * 3; in dml2_core_utils_get_stream_output_bpp()
201 out_bpp[k] = bpc * 2; in dml2_core_utils_get_stream_output_bpp()
204 out_bpp[k] = bpc * 2; in dml2_core_utils_get_stream_output_bpp()
208 out_bpp[k] = bpc * 1.5; in dml2_core_utils_get_stream_output_bpp()
217 dml2_printf("DML::%s: k=%d bpc=%f\n", __func__, k, bpc); in dml2_core_utils_get_stream_output_bpp()
/linux/drivers/gpu/drm/bridge/
H A Dtc358775.c280 u8 bpc; member
442 if (tc->bpc == 8) in tc_bridge_enable()
447 dsiclk = mode->crtc_clock * 3 * tc->bpc / tc->num_dsi_lanes / 1000; in tc_bridge_enable()
450 t1 = hactive * (tc->bpc * 3 / 8) / tc->num_dsi_lanes; in tc_bridge_enable()
452 t3 = ((t2 * byteclk) / 100) - (hactive * (tc->bpc * 3 / 8) / in tc_bridge_enable()
471 tc->bpc); in tc_bridge_enable()
524 tc->bpc = 8; in tc_mode_valid()
528 tc->bpc = 6; in tc_mode_valid()
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Ddisp.c380 asyh->or.bpc = min_t(u8, asyh->or.bpc, 10); in nv50_outp_atomic_fix_depth()
383 while (asyh->or.bpc > 6) { in nv50_outp_atomic_fix_depth()
384 mode_rate = DIV_ROUND_UP(mode->clock * asyh->or.bpc * 3, 8); in nv50_outp_atomic_fix_depth()
388 asyh->or.bpc -= 2; in nv50_outp_atomic_fix_depth()
412 asyh->or.bpc = connector->display_info.bpc; in nv50_outp_atomic_check()
984 asyh->or.bpc = connector->display_info.bpc; in nv50_msto_atomic_check()
985 asyh->dp.pbn = drm_dp_calc_pbn_mode(clock, asyh->or.bpc * 3 << 4); in nv50_msto_atomic_check()
1009 nv50_dp_bpc_to_depth(unsigned int bpc) in nv50_dp_bpc_to_depth() argument
1011 switch (bpc) { in nv50_dp_bpc_to_depth()
1061 nv50_dp_bpc_to_depth(asyh->or.bpc)); in nv50_msto_atomic_enable()
[all …]

123456