| /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 | 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->mclk == 0) { 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() 393 } else if (coeff->mclk % mclk_freq == 0) { in es8311_cmp_adj_mclk_coeff() 394 mult = coeff->mclk / mclk_freq; in es8311_cmp_adj_mclk_coeff() [all …]
|
| H A D | es8389.c | 564 int coeff, ret; in es8389_pcm_hw_params() 613 coeff = get_coeff(es8389->vddd, dmic_enable, es8389->sysclk, params_rate(params)); in es8389_set_bias_level() 614 if (coeff >= 0) { in es8389_set_bias_level() 615 regmap_write(es8389->regmap, ES8389_CLK_DIV1, coeff_div[coeff].Reg0x04); in es8389_set_bias_level() 616 regmap_write(es8389->regmap, ES8389_CLK_MUL, coeff_div[coeff].Reg0x05); in es8389_set_bias_level() 617 regmap_write(es8389->regmap, ES8389_CLK_MUX1, coeff_div[coeff].Reg0x06); in es8389_set_bias_level() 618 regmap_write(es8389->regmap, ES8389_CLK_MUX2, coeff_div[coeff].Reg0x07); in es8389_set_bias_level() 619 regmap_write(es8389->regmap, ES8389_CLK_CTL1, coeff_div[coeff].Reg0x08); in es8389_set_bias_level() 620 regmap_write(es8389->regmap, ES8389_CLK_CTL2, coeff_div[coeff].Reg0x09); in es8389_set_bias_level() 621 regmap_write(es8389->regmap, ES8389_CLK_CTL3, coeff_div[coeff] in es8389_set_bias_level() 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 | 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 | 558 int coeff, array; in es8326_pcm_hw_params() 567 coeff = get_coeff(es8326->sysclk, params_rate(params), array, coeff_div); in es8326_pcm_hw_params() 592 if (coeff >= 0) { in es8326_pcm_hw_params() 594 coeff_div[coeff].reg4); in es8326_pcm_hw_params() 596 coeff_div[coeff].reg5); in es8326_pcm_hw_params() 598 coeff_div[coeff].reg6); in es8326_pcm_hw_params() 600 coeff_div[coeff].reg7); 602 coeff_div[coeff].reg8); in es8326_mute() 604 coeff_div[coeff].reg9); in es8326_mute() 606 coeff_div[coeff] in es8326_mute() 543 int coeff, array; es8326_pcm_hw_params() local [all...] |
| H A D | lpass-rx-macro.c | 2934 u32 coeff[BAND_MAX]; in rx_macro_put_iir_band_audio_mixer() local 2937 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in rx_macro_put_iir_band_audio_mixer() 2944 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in rx_macro_put_iir_band_audio_mixer() 2945 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in rx_macro_put_iir_band_audio_mixer() 2946 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in rx_macro_put_iir_band_audio_mixer() 2947 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in rx_macro_put_iir_band_audio_mixer() 2948 set_iir_band_coeff(component, iir_idx, band_idx, coeff[4]); in rx_macro_put_iir_band_audio_mixer() 2962 u32 coeff[BAND_MAX]; in rx_macro_get_iir_band_audio_mixer() local 2964 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in rx_macro_get_iir_band_audio_mixer() 2965 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in rx_macro_get_iir_band_audio_mixer() [all …]
|
| H A D | wcd934x.c | 3111 u32 coeff[BAND_MAX]; in wcd934x_put_iir_band_audio_mixer() local 3114 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in wcd934x_put_iir_band_audio_mixer() 3121 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in wcd934x_put_iir_band_audio_mixer() 3122 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in wcd934x_put_iir_band_audio_mixer() 3123 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in wcd934x_put_iir_band_audio_mixer() 3124 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in wcd934x_put_iir_band_audio_mixer() 3125 set_iir_band_coeff(component, iir_idx, band_idx, coeff[4]); in wcd934x_put_iir_band_audio_mixer() 3139 u32 coeff[BAND_MAX]; in wcd934x_get_iir_band_audio_mixer() local 3141 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in wcd934x_get_iir_band_audio_mixer() 3142 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in wcd934x_get_iir_band_audio_mixer() [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/gpu/drm/i915/display/ |
| H A D | intel_color.c | 114 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0) argument 115 #define CTM_COEFF_ABS(coeff) ((coeff) & (CTM_COEFF_SIGN - 1)) argument 143 #define ILK_CSC_COEFF_FP(coeff, fbits) \ argument 144 (clamp_val(((coeff) >> (32 - (fbits) - 3)) + 4, 0, 0xfff) & 0xff8) 152 .coeff = { 163 .coeff = { 178 .coeff = { 239 csc->coeff[0] << 16 | csc->coeff[1]); in ilk_update_pipe_csc() 241 csc->coeff[2] << 16); in ilk_update_pipe_csc() 244 csc->coeff[3] << 16 | csc->coeff[4]); in ilk_update_pipe_csc() [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/iio/proximity/ |
| H 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/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/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/dvb-frontends/ |
| H A D | af9033_priv.h | 30 struct coeff { struct 62 static const struct coeff coeff_lut[] = {
|
| /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/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/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/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
|
| H A D | cs8409.c | 1050 cs8409_vendor_coef_set(codec, seq->cir, seq->coeff); in cs8409_cs42l42_hw_init() 1054 cs8409_vendor_coef_set(codec, seq_bullseye->cir, seq_bullseye->coeff); in cs8409_cs42l42_hw_init() 1253 cs8409_vendor_coef_set(codec, seq->cir, seq->coeff); in cs8409_cdb35l56_four_hw_init() 1445 cs8409_vendor_coef_set(codec, seq->cir, seq->coeff); in dolphin_hw_init()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | si_dpm.c | 1706 static void si_calculate_leakage_for_v_and_t_formula(const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_and_t_formula() argument 1717 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1718 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1719 av = div64_s64(drm_int2fixp(coeff->av), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1720 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1721 t_ref = drm_int2fixp(coeff->t_ref); in si_calculate_leakage_for_v_and_t_formula() 1734 const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_and_t() argument 1740 si_calculate_leakage_for_v_and_t_formula(coeff, v, t, i_leakage, leakage); in si_calculate_leakage_for_v_and_t() 1743 static void si_calculate_leakage_for_v_formula(const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_formula() argument 1753 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 100000000), in si_calculate_leakage_for_v_formula() [all …]
|