| /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/drivers/gpu/drm/msm/dsi/phy/ |
| H A D | dsi_phy.c | 31 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero() argument 37 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 63 s32 coeff = 1000; /* Precision, should avoid overflow */ in msm_dsi_dphy_timing_calc() local 69 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc() 70 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc() 72 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() 73 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() 83 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); in msm_dsi_dphy_timing_calc() 85 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc() 87 tmin = S_DIV_ROUND_UP(60 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() [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 | 540 int coeff; in es8389_pcm_hw_params() local 572 coeff = get_coeff(es8389->sysclk, params_rate(params)); in es8389_pcm_hw_params() 573 if (coeff >= 0) { in es8389_pcm_hw_params() 574 regmap_write(es8389->regmap, ES8389_CLK_DIV1, coeff_div[coeff].Reg0x04); in es8389_pcm_hw_params() 575 regmap_write(es8389->regmap, ES8389_CLK_MUL, coeff_div[coeff].Reg0x05); in es8389_pcm_hw_params() 576 regmap_write(es8389->regmap, ES8389_CLK_MUX1, coeff_div[coeff].Reg0x06); in es8389_pcm_hw_params() 577 regmap_write(es8389->regmap, ES8389_CLK_MUX2, coeff_div[coeff].Reg0x07); in es8389_pcm_hw_params() 578 regmap_write(es8389->regmap, ES8389_CLK_CTL1, coeff_div[coeff].Reg0x08); in es8389_pcm_hw_params() 579 regmap_write(es8389->regmap, ES8389_CLK_CTL2, coeff_div[coeff].Reg0x09); in es8389_pcm_hw_params() 580 regmap_write(es8389->regmap, ES8389_CLK_CTL3, coeff_div[coeff] in es8389_pcm_hw_params() [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].Reg0x09); 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 | 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] in es8326_pcm_hw_params() [all...] |
| H A D | lpass-rx-macro.c | 2934 u32 coeff[BAND_MAX]; in rx_macro_put_iir_band_audio_mixer() 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() 2964 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in rx_macro_get_iir_band_audio_mixer() 2965 coeff[ in rx_macro_get_iir_band_audio_mixer() 2940 u32 coeff[BAND_MAX]; rx_macro_put_iir_band_audio_mixer() local 2969 u32 coeff[BAND_MAX]; rx_macro_get_iir_band_audio_mixer() local [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/staging/fbtft/ |
| H 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/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/include/media/ |
| H A D | v4l2-vp9.h | 142 u32 (*coeff[4][2][2][6][6])[3]; member
|
| /linux/drivers/isdn/hardware/mISDN/ |
| H A D | hfcmulti.c | 1797 s32 *coeff; in hfcmulti_dtmf() local 1822 coeff = &(hc->chan[ch].coeff[hc->chan[ch].coeff_count * 16]); in hfcmulti_dtmf() 1847 coeff[co << 1] = mantissa; in hfcmulti_dtmf() 1866 coeff[(co << 1) | 1] = mantissa; in hfcmulti_dtmf() 1871 coeff[0], coeff[1], coeff[2], coeff[3], in hfcmulti_dtmf() 1872 coeff[4], coeff[5], coeff[6], coeff[7]); in hfcmulti_dtmf() 1885 skb_put_data(skb, hc->chan[ch].coeff, 512); in hfcmulti_dtmf() 4549 kfree(hc->chan[i].coeff); in release_port() 4572 kfree(hc->chan[ci - 2].coeff); in release_port() 4586 kfree(hc->chan[ci - 1].coeff); in release_port() [all …]
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs8409.h | 299 unsigned int coeff; member
|
| /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 …]
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | si_dpm.c | 1874 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 1885 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1886 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1887 av = div64_s64(drm_int2fixp(coeff->av), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1888 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1889 t_ref = drm_int2fixp(coeff->t_ref); in si_calculate_leakage_for_v_and_t_formula() 1902 const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_and_t() argument 1908 si_calculate_leakage_for_v_and_t_formula(coeff, v, t, i_leakage, leakage); in si_calculate_leakage_for_v_and_t() 1911 static void si_calculate_leakage_for_v_formula(const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_formula() argument 1921 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 100000000), in si_calculate_leakage_for_v_formula() [all …]
|
| /linux/include/video/ |
| H A D | imx-ipu-v3.h | 410 s16 coeff[3][3]; /* signed 9-bit integer coefficients */ in ipu_ic_fill_colorspace() 417 s16 coeff[3][3]; /* signed 9-bit integer coefficients */ global() member
|