Home
last modified time | relevance | path

Searched refs:coeff (Results 1 – 25 of 36) sorted by relevance

12

/drivers/media/platform/ti/vpe/
A Dcsc.c195 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 …]
/drivers/gpu/ipu-v3/
A Dipu-ic-csc.c19 .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/
A Ddsi_phy.c83 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()
414 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v4()
[all …]
/drivers/hwmon/pmbus/
A Dlm25066.c470 const struct __coeff *coeff; in lm25066_probe() local
512 coeff = &lm25066_coeff[data->id][0]; in lm25066_probe()
516 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m; in lm25066_probe()
517 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b; in lm25066_probe()
518 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R; in lm25066_probe()
522 info->R[PSC_CURRENT_IN] = coeff[PSC_CURRENT_IN].R; in lm25066_probe()
523 info->R[PSC_POWER] = coeff[PSC_POWER].R; in lm25066_probe()
527 info->m[PSC_POWER] = coeff[PSC_POWER_L].m; in lm25066_probe()
528 info->b[PSC_POWER] = coeff[PSC_POWER_L].b; in lm25066_probe()
532 info->m[PSC_POWER] = coeff[PSC_POWER].m; in lm25066_probe()
[all …]
/drivers/gpu/drm/amd/display/modules/color/
A Dcolor_gamma.c813 point->coeff, in calculate_mapped_value()
936 coeff = kvzalloc(sizeof(*coeff), GFP_KERNEL); in build_regamma()
937 if (!coeff) in build_regamma()
960 kvfree(coeff); in build_regamma()
1594 ++coeff; in calculate_interpolated_hardware_curve()
1745 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_degamma_params()
1747 if (!coeff) in mod_color_calculate_degamma_params()
1816 kvfree(coeff); in mod_color_calculate_degamma_params()
1975 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_regamma_params()
1977 if (!coeff) in mod_color_calculate_regamma_params()
[all …]
A Dcolor_gamma.h75 struct regamma_coeff coeff; member
/drivers/net/wireless/ath/ath9k/
A Dar9003_calib.c28 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
1025 coeff->mag_coeff[i][im][0] = coeff->mag_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort()
1026 coeff->phs_coeff[i][im][0] = coeff->phs_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort()
1037 struct coeff *coeff, in ar955x_tx_iq_cal_median() argument
1068 static struct coeff coeff; in ar9003_hw_tx_iq_cal_post_proc() local
[all …]
/drivers/firmware/cirrus/test/
A Dcs_dsp_test_wmfw_error.c720 __le32 *alg_data, *coeff; in wmfw_v2_coeff_block_size_exceeds_block() local
749 coeff[1] = cpu_to_le32(le32_to_cpu(coeff[1]) + 1); in wmfw_v2_coeff_block_size_exceeds_block()
803 memset(coeff->descr, 0, sizeof(coeff->descr)); in wmfw_v1_coeff_name_unterminated()
804 memset(coeff->name, 'A', sizeof(coeff->name)); in wmfw_v1_coeff_name_unterminated()
805 memset(coeff->descr, 'A', sizeof(coeff->descr) - 1); in wmfw_v1_coeff_name_unterminated()
813 KUNIT_ASSERT_EQ(test, strnlen(coeff->name, sizeof(coeff->name)), in wmfw_v1_coeff_name_unterminated()
814 sizeof(coeff->name)); in wmfw_v1_coeff_name_unterminated()
839 __le32 *alg_data, *coeff; in wmfw_v2_coeff_shortname_exceeds_block() local
868 coeff[2] = cpu_to_le32(le32_to_cpu(coeff[2]) + 1); in wmfw_v2_coeff_shortname_exceeds_block()
919 fullname = &coeff[2] + (shortlen / sizeof(*coeff)); in wmfw_v2_coeff_fullname_exceeds_block()
[all …]
/drivers/gpu/drm/i915/display/
A Dintel_color.c229 csc->coeff[0] << 16 | csc->coeff[1]); in ilk_update_pipe_csc()
234 csc->coeff[3] << 16 | csc->coeff[4]); in ilk_update_pipe_csc()
239 csc->coeff[6] << 16 | csc->coeff[7]); in ilk_update_pipe_csc()
335 csc->coeff[0] << 16 | csc->coeff[1]); in icl_update_output_csc()
340 csc->coeff[3] << 16 | csc->coeff[4]); in icl_update_output_csc()
345 csc->coeff[6] << 16 | csc->coeff[7]); in icl_update_output_csc()
643 csc->coeff[1] << 16 | csc->coeff[0]); in vlv_load_wgc_csc()
648 csc->coeff[4] << 16 | csc->coeff[3]); in vlv_load_wgc_csc()
653 csc->coeff[7] << 16 | csc->coeff[6]); in vlv_load_wgc_csc()
745 csc->coeff[1] << 16 | csc->coeff[0]); in chv_load_cgm_csc()
[all …]
A Dintel_crtc_state_dump.c152 csc->coeff[3 * i + 0], in ilk_dump_csc()
153 csc->coeff[3 * i + 1], in ilk_dump_csc()
154 csc->coeff[3 * i + 2]); in ilk_dump_csc()
171 csc->coeff[3 * i + 0], in vlv_dump_csc()
172 csc->coeff[3 * i + 1], in vlv_dump_csc()
173 csc->coeff[3 * i + 2]); in vlv_dump_csc()
/drivers/media/test-drivers/vicodec/
A Dcodec-fwht.c140 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 …]
/drivers/iio/proximity/
A Disl29501.c266 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/media/platform/verisilicon/
A Dhantro_vp9.c107 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()
/drivers/iio/light/
A Drohm-bu27034.c637 helper64 = (u64)coeff * (u64)ch1 * (u64)ch1; in bu27034_fixp_calc_t1_64bit()
652 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, in bu27034_fixp_calc_t1() argument
663 helper = coeff * ch1 * ch1; in bu27034_fixp_calc_t1()
668 if (check_mul_overflow(helper, coeff, &helper)) in bu27034_fixp_calc_t1()
669 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
672 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1); in bu27034_fixp_calc_t1()
684 if (!check_mul_overflow(coeff, ch, &helper)) in bu27034_fixp_calc_t23()
687 helper64 = (u64)coeff * (u64)ch; in bu27034_fixp_calc_t23()
697 static const struct bu27034_lx_coeff coeff[] = { in bu27034_fixp_calc_lx() local
710 const struct bu27034_lx_coeff *c = &coeff[coeff_idx]; in bu27034_fixp_calc_lx()
[all …]
/drivers/net/dsa/mv88e6xxx/
A Dglobal1_atu.c47 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()
/drivers/media/dvb-frontends/
A Daf9033_priv.h30 struct coeff { struct
62 static const struct coeff coeff_lut[] = {
/drivers/media/platform/rockchip/rkvdec/
A Drkvdec-vp9.c99 u32 coeff[3]; member
971 for (m = 0; m < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0][0][0]); ++m) {\ in rkvdec_init_v4l2_vp9_count_tbl()
972 vp9_ctx->inter_cnts.coeff[i][j][k][l][m] = \ in rkvdec_init_v4l2_vp9_count_tbl()
973 &inter_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl()
979 vp9_ctx->intra_cnts.coeff[i][j][k][l][m] = \ in rkvdec_init_v4l2_vp9_count_tbl()
980 &intra_cnts->ref_cnt[k][i][j][l][m].coeff; \ in rkvdec_init_v4l2_vp9_count_tbl()
988 for (i = 0; i < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff); ++i) in rkvdec_init_v4l2_vp9_count_tbl()
989 for (j = 0; j < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0]); ++j) in rkvdec_init_v4l2_vp9_count_tbl()
990 for (k = 0; k < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0]); ++k) in rkvdec_init_v4l2_vp9_count_tbl()
991 for (l = 0; l < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0][0]); ++l) in rkvdec_init_v4l2_vp9_count_tbl()
/drivers/staging/fbtft/
A Dfb_agm1264k-fl.c256 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()
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
A Dgm20b.c194 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/
A Dcx88-dsp.c101 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/isdn/hardware/mISDN/
A Dhfcmulti.c1797 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()
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()
4806 if (!hc->chan[ch].coeff) { in init_e1_port()
[all …]
/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dopp.h189 struct fixed31_32 coeff; member
/drivers/gpu/drm/bridge/adv7511/
A Dadv7511_drv.c140 const uint16_t *coeff, in adv7511_set_colormap() argument
152 0x1f, coeff[i] >> 8); in adv7511_set_colormap()
155 coeff[i] & 0xff); in adv7511_set_colormap()
/drivers/staging/media/ipu3/
A Dipu3-css-params.c76 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/
A Dsi_dpm.c1717 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()
1753 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 100000000), in si_calculate_leakage_for_v_formula()
1754 drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bv), 100000000), vddc))); in si_calculate_leakage_for_v_formula()
1762 const struct ni_leakage_coeffients *coeff, in si_calculate_leakage_for_v() argument
[all …]

Completed in 93 milliseconds

12