Home
last modified time | relevance | path

Searched refs:coeff (Results 1 - 25 of 105) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/
H A Dipu-ic-csc.c19 .coeff = {
36 .coeff = {
53 .coeff = {
70 .coeff = {
88 .coeff = {
119 .coeff = {
130 .coeff = {
142 .coeff = {
153 .coeff = {
177 .coeff
[all...]
/kernel/linux/linux-6.6/drivers/gpu/ipu-v3/
H A Dipu-ic-csc.c19 .coeff = {
36 .coeff = {
53 .coeff = {
70 .coeff = {
88 .coeff = {
119 .coeff = {
130 .coeff = {
142 .coeff = {
153 .coeff = {
177 .coeff
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
H A Dcsc.c27 u16 coeff[12]; member
144 u16 *coeff, *end_coeff; in csc_set_coeff() local
195 coeff = csc_coeffs.y2r.r601.full.coeff; in csc_set_coeff()
197 coeff = csc_coeffs.y2r.r601.limited.coeff; in csc_set_coeff()
200 coeff = csc_coeffs.y2r.r709.full.coeff; in csc_set_coeff()
202 coeff = csc_coeffs.y2r.r709.limited.coeff; in csc_set_coeff()
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/
H A Dcsc.c27 u16 coeff[12]; member
144 u16 *coeff, *end_coeff; in csc_set_coeff() local
195 coeff = csc_coeffs.y2r.r601.full.coeff; in csc_set_coeff()
197 coeff = csc_coeffs.y2r.r601.limited.coeff; in csc_set_coeff()
200 coeff = csc_coeffs.y2r.r709.full.coeff; in csc_set_coeff()
202 coeff = csc_coeffs.y2r.r709.limited.coeff; in csc_set_coeff()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.c29 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero()
35 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero()
61 s32 coeff = 1000; /* Precision, should avoid overflow */ in msm_dsi_dphy_timing_calc() local
67 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc()
68 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc()
70 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
71 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
81 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); in msm_dsi_dphy_timing_calc()
83 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc()
28 dsi_dphy_timing_calc_clk_zero(struct msm_dsi_dphy_timing *timing, s32 ui, s32 coeff, s32 pcnt) dsi_dphy_timing_calc_clk_zero() argument
158 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc_v2() local
274 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc_v3() local
385 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc_v4() local
476 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_cphy_timing_calc_v4() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.c27 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero()
33 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero()
59 s32 coeff = 1000; /* Precision, should avoid overflow */ in msm_dsi_dphy_timing_calc() local
65 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc()
66 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc()
68 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
69 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
79 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); in msm_dsi_dphy_timing_calc()
81 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc()
26 dsi_dphy_timing_calc_clk_zero(struct msm_dsi_dphy_timing *timing, s32 ui, s32 coeff, s32 pcnt) dsi_dphy_timing_calc_clk_zero() argument
156 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc_v2() local
272 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc_v3() local
381 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc_v4() local
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
H A Dlm25066.c449 struct __coeff *coeff; in lm25066_probe() local
490 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe()
491 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m; in lm25066_probe()
492 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b; in lm25066_probe()
493 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R; in lm25066_probe()
494 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe()
495 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe()
496 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe()
497 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m; in lm25066_probe()
498 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OU in lm25066_probe()
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/pmbus/
H A Dlm25066.c470 const struct __coeff *coeff; in lm25066_probe() local
520 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe()
521 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m; in lm25066_probe()
522 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b; in lm25066_probe()
523 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R; in lm25066_probe()
524 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe()
525 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe()
526 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe()
527 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m; in lm25066_probe()
528 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OU in lm25066_probe()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c460 struct gamma_coefficients *coeff, in translate_from_linear_space_ex()
467 scratch_gamma_args.a0 = coeff->a0[color_index]; in translate_from_linear_space_ex()
468 scratch_gamma_args.a1 = coeff->a1[color_index]; in translate_from_linear_space_ex()
469 scratch_gamma_args.a2 = coeff->a2[color_index]; in translate_from_linear_space_ex()
470 scratch_gamma_args.a3 = coeff->a3[color_index]; in translate_from_linear_space_ex()
471 scratch_gamma_args.gamma = coeff->user_gamma[color_index]; in translate_from_linear_space_ex()
480 struct gamma_coefficients *coeff, in translate_to_linear_space_ex()
485 coeff->a0[color_index], in translate_to_linear_space_ex()
486 coeff->a1[color_index], in translate_to_linear_space_ex()
487 coeff in translate_to_linear_space_ex()
458 translate_from_linear_space_ex( struct fixed31_32 arg, struct gamma_coefficients *coeff, uint32_t color_index, struct calculate_buffer *cal_buffer) translate_from_linear_space_ex() argument
478 translate_to_linear_space_ex( struct fixed31_32 arg, struct gamma_coefficients *coeff, uint32_t color_index) translate_to_linear_space_ex() argument
572 build_custom_gamma_mapping_coefficients_worker( const struct dc_gamma *ramp, struct pixel_gamma_point *coeff, const struct hw_x_point *coordinates_x, const struct gamma_pixel *axis_x, enum channel_name channel, uint32_t number_of_points) build_custom_gamma_mapping_coefficients_worker() argument
664 calculate_mapped_value( struct pwl_float_data *rgb, const struct pixel_gamma_point *coeff, enum channel_name channel, uint32_t max_index) calculate_mapped_value() argument
817 struct gamma_coefficients *coeff; build_regamma() local
1021 struct gamma_coefficients coeff; build_degamma() local
1457 const struct pixel_gamma_point *coeff = coeff128; calculate_interpolated_hardware_curve() local
1617 struct gamma_coefficients coeff; apply_degamma_for_user_regamma() local
1684 struct gamma_coefficients coeff; calculate_user_regamma_coeff() local
1800 struct pixel_gamma_point *coeff = NULL; mod_color_calculate_degamma_params() local
2039 struct pixel_gamma_point *coeff = NULL; mod_color_calculate_regamma_params() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c474 struct gamma_coefficients *coeff, in translate_from_linear_space_ex()
481 scratch_gamma_args.a0 = coeff->a0[color_index]; in translate_from_linear_space_ex()
482 scratch_gamma_args.a1 = coeff->a1[color_index]; in translate_from_linear_space_ex()
483 scratch_gamma_args.a2 = coeff->a2[color_index]; in translate_from_linear_space_ex()
484 scratch_gamma_args.a3 = coeff->a3[color_index]; in translate_from_linear_space_ex()
485 scratch_gamma_args.gamma = coeff->user_gamma[color_index]; in translate_from_linear_space_ex()
494 struct gamma_coefficients *coeff, in translate_to_linear_space_ex()
499 coeff->a0[color_index], in translate_to_linear_space_ex()
500 coeff->a1[color_index], in translate_to_linear_space_ex()
501 coeff in translate_to_linear_space_ex()
472 translate_from_linear_space_ex( struct fixed31_32 arg, struct gamma_coefficients *coeff, uint32_t color_index, struct calculate_buffer *cal_buffer) translate_from_linear_space_ex() argument
492 translate_to_linear_space_ex( struct fixed31_32 arg, struct gamma_coefficients *coeff, uint32_t color_index) translate_to_linear_space_ex() argument
586 build_custom_gamma_mapping_coefficients_worker( const struct dc_gamma *ramp, struct pixel_gamma_point *coeff, const struct hw_x_point *coordinates_x, const struct gamma_pixel *axis_x, enum channel_name channel, uint32_t number_of_points) build_custom_gamma_mapping_coefficients_worker() argument
678 calculate_mapped_value( struct pwl_float_data *rgb, const struct pixel_gamma_point *coeff, enum channel_name channel, uint32_t max_index) calculate_mapped_value() argument
830 struct gamma_coefficients *coeff; build_regamma() local
1083 struct gamma_coefficients coeff; build_degamma() local
1532 const struct pixel_gamma_point *coeff = coeff128; calculate_interpolated_hardware_curve() local
1690 struct gamma_coefficients coeff; apply_degamma_for_user_regamma() local
1761 struct gamma_coefficients coeff; calculate_user_regamma_coeff() local
1884 struct pixel_gamma_point *coeff = NULL; mod_color_calculate_degamma_params() local
2126 struct pixel_gamma_point *coeff = NULL; mod_color_calculate_regamma_params() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_color.c92 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0)
93 #define CTM_COEFF_ABS(coeff) ((coeff) & (CTM_COEFF_SIGN - 1))
121 #define ILK_CSC_COEFF_FP(coeff, fbits) \
122 (clamp_val(((coeff) >> (32 - (fbits) - 3)) + 4, 0, 0xfff) & 0xff8)
130 .coeff = {
141 .coeff = {
156 .coeff = {
213 csc->coeff[ in ilk_update_pipe_csc()
571 ctm_to_twos_complement(u64 coeff, int int_bits, int frac_bits) ctm_to_twos_complement() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vicodec/
H A Dcodec-fwht.c139 int coeff; in derlc() local
145 coeff = in >> 4; in derlc()
156 *wp++ = coeff; in derlc()
195 static void quantize_intra(s16 *coeff, s16 *de_coeff, u16 qp) in quantize_intra() argument
201 for (i = 0; i < 8; i++, quant++, coeff++, de_coeff++) { in quantize_intra()
202 *coeff >>= *quant; in quantize_intra()
203 if (*coeff >= -qp && *coeff <= qp) in quantize_intra()
204 *coeff = *de_coeff = 0; in quantize_intra()
206 *de_coeff = *coeff << *quan in quantize_intra()
211 dequantize_intra(s16 *coeff) dequantize_intra() argument
221 quantize_inter(s16 *coeff, s16 *de_coeff, u16 qp) quantize_inter() argument
237 dequantize_inter(s16 *coeff) dequantize_inter() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/test-drivers/vicodec/
H A Dcodec-fwht.c140 int coeff; in derlc() local
146 coeff = in >> 4; in derlc()
157 *wp++ = coeff; in derlc()
196 static void quantize_intra(s16 *coeff, s16 *de_coeff, u16 qp) in quantize_intra() argument
202 for (i = 0; i < 8; i++, quant++, coeff++, de_coeff++) { in quantize_intra()
203 *coeff >>= *quant; in quantize_intra()
204 if (*coeff >= -qp && *coeff <= qp) in quantize_intra()
205 *coeff = *de_coeff = 0; in quantize_intra()
207 *de_coeff = *coeff << *quan in quantize_intra()
212 dequantize_intra(s16 *coeff) dequantize_intra() argument
222 quantize_inter(s16 *coeff, s16 *de_coeff, u16 qp) quantize_inter() argument
238 dequantize_inter(s16 *coeff) dequantize_inter() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
H A Dar9003_calib.c28 struct coeff { struct
803 ath_dbg(common, CALIBRATE, "tx chain %d: iq corr coeff=%x\n", in ar9003_hw_calc_iq_corr()
834 ath_dbg(common, CALIBRATE, "rx chain %d: iq corr coeff=%x\n", in ar9003_hw_calc_iq_corr()
889 struct coeff *coeff, in ar9003_hw_tx_iq_cal_outlier_detection()
930 ar9003_hw_detect_outlier(coeff->mag_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
935 ar9003_hw_detect_outlier(coeff->phs_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
942 magnitude = coeff->mag_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
943 phase = coeff->phs_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
945 coeff in ar9003_hw_tx_iq_cal_outlier_detection()
888 ar9003_hw_tx_iq_cal_outlier_detection(struct ath_hw *ah, struct coeff *coeff, bool is_reusable) ar9003_hw_tx_iq_cal_outlier_detection() argument
1003 __ar955x_tx_iq_cal_sort(struct ath_hw *ah, struct coeff *coeff, int i, int nmeasurement) __ar955x_tx_iq_cal_sort() argument
1040 ar955x_tx_iq_cal_median(struct ath_hw *ah, struct coeff *coeff, int iqcal_idx, int nmeasurement) ar955x_tx_iq_cal_median() argument
1072 static struct coeff coeff; ar9003_hw_tx_iq_cal_post_proc() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/
H A Dar9003_calib.c28 struct coeff { struct
803 ath_dbg(common, CALIBRATE, "tx chain %d: iq corr coeff=%x\n", in ar9003_hw_calc_iq_corr()
834 ath_dbg(common, CALIBRATE, "rx chain %d: iq corr coeff=%x\n", in ar9003_hw_calc_iq_corr()
889 struct coeff *coeff, in ar9003_hw_tx_iq_cal_outlier_detection()
930 ar9003_hw_detect_outlier(coeff->mag_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
935 ar9003_hw_detect_outlier(coeff->phs_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
942 magnitude = coeff->mag_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
943 phase = coeff->phs_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
945 coeff in ar9003_hw_tx_iq_cal_outlier_detection()
888 ar9003_hw_tx_iq_cal_outlier_detection(struct ath_hw *ah, struct coeff *coeff, bool is_reusable) ar9003_hw_tx_iq_cal_outlier_detection() argument
1003 __ar955x_tx_iq_cal_sort(struct ath_hw *ah, struct coeff *coeff, int i, int nmeasurement) __ar955x_tx_iq_cal_sort() argument
1036 ar955x_tx_iq_cal_median(struct ath_hw *ah, struct coeff *coeff, int iqcal_idx, int nmeasurement) ar955x_tx_iq_cal_median() argument
1068 static struct coeff coeff; ar9003_hw_tx_iq_cal_post_proc() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_color.c40 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0)
41 #define CTM_COEFF_ABS(coeff) ((coeff) & (CTM_COEFF_SIGN - 1))
69 #define ILK_CSC_COEFF_FP(coeff, fbits) \
70 (clamp_val(((coeff) >> (32 - (fbits) - 3)) + 4, 0, 0xfff) & 0xff8)
154 const u16 coeff[9], in ilk_update_pipe_csc()
165 coeff[0] << 16 | coeff[1]); in ilk_update_pipe_csc()
166 intel_de_write(dev_priv, PIPE_CSC_COEFF_BY(pipe), coeff[ in ilk_update_pipe_csc()
152 ilk_update_pipe_csc(struct intel_crtc *crtc, const u16 preoff[3], const u16 coeff[9], const u16 postoff[3]) ilk_update_pipe_csc() argument
186 icl_update_output_csc(struct intel_crtc *crtc, const u16 preoff[3], const u16 coeff[9], const u16 postoff[3]) icl_update_output_csc() argument
290 u16 coeff[9]; ilk_load_csc_matrix() local
330 u16 coeff[9]; icl_load_csc_matrix() local
[all...]
/kernel/linux/linux-5.10/drivers/iio/proximity/
H A Disl29501.c266 u32 value, gain, coeff, exp; in isl29501_read_ext() local
285 ret = isl29501_register_read(isl29501, reg, &coeff); in isl29501_read_ext()
289 value = coeff << exp; in isl29501_read_ext()
302 enum isl29501_correction_coeff coeff; in isl29501_set_shadow_coeff() local
306 coeff = COEFF_TEMP_A; in isl29501_set_shadow_coeff()
309 coeff = COEFF_TEMP_B; in isl29501_set_shadow_coeff()
312 coeff = COEFF_LIGHT_A; in isl29501_set_shadow_coeff()
315 coeff = COEFF_LIGHT_B; in isl29501_set_shadow_coeff()
320 isl29501->shadow_coeffs[coeff] = val; in isl29501_set_shadow_coeff()
326 enum isl29501_correction_coeff coeff, in isl29501_write_coeff()
325 isl29501_write_coeff(struct isl29501_private *isl29501, enum isl29501_correction_coeff coeff, int val) isl29501_write_coeff() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/proximity/
H A Disl29501.c266 u32 value, gain, coeff, exp; in isl29501_read_ext() local
285 ret = isl29501_register_read(isl29501, reg, &coeff); in isl29501_read_ext()
289 value = coeff << exp; in isl29501_read_ext()
302 enum isl29501_correction_coeff coeff; in isl29501_set_shadow_coeff() local
306 coeff = COEFF_TEMP_A; in isl29501_set_shadow_coeff()
309 coeff = COEFF_TEMP_B; in isl29501_set_shadow_coeff()
312 coeff = COEFF_LIGHT_A; in isl29501_set_shadow_coeff()
315 coeff = COEFF_LIGHT_B; in isl29501_set_shadow_coeff()
320 isl29501->shadow_coeffs[coeff] = val; in isl29501_set_shadow_coeff()
326 enum isl29501_correction_coeff coeff, in isl29501_write_coeff()
325 isl29501_write_coeff(struct isl29501_private *isl29501, enum isl29501_correction_coeff coeff, int val) isl29501_write_coeff() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dmsm8916-wcd-digital.c433 u32 coeff[BAND_MAX]; in msm8x16_wcd_get_iir_band_audio_mixer() local
435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer()
436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer()
437 coeff[2] = get_iir_band_coeff(component, iir_idx, band_idx, 2); in msm8x16_wcd_get_iir_band_audio_mixer()
438 coeff[3] = get_iir_band_coeff(component, iir_idx, band_idx, 3); in msm8x16_wcd_get_iir_band_audio_mixer()
439 coeff[4] = get_iir_band_coeff(component, iir_idx, band_idx, 4); in msm8x16_wcd_get_iir_band_audio_mixer()
441 memcpy(ucontrol->value.bytes.data, &coeff[0], params->max); in msm8x16_wcd_get_iir_band_audio_mixer()
479 u32 coeff[BAND_MAX]; in msm8x16_wcd_put_iir_band_audio_mixer() local
481 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in msm8x16_wcd_put_iir_band_audio_mixer()
489 set_iir_band_coeff(component, iir_idx, band_idx, coeff[ in msm8x16_wcd_put_iir_band_audio_mixer()
[all...]
H A Dwm8988.c672 int coeff; in wm8988_pcm_hw_params() local
674 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params()
675 if (coeff < 0) { in wm8988_pcm_hw_params()
676 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params()
679 if (coeff < 0) { in wm8988_pcm_hw_params()
683 return coeff; in wm8988_pcm_hw_params()
703 if (coeff >= 0) in wm8988_pcm_hw_params()
705 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8988_pcm_hw_params()
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dmsm8916-wcd-digital.c433 u32 coeff[BAND_MAX]; in msm8x16_wcd_get_iir_band_audio_mixer() local
435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer()
436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer()
437 coeff[2] = get_iir_band_coeff(component, iir_idx, band_idx, 2); in msm8x16_wcd_get_iir_band_audio_mixer()
438 coeff[3] = get_iir_band_coeff(component, iir_idx, band_idx, 3); in msm8x16_wcd_get_iir_band_audio_mixer()
439 coeff[4] = get_iir_band_coeff(component, iir_idx, band_idx, 4); in msm8x16_wcd_get_iir_band_audio_mixer()
441 memcpy(ucontrol->value.bytes.data, &coeff[0], params->max); in msm8x16_wcd_get_iir_band_audio_mixer()
479 u32 coeff[BAND_MAX]; in msm8x16_wcd_put_iir_band_audio_mixer() local
481 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in msm8x16_wcd_put_iir_band_audio_mixer()
489 set_iir_band_coeff(component, iir_idx, band_idx, coeff[ in msm8x16_wcd_put_iir_band_audio_mixer()
[all...]
H A Dwm8988.c672 int coeff; in wm8988_pcm_hw_params() local
674 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params()
675 if (coeff < 0) { in wm8988_pcm_hw_params()
676 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params()
679 if (coeff < 0) { in wm8988_pcm_hw_params()
683 return coeff; in wm8988_pcm_hw_params()
703 if (coeff >= 0) in wm8988_pcm_hw_params()
705 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8988_pcm_hw_params()
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
H A Dglobal1_atu.c45 const unsigned int coeff = chip->info->age_time_coeff; in mv88e6xxx_g1_atu_set_age_time() local
46 const unsigned int min = 0x01 * coeff; in mv88e6xxx_g1_atu_set_age_time()
47 const unsigned int max = 0xff * coeff; in mv88e6xxx_g1_atu_set_age_time()
55 /* Round to nearest multiple of coeff */ in mv88e6xxx_g1_atu_set_age_time()
56 age_time = (msecs + coeff / 2) / coeff; in mv88e6xxx_g1_atu_set_age_time()
71 age_time * coeff); in mv88e6xxx_g1_atu_set_age_time()
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
H A Dhantro_vp9.c107 for (m = 0; m < ARRAY_SIZE(vp9_ctx->cnts.coeff[i][0][0][0]); ++m) { \
108 vp9_ctx->cnts.coeff[i][j][k][l][m] = \
151 for (i = 0; i < ARRAY_SIZE(vp9_ctx->cnts.coeff); ++i) in init_v4l2_vp9_count_tbl()
152 for (j = 0; j < ARRAY_SIZE(vp9_ctx->cnts.coeff[i]); ++j) in init_v4l2_vp9_count_tbl()
153 for (k = 0; k < ARRAY_SIZE(vp9_ctx->cnts.coeff[i][0]); ++k) in init_v4l2_vp9_count_tbl()
154 for (l = 0; l < ARRAY_SIZE(vp9_ctx->cnts.coeff[i][0][0]); ++l) in init_v4l2_vp9_count_tbl()
/kernel/linux/linux-6.6/drivers/iio/light/
H A Drohm-bu27034.c821 static u64 bu27034_fixp_calc_t1_64bit(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1_64bit() argument
828 helper64 = (u64)coeff * (u64)ch1 * (u64)ch1; in bu27034_fixp_calc_t1_64bit()
843 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1() argument
854 helper = coeff * ch1 * ch1; in bu27034_fixp_calc_t1()
859 if (check_mul_overflow(helper, coeff, &helper)) in bu27034_fixp_calc_t1()
860 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
863 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
869 static u64 bu27034_fixp_calc_t23(unsigned int coeff, unsigned int ch, in bu27034_fixp_calc_t23() argument
875 if (!check_mul_overflow(coeff, ch, &helper)) in bu27034_fixp_calc_t23()
878 helper64 = (u64)coeff * (u6 in bu27034_fixp_calc_t23()
888 static const struct bu27034_lx_coeff coeff[] = { bu27034_fixp_calc_lx() local
[all...]

Completed in 26 milliseconds

12345