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

123

/linux-master/drivers/gpu/ipu-v3/
H 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...]
/linux-master/drivers/media/platform/ti/vpe/
H A Dcsc.c27 u16 coeff[12]; member in struct:quantization
144 u16 *coeff, *end_coeff; local
195 coeff = csc_coeffs.y2r.r601.full.coeff;
197 coeff = csc_coeffs.y2r.r601.limited.coeff;
200 coeff = csc_coeffs.y2r.r709.full.coeff;
202 coeff = csc_coeffs.y2r.r709.limited.coeff;
[all...]
/linux-master/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy.c29 s32 ui, s32 coeff, s32 pcnt)
35 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui;
61 s32 coeff = 1000; /* Precision, should avoid overflow */ local
67 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000);
68 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000);
70 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2;
71 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2;
81 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2);
83 temp = 105 * coeff + 12 * ui - 20 * coeff;
28 dsi_dphy_timing_calc_clk_zero(struct msm_dsi_dphy_timing *timing, s32 ui, s32 coeff, s32 pcnt) argument
158 s32 coeff = 1000; /* Precision, should avoid overflow */ local
274 s32 coeff = 1000; /* Precision, should avoid overflow */ local
385 s32 coeff = 1000; /* Precision, should avoid overflow */ local
476 s32 coeff = 1000; /* Precision, should avoid overflow */ local
[all...]
/linux-master/drivers/hwmon/pmbus/
H A Dlm25066.c470 const struct __coeff *coeff; local
512 coeff = &lm25066_coeff[data->id][0];
513 info->m[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].m;
514 info->b[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].b;
515 info->R[PSC_TEMPERATURE] = coeff[PSC_TEMPERATURE].R;
516 info->m[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].m;
517 info->b[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].b;
518 info->R[PSC_VOLTAGE_IN] = coeff[PSC_VOLTAGE_IN].R;
519 info->m[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OUT].m;
520 info->b[PSC_VOLTAGE_OUT] = coeff[PSC_VOLTAGE_OU
[all...]
/linux-master/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c578 struct gamma_coefficients *coeff,
585 scratch_gamma_args.a0 = coeff->a0[color_index];
586 scratch_gamma_args.a1 = coeff->a1[color_index];
587 scratch_gamma_args.a2 = coeff->a2[color_index];
588 scratch_gamma_args.a3 = coeff->a3[color_index];
589 scratch_gamma_args.gamma = coeff->user_gamma[color_index];
598 struct gamma_coefficients *coeff,
603 coeff->a0[color_index],
604 coeff->a1[color_index],
605 coeff
576 translate_from_linear_space_ex( struct fixed31_32 arg, struct gamma_coefficients *coeff, uint32_t color_index, struct calculate_buffer *cal_buffer) argument
596 translate_to_linear_space_ex( struct fixed31_32 arg, struct gamma_coefficients *coeff, uint32_t color_index) argument
690 build_custom_gamma_mapping_coefficients_worker( const struct dc_gamma *ramp, struct pixel_gamma_point *coeff, const struct hw_x_point *coordinates_x, const struct gamma_pixel *axis_x, enum channel_name channel, uint32_t number_of_points) argument
782 calculate_mapped_value( struct pwl_float_data *rgb, const struct pixel_gamma_point *coeff, enum channel_name channel, uint32_t max_index) argument
932 struct gamma_coefficients *coeff; local
1185 struct gamma_coefficients coeff; local
1634 const struct pixel_gamma_point *coeff = coeff128; local
1792 struct gamma_coefficients coeff; local
1863 struct gamma_coefficients coeff; local
1986 struct pixel_gamma_point *coeff = NULL; local
2228 struct pixel_gamma_point *coeff = NULL; local
[all...]
H A Dcolor_gamma.h48 unsigned int coeffFromUser :1; //coeff. A0-A3 from user is in use
49 unsigned int coeffFromEdid :1; //coeff. A0-A3 from edid is in use
75 struct regamma_coeff coeff; member in union:regamma_lut::__anon544
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dar9003_calib.c28 struct coeff { struct
803 ath_dbg(common, CALIBRATE, "tx chain %d: iq corr coeff=%x\n",
834 ath_dbg(common, CALIBRATE, "rx chain %d: iq corr coeff=%x\n",
889 struct coeff *coeff,
930 ar9003_hw_detect_outlier(coeff->mag_coeff[i],
935 ar9003_hw_detect_outlier(coeff->phs_coeff[i],
942 magnitude = coeff->mag_coeff[i][im][0];
943 phase = coeff->phs_coeff[i][im][0];
945 coeff
888 ar9003_hw_tx_iq_cal_outlier_detection(struct ath_hw *ah, struct coeff *coeff, bool is_reusable) argument
1003 __ar955x_tx_iq_cal_sort(struct ath_hw *ah, struct coeff *coeff, int i, int nmeasurement) argument
1036 ar955x_tx_iq_cal_median(struct ath_hw *ah, struct coeff *coeff, int iqcal_idx, int nmeasurement) argument
1068 static struct coeff coeff; local
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_color.c97 #define CTM_COEFF_NEGATIVE(coeff) (((coeff) & CTM_COEFF_SIGN) != 0)
98 #define CTM_COEFF_ABS(coeff) ((coeff) & (CTM_COEFF_SIGN - 1))
126 #define ILK_CSC_COEFF_FP(coeff, fbits) \
127 (clamp_val(((coeff) >> (32 - (fbits) - 3)) + 4, 0, 0xfff) & 0xff8)
135 .coeff = {
146 .coeff = {
161 .coeff = {
218 csc->coeff[
576 ctm_to_twos_complement(u64 coeff, int int_bits, int frac_bits) argument
[all...]
H A Dintel_crtc_state_dump.c174 csc->coeff[3 * i + 0],
175 csc->coeff[3 * i + 1],
176 csc->coeff[3 * i + 2]);
195 csc->coeff[3 * i + 0],
196 csc->coeff[3 * i + 1],
197 csc->coeff[3 * i + 2]);
/linux-master/drivers/media/test-drivers/vicodec/
H A Dcodec-fwht.c140 int coeff; local
146 coeff = in >> 4;
157 *wp++ = coeff;
196 static void quantize_intra(s16 *coeff, s16 *de_coeff, u16 qp) argument
202 for (i = 0; i < 8; i++, quant++, coeff++, de_coeff++) {
203 *coeff >>= *quant;
204 if (*coeff >= -qp && *coeff <= qp)
205 *coeff = *de_coeff = 0;
207 *de_coeff = *coeff << *quan
212 dequantize_intra(s16 *coeff) argument
222 quantize_inter(s16 *coeff, s16 *de_coeff, u16 qp) argument
238 dequantize_inter(s16 *coeff) argument
[all...]
/linux-master/drivers/media/platform/verisilicon/
H 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)
152 for (j = 0; j < ARRAY_SIZE(vp9_ctx->cnts.coeff[i]); ++j)
153 for (k = 0; k < ARRAY_SIZE(vp9_ctx->cnts.coeff[i][0]); ++k)
154 for (l = 0; l < ARRAY_SIZE(vp9_ctx->cnts.coeff[i][0][0]); ++l)
/linux-master/drivers/iio/proximity/
H A Disl29501.c266 u32 value, gain, coeff, exp; local
285 ret = isl29501_register_read(isl29501, reg, &coeff);
289 value = coeff << exp;
302 enum isl29501_correction_coeff coeff; local
306 coeff = COEFF_TEMP_A;
309 coeff = COEFF_TEMP_B;
312 coeff = COEFF_LIGHT_A;
315 coeff = COEFF_LIGHT_B;
320 isl29501->shadow_coeffs[coeff] = val;
326 enum isl29501_correction_coeff coeff,
325 isl29501_write_coeff(struct isl29501_private *isl29501, enum isl29501_correction_coeff coeff, int val) argument
[all...]
/linux-master/sound/soc/codecs/
H A Dwm8988.c672 int coeff; local
674 coeff = get_coeff(wm8988->sysclk, params_rate(params));
675 if (coeff < 0) {
676 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params));
679 if (coeff < 0) {
683 return coeff;
703 if (coeff >= 0)
705 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb);
H A Dmsm8916-wcd-digital.c433 u32 coeff[BAND_MAX]; local
435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0);
436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1);
437 coeff[2] = get_iir_band_coeff(component, iir_idx, band_idx, 2);
438 coeff[3] = get_iir_band_coeff(component, iir_idx, band_idx, 3);
439 coeff[4] = get_iir_band_coeff(component, iir_idx, band_idx, 4);
441 memcpy(ucontrol->value.bytes.data, &coeff[0], params->max);
479 u32 coeff[BAND_MAX]; local
481 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max);
489 set_iir_band_coeff(component, iir_idx, band_idx, coeff[
[all...]
H A Dalc5623.c701 int coeff, rate; local
728 coeff = get_coeff(component, rate);
729 if (coeff < 0)
732 coeff = coeff_div[coeff].regvalue;
733 dev_dbg(component->dev, "%s: sysclk=%d,rate=%d,coeff=0x%04x\n",
734 __func__, alc5623->sysclk, rate, coeff);
735 snd_soc_component_write(component, ALC5623_STEREO_AD_DA_CLK_CTRL, coeff);
H A Dalc5632.c871 int coeff, rate; local
895 coeff = get_coeff(component, rate);
896 if (coeff < 0)
899 coeff = coeff_div[coeff].regvalue;
900 snd_soc_component_write(component, ALC5632_DAC_CLK_CTRL1, coeff);
H A Dwm8971.c513 int coeff = get_coeff(wm8971->sysclk, params_rate(params)); local
532 if (coeff >= 0)
534 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb);
H A Dwm8750.c494 printk(KERN_ERR "wm8750: could not get coeff for mclk %d @ rate %d\n",
583 int coeff = get_coeff(wm8750->sysclk, params_rate(params)); local
602 if (coeff >= 0)
604 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb);
/linux-master/drivers/net/dsa/mv88e6xxx/
H A Dglobal1_atu.c47 const unsigned int coeff = chip->info->age_time_coeff; local
48 const unsigned int min = 0x01 * coeff;
49 const unsigned int max = 0xff * coeff;
57 /* Round to nearest multiple of coeff */
58 age_time = (msecs + coeff / 2) / coeff;
73 age_time * coeff);
/linux-master/drivers/iio/light/
H A Drohm-bu27034.c821 static u64 bu27034_fixp_calc_t1_64bit(unsigned int coeff, unsigned int ch0, argument
828 helper64 = (u64)coeff * (u64)ch1 * (u64)ch1;
843 static u64 bu27034_fixp_calc_t1(unsigned int coeff, unsigned int ch0, argument
854 helper = coeff * ch1 * ch1;
859 if (check_mul_overflow(helper, coeff, &helper))
860 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1);
863 return bu27034_fixp_calc_t1_64bit(coeff, ch0, ch1, gain0, gain1);
869 static u64 bu27034_fixp_calc_t23(unsigned int coeff, unsigned int ch, argument
875 if (!check_mul_overflow(coeff, ch, &helper))
878 helper64 = (u64)coeff * (u6
888 static const struct bu27034_lx_coeff coeff[] = { local
[all...]
/linux-master/include/media/
H A Dv4l2-vp9.h111 * @coeff: coefficient counts.
117 * arrays or array of pointers to arrays in case of coeff, or array of pointers for eob.
142 u32 (*coeff[4][2][2][6][6])[3]; member in struct:v4l2_vp9_frame_symbol_counts
/linux-master/drivers/media/pci/cx88/
H A Dcx88-dsp.c101 s32 coeff = 2 * int_cos(freq); local
108 s32 s = x[i] + ((s64)coeff * s_prev / 32768) - s_prev2;
115 (s64)coeff * s_prev2 * s_prev / 32768;
/linux-master/drivers/staging/fbtft/
H A Dfb_agm1264k-fl.c256 signed char coeff; local
262 coeff = diffusing_matrix[i][j];
263 if (-1 == coeff) {
267 signed short p = *write_pos + error * coeff;
/linux-master/drivers/staging/media/rkvdec/
H A Drkvdec-vp9.c99 u32 coeff[3]; member in struct:rkvdec_vp9_refs_counts
202 * intra only 149 x 128 bits ,aligned to 152 x 128 bits coeff related
270 /* 128 x 128 bits coeff related */
971 for (m = 0; m < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[0][0][0][0]); ++m) {\
972 vp9_ctx->inter_cnts.coeff[i][j][k][l][m] = \
973 &inter_cnts->ref_cnt[k][i][j][l][m].coeff; \
979 vp9_ctx->intra_cnts.coeff[i][j][k][l][m] = \
980 &intra_cnts->ref_cnt[k][i][j][l][m].coeff; \
988 for (i = 0; i < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff); ++i)
989 for (j = 0; j < ARRAY_SIZE(vp9_ctx->inter_cnts.coeff[
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgm20b.c194 u32 coeff; local
198 /* coeff = slope * voltage + offset */
199 coeff = DIV_ROUND_CLOSEST(mv * p->coeff_slope, 1000) + p->coeff_offs;
200 coeff = DIV_ROUND_CLOSEST(coeff, 1000);
201 dvfs->dfs_coeff = min_t(u32, coeff, MASK(GPCPLL_DVFS0_DFS_COEFF_WIDTH));
211 nvkm_debug(subdev, "%s uv: %d coeff: %x, ext_cal: %d, det_max: %d\n",
513 gm20b_dvfs_program_coeff(struct gm20b_clk *clk, u32 coeff) argument
523 coeff << GPCPLL_DVFS0_DFS_COEFF_SHIFT);
584 * frequency to be safe at DVFS coeff
[all...]

Completed in 234 milliseconds

123