| /linux/drivers/media/platform/ti/vpe/ |
| H A D | csc.c | 27 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() 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() [all …]
|
| /linux/drivers/gpu/ipu-v3/ |
| H 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/sound/soc/codecs/ |
| H A D | es8311.c | 369 /* Compare coeff with provided mclk_freq and adjust it if needed. 370 * If frequencies match, return 0 and the unaltered coeff copy into out_coeff. 371 * If mclk_freq is a valid multiple or factor of coeff mclk freq, return 0 and 372 * the adjusted coeff copy into out_coeff. 376 const struct es8311_mclk_coeff *coeff, in es8311_cmp_adj_mclk_coeff() argument 379 if (WARN_ON_ONCE(!coeff)) in es8311_cmp_adj_mclk_coeff() 382 unsigned int div = coeff->div; in es8311_cmp_adj_mclk_coeff() 383 unsigned int mult = coeff->mult; in es8311_cmp_adj_mclk_coeff() 386 if (coeff->mclk == mclk_freq) { in es8311_cmp_adj_mclk_coeff() 388 } else if (mclk_freq % coeff in es8311_cmp_adj_mclk_coeff() 415 const struct es8311_mclk_coeff *coeff = &es8311_mclk_coeffs[i]; es8311_get_mclk_coeff() local 435 const struct es8311_mclk_coeff *coeff = &es8311_mclk_coeffs[i]; es8311_set_sysclk_constraints() local 545 struct es8311_mclk_coeff coeff; es8311_hw_params() local [all...] |
| H A D | es8389.c | 708 int coeff, ret; 759 coeff = get_coeff(es8389->vddd, dmic_enable, es8389->sysclk, params_rate(params)); in es8389_init() 760 if (coeff >= 0) { in es8389_init() 761 regmap_write(es8389->regmap, ES8389_CLK_DIV1, coeff_div[coeff].Reg0x04); in es8389_init() 762 regmap_write(es8389->regmap, ES8389_CLK_MUL, coeff_div[coeff].Reg0x05); in es8389_init() 763 regmap_write(es8389->regmap, ES8389_CLK_MUX1, coeff_div[coeff].Reg0x06); in es8389_init() 764 regmap_write(es8389->regmap, ES8389_CLK_MUX2, coeff_div[coeff].Reg0x07); in es8389_init() 765 regmap_write(es8389->regmap, ES8389_CLK_CTL1, coeff_div[coeff].Reg0x08); in es8389_init() 766 regmap_write(es8389->regmap, ES8389_CLK_CTL2, coeff_div[coeff].Reg0x09); in es8389_init() 767 regmap_write(es8389->regmap, ES8389_CLK_CTL3, coeff_div[coeff] in es8389_init() 540 int coeff; es8389_pcm_hw_params() local [all...] |
| H A D | es8375.c | 294 int coeff, ret; in es8375_hw_params() local 319 coeff = get_coeff(es8375->vddd, dmic_enable, es8375->mclk_freq, params_rate(params)); in es8375_hw_params() 320 if (coeff < 0) { in es8375_hw_params() 322 return coeff; in es8375_hw_params() 325 coeff_div[coeff].Reg0x04); in es8375_hw_params() 327 coeff_div[coeff].Reg0x05); in es8375_hw_params() 329 coeff_div[coeff].Reg0x06); in es8375_hw_params() 331 coeff_div[coeff].Reg0x07); in es8375_hw_params() 333 coeff_div[coeff].Reg0x08); in es8375_hw_params() 335 coeff_div[coeff] in es8375_hw_params() [all...] |
| H A D | msm8916-wcd-digital.c | 432 u32 coeff[BAND_MAX]; in msm8x16_wcd_get_iir_band_audio_mixer() 434 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer() 435 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer() 436 coeff[2] = get_iir_band_coeff(component, iir_idx, band_idx, 2); in msm8x16_wcd_get_iir_band_audio_mixer() 437 coeff[3] = get_iir_band_coeff(component, iir_idx, band_idx, 3); in msm8x16_wcd_get_iir_band_audio_mixer() 438 coeff[4] = get_iir_band_coeff(component, iir_idx, band_idx, 4); in msm8x16_wcd_get_iir_band_audio_mixer() 440 memcpy(ucontrol->value.bytes.data, &coeff[0], params->max); in msm8x16_wcd_get_iir_band_audio_mixer() 477 u32 coeff[BAND_MAX]; in msm8x16_wcd_put_iir_band_audio_mixer() 479 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in msm8x16_wcd_put_iir_band_audio_mixer() local 487 set_iir_band_coeff(component, iir_idx, band_idx, coeff[ in msm8x16_wcd_put_iir_band_audio_mixer() 433 u32 coeff[BAND_MAX]; msm8x16_wcd_get_iir_band_audio_mixer() local [all...] |
| H A D | es8323.c | 565 int coeff; in es8323_pcm_hw_params() local 567 coeff = get_coeff(es8323->sysclk, params_rate(params)); in es8323_pcm_hw_params() 568 if (coeff < 0) { in es8323_pcm_hw_params() 569 coeff = get_coeff(es8323->sysclk / 2, params_rate(params)); in es8323_pcm_hw_params() 570 if (coeff < 0) { in es8323_pcm_hw_params() 574 return coeff; in es8323_pcm_hw_params() 582 fs = FIELD_PREP(ES8323_DACCONTROL2_DACFSMODE, es8323_coeff_div[coeff].usb) in es8323_pcm_hw_params() 583 | FIELD_PREP(ES8323_DACCONTROL2_DACFSRATIO, es8323_coeff_div[coeff].sr); in es8323_pcm_hw_params()
|
| H A D | wm_adsp_fw_find_test.c | 61 kfree(fw->coeff.filename); in wm_adsp_fw_find_test_release_firmware_files_stub() 64 fw->coeff.firmware = NULL; in wm_adsp_fw_find_test_release_firmware_files_stub() 66 fw->coeff.filename = NULL; in wm_adsp_fw_find_test_release_firmware_files_stub() 142 KUNIT_EXPECT_EQ_MSG(test, !!priv->found_fw.coeff.filename, !!params->expect_bin, in wm_adsp_fw_find_test_pick_file() 151 KUNIT_EXPECT_STREQ_MSG(test, priv->found_fw.coeff.filename, params->expect_bin, in wm_adsp_fw_find_test_pick_file() 223 KUNIT_EXPECT_EQ(test, !!priv->found_fw.coeff.filename, !!params->expect_bin); in wm_adsp_fw_find_test_search_order() 225 KUNIT_EXPECT_STREQ(test, priv->found_fw.coeff.filename, params->expect_bin); in wm_adsp_fw_find_test_search_order() 229 KUNIT_EXPECT_EQ(test, !!priv->found_fw.coeff.filename, !!priv->found_fw.coeff.firmware); in wm_adsp_fw_find_test_search_order()
|
| H A D | es8326.c | 559 int coeff, array; in es8326_pcm_hw_params() 568 coeff = get_coeff(es8326->sysclk, params_rate(params), array, coeff_div); in es8326_pcm_hw_params() 593 if (coeff >= 0) { in es8326_pcm_hw_params() 595 coeff_div[coeff].reg4); in es8326_pcm_hw_params() 597 coeff_div[coeff].reg5); in es8326_pcm_hw_params() 599 coeff_div[coeff].reg6); in es8326_pcm_hw_params() 601 coeff_div[coeff].reg7); in es8326_mute() 603 coeff_div[coeff].reg8); in es8326_mute() 605 coeff_div[coeff].reg9); in es8326_mute() 607 coeff_div[coeff] in es8326_mute() 543 int coeff, array; es8326_pcm_hw_params() local [all...] |
| H A D | wm8753.c | 1158 int coeff; in wm8753_i2s_hw_params() local 1161 coeff = get_coeff(wm8753->sysclk, params_rate(params)); in wm8753_i2s_hw_params() 1162 if (coeff < 0) { in wm8753_i2s_hw_params() 1164 return coeff; in wm8753_i2s_hw_params() 1166 snd_soc_component_write(component, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) | in wm8753_i2s_hw_params() 1167 coeff_div[coeff].usb); in wm8753_i2s_hw_params()
|
| H A D | lpass-rx-macro.c | 2938 u32 coeff[BAND_MAX]; in rx_macro_put_iir_band_audio_mixer() 2941 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in rx_macro_put_iir_band_audio_mixer() 2948 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in rx_macro_put_iir_band_audio_mixer() 2949 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in rx_macro_put_iir_band_audio_mixer() 2950 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in rx_macro_put_iir_band_audio_mixer() 2951 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in rx_macro_put_iir_band_audio_mixer() 2952 set_iir_band_coeff(component, iir_idx, band_idx, coeff[4]); 2966 u32 coeff[BAND_MAX]; in rx_macro_get_iir_band_audio_mixer() 2968 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in rx_macro_get_iir_band_audio_mixer() 2969 coeff[ in rx_macro_get_iir_band_audio_mixer() 2934 u32 coeff[BAND_MAX]; rx_macro_put_iir_band_audio_mixer() local 2962 u32 coeff[BAND_MAX]; rx_macro_get_iir_band_audio_mixer() local [all...] |
| H A D | wcd934x.c | 3099 u32 coeff[BAND_MAX]; in set_iir_band_coeff() 3102 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in wcd934x_put_iir_band_audio_mixer() 3109 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in wcd934x_put_iir_band_audio_mixer() 3110 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in wcd934x_put_iir_band_audio_mixer() 3111 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in wcd934x_put_iir_band_audio_mixer() local 3112 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in wcd934x_put_iir_band_audio_mixer() 3113 set_iir_band_coeff(component, iir_idx, band_idx, coeff[4]); in wcd934x_put_iir_band_audio_mixer() 3127 u32 coeff[BAND_MAX]; in wcd934x_put_iir_band_audio_mixer() 3129 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); 3130 coeff[ 3139 u32 coeff[BAND_MAX]; wcd934x_get_iir_band_audio_mixer() local [all...] |
| /linux/drivers/hwmon/pmbus/ |
| H A D | lm25066.c | 472 const struct __coeff *coeff; in lm25066_probe() local 550 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe() 551 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m; in lm25066_probe() 552 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b; in lm25066_probe() 553 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R; in lm25066_probe() 554 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe() 555 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe() 556 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe() 557 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m; in lm25066_probe() 558 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].b; in lm25066_probe() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_calib.c | 28 struct coeff { struct 889 struct coeff *coeff, in ar9003_hw_tx_iq_cal_outlier_detection() argument 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->iqc_coeff[0] = in ar9003_hw_tx_iq_cal_outlier_detection() 951 coeff->iqc_coeff[0]); in ar9003_hw_tx_iq_cal_outlier_detection() 955 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() [all …]
|
| /linux/drivers/media/test-drivers/vicodec/ |
| H A D | codec-fwht.c | 140 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 << *quant; in quantize_intra() 212 static void dequantize_intra(s16 *coeff) in dequantize_intra() argument [all …]
|
| /linux/drivers/media/platform/verisilicon/ |
| H 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/ |
| H A D | isl29501.c | 265 u32 value, gain, coeff, exp; in isl29501_read_ext() local 284 ret = isl29501_register_read(isl29501, reg, &coeff); in isl29501_read_ext() 288 value = coeff << exp; in isl29501_read_ext() 301 enum isl29501_correction_coeff coeff; in isl29501_set_shadow_coeff() local 305 coeff = COEFF_TEMP_A; in isl29501_set_shadow_coeff() 308 coeff = COEFF_TEMP_B; in isl29501_set_shadow_coeff() 311 coeff = COEFF_LIGHT_A; in isl29501_set_shadow_coeff() 314 coeff = COEFF_LIGHT_B; in isl29501_set_shadow_coeff() 319 isl29501->shadow_coeffs[coeff] = val; in isl29501_set_shadow_coeff() 325 enum isl29501_correction_coeff coeff, in isl29501_write_coeff() argument [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | af9033_priv.h | 30 struct coeff { struct 62 static const struct coeff coeff_lut[] = {
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H 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/media/platform/rockchip/rkvdec/ |
| H A D | rkvdec-vp9.c | 99 u32 coeff[3]; member 942 for (m = 0; m < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0][0][0]); ++m) {\ in rkvdec_init_v4l2_vp9_count_tbl() 943 vp9_ctx->inter_cnts.coeff[i][j][k][l][m] = \ in rkvdec_init_v4l2_vp9_count_tbl() 944 &inter_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl() 950 vp9_ctx->intra_cnts.coeff[i][j][k][l][m] = \ in rkvdec_init_v4l2_vp9_count_tbl() 951 &intra_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl() 959 for (i = 0; i < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff); ++i) in rkvdec_init_v4l2_vp9_count_tbl() 960 for (j = 0; j < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0]); ++j) in rkvdec_init_v4l2_vp9_count_tbl() 961 for (k = 0; k < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0]); ++k) in rkvdec_init_v4l2_vp9_count_tbl() 962 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/ |
| H 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()
|
| /linux/Documentation/input/ |
| H A D | interactive.svg | 21 …="144px" stroke="#000000" stroke-width=".025in" xml:space="preserve">left coeff ( positive in that… 22 …"144px" stroke="#000000" stroke-width=".025in" xml:space="preserve">right coeff ( negative in that…
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | gm20b.c | 195 u32 coeff; in gm20b_dvfs_calc_det_coeff() local 200 coeff = DIV_ROUND_CLOSEST(mv * p->coeff_slope, 1000) + p->coeff_offs; in gm20b_dvfs_calc_det_coeff() 201 coeff = DIV_ROUND_CLOSEST(coeff, 1000); in gm20b_dvfs_calc_det_coeff() 202 dvfs->dfs_coeff = min_t(u32, coeff, MASK(GPCPLL_DVFS0_DFS_COEFF_WIDTH)); in gm20b_dvfs_calc_det_coeff() 514 gm20b_dvfs_program_coeff(struct gm20b_clk *clk, u32 coeff) in gm20b_dvfs_program_coeff() argument 524 coeff << GPCPLL_DVFS0_DFS_COEFF_SHIFT); in gm20b_dvfs_program_coeff()
|
| /linux/include/media/ |
| H A D | v4l2-vp9.h | 142 u32 (*coeff[4][2][2][6][6])[3]; member
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs8409.h | 302 unsigned int coeff; 299 unsigned int coeff; global() member
|