Home
last modified time | relevance | path

Searched refs:coeffs (Results 1 – 22 of 22) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/arm/display/komeda/
Dkomeda_color_mgmt.c49 const s32 *coeffs; in komeda_select_yuv2rgb_coeffs() local
53 coeffs = narrow ? yuv2rgb_bt709_narrow : yuv2rgb_bt709_wide; in komeda_select_yuv2rgb_coeffs()
56 coeffs = narrow ? yuv2rgb_bt601_narrow : yuv2rgb_bt601_wide; in komeda_select_yuv2rgb_coeffs()
59 coeffs = yuv2rgb_bt2020; in komeda_select_yuv2rgb_coeffs()
62 coeffs = NULL; in komeda_select_yuv2rgb_coeffs()
66 return coeffs; in komeda_select_yuv2rgb_coeffs()
92 drm_lut_to_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs, in drm_lut_to_coeffs() argument
108 coeffs[num++] = drm_color_lut_extract(lut[in].red, in drm_lut_to_coeffs()
113 coeffs[num] = BIT(KOMEDA_COLOR_PRECISION); in drm_lut_to_coeffs()
116 void drm_lut_to_fgamma_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs) in drm_lut_to_fgamma_coeffs() argument
[all …]
Dkomeda_color_mgmt.h20 void drm_lut_to_fgamma_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs);
21 void drm_ctm_to_coeffs(struct drm_property_blob *ctm_blob, u32 *coeffs);
/linux-6.1.9/drivers/misc/echo/
Dfir.h44 const int16_t *coeffs; member
56 const int32_t *coeffs; member
67 const float *coeffs; member
72 const int16_t *coeffs, int taps) in fir16_create() argument
76 fir->coeffs = coeffs; in fir16_create()
104 y += fir->coeffs[i] * fir->history[i - offset1]; in fir16()
106 y += fir->coeffs[i] * fir->history[i + offset2]; in fir16()
114 const int32_t *coeffs, int taps) in fir32_create() argument
118 fir->coeffs = coeffs; in fir32_create()
145 y += fir->coeffs[i] * fir->history[i - offset1]; in fir32()
[all …]
Decho.c351 ec->fir_state.coeffs = ec->fir_taps16[0]; in oslec_update()
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_disp_ccorr.c115 uint16_t coeffs[9] = { 0 }; in mtk_ccorr_ctm_set() local
126 for (i = 0; i < ARRAY_SIZE(coeffs); i++) in mtk_ccorr_ctm_set()
127 coeffs[i] = mtk_ctm_s31_32_to_s1_n(input[i], matrix_bits); in mtk_ccorr_ctm_set()
129 mtk_ddp_write(cmdq_pkt, coeffs[0] << 16 | coeffs[1], in mtk_ccorr_ctm_set()
131 mtk_ddp_write(cmdq_pkt, coeffs[2] << 16 | coeffs[3], in mtk_ccorr_ctm_set()
133 mtk_ddp_write(cmdq_pkt, coeffs[4] << 16 | coeffs[5], in mtk_ccorr_ctm_set()
135 mtk_ddp_write(cmdq_pkt, coeffs[6] << 16 | coeffs[7], in mtk_ccorr_ctm_set()
137 mtk_ddp_write(cmdq_pkt, coeffs[8] << 16, in mtk_ccorr_ctm_set()
/linux-6.1.9/drivers/iio/light/
Dsi1133.c248 const struct si1133_coeff *coeffs) in si1133_calculate_output() argument
256 shift = ((u16)coeffs->info & 0xFF00) >> 8; in si1133_calculate_output()
263 coeffs->mag, shift); in si1133_calculate_output()
270 coeffs->mag, shift); in si1133_calculate_output()
283 const struct si1133_coeff *coeffs) in si1133_calc_polynomial() argument
291 if (coeffs->info < 0) in si1133_calc_polynomial()
296 x_order = si1133_get_x_order(coeffs->info); in si1133_calc_polynomial()
297 y_order = si1133_get_y_order(coeffs->info); in si1133_calc_polynomial()
301 sign * coeffs->mag << SI1133_LUX_OUTPUT_FRACTION; in si1133_calc_polynomial()
306 coeffs); in si1133_calc_polynomial()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_color.c264 u16 coeffs[9]) in ilk_csc_convert_ctm()
289 coeffs[i] = 0; in ilk_csc_convert_ctm()
293 coeffs[i] |= 1 << 15; in ilk_csc_convert_ctm()
296 coeffs[i] |= (3 << 12) | in ilk_csc_convert_ctm()
299 coeffs[i] |= (2 << 12) | in ilk_csc_convert_ctm()
302 coeffs[i] |= (1 << 12) | in ilk_csc_convert_ctm()
305 coeffs[i] |= ILK_CSC_COEFF_FP(abs_coeff, 9); in ilk_csc_convert_ctm()
307 coeffs[i] |= (7 << 12) | in ilk_csc_convert_ctm()
310 coeffs[i] |= (6 << 12) | in ilk_csc_convert_ctm()
381 u16 coeffs[9]; in chv_load_cgm_csc() local
[all …]
/linux-6.1.9/drivers/gpu/drm/xlnx/
Dzynqmp_disp.c712 const u16 *coeffs; in zynqmp_disp_blend_set_output_format() local
718 coeffs = csc_identity_matrix; in zynqmp_disp_blend_set_output_format()
721 coeffs = csc_rgb_to_sdtv_matrix; in zynqmp_disp_blend_set_output_format()
728 coeffs[i]); in zynqmp_disp_blend_set_output_format()
782 const u16 *coeffs, in zynqmp_disp_blend_layer_set_csc() argument
807 zynqmp_disp_blend_write(disp, reg + 0, coeffs[i + swap[0]]); in zynqmp_disp_blend_layer_set_csc()
808 zynqmp_disp_blend_write(disp, reg + 4, coeffs[i + swap[1]]); in zynqmp_disp_blend_layer_set_csc()
809 zynqmp_disp_blend_write(disp, reg + 8, coeffs[i + swap[2]]); in zynqmp_disp_blend_layer_set_csc()
829 const u16 *coeffs; in zynqmp_disp_blend_layer_enable() local
843 coeffs = csc_sdtv_to_rgb_matrix; in zynqmp_disp_blend_layer_enable()
[all …]
/linux-6.1.9/drivers/media/test-drivers/vicodec/
Dcodec-fwht.c711 fwht(input, cf->coeffs, stride, input_step, 1); in encode_plane()
712 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane()
717 fwht16(deltablock, cf->coeffs, 8, 0); in encode_plane()
718 quantize_inter(cf->coeffs, cf->de_coeffs, in encode_plane()
732 size = rlc(cf->coeffs, *rlco, blocktype); in encode_plane()
886 stat = derlc(rlco, cf->coeffs, end_of_rlco_buf); in decode_plane()
890 dequantize_inter(cf->coeffs); in decode_plane()
892 dequantize_intra(cf->coeffs); in decode_plane()
894 ifwht(cf->coeffs, cf->de_fwht, in decode_plane()
Dcodec-fwht.h83 s16 coeffs[8 * 8]; member
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Datomisp_csi2.c283 atomisp_csi2_configure_calc(const short int coeffs[2], int mipi_freq, int def) in atomisp_csi2_configure_calc()
292 r = accinv * coeffs[1] * (500000000 >> LIMIT_SHIFT); in atomisp_csi2_configure_calc()
294 r += accinv * coeffs[0]; in atomisp_csi2_configure_calc()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_transform_v.c285 const uint16_t *coeffs, in program_multi_taps_filter() argument
297 if (!coeffs) in program_multi_taps_filter()
336 data, coeffs[array_idx], in program_multi_taps_filter()
352 data, coeffs[array_idx + 1], in program_multi_taps_filter()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_hdmi.c1143 const u16 coeffs[3][4]) in vc5_hdmi_set_csc_coeffs()
1147 HDMI_WRITE(HDMI_CSC_12_11, (coeffs[0][1] << 16) | coeffs[0][0]); in vc5_hdmi_set_csc_coeffs()
1148 HDMI_WRITE(HDMI_CSC_14_13, (coeffs[0][3] << 16) | coeffs[0][2]); in vc5_hdmi_set_csc_coeffs()
1149 HDMI_WRITE(HDMI_CSC_22_21, (coeffs[1][1] << 16) | coeffs[1][0]); in vc5_hdmi_set_csc_coeffs()
1150 HDMI_WRITE(HDMI_CSC_24_23, (coeffs[1][3] << 16) | coeffs[1][2]); in vc5_hdmi_set_csc_coeffs()
1151 HDMI_WRITE(HDMI_CSC_32_31, (coeffs[2][1] << 16) | coeffs[2][0]); in vc5_hdmi_set_csc_coeffs()
1152 HDMI_WRITE(HDMI_CSC_34_33, (coeffs[2][3] << 16) | coeffs[2][2]); in vc5_hdmi_set_csc_coeffs()
/linux-6.1.9/drivers/gpu/drm/arm/
Dmalidp_crtc.c128 u32 coeffs[MALIDP_COEFFTAB_NUM_COEFFS]) in malidp_generate_gamma_table()
143 coeffs[i] = DE_COEFTAB_DATA(a, b); in malidp_generate_gamma_table()
/linux-6.1.9/drivers/media/platform/rockchip/rkisp1/
Drkisp1-params.c1109 const struct csm_coeffs *coeffs; in rkisp1_csm_config() local
1116 coeffs = &rec601_coeffs; in rkisp1_csm_config()
1119 coeffs = &rec709_coeffs; in rkisp1_csm_config()
1122 coeffs = &rec2020_coeffs; in rkisp1_csm_config()
1125 coeffs = &smpte240m_coeffs; in rkisp1_csm_config()
1130 csm = coeffs->full; in rkisp1_csm_config()
1135 csm = coeffs->limited; in rkisp1_csm_config()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c210 const uint16_t *coeffs, in program_multi_taps_filter() argument
220 if (!coeffs) in program_multi_taps_filter()
235 uint16_t even_coeff = coeffs[array_idx]; in program_multi_taps_filter()
245 odd_coeff = coeffs[array_idx + 1]; in program_multi_taps_filter()
/linux-6.1.9/drivers/media/i2c/
Dmax2175.c428 u8 bank, const u16 *coeffs) in max2175_set_filter_coeffs() argument
441 max2175_write(ctx, 115, coeffs[i] >> 8); in max2175_set_filter_coeffs()
442 max2175_write(ctx, 116, coeffs[i]); in max2175_set_filter_coeffs()
/linux-6.1.9/sound/pci/asihpi/
Dhpifunc.c2239 u16 hpi_parametric_eq_get_coeffs(u32 h_control, u16 index, short coeffs[5] in hpi_parametric_eq_get_coeffs()
2254 coeffs[0] = (short)hr.u.c.an_log_value[0]; in hpi_parametric_eq_get_coeffs()
2255 coeffs[1] = (short)hr.u.c.an_log_value[1]; in hpi_parametric_eq_get_coeffs()
2256 coeffs[2] = (short)hr.u.c.param1; in hpi_parametric_eq_get_coeffs()
2257 coeffs[3] = (short)(hr.u.c.param1 >> 16); in hpi_parametric_eq_get_coeffs()
2258 coeffs[4] = (short)hr.u.c.param2; in hpi_parametric_eq_get_coeffs()
Dhpi.h1618 u16 hpi_parametric_eq_get_coeffs(u32 h_control, u16 index, short coeffs[5]
/linux-6.1.9/drivers/gpu/drm/tegra/
Dhub.c302 static const unsigned int coeffs[192] = { in tegra_shared_plane_setup_scaler() local
360 value = COEFF_INDEX(index) | COEFF_DATA(coeffs[index]); in tegra_shared_plane_setup_scaler()
/linux-6.1.9/Documentation/input/devices/
Diforce-protocol.rst190 The encoding is a bit funny here: For coeffs, these are signed values. The
/linux-6.1.9/drivers/staging/media/ipu3/
Dipu3-css-params.c46 const int *coeffs, unsigned int coeffs_size, in imgu_css_scaler_setup_lut() argument
76 s64 coeff = coeffs[coeffs_size - in imgu_css_scaler_setup_lut()