| /linux/drivers/media/platform/ti/vpe/ |
| A D | csc.c | 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() 205 coeff = csc_coeffs.y2r.r601.full.coeff; in csc_set_coeff() 223 coeff = csc_coeffs.r2y.r601.full.coeff; in csc_set_coeff() 225 coeff = csc_coeffs.r2y.r601.limited.coeff; in csc_set_coeff() 228 coeff = csc_coeffs.r2y.r709.full.coeff; in csc_set_coeff() 230 coeff = csc_coeffs.r2y.r709.limited.coeff; in csc_set_coeff() 233 coeff = csc_coeffs.r2y.r601.full.coeff; in csc_set_coeff() [all …]
|
| /linux/drivers/gpu/ipu-v3/ |
| A D | ipu-ic-csc.c | 19 .coeff = { 36 .coeff = { 53 .coeff = { 70 .coeff = { 88 .coeff = { 119 .coeff = { 130 .coeff = { 142 .coeff = { 153 .coeff = { 177 .coeff = { [all …]
|
| /linux/drivers/gpu/drm/msm/dsi/phy/ |
| A D | dsi_phy.c | 83 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc() 88 temp = 85 * coeff + 6 * ui; in msm_dsi_dphy_timing_calc() 90 temp = 40 * coeff + 4 * ui; in msm_dsi_dphy_timing_calc() 100 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc() 102 temp = 60 * coeff + 4 * ui; in msm_dsi_dphy_timing_calc() 193 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v2() 209 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v2() 301 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v3() 317 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v3() 414 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v4() [all …]
|
| /linux/sound/soc/codecs/ |
| A D | es8311.c | 379 if (WARN_ON_ONCE(!coeff)) in es8311_cmp_adj_mclk_coeff() 382 unsigned int div = coeff->div; in es8311_cmp_adj_mclk_coeff() 386 if (coeff->mclk == mclk_freq) { in es8311_cmp_adj_mclk_coeff() 389 div = mclk_freq / coeff->mclk; in es8311_cmp_adj_mclk_coeff() 390 div *= coeff->div; in es8311_cmp_adj_mclk_coeff() 396 mult *= coeff->mult; in es8311_cmp_adj_mclk_coeff() 404 *out_coeff = *coeff; in es8311_cmp_adj_mclk_coeff() 417 if (coeff->rate != rate) in es8311_get_mclk_coeff() 558 if (WARN_ON_ONCE(coeff.div == 0 || coeff.div > 8 || in es8311_hw_params() 559 coeff.div_adc_dac == 0 || coeff.div_adc_dac > 8)) in es8311_hw_params() [all …]
|
| A D | wm8988.c | 672 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()
|
| A D | msm8916-wcd-digital.c | 433 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() 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[0]); in msm8x16_wcd_put_iir_band_audio_mixer() 490 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in msm8x16_wcd_put_iir_band_audio_mixer() 491 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in msm8x16_wcd_put_iir_band_audio_mixer() 492 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in msm8x16_wcd_put_iir_band_audio_mixer() [all …]
|
| A D | alc5623.c | 701 int coeff, rate; in alc5623_pcm_hw_params() local 728 coeff = get_coeff(component, rate); in alc5623_pcm_hw_params() 729 if (coeff < 0) in alc5623_pcm_hw_params() 732 coeff = coeff_div[coeff].regvalue; in alc5623_pcm_hw_params() 734 __func__, alc5623->sysclk, rate, coeff); in alc5623_pcm_hw_params() 735 snd_soc_component_write(component, ALC5623_STEREO_AD_DA_CLK_CTRL, coeff); in alc5623_pcm_hw_params()
|
| A D | es8326.c | 543 int coeff, array; in es8326_pcm_hw_params() local 552 coeff = get_coeff(es8326->sysclk, params_rate(params), array, coeff_div); in es8326_pcm_hw_params() 577 if (coeff >= 0) { in es8326_pcm_hw_params() 579 coeff_div[coeff].reg4); in es8326_pcm_hw_params() 581 coeff_div[coeff].reg5); in es8326_pcm_hw_params() 583 coeff_div[coeff].reg6); in es8326_pcm_hw_params() 585 coeff_div[coeff].reg7); in es8326_pcm_hw_params() 587 coeff_div[coeff].reg8); in es8326_pcm_hw_params() 589 coeff_div[coeff].reg9); in es8326_pcm_hw_params() 591 coeff_div[coeff].rega); in es8326_pcm_hw_params() [all …]
|
| A D | alc5632.c | 871 int coeff, rate; in alc5632_pcm_hw_params() local 895 coeff = get_coeff(component, rate); in alc5632_pcm_hw_params() 896 if (coeff < 0) in alc5632_pcm_hw_params() 899 coeff = coeff_div[coeff].regvalue; in alc5632_pcm_hw_params() 900 snd_soc_component_write(component, ALC5632_DAC_CLK_CTRL1, coeff); in alc5632_pcm_hw_params()
|
| A D | wm8971.c | 513 int coeff = get_coeff(wm8971->sysclk, params_rate(params)); in wm8971_pcm_hw_params() local 532 if (coeff >= 0) in wm8971_pcm_hw_params() 534 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8971_pcm_hw_params()
|
| /linux/drivers/hwmon/pmbus/ |
| A D | lm25066.c | 470 const struct __coeff *coeff; in lm25066_probe() local 512 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe() 516 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe() 517 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe() 518 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe() 522 info->R[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN].R; in lm25066_probe() 523 info->R[PSC_POWER] = coeff[PSC_POWER].R; in lm25066_probe() 527 info->m[PSC_POWER] = coeff[PSC_POWER_L].m; in lm25066_probe() 528 info->b[PSC_POWER] = coeff[PSC_POWER_L].b; in lm25066_probe() 532 info->m[PSC_POWER] = coeff[PSC_POWER].m; in lm25066_probe() [all …]
|
| /linux/drivers/gpu/drm/amd/display/modules/color/ |
| A D | color_gamma.c | 813 point->coeff, in calculate_mapped_value() 821 point->coeff, in calculate_mapped_value() 936 coeff = kvzalloc(sizeof(*coeff), GFP_KERNEL); in build_regamma() 937 if (!coeff) in build_regamma() 960 kvfree(coeff); in build_regamma() 1659 ++coeff; in calculate_interpolated_hardware_curve() 2052 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_degamma_params() 2054 if (!coeff) in mod_color_calculate_degamma_params() 2123 kvfree(coeff); in mod_color_calculate_degamma_params() 2284 if (!coeff) in mod_color_calculate_regamma_params() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| A D | ar9003_calib.c | 28 struct coeff { struct 889 struct coeff *coeff, in ar9003_hw_tx_iq_cal_outlier_detection() argument 945 coeff->iqc_coeff[0] = in ar9003_hw_tx_iq_cal_outlier_detection() 951 coeff->iqc_coeff[0]); in ar9003_hw_tx_iq_cal_outlier_detection() 959 coeff->iqc_coeff[0]; in ar9003_hw_tx_iq_cal_outlier_detection() 1004 struct coeff *coeff, in __ar955x_tx_iq_cal_sort() argument 1025 coeff->mag_coeff[i][im][0] = coeff->mag_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort() 1026 coeff->phs_coeff[i][im][0] = coeff->phs_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort() 1037 struct coeff *coeff, in ar955x_tx_iq_cal_median() argument 1068 static struct coeff coeff; in ar9003_hw_tx_iq_cal_post_proc() local [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| A D | intel_color.c | 219 csc->coeff[0] << 16 | csc->coeff[1]); in ilk_update_pipe_csc() 224 csc->coeff[3] << 16 | csc->coeff[4]); in ilk_update_pipe_csc() 229 csc->coeff[6] << 16 | csc->coeff[7]); in ilk_update_pipe_csc() 318 csc->coeff[0] << 16 | csc->coeff[1]); in icl_update_output_csc() 323 csc->coeff[3] << 16 | csc->coeff[4]); in icl_update_output_csc() 328 csc->coeff[6] << 16 | csc->coeff[7]); in icl_update_output_csc() 621 csc->coeff[1] << 16 | csc->coeff[0]); in vlv_load_wgc_csc() 626 csc->coeff[4] << 16 | csc->coeff[3]); in vlv_load_wgc_csc() 631 csc->coeff[7] << 16 | csc->coeff[6]); in vlv_load_wgc_csc() 723 csc->coeff[1] << 16 | csc->coeff[0]); in chv_load_cgm_csc() [all …]
|
| A D | intel_crtc_state_dump.c | 160 csc->coeff[3 * i + 0], in ilk_dump_csc() 161 csc->coeff[3 * i + 1], in ilk_dump_csc() 162 csc->coeff[3 * i + 2]); in ilk_dump_csc() 179 csc->coeff[3 * i + 0], in vlv_dump_csc() 180 csc->coeff[3 * i + 1], in vlv_dump_csc() 181 csc->coeff[3 * i + 2]); in vlv_dump_csc()
|
| /linux/drivers/media/test-drivers/vicodec/ |
| A D | codec-fwht.c | 140 int coeff; in derlc() local 146 coeff = in >> 4; in derlc() 157 *wp++ = coeff; in derlc() 203 *coeff >>= *quant; in quantize_intra() 204 if (*coeff >= -qp && *coeff <= qp) in quantize_intra() 205 *coeff = *de_coeff = 0; in quantize_intra() 219 *coeff <<= *quant; in dequantize_intra() 229 *coeff >>= *quant; in quantize_inter() 230 if (*coeff >= -qp && *coeff <= qp) in quantize_inter() 231 *coeff = *de_coeff = 0; in quantize_inter() [all …]
|
| /linux/drivers/media/platform/verisilicon/ |
| A D | hantro_vp9.c | 107 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()
|
| /linux/drivers/iio/proximity/ |
| A D | isl29501.c | 266 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() argument [all …]
|
| /linux/drivers/iio/light/ |
| A D | rohm-bu27034.c | 651 helper64 = (u64)coeff * (u64)ch1 * (u64)ch1; in bu27034_fixp_calc_t1_64bit() 666 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1() argument 677 helper = coeff * ch1 * ch1; in bu27034_fixp_calc_t1() 682 if (check_mul_overflow(helper, coeff, &helper)) in bu27034_fixp_calc_t1() 683 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1() 686 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1() 698 if (!check_mul_overflow(coeff, ch, &helper)) in bu27034_fixp_calc_t23() 701 helper64 = (u64)coeff * (u64)ch; in bu27034_fixp_calc_t23() 711 static const struct bu27034_lx_coeff coeff[] = { in bu27034_fixp_calc_lx() local 724 const struct bu27034_lx_coeff *c = &coeff[coeff_idx]; in bu27034_fixp_calc_lx() [all …]
|
| /linux/Documentation/devicetree/bindings/hwmon/ |
| A D | moortec,mr75203.yaml | 103 moortec,ts-coeff-g: 112 moortec,ts-coeff-h: 121 moortec,ts-coeff-cal5: 129 moortec,ts-coeff-j: 161 moortec,ts-coeff-g = <61400>; 162 moortec,ts-coeff-h = <253700>;
|
| /linux/drivers/media/dvb-frontends/ |
| A D | af9033_priv.h | 30 struct coeff { struct 62 static const struct coeff coeff_lut[] = {
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| A D | global1_atu.c | 47 const unsigned int coeff = chip->info->age_time_coeff; in mv88e6xxx_g1_atu_set_age_time() local 48 const unsigned int min = 0x01 * coeff; in mv88e6xxx_g1_atu_set_age_time() 49 const unsigned int max = 0xff * coeff; in mv88e6xxx_g1_atu_set_age_time() 58 age_time = (msecs + coeff / 2) / coeff; in mv88e6xxx_g1_atu_set_age_time() 73 age_time * coeff); in mv88e6xxx_g1_atu_set_age_time()
|
| /linux/drivers/staging/fbtft/ |
| A D | fb_agm1264k-fl.c | 256 signed char coeff; in iterate_diffusion_matrix() local 262 coeff = diffusing_matrix[i][j]; in iterate_diffusion_matrix() 263 if (-1 == coeff) { in iterate_diffusion_matrix() 267 signed short p = *write_pos + error * coeff; in iterate_diffusion_matrix()
|
| /linux/drivers/staging/media/rkvdec/ |
| A D | rkvdec-vp9.c | 99 u32 coeff[3]; member 971 for (m = 0; m < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0][0][0]); ++m) {\ in rkvdec_init_v4l2_vp9_count_tbl() 972 vp9_ctx->inter_cnts.coeff[i][j][k][l][m] = \ in rkvdec_init_v4l2_vp9_count_tbl() 973 &inter_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl() 979 vp9_ctx->intra_cnts.coeff[i][j][k][l][m] = \ in rkvdec_init_v4l2_vp9_count_tbl() 980 &intra_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl() 988 for (i = 0; i < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff); ++i) in rkvdec_init_v4l2_vp9_count_tbl() 989 for (j = 0; j < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0]); ++j) in rkvdec_init_v4l2_vp9_count_tbl() 990 for (k = 0; k < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0]); ++k) in rkvdec_init_v4l2_vp9_count_tbl() 991 for (l = 0; l < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0][0]); ++l) in rkvdec_init_v4l2_vp9_count_tbl()
|
| /linux/drivers/media/pci/cx88/ |
| A D | cx88-dsp.c | 101 s32 coeff = 2 * int_cos(freq); in int_goertzel() local 108 s32 s = x[i] + ((s64)coeff * s_prev / 32768) - s_prev2; in int_goertzel() 115 (s64)coeff * s_prev2 * s_prev / 32768; in int_goertzel()
|