/Linux-v4.19/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.c | 35 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero() argument 41 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 67 s32 coeff = 1000; /* Precision, should avoid overflow */ in msm_dsi_dphy_timing_calc() local 73 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc() 74 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc() 76 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() 77 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() 87 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); in msm_dsi_dphy_timing_calc() 89 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc() 91 tmin = S_DIV_ROUND_UP(60 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() [all …]
|
/Linux-v4.19/drivers/hwmon/pmbus/ |
D | lm25066.c | 414 struct __coeff *coeff; in lm25066_probe() local 455 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe() 456 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m; in lm25066_probe() 457 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b; in lm25066_probe() 458 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R; in lm25066_probe() 459 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe() 460 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe() 461 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe() 462 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m; in lm25066_probe() 463 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].b; in lm25066_probe() [all …]
|
/Linux-v4.19/drivers/media/platform/ti-vpe/ |
D | csc.c | 129 u16 *coeff, *end_coeff; in csc_set_coeff() local 159 coeff = sd_hd_coeffs->sd; in csc_set_coeff() 161 coeff = sd_hd_coeffs->hd; in csc_set_coeff() 163 end_coeff = coeff + 12; in csc_set_coeff() 165 for (; coeff < end_coeff; coeff += 2) in csc_set_coeff() 166 *shadow_csc++ = (*(coeff + 1) << 16) | *coeff; in csc_set_coeff()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/modules/color/ |
D | color_gamma.c | 344 struct gamma_coefficients *coeff, in translate_from_linear_space_ex() argument 349 coeff->a0[color_index], in translate_from_linear_space_ex() 350 coeff->a1[color_index], in translate_from_linear_space_ex() 351 coeff->a2[color_index], in translate_from_linear_space_ex() 352 coeff->a3[color_index], in translate_from_linear_space_ex() 353 coeff->user_gamma[color_index]); in translate_from_linear_space_ex() 359 struct gamma_coefficients *coeff, in translate_to_linear_space_ex() argument 364 coeff->a0[color_index], in translate_to_linear_space_ex() 365 coeff->a1[color_index], in translate_to_linear_space_ex() 366 coeff->a2[color_index], in translate_to_linear_space_ex() [all …]
|
D | color_gamma.h | 72 struct regamma_coeff coeff; member
|
/Linux-v4.19/drivers/net/wireless/ath/ath9k/ |
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-v4.19/drivers/media/platform/vicodec/ |
D | vicodec-codec.c | 117 int coeff = in >> 4; in derlc() local 128 *wp++ = coeff; in derlc() 167 static void quantize_intra(s16 *coeff, s16 *de_coeff) in quantize_intra() argument 173 for (i = 0; i < 8; i++, quant++, coeff++, de_coeff++) { in quantize_intra() 174 *coeff >>= *quant; in quantize_intra() 175 if (*coeff >= -DEADZONE_WIDTH && in quantize_intra() 176 *coeff <= DEADZONE_WIDTH) in quantize_intra() 177 *coeff = *de_coeff = 0; in quantize_intra() 179 *de_coeff = *coeff << *quant; in quantize_intra() 184 static void dequantize_intra(s16 *coeff) in dequantize_intra() argument [all …]
|
/Linux-v4.19/drivers/net/dsa/mv88e6xxx/ |
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-v4.19/sound/soc/codecs/ |
D | wm8988.c | 675 int coeff; in wm8988_pcm_hw_params() local 677 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params() 678 if (coeff < 0) { in wm8988_pcm_hw_params() 679 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params() 682 if (coeff < 0) { in wm8988_pcm_hw_params() 686 return coeff; in wm8988_pcm_hw_params() 706 if (coeff >= 0) in wm8988_pcm_hw_params() 708 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8988_pcm_hw_params()
|
D | alc5623.c | 706 int coeff, rate; in alc5623_pcm_hw_params() local 733 coeff = get_coeff(component, rate); in alc5623_pcm_hw_params() 734 if (coeff < 0) in alc5623_pcm_hw_params() 737 coeff = coeff_div[coeff].regvalue; in alc5623_pcm_hw_params() 739 __func__, alc5623->sysclk, rate, coeff); in alc5623_pcm_hw_params() 740 snd_soc_component_write(component, ALC5623_STEREO_AD_DA_CLK_CTRL, coeff); in alc5623_pcm_hw_params()
|
D | alc5632.c | 874 int coeff, rate; in alc5632_pcm_hw_params() local 898 coeff = get_coeff(component, rate); in alc5632_pcm_hw_params() 899 if (coeff < 0) in alc5632_pcm_hw_params() 902 coeff = coeff_div[coeff].regvalue; in alc5632_pcm_hw_params() 903 snd_soc_component_write(component, ALC5632_DAC_CLK_CTRL1, coeff); in alc5632_pcm_hw_params()
|
D | wm8971.c | 517 int coeff = get_coeff(wm8971->sysclk, params_rate(params)); in wm8971_pcm_hw_params() local 536 if (coeff >= 0) in wm8971_pcm_hw_params() 538 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8971_pcm_hw_params()
|
D | wm8750.c | 586 int coeff = get_coeff(wm8750->sysclk, params_rate(params)); in wm8750_pcm_hw_params() local 605 if (coeff >= 0) in wm8750_pcm_hw_params() 607 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8750_pcm_hw_params()
|
D | wm8753.c | 1162 int coeff; in wm8753_i2s_hw_params() local 1165 coeff = get_coeff(wm8753->sysclk, params_rate(params)); in wm8753_i2s_hw_params() 1166 if (coeff < 0) { in wm8753_i2s_hw_params() 1168 return coeff; in wm8753_i2s_hw_params() 1170 snd_soc_component_write(component, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) | in wm8753_i2s_hw_params() 1171 coeff_div[coeff].usb); in wm8753_i2s_hw_params()
|
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-v4.19/drivers/iio/proximity/ |
D | isl29501.c | 274 u32 value, gain, coeff, exp; in isl29501_read_ext() local 293 ret = isl29501_register_read(isl29501, reg, &coeff); in isl29501_read_ext() 297 value = coeff << exp; in isl29501_read_ext() 310 enum isl29501_correction_coeff coeff; in isl29501_set_shadow_coeff() local 314 coeff = COEFF_TEMP_A; in isl29501_set_shadow_coeff() 317 coeff = COEFF_TEMP_B; in isl29501_set_shadow_coeff() 320 coeff = COEFF_LIGHT_A; in isl29501_set_shadow_coeff() 323 coeff = COEFF_LIGHT_B; in isl29501_set_shadow_coeff() 328 isl29501->shadow_coeffs[coeff] = val; in isl29501_set_shadow_coeff() 334 enum isl29501_correction_coeff coeff, in isl29501_write_coeff() argument [all …]
|
/Linux-v4.19/drivers/media/dvb-frontends/ |
D | af9033_priv.h | 39 struct coeff { struct 71 static const struct coeff coeff_lut[] = {
|
/Linux-v4.19/drivers/staging/fbtft/ |
D | fb_agm1264k-fl.c | 269 signed char coeff; in iterate_diffusion_matrix() local 275 coeff = diffusing_matrix[i][j]; in iterate_diffusion_matrix() 276 if (-1 == coeff) { in iterate_diffusion_matrix() 280 signed short p = *write_pos + error * coeff; in iterate_diffusion_matrix()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_color.c | 39 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0) argument 40 #define CTM_COEFF_ABS(coeff) ((coeff) & (CTM_COEFF_SIGN - 1)) argument 69 #define ILK_CSC_COEFF_FP(coeff, fbits) \ argument 70 (clamp_val(((coeff) >> (32 - (fbits) - 3)) + 4, 0, 0xfff) & 0xff8)
|
/Linux-v4.19/drivers/media/pci/cx88/ |
D | cx88-dsp.c | 110 s32 coeff = 2 * int_cos(freq); in int_goertzel() local 117 s32 s = x[i] + ((s64)coeff * s_prev / 32768) - s_prev2; in int_goertzel() 124 (s64)coeff * s_prev2 * s_prev / 32768; in int_goertzel()
|
/Linux-v4.19/Documentation/input/ |
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-v4.19/drivers/gpu/ipu-v3/ |
D | ipu-ic.c | 179 s16 coeff[3][3]; /* signed 9-bit integer coefficients */ member 191 .coeff = { 202 .coeff = { 216 .coeff = { 252 c = (const u16 (*)[3])params->coeff; in init_csc()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
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-v4.19/drivers/gpu/drm/vc4/ |
D | vc4_hvs.c | 110 #define VC4_INT_TO_COEFF(coeff) (coeff & 0x1ff) argument
|
/Linux-v4.19/drivers/media/platform/davinci/ |
D | dm355_ccdc.c | 475 val1 = (csc->coeff[i].integer & in ccdc_config_csc() 482 val1 |= (((csc->coeff[i].decimal & in ccdc_config_csc() 488 val2 = (csc->coeff[i].integer & in ccdc_config_csc() 491 val2 |= (((csc->coeff[i].decimal & in ccdc_config_csc()
|