| /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() 412 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v4() [all …]
|
| /linux/drivers/hwmon/pmbus/ |
| A D | lm25066.c | 464 const struct __coeff *coeff; in lm25066_probe() local 514 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe() 518 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe() 519 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe() 520 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe() 524 info->R[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN].R; in lm25066_probe() 525 info->R[PSC_POWER] = coeff[PSC_POWER].R; in lm25066_probe() 529 info->m[PSC_POWER] = coeff[PSC_POWER_L].m; in lm25066_probe() 530 info->b[PSC_POWER] = coeff[PSC_POWER_L].b; in lm25066_probe() 534 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 | 713 point->coeff, in calculate_mapped_value() 721 point->coeff, in calculate_mapped_value() 729 point->coeff, in calculate_mapped_value() 838 coeff = kvzalloc(sizeof(*coeff), GFP_KERNEL); in build_regamma() 839 if (!coeff) in build_regamma() 862 kvfree(coeff); in build_regamma() 1561 ++coeff; in calculate_interpolated_hardware_curve() 1952 if (!coeff) in mod_color_calculate_degamma_params() 2021 kvfree(coeff); in mod_color_calculate_degamma_params() 2180 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 1029 coeff->mag_coeff[i][im][0] = coeff->mag_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort() 1030 coeff->phs_coeff[i][im][0] = coeff->phs_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort() 1041 struct coeff *coeff, in ar955x_tx_iq_cal_median() argument 1072 static struct coeff coeff; in ar9003_hw_tx_iq_cal_post_proc() local [all …]
|
| /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/gpu/drm/i915/display/ |
| A D | intel_color.c | 43 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0) argument 44 #define CTM_COEFF_ABS(coeff) ((coeff) & (CTM_COEFF_SIGN - 1)) argument 157 const u16 coeff[9], in ilk_update_pipe_csc() 168 coeff[0] << 16 | coeff[1]); in ilk_update_pipe_csc() 172 coeff[3] << 16 | coeff[4]); in ilk_update_pipe_csc() 176 coeff[6] << 16 | coeff[7]); in ilk_update_pipe_csc() 202 coeff[0] << 16 | coeff[1]); in icl_update_output_csc() 207 coeff[3] << 16 | coeff[4]); in icl_update_output_csc() 212 coeff[6] << 16 | coeff[7]); in icl_update_output_csc() 293 u16 coeff[9]; in ilk_load_csc_matrix() local [all …]
|
| /linux/sound/soc/codecs/ |
| 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 | 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 | 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 | 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()
|
| A D | wm8750.c | 583 int coeff = get_coeff(wm8750->sysclk, params_rate(params)); in wm8750_pcm_hw_params() local 602 if (coeff >= 0) in wm8750_pcm_hw_params() 604 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8750_pcm_hw_params()
|
| A D | lpass-rx-macro.c | 2741 u32 coeff[BAND_MAX]; in rx_macro_put_iir_band_audio_mixer() local 2744 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in rx_macro_put_iir_band_audio_mixer() 2751 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in rx_macro_put_iir_band_audio_mixer() 2752 set_iir_band_coeff(component, iir_idx, band_idx, coeff[1]); in rx_macro_put_iir_band_audio_mixer() 2753 set_iir_band_coeff(component, iir_idx, band_idx, coeff[2]); in rx_macro_put_iir_band_audio_mixer() 2754 set_iir_band_coeff(component, iir_idx, band_idx, coeff[3]); in rx_macro_put_iir_band_audio_mixer() 2755 set_iir_band_coeff(component, iir_idx, band_idx, coeff[4]); in rx_macro_put_iir_band_audio_mixer() 2770 u32 coeff[BAND_MAX]; in rx_macro_get_iir_band_audio_mixer() local 2772 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in rx_macro_get_iir_band_audio_mixer() 2773 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in rx_macro_get_iir_band_audio_mixer() [all …]
|
| A D | wm8753.c | 1159 int coeff; in wm8753_i2s_hw_params() local 1162 coeff = get_coeff(wm8753->sysclk, params_rate(params)); in wm8753_i2s_hw_params() 1163 if (coeff < 0) { in wm8753_i2s_hw_params() 1165 return coeff; in wm8753_i2s_hw_params() 1167 snd_soc_component_write(component, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) | in wm8753_i2s_hw_params() 1168 coeff_div[coeff].usb); in wm8753_i2s_hw_params()
|
| A D | rt5631.c | 1357 int timesofbclk = 32, coeff; in rt5631_hifi_pcm_params() local 1370 coeff = get_coeff(rt5631->sysclk, rt5631->rx_rate, in rt5631_hifi_pcm_params() 1373 coeff = get_coeff(rt5631->sysclk, rt5631->rx_rate, in rt5631_hifi_pcm_params() 1375 if (coeff < 0) { in rt5631_hifi_pcm_params() 1377 return coeff; in rt5631_hifi_pcm_params() 1399 coeff_div[coeff].reg_val); in rt5631_hifi_pcm_params()
|
| /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/net/dsa/mv88e6xxx/ |
| A D | global1_atu.c | 45 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() 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()
|
| /linux/drivers/media/dvb-frontends/ |
| A D | af9033_priv.h | 30 struct coeff { struct 62 static const struct coeff coeff_lut[] = {
|
| /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/gpu/drm/nouveau/nvkm/subdev/clk/ |
| A D | gm20b.c | 194 u32 coeff; in gm20b_dvfs_calc_det_coeff() local 199 coeff = DIV_ROUND_CLOSEST(mv * p->coeff_slope, 1000) + p->coeff_offs; in gm20b_dvfs_calc_det_coeff() 200 coeff = DIV_ROUND_CLOSEST(coeff, 1000); in gm20b_dvfs_calc_det_coeff() 201 dvfs->dfs_coeff = min_t(u32, coeff, MASK(GPCPLL_DVFS0_DFS_COEFF_WIDTH)); in gm20b_dvfs_calc_det_coeff() 513 gm20b_dvfs_program_coeff(struct gm20b_clk *clk, u32 coeff) in gm20b_dvfs_program_coeff() argument 523 coeff << GPCPLL_DVFS0_DFS_COEFF_SHIFT); in gm20b_dvfs_program_coeff()
|
| /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()
|
| /linux/Documentation/input/ |
| 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/media/platform/davinci/ |
| A D | dm355_ccdc.c | 466 val1 = (csc->coeff[i].integer & in ccdc_config_csc() 473 val1 |= (((csc->coeff[i].decimal & in ccdc_config_csc() 479 val2 = (csc->coeff[i].integer & in ccdc_config_csc() 482 val2 |= (((csc->coeff[i].decimal & in ccdc_config_csc()
|