/drivers/media/platform/ti-vpe/ |
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 …]
|
/drivers/gpu/ipu-v3/ |
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 …]
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.c | 27 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero() argument 33 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 59 s32 coeff = 1000; /* Precision, should avoid overflow */ in msm_dsi_dphy_timing_calc() local 65 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc() 66 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc() 68 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() 69 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() 79 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); in msm_dsi_dphy_timing_calc() 81 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc() 83 tmin = S_DIV_ROUND_UP(60 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc() [all …]
|
/drivers/hwmon/pmbus/ |
D | lm25066.c | 449 struct __coeff *coeff; in lm25066_probe() local 490 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe() 491 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m; in lm25066_probe() 492 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b; in lm25066_probe() 493 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R; in lm25066_probe() 494 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe() 495 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe() 496 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe() 497 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m; in lm25066_probe() 498 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].b; in lm25066_probe() [all …]
|
/drivers/gpu/drm/amd/display/modules/color/ |
D | color_gamma.c | 460 struct gamma_coefficients *coeff, in translate_from_linear_space_ex() argument 467 scratch_gamma_args.a0 = coeff->a0[color_index]; in translate_from_linear_space_ex() 468 scratch_gamma_args.a1 = coeff->a1[color_index]; in translate_from_linear_space_ex() 469 scratch_gamma_args.a2 = coeff->a2[color_index]; in translate_from_linear_space_ex() 470 scratch_gamma_args.a3 = coeff->a3[color_index]; in translate_from_linear_space_ex() 471 scratch_gamma_args.gamma = coeff->user_gamma[color_index]; in translate_from_linear_space_ex() 480 struct gamma_coefficients *coeff, in translate_to_linear_space_ex() argument 485 coeff->a0[color_index], in translate_to_linear_space_ex() 486 coeff->a1[color_index], in translate_to_linear_space_ex() 487 coeff->a2[color_index], in translate_to_linear_space_ex() [all …]
|
D | color_gamma.h | 75 struct regamma_coeff coeff; member
|
/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 …]
|
/drivers/media/test-drivers/vicodec/ |
D | codec-fwht.c | 139 int coeff; in derlc() local 145 coeff = in >> 4; in derlc() 156 *wp++ = coeff; in derlc() 195 static void quantize_intra(s16 *coeff, s16 *de_coeff, u16 qp) in quantize_intra() argument 201 for (i = 0; i < 8; i++, quant++, coeff++, de_coeff++) { in quantize_intra() 202 *coeff >>= *quant; in quantize_intra() 203 if (*coeff >= -qp && *coeff <= qp) in quantize_intra() 204 *coeff = *de_coeff = 0; in quantize_intra() 206 *de_coeff = *coeff << *quant; in quantize_intra() 211 static void dequantize_intra(s16 *coeff) in dequantize_intra() argument [all …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_color.c | 40 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0) argument 41 #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) 154 const u16 coeff[9], in ilk_update_pipe_csc() 165 coeff[0] << 16 | coeff[1]); in ilk_update_pipe_csc() 166 intel_de_write(dev_priv, PIPE_CSC_COEFF_BY(pipe), coeff[2] << 16); in ilk_update_pipe_csc() 169 coeff[3] << 16 | coeff[4]); in ilk_update_pipe_csc() 170 intel_de_write(dev_priv, PIPE_CSC_COEFF_BU(pipe), coeff[5] << 16); in ilk_update_pipe_csc() 173 coeff[6] << 16 | coeff[7]); in ilk_update_pipe_csc() [all …]
|
/drivers/iio/proximity/ |
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 …]
|
/drivers/net/dsa/mv88e6xxx/ |
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()
|
/drivers/media/dvb-frontends/ |
D | af9033_priv.h | 30 struct coeff { struct 62 static const struct coeff coeff_lut[] = {
|
/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()
|
/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()
|
/drivers/media/pci/cx88/ |
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()
|
/drivers/media/platform/davinci/ |
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()
|
D | isif.c | 493 val1 = (df_csc->csc.coeff[i].integer << in isif_config_csc() 495 df_csc->csc.coeff[i].decimal; in isif_config_csc() 499 val2 = (df_csc->csc.coeff[i].integer << in isif_config_csc() 501 df_csc->csc.coeff[i].decimal; in isif_config_csc()
|
/drivers/staging/media/rkisp1/uapi/ |
D | rkisp1-config.h | 503 __u16 coeff[3][3]; member 619 __u16 coeff[RKISP1_CIF_ISP_DPF_MAX_NLF_COEFFS]; member
|
/drivers/isdn/hardware/mISDN/ |
D | hfcmulti.c | 1827 s32 *coeff; in hfcmulti_dtmf() local 1852 coeff = &(hc->chan[ch].coeff[hc->chan[ch].coeff_count * 16]); in hfcmulti_dtmf() 1877 coeff[co << 1] = mantissa; in hfcmulti_dtmf() 1896 coeff[(co << 1) | 1] = mantissa; in hfcmulti_dtmf() 1901 coeff[0], coeff[1], coeff[2], coeff[3], in hfcmulti_dtmf() 1902 coeff[4], coeff[5], coeff[6], coeff[7]); in hfcmulti_dtmf() 1915 skb_put_data(skb, hc->chan[ch].coeff, 512); in hfcmulti_dtmf() 4580 kfree(hc->chan[i].coeff); in release_port() 4603 kfree(hc->chan[ci - 2].coeff); in release_port() 4617 kfree(hc->chan[ci - 1].coeff); in release_port() [all …]
|
/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | opp.h | 173 struct fixed31_32 coeff; member
|
/drivers/gpu/drm/vc4/ |
D | vc4_hvs.c | 101 #define VC4_INT_TO_COEFF(coeff) (coeff & 0x1ff) argument
|
/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_drv.c | 136 const uint16_t *coeff, in adv7511_set_colormap() argument 148 0x1f, coeff[i] >> 8); in adv7511_set_colormap() 151 coeff[i] & 0xff); in adv7511_set_colormap()
|
/drivers/staging/media/ipu3/ |
D | ipu3-css-params.c | 76 s64 coeff = coeffs[coeffs_size - in imgu_css_scaler_setup_lut() local 78 coeff *= mantissa; in imgu_css_scaler_setup_lut() 79 coeff = div64_long(coeff, input_width); in imgu_css_scaler_setup_lut() 82 coeff += 1 << (IMGU_SCALER_COEFF_BITS - 1); in imgu_css_scaler_setup_lut() 83 coeff >>= IMGU_SCALER_COEFF_BITS; in imgu_css_scaler_setup_lut() 84 coeff_lut[phase_taps + tap] = coeff; in imgu_css_scaler_setup_lut()
|
/drivers/gpu/drm/radeon/ |
D | si_dpm.c | 1753 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 1764 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1765 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1766 av = div64_s64(drm_int2fixp(coeff->av), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1767 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1768 t_ref = drm_int2fixp(coeff->t_ref); in si_calculate_leakage_for_v_and_t_formula() 1781 const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_and_t() argument 1787 si_calculate_leakage_for_v_and_t_formula(coeff, v, t, i_leakage, leakage); in si_calculate_leakage_for_v_and_t() 1790 static void si_calculate_leakage_for_v_formula(const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_formula() argument 1800 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 100000000), in si_calculate_leakage_for_v_formula() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/ |
D | si_dpm.c | 1843 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 1854 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1855 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1856 av = div64_s64(drm_int2fixp(coeff->av), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1857 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1858 t_ref = drm_int2fixp(coeff->t_ref); in si_calculate_leakage_for_v_and_t_formula() 1871 const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_and_t() argument 1877 si_calculate_leakage_for_v_and_t_formula(coeff, v, t, i_leakage, leakage); in si_calculate_leakage_for_v_and_t() 1880 static void si_calculate_leakage_for_v_formula(const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v_formula() argument 1890 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 100000000), in si_calculate_leakage_for_v_formula() [all …]
|