Searched refs:coeff (Results 1 - 55 of 55) sorted by relevance

/linux-4.4.14/drivers/hwmon/pmbus/
H A Dlm25066.c435 struct __coeff *coeff; lm25066_probe() local
481 coeff = &lm25066_coeff[data->id][0]; lm25066_probe()
482 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m; lm25066_probe()
483 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b; lm25066_probe()
484 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R; lm25066_probe()
485 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; lm25066_probe()
486 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; lm25066_probe()
487 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; lm25066_probe()
488 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m; lm25066_probe()
489 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].b; lm25066_probe()
490 info->R[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].R; lm25066_probe()
491 info->b[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN].b; lm25066_probe()
492 info->R[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN].R; lm25066_probe()
493 info->b[PSC_POWER] = coeff[PSC_POWER].b; lm25066_probe()
494 info->R[PSC_POWER] = coeff[PSC_POWER].R; lm25066_probe()
496 info->m[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN_L].m; lm25066_probe()
497 info->m[PSC_POWER] = coeff[PSC_POWER_L].m; lm25066_probe()
499 info->m[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN].m; lm25066_probe()
500 info->m[PSC_POWER] = coeff[PSC_POWER].m; lm25066_probe()
/linux-4.4.14/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.c35 s32 ui, s32 coeff, s32 pcnt) dsi_dphy_timing_calc_clk_zero()
41 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; dsi_dphy_timing_calc_clk_zero()
65 s32 coeff = 1000; /* Precision, should avoid overflow */ msm_dsi_dphy_timing_calc() local
71 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); msm_dsi_dphy_timing_calc()
72 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); msm_dsi_dphy_timing_calc()
74 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; msm_dsi_dphy_timing_calc()
75 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; msm_dsi_dphy_timing_calc()
85 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); msm_dsi_dphy_timing_calc()
87 temp = 105 * coeff + 12 * ui - 20 * coeff; msm_dsi_dphy_timing_calc()
89 tmin = S_DIV_ROUND_UP(60 * coeff, ui) - 2; msm_dsi_dphy_timing_calc()
92 temp = 85 * coeff + 6 * ui; msm_dsi_dphy_timing_calc()
94 temp = 40 * coeff + 4 * ui; msm_dsi_dphy_timing_calc()
100 temp = 145 * coeff + 10 * ui - temp; msm_dsi_dphy_timing_calc()
104 temp = 105 * coeff + 12 * ui - 20 * coeff; msm_dsi_dphy_timing_calc()
106 temp = 60 * coeff + 4 * ui; msm_dsi_dphy_timing_calc()
111 tmin = S_DIV_ROUND_UP(100 * coeff, ui) - 2; msm_dsi_dphy_timing_calc()
116 temp = 60 * coeff + 52 * ui - 24 * ui - temp; msm_dsi_dphy_timing_calc()
34 dsi_dphy_timing_calc_clk_zero(struct msm_dsi_dphy_timing *timing, s32 ui, s32 coeff, s32 pcnt) dsi_dphy_timing_calc_clk_zero() argument
/linux-4.4.14/drivers/media/platform/ti-vpe/
H A Dcsc.c124 u16 *coeff, *end_coeff; csc_set_coeff() local
154 coeff = sd_hd_coeffs->sd; csc_set_coeff()
156 coeff = sd_hd_coeffs->hd; csc_set_coeff()
158 end_coeff = coeff + 12; csc_set_coeff()
160 for (; coeff < end_coeff; coeff += 2) csc_set_coeff()
161 *shadow_csc++ = (*(coeff + 1) << 16) | *coeff; csc_set_coeff()
H A Dsc.h178 * num phases x num sets(luma and chroma) x num taps(aligned) x coeff size
H A Dvpe.c394 struct vpdma_buf sc_coeff_h; /* h coeff buffer */
395 struct vpdma_buf sc_coeff_v; /* v coeff buffer */
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dar9003_calib.c28 struct coeff { struct
804 ath_dbg(common, CALIBRATE, "tx chain %d: iq corr coeff=%x\n", ar9003_hw_calc_iq_corr()
835 ath_dbg(common, CALIBRATE, "rx chain %d: iq corr coeff=%x\n", ar9003_hw_calc_iq_corr()
890 struct coeff *coeff, ar9003_hw_tx_iq_cal_outlier_detection()
931 ar9003_hw_detect_outlier(coeff->mag_coeff[i], ar9003_hw_tx_iq_cal_outlier_detection()
936 ar9003_hw_detect_outlier(coeff->phs_coeff[i], ar9003_hw_tx_iq_cal_outlier_detection()
943 magnitude = coeff->mag_coeff[i][im][0]; ar9003_hw_tx_iq_cal_outlier_detection()
944 phase = coeff->phs_coeff[i][im][0]; ar9003_hw_tx_iq_cal_outlier_detection()
946 coeff->iqc_coeff[0] = ar9003_hw_tx_iq_cal_outlier_detection()
952 coeff->iqc_coeff[0]); ar9003_hw_tx_iq_cal_outlier_detection()
956 coeff->iqc_coeff[0]); ar9003_hw_tx_iq_cal_outlier_detection()
960 coeff->iqc_coeff[0]; ar9003_hw_tx_iq_cal_outlier_detection()
1005 struct coeff *coeff, __ar955x_tx_iq_cal_sort()
1014 if (coeff->mag_coeff[i][im][iy] < __ar955x_tx_iq_cal_sort()
1015 coeff->mag_coeff[i][im][ix]) { __ar955x_tx_iq_cal_sort()
1016 temp = coeff->mag_coeff[i][im][ix]; __ar955x_tx_iq_cal_sort()
1017 coeff->mag_coeff[i][im][ix] = __ar955x_tx_iq_cal_sort()
1018 coeff->mag_coeff[i][im][iy]; __ar955x_tx_iq_cal_sort()
1019 coeff->mag_coeff[i][im][iy] = temp; __ar955x_tx_iq_cal_sort()
1021 if (coeff->phs_coeff[i][im][iy] < __ar955x_tx_iq_cal_sort()
1022 coeff->phs_coeff[i][im][ix]) { __ar955x_tx_iq_cal_sort()
1023 temp = coeff->phs_coeff[i][im][ix]; __ar955x_tx_iq_cal_sort()
1024 coeff->phs_coeff[i][im][ix] = __ar955x_tx_iq_cal_sort()
1025 coeff->phs_coeff[i][im][iy]; __ar955x_tx_iq_cal_sort()
1026 coeff->phs_coeff[i][im][iy] = temp; __ar955x_tx_iq_cal_sort()
1030 coeff->mag_coeff[i][im][0] = coeff->mag_coeff[i][im][MAXIQCAL / 2]; __ar955x_tx_iq_cal_sort()
1031 coeff->phs_coeff[i][im][0] = coeff->phs_coeff[i][im][MAXIQCAL / 2]; __ar955x_tx_iq_cal_sort()
1036 coeff->mag_coeff[i][im][0], __ar955x_tx_iq_cal_sort()
1037 coeff->phs_coeff[i][im][0]); __ar955x_tx_iq_cal_sort()
1042 struct coeff *coeff, ar955x_tx_iq_cal_median()
1052 __ar955x_tx_iq_cal_sort(ah, coeff, i, nmeasurement); ar955x_tx_iq_cal_median()
1073 static struct coeff coeff; ar9003_hw_tx_iq_cal_post_proc() local
1129 coeff.iqc_coeff)) { ar9003_hw_tx_iq_cal_post_proc()
1135 coeff.phs_coeff[i][im][iqcal_idx] = ar9003_hw_tx_iq_cal_post_proc()
1136 coeff.iqc_coeff[0] & 0x7f; ar9003_hw_tx_iq_cal_post_proc()
1137 coeff.mag_coeff[i][im][iqcal_idx] = ar9003_hw_tx_iq_cal_post_proc()
1138 (coeff.iqc_coeff[0] >> 7) & 0x7f; ar9003_hw_tx_iq_cal_post_proc()
1140 if (coeff.mag_coeff[i][im][iqcal_idx] > 63) ar9003_hw_tx_iq_cal_post_proc()
1141 coeff.mag_coeff[i][im][iqcal_idx] -= 128; ar9003_hw_tx_iq_cal_post_proc()
1142 if (coeff.phs_coeff[i][im][iqcal_idx] > 63) ar9003_hw_tx_iq_cal_post_proc()
1143 coeff.phs_coeff[i][im][iqcal_idx] -= 128; ar9003_hw_tx_iq_cal_post_proc()
1148 outlier_detect = ar955x_tx_iq_cal_median(ah, &coeff, ar9003_hw_tx_iq_cal_post_proc()
1151 ar9003_hw_tx_iq_cal_outlier_detection(ah, &coeff, is_reusable); ar9003_hw_tx_iq_cal_post_proc()
889 ar9003_hw_tx_iq_cal_outlier_detection(struct ath_hw *ah, struct coeff *coeff, bool is_reusable) ar9003_hw_tx_iq_cal_outlier_detection() argument
1004 __ar955x_tx_iq_cal_sort(struct ath_hw *ah, struct coeff *coeff, int i, int nmeasurement) __ar955x_tx_iq_cal_sort() argument
1041 ar955x_tx_iq_cal_median(struct ath_hw *ah, struct coeff *coeff, int iqcal_idx, int nmeasurement) ar955x_tx_iq_cal_median() argument
H A Dar9003_phy.c1052 * scaled coeff is 9/10 that of normal coeff ar9003_hw_set_delta_slope()
/linux-4.4.14/drivers/net/wireless/b43/
H A Dphy_n.h339 #define B43_NPHY_TXF_20CO_AS0 B43_PHY_N(0x0CC) /* TX filter 20 coeff A stage 0 */
340 #define B43_NPHY_TXF_20CO_AS1 B43_PHY_N(0x0CD) /* TX filter 20 coeff A stage 1 */
341 #define B43_NPHY_TXF_20CO_AS2 B43_PHY_N(0x0CE) /* TX filter 20 coeff A stage 2 */
342 #define B43_NPHY_TXF_20CO_B32S0 B43_PHY_N(0x0CF) /* TX filter 20 coeff B32 stage 0 */
343 #define B43_NPHY_TXF_20CO_B1S0 B43_PHY_N(0x0D0) /* TX filter 20 coeff B1 stage 0 */
344 #define B43_NPHY_TXF_20CO_B32S1 B43_PHY_N(0x0D1) /* TX filter 20 coeff B32 stage 1 */
345 #define B43_NPHY_TXF_20CO_B1S1 B43_PHY_N(0x0D2) /* TX filter 20 coeff B1 stage 1 */
346 #define B43_NPHY_TXF_20CO_B32S2 B43_PHY_N(0x0D3) /* TX filter 20 coeff B32 stage 2 */
347 #define B43_NPHY_TXF_20CO_B1S2 B43_PHY_N(0x0D4) /* TX filter 20 coeff B1 stage 2 */
363 #define B43_NPHY_TXF_40CO_AS0 B43_PHY_N(0x0E1) /* TX filter 40 coeff A stage 0 */
364 #define B43_NPHY_TXF_40CO_AS1 B43_PHY_N(0x0E2) /* TX filter 40 coeff A stage 1 */
365 #define B43_NPHY_TXF_40CO_AS2 B43_PHY_N(0x0E3) /* TX filter 40 coeff A stage 2 */
366 #define B43_NPHY_TXF_40CO_B32S0 B43_PHY_N(0x0E4) /* TX filter 40 coeff B32 stage 0 */
367 #define B43_NPHY_TXF_40CO_B1S0 B43_PHY_N(0x0E5) /* TX filter 40 coeff B1 stage 0 */
368 #define B43_NPHY_TXF_40CO_B32S1 B43_PHY_N(0x0E6) /* TX filter 40 coeff B32 stage 1 */
369 #define B43_NPHY_TXF_40CO_B1S1 B43_PHY_N(0x0E7) /* TX filter 40 coeff B1 stage 1 */
371 #define B43_NPHY_TXF_40CO_B32S2 B43_PHY_N(0x0E8) /* TX filter 40 coeff B32 stage 2 */
372 #define B43_NPHY_TXF_40CO_B1S2 B43_PHY_N(0x0E9) /* TX filter 40 coeff B1 stage 2 */
543 #define B43_NPHY_TXF_20CO_S0A1 B43_PHY_N(0x186) /* TX filter 20 coeff stage 0 A1 */
544 #define B43_NPHY_TXF_20CO_S0A2 B43_PHY_N(0x187) /* TX filter 20 coeff stage 0 A2 */
545 #define B43_NPHY_TXF_20CO_S1A1 B43_PHY_N(0x188) /* TX filter 20 coeff stage 1 A1 */
546 #define B43_NPHY_TXF_20CO_S1A2 B43_PHY_N(0x189) /* TX filter 20 coeff stage 1 A2 */
547 #define B43_NPHY_TXF_20CO_S2A1 B43_PHY_N(0x18A) /* TX filter 20 coeff stage 2 A1 */
548 #define B43_NPHY_TXF_20CO_S2A2 B43_PHY_N(0x18B) /* TX filter 20 coeff stage 2 A2 */
549 #define B43_NPHY_TXF_20CO_S0B1 B43_PHY_N(0x18C) /* TX filter 20 coeff stage 0 B1 */
550 #define B43_NPHY_TXF_20CO_S0B2 B43_PHY_N(0x18D) /* TX filter 20 coeff stage 0 B2 */
551 #define B43_NPHY_TXF_20CO_S0B3 B43_PHY_N(0x18E) /* TX filter 20 coeff stage 0 B3 */
552 #define B43_NPHY_TXF_20CO_S1B1 B43_PHY_N(0x18F) /* TX filter 20 coeff stage 1 B1 */
553 #define B43_NPHY_TXF_20CO_S1B2 B43_PHY_N(0x190) /* TX filter 20 coeff stage 1 B2 */
554 #define B43_NPHY_TXF_20CO_S1B3 B43_PHY_N(0x191) /* TX filter 20 coeff stage 1 B3 */
555 #define B43_NPHY_TXF_20CO_S2B1 B43_PHY_N(0x192) /* TX filter 20 coeff stage 2 B1 */
556 #define B43_NPHY_TXF_20CO_S2B2 B43_PHY_N(0x193) /* TX filter 20 coeff stage 2 B2 */
557 #define B43_NPHY_TXF_20CO_S2B3 B43_PHY_N(0x194) /* TX filter 20 coeff stage 2 B3 */
558 #define B43_NPHY_TXF_40CO_S0A1 B43_PHY_N(0x195) /* TX filter 40 coeff stage 0 A1 */
559 #define B43_NPHY_TXF_40CO_S0A2 B43_PHY_N(0x196) /* TX filter 40 coeff stage 0 A2 */
560 #define B43_NPHY_TXF_40CO_S1A1 B43_PHY_N(0x197) /* TX filter 40 coeff stage 1 A1 */
561 #define B43_NPHY_TXF_40CO_S1A2 B43_PHY_N(0x198) /* TX filter 40 coeff stage 1 A2 */
562 #define B43_NPHY_TXF_40CO_S2A1 B43_PHY_N(0x199) /* TX filter 40 coeff stage 2 A1 */
563 #define B43_NPHY_TXF_40CO_S2A2 B43_PHY_N(0x19A) /* TX filter 40 coeff stage 2 A2 */
564 #define B43_NPHY_TXF_40CO_S0B1 B43_PHY_N(0x19B) /* TX filter 40 coeff stage 0 B1 */
565 #define B43_NPHY_TXF_40CO_S0B2 B43_PHY_N(0x19C) /* TX filter 40 coeff stage 0 B2 */
566 #define B43_NPHY_TXF_40CO_S0B3 B43_PHY_N(0x19D) /* TX filter 40 coeff stage 0 B3 */
567 #define B43_NPHY_TXF_40CO_S1B1 B43_PHY_N(0x19E) /* TX filter 40 coeff stage 1 B1 */
568 #define B43_NPHY_TXF_40CO_S1B2 B43_PHY_N(0x19F) /* TX filter 40 coeff stage 1 B2 */
569 #define B43_NPHY_TXF_40CO_S1B3 B43_PHY_N(0x1A0) /* TX filter 40 coeff stage 1 B3 */
570 #define B43_NPHY_TXF_40CO_S2B1 B43_PHY_N(0x1A1) /* TX filter 40 coeff stage 2 B1 */
571 #define B43_NPHY_TXF_40CO_S2B2 B43_PHY_N(0x1A2) /* TX filter 40 coeff stage 2 B2 */
572 #define B43_NPHY_TXF_40CO_S2B3 B43_PHY_N(0x1A3) /* TX filter 40 coeff stage 2 B3 */
H A Dphy_lp.c1385 u32 iq_comp, tx_gain, coeff, rf_power; lpphy_set_tx_power_by_index() local
1410 coeff = b43_lptab_read(dev, B43_LPTAB32(7, index + 448)); lpphy_set_tx_power_by_index()
1412 coeff = b43_lptab_read(dev, B43_LPTAB32(10, index + 448)); lpphy_set_tx_power_by_index()
1414 b43_lptab_write(dev, B43_LPTAB16(0, 85), coeff & 0xFFFF); lpphy_set_tx_power_by_index()
/linux-4.4.14/drivers/media/platform/soc_camera/
H A Dmx2_camera.c587 unsigned int coeff[2] = {0, 0}; mx2_prp_resize_commit() local
598 coeff[j] = (coeff[j] << BC_COEF) | mx2_prp_resize_commit()
602 coeff[j] <<= 1; mx2_prp_resize_commit()
614 writel(coeff[0], pcdev->base_emma + mx2_prp_resize_commit()
616 writel(coeff[1], pcdev->base_emma + mx2_prp_resize_commit()
621 writel(coeff[0], pcdev->base_emma + mx2_prp_resize_commit()
623 writel(coeff[1], pcdev->base_emma + mx2_prp_resize_commit()
630 writel(coeff[0], pcdev->base_emma + mx2_prp_resize_commit()
632 writel(coeff[1], pcdev->base_emma + mx2_prp_resize_commit()
637 writel(coeff[0], pcdev->base_emma + mx2_prp_resize_commit()
639 writel(coeff[1], pcdev->base_emma + mx2_prp_resize_commit()
1073 int coeff, nxt; /* table output */ mx2_emmaprp_resize() local
1083 coeff = v - out_pos; mx2_emmaprp_resize()
1094 coeff = ((coeff << BC_COEF) + mx2_emmaprp_resize()
1097 if (coeff >= (SZ_COEF - 1)) mx2_emmaprp_resize()
1098 coeff--; mx2_emmaprp_resize()
1100 coeff |= SZ_COEF; mx2_emmaprp_resize()
1101 s[len] = (unsigned char)coeff; mx2_emmaprp_resize()
/linux-4.4.14/sound/soc/codecs/
H A Dwm8988.c675 int coeff; wm8988_pcm_hw_params() local
677 coeff = get_coeff(wm8988->sysclk, params_rate(params)); wm8988_pcm_hw_params()
678 if (coeff < 0) { wm8988_pcm_hw_params()
679 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); wm8988_pcm_hw_params()
682 if (coeff < 0) { wm8988_pcm_hw_params()
686 return coeff; wm8988_pcm_hw_params()
706 if (coeff >= 0) wm8988_pcm_hw_params()
708 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); wm8988_pcm_hw_params()
H A Dalc5623.c706 int coeff, rate; alc5623_pcm_hw_params() local
733 coeff = get_coeff(codec, rate); alc5623_pcm_hw_params()
734 if (coeff < 0) alc5623_pcm_hw_params()
737 coeff = coeff_div[coeff].regvalue; alc5623_pcm_hw_params()
738 dev_dbg(codec->dev, "%s: sysclk=%d,rate=%d,coeff=0x%04x\n", alc5623_pcm_hw_params()
739 __func__, alc5623->sysclk, rate, coeff); alc5623_pcm_hw_params()
740 snd_soc_write(codec, ALC5623_STEREO_AD_DA_CLK_CTRL, coeff); alc5623_pcm_hw_params()
H A Dwm8750.c497 printk(KERN_ERR "wm8750: could not get coeff for mclk %d @ rate %d\n", get_coeff()
586 int coeff = get_coeff(wm8750->sysclk, params_rate(params)); wm8750_pcm_hw_params() local
605 if (coeff >= 0) wm8750_pcm_hw_params()
607 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); wm8750_pcm_hw_params()
H A Dwm8971.c517 int coeff = get_coeff(wm8971->sysclk, params_rate(params)); wm8971_pcm_hw_params() local
536 if (coeff >= 0) wm8971_pcm_hw_params()
538 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); wm8971_pcm_hw_params()
H A Dalc5632.c874 int coeff, rate; alc5632_pcm_hw_params() local
898 coeff = get_coeff(codec, rate); alc5632_pcm_hw_params()
899 if (coeff < 0) alc5632_pcm_hw_params()
902 coeff = coeff_div[coeff].regvalue; alc5632_pcm_hw_params()
903 snd_soc_write(codec, ALC5632_DAC_CLK_CTRL1, coeff); alc5632_pcm_hw_params()
H A Drt5631.c1357 int timesofbclk = 32, coeff; rt5631_hifi_pcm_params() local
1370 coeff = get_coeff(rt5631->sysclk, rt5631->rx_rate, rt5631_hifi_pcm_params()
1373 coeff = get_coeff(rt5631->sysclk, rt5631->rx_rate, rt5631_hifi_pcm_params()
1375 if (coeff < 0) { rt5631_hifi_pcm_params()
1376 dev_err(codec->dev, "Fail to get coeff\n"); rt5631_hifi_pcm_params()
1377 return coeff; rt5631_hifi_pcm_params()
1399 coeff_div[coeff].reg_val); rt5631_hifi_pcm_params()
H A Dwm8753.c1162 int coeff; wm8753_i2s_hw_params() local
1165 coeff = get_coeff(wm8753->sysclk, params_rate(params)); wm8753_i2s_hw_params()
1166 if (coeff < 0) { wm8753_i2s_hw_params()
1168 return coeff; wm8753_i2s_hw_params()
1170 snd_soc_write(codec, WM8753_SRATE1, srate | (coeff_div[coeff].sr << 1) | wm8753_i2s_hw_params()
1171 coeff_div[coeff].usb); wm8753_i2s_hw_params()
H A Dab8500-codec.c61 /* Nr of FIR/IIR-coeff banks in ANC-block */
/linux-4.4.14/drivers/gpu/ipu-v3/
H A Dipu-ic.c177 s16 coeff[3][3]; /* signed 9-bit integer coefficients */ member in struct:ic_csc_params
189 .coeff = {
200 .coeff = {
214 .coeff = {
250 c = (const u16 (*)[3])params->coeff; init_csc()
323 dev_err(ipu->dev, "Warning! Overflow on resize coeff.\n"); calc_resize_coeffs()
/linux-4.4.14/sound/soc/intel/skylake/
H A Dskl-topology.h142 /* Pass the user coeff in this array */
143 s32 coeff[UP_DOWN_MIXER_MAX_COEFF]; member in struct:skl_up_down_mixer_cfg
H A Dskl-messages.c453 /* User coeff, don't care since we are selecting F/W defaults */ skl_set_updown_mixer_format()
455 mixer_mconfig->coeff[i] = 0xDEADBEEF; skl_set_updown_mixer_format()
/linux-4.4.14/drivers/staging/fbtft/
H A Dfb_agm1264k-fl.c326 signed char coeff; write_vmem() local
336 coeff = diffusing_matrix[i][j]; write_vmem()
337 if (coeff == -1) write_vmem()
342 error * coeff; write_vmem()
/linux-4.4.14/drivers/media/pci/cx88/
H A Dcx88-dsp.c103 s32 coeff = 2*int_cos(freq); int_goertzel() local
110 s32 s = x[i] + ((s64)coeff*s_prev/32768) - s_prev2; int_goertzel()
116 (s64)coeff * s_prev2 * s_prev / 32768; int_goertzel()
/linux-4.4.14/drivers/media/platform/s5p-mfc/
H A Dregs-mfc.h71 /* neighbor AC/DC coeff. */
127 /* upper Q coeff. */
133 /* upper Q coeff. */
304 #define S5P_FIMV_ENC_RC_RPARA 0xc5b0 /* rate control reaction coeff */
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgk20a.c451 u32 coeff, m, n_lo; gk20a_pllg_disable() local
453 coeff = nvkm_rd32(device, GPCPLL_COEFF); gk20a_pllg_disable()
454 m = (coeff >> GPCPLL_COEFF_M_SHIFT) & MASK(GPCPLL_COEFF_M_WIDTH); gk20a_pllg_disable()
/linux-4.4.14/drivers/iio/pressure/
H A Dt5403.c22 #define T5403_CALIB_DATA 0x8e /* 10 calibration coeff., LSB first, 16 bit */
/linux-4.4.14/drivers/isdn/hardware/mISDN/
H A Dhfcmulti.c1841 s32 *coeff; hfcmulti_dtmf() local
1866 coeff = &(hc->chan[ch].coeff[hc->chan[ch].coeff_count * 16]); hfcmulti_dtmf()
1891 coeff[co << 1] = mantissa; hfcmulti_dtmf()
1910 coeff[(co << 1) | 1] = mantissa; hfcmulti_dtmf()
1915 coeff[0], coeff[1], coeff[2], coeff[3], hfcmulti_dtmf()
1916 coeff[4], coeff[5], coeff[6], coeff[7]); hfcmulti_dtmf()
1929 memcpy(skb_put(skb, 512), hc->chan[ch].coeff, 512); hfcmulti_dtmf()
4591 kfree(hc->chan[i].coeff); release_port()
4614 kfree(hc->chan[ci - 2].coeff); release_port()
4628 kfree(hc->chan[ci - 1].coeff); release_port()
4847 hc->chan[ch].coeff = kzalloc(512, GFP_KERNEL); init_e1_port()
4848 if (!hc->chan[ch].coeff) { init_e1_port()
4920 hc->chan[i + ch].coeff = kzalloc(512, GFP_KERNEL); init_multi_port()
4921 if (!hc->chan[i + ch].coeff) { init_multi_port()
H A Dhfc_multi.h59 int coeff_count; /* curren coeff block */
60 s32 *coeff; /* memory pointer to 8 coeff blocks */ member in struct:hfc_chan
/linux-4.4.14/drivers/gpu/drm/i2c/
H A Dadv7511.c166 const uint16_t *coeff, adv7511_set_colormap()
178 0x1f, coeff[i] >> 8); adv7511_set_colormap()
181 coeff[i] & 0xff); adv7511_set_colormap()
165 adv7511_set_colormap(struct adv7511 *adv7511, bool enable, const uint16_t *coeff, unsigned int scaling_factor) adv7511_set_colormap() argument
/linux-4.4.14/drivers/media/platform/davinci/
H A Ddm355_ccdc.c568 val1 = (csc->coeff[i].integer & ccdc_config_csc()
575 val1 |= (((csc->coeff[i].decimal & ccdc_config_csc()
581 val2 = (csc->coeff[i].integer & ccdc_config_csc()
584 val2 |= (((csc->coeff[i].decimal & ccdc_config_csc()
H A Disif.c508 val1 = (df_csc->csc.coeff[i].integer << isif_config_csc()
510 df_csc->csc.coeff[i].decimal; isif_config_csc()
514 val2 = (df_csc->csc.coeff[i].integer << isif_config_csc()
516 df_csc->csc.coeff[i].decimal; isif_config_csc()
/linux-4.4.14/include/media/davinci/
H A Ddm355_ccdc.h145 struct ccdc_float coeff[CCDC_CSC_COEFF_TABLE_SIZE]; member in struct:ccdc_csc
H A Disif.h212 struct isif_float_8 coeff[ISIF_CSC_NUM_COEFF]; member in struct:isif_color_space_conv
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
H A Ddm365_isif.c450 if (csc->coeff[i].integer > isif_validate_df_csc_params()
452 csc->coeff[i].decimal > isif_validate_df_csc_params()
951 val1 = ((df_csc->csc.coeff[i].integer & isif_config_csc()
954 ((df_csc->csc.coeff[i].decimal & isif_config_csc()
959 val2 = ((df_csc->csc.coeff[i].integer & isif_config_csc()
962 ((df_csc->csc.coeff[i].decimal & isif_config_csc()
H A Ddavinci_vpfe_user.h346 struct float_8_bit coeff[VPFE_ISIF_CSC_NUM_COEFF]; member in struct:vpfe_isif_color_space_conv
/linux-4.4.14/drivers/video/fbdev/geode/
H A Dlxfb_ops.c638 /* save video coeff ram */ lx_save_regs()
764 /* restore video coeff ram */ lx_restore_video_proc()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dsi_dpm.c1770 static void si_calculate_leakage_for_v_and_t_formula(const struct ni_leakage_coeffients *coeff, si_calculate_leakage_for_v_and_t_formula() argument
1781 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); si_calculate_leakage_for_v_and_t_formula()
1782 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); si_calculate_leakage_for_v_and_t_formula()
1783 av = div64_s64(drm_int2fixp(coeff->av), 100000000); si_calculate_leakage_for_v_and_t_formula()
1784 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); si_calculate_leakage_for_v_and_t_formula()
1785 t_ref = drm_int2fixp(coeff->t_ref); si_calculate_leakage_for_v_and_t_formula()
1798 const struct ni_leakage_coeffients *coeff, si_calculate_leakage_for_v_and_t()
1804 si_calculate_leakage_for_v_and_t_formula(coeff, v, t, i_leakage, leakage); si_calculate_leakage_for_v_and_t()
1807 static void si_calculate_leakage_for_v_formula(const struct ni_leakage_coeffients *coeff, si_calculate_leakage_for_v_formula() argument
1817 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 100000000), si_calculate_leakage_for_v_formula()
1818 drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bv), 100000000), vddc))); si_calculate_leakage_for_v_formula()
1826 const struct ni_leakage_coeffients *coeff, si_calculate_leakage_for_v()
1832 si_calculate_leakage_for_v_formula(coeff, fixed_kt, v, i_leakage, leakage); si_calculate_leakage_for_v()
1797 si_calculate_leakage_for_v_and_t(struct radeon_device *rdev, const struct ni_leakage_coeffients *coeff, u16 v, s32 t, u32 i_leakage, u32 *leakage) si_calculate_leakage_for_v_and_t() argument
1825 si_calculate_leakage_for_v(struct radeon_device *rdev, const struct ni_leakage_coeffients *coeff, const u32 fixed_kt, u16 v, u32 i_leakage, u32 *leakage) si_calculate_leakage_for_v() argument
H A Dni_dpm.c740 static void ni_calculate_leakage_for_v_and_t_formula(const struct ni_leakage_coeffients *coeff, ni_calculate_leakage_for_v_and_t_formula() argument
751 kt = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->at), 1000), ni_calculate_leakage_for_v_and_t_formula()
752 drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bt), 1000), temperature))); ni_calculate_leakage_for_v_and_t_formula()
753 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 1000), ni_calculate_leakage_for_v_and_t_formula()
754 drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bv), 1000), vddc))); ni_calculate_leakage_for_v_and_t_formula()
762 const struct ni_leakage_coeffients *coeff, ni_calculate_leakage_for_v_and_t()
768 ni_calculate_leakage_for_v_and_t_formula(coeff, v, t, i_leakage, leakage); ni_calculate_leakage_for_v_and_t()
761 ni_calculate_leakage_for_v_and_t(struct radeon_device *rdev, const struct ni_leakage_coeffients *coeff, u16 v, s32 t, u32 i_leakage, u32 *leakage) ni_calculate_leakage_for_v_and_t() argument
/linux-4.4.14/drivers/media/usb/gspca/
H A Dov534_9.c1300 sccb_write(gspca_dev, 0x56, /* cnst1 - contrast 1 ctrl coeff */ setcontrast()
1366 sccb_write(gspca_dev, 0x4f, val3); /* matrix coeff */ setsatur()
1372 sccb_write(gspca_dev, 0x58, 0x1a); /* mtxs - coeff signs */ setsatur()
H A Dspca501.c1651 {0x01, 0x000f, 0x0008}, /* A11 Color correction coeff */
/linux-4.4.14/drivers/media/dvb-frontends/
H A Daf9033_priv.h40 struct coeff { struct
71 /* pre-calculated coeff lookup table */
72 static const struct coeff coeff_lut[] = {
H A Daf9013_priv.h52 /* pre-calculated coeff lookup table */
/linux-4.4.14/drivers/iio/common/ms_sensors/
H A Dms_sensors_i2c.c529 * ms_sensors_tp_read_prom() - prom coeff read function
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dreg.h2370 /*RxIQ imblance matrix coeff. A & B*/
2372 /*RxIQ imblance matrix coeff. C & D*/
2378 /*RxIQ imblance matrix coeff. A & B*/
2380 /*RxIQ imblance matrix coeff. C & D*/
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
H A Ddevices.c354 /* offset = temp - volt / coeff */ iwl_temp_calib_to_offset()
/linux-4.4.14/drivers/gpu/drm/exynos/
H A Dexynos_dp_core.c1168 if (of_property_read_u32(dp_node, "samsung,ycbcr-coeff", exynos_dp_dt_parse_pdata()
1170 dev_err(dev, "failed to get ycbcr-coeff\n"); exynos_dp_dt_parse_pdata()
/linux-4.4.14/drivers/media/i2c/
H A Dov9650.c156 #define REG_COM16 0x41 /* Color matrix coeff options */
290 { REG_COM16, 0x02 }, /* Color matrix coeff double option */
H A Dadv7842.c1750 /* A coeff */ sdp_csc_coeff()
1762 /* B coeff */ sdp_csc_coeff()
1774 /* C coeff */ sdp_csc_coeff()
/linux-4.4.14/drivers/iio/light/
H A Dltr501.c304 /* IR and visible spectrum coeff's are given in data sheet */ ltr501_calculate_lux()
/linux-4.4.14/include/uapi/linux/
H A Dixjuser.h717 unsigned int coeff[19]; member in struct:__anon14191
/linux-4.4.14/drivers/net/wireless/
H A Dairo.c954 u32 coeff[((EMMH32_MSGLEN_MAX)+3)>>2]; member in struct:__anon8033
1627 context->accum += (u64)(val) * context->coeff[coeff_position++];
1636 /* run through AES counter mode to generate context->coeff[] */ emmh32_setseed()
1644 for (i = 0; i < ARRAY_SIZE(context->coeff); ) { emmh32_setseed()
1653 for (j = 0; (j < 16) && (i < ARRAY_SIZE(context->coeff)); ) { emmh32_setseed()
1654 context->coeff[i++] = ntohl(*(__be32 *)&cipher[j]); emmh32_setseed()
/linux-4.4.14/drivers/dma/ipu/
H A Dipu_idmac.c485 dev_err(ipu_data.dev, "Warning! Overflow on resize coeff.\n"); calc_resize_coeffs()
/linux-4.4.14/sound/pci/nm256/
H A Dnm256.c226 unsigned int coeffs_current: 1; /* coeff. table is loaded? */
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_ddi.c2855 /* Write coeff */ bxt_ddi_pll_enable()
H A Dintel_display.c8666 uint16_t coeff = 0x7800; /* 1.0 */ intel_set_pipe_csc() local
8670 * with these coeff/postoff values and adjust to get the best intel_set_pipe_csc()
8676 coeff = ((235 - 16) * (1 << 12) / 255) & 0xff8; /* 0.xxx... */ intel_set_pipe_csc()
8683 I915_WRITE(PIPE_CSC_COEFF_RY_GY(pipe), coeff << 16); intel_set_pipe_csc() local
8686 I915_WRITE(PIPE_CSC_COEFF_RU_GU(pipe), coeff); intel_set_pipe_csc() local
8690 I915_WRITE(PIPE_CSC_COEFF_BV(pipe), coeff << 16); intel_set_pipe_csc() local

Completed in 2898 milliseconds