| /OK3568_Linux_fs/kernel/drivers/media/platform/ti-vpe/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/ipu-v3/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/dsi/phy/ |
| H A 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 …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/sample/ |
| H A D | sample_csm_module.cpp | 34 printf("csm coeff[0]: %f\n", attrib.param.coeff[0]); in sample_set_csm_attrib() 44 attrib.param.coeff[0] = 0.257; in sample_set_csm_attrib() 45 attrib.param.coeff[1] = 0.504; in sample_set_csm_attrib() 46 attrib.param.coeff[2] = 0.098; in sample_set_csm_attrib() 47 attrib.param.coeff[3] = -0.148; in sample_set_csm_attrib() 48 attrib.param.coeff[4] = -0.291; in sample_set_csm_attrib() 49 attrib.param.coeff[5] = 0.439; in sample_set_csm_attrib() 50 attrib.param.coeff[6] = 0.439; in sample_set_csm_attrib() 51 attrib.param.coeff[7] = -0.368; in sample_set_csm_attrib() 52 attrib.param.coeff[8] = -0.071; in sample_set_csm_attrib() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/ipa/backend/ |
| H A D | mali_kbase_ipa_counter_common_jm.c | 68 s32 coeff, u32 counter) in kbase_ipa_sum_all_shader_cores() argument 90 return ret * coeff; in kbase_ipa_sum_all_shader_cores() 95 s32 coeff, u32 counter) in kbase_ipa_sum_all_memsys_blocks() argument 114 return ret * coeff; in kbase_ipa_sum_all_memsys_blocks() 119 s32 coeff, u32 counter) in kbase_ipa_single_counter() argument 125 return counter_value * (s64) coeff; in kbase_ipa_single_counter() 187 u64 coeff = 0, coeff_mul = 0; in kbase_ipa_vinstr_dynamic_coeff() local 217 s32 coeff = model_data->group_values[i]; in kbase_ipa_vinstr_dynamic_coeff() local 218 s64 group_energy = group->op(model_data, coeff, in kbase_ipa_vinstr_dynamic_coeff() 226 coeff = energy; in kbase_ipa_vinstr_dynamic_coeff() [all …]
|
| H A D | mali_kbase_ipa_counter_common_csf.c | 66 static s64 kbase_ipa_group_energy(s32 coeff, u64 counter_value) in kbase_ipa_group_energy() argument 71 return counter_value * (s64)coeff; in kbase_ipa_group_energy() 170 u64 coeff = 0, coeff_mul = 0; in calculate_coeff() local 181 s32 coeff = counter_coeffs[i]; in calculate_coeff() local 183 s64 group_energy = kbase_ipa_group_energy(coeff, counter_value); in calculate_coeff() 198 coeff = total_energy; in calculate_coeff() 226 coeff = div_u64(coeff, active_cycles); in calculate_coeff() 233 coeff = div_u64(coeff * 1000, max(model_data->reference_voltage, 1)); in calculate_coeff() 235 coeff = div_u64(coeff * 1000, max(model_data->reference_voltage, 1)); in calculate_coeff() 240 coeff_mul = coeff * model_data->scaling_factor; in calculate_coeff()
|
| H A D | mali_kbase_ipa_counter_csf.c | 63 #define COUNTER_DEF(cnt_name, coeff, cnt_idx, block_type) \ argument 66 .coeff_default_value = coeff, \ 71 #define MEMSYS_COUNTER_DEF(cnt_name, coeff, cnt_idx) \ argument 72 COUNTER_DEF(cnt_name, coeff, cnt_idx, KBASE_IPA_CORE_TYPE_MEMSYS) 74 #define SC_COUNTER_DEF(cnt_name, coeff, cnt_idx) \ argument 75 COUNTER_DEF(cnt_name, coeff, cnt_idx, KBASE_IPA_CORE_TYPE_SHADER) 77 #define TILER_COUNTER_DEF(cnt_name, coeff, cnt_idx) \ argument 78 COUNTER_DEF(cnt_name, coeff, cnt_idx, KBASE_IPA_CORE_TYPE_TILER)
|
| H A D | mali_kbase_ipa_counter_common_jm.h | 99 s32 coeff, 119 s32 coeff, u32 counter); 136 s32 coeff, u32 counter); 152 s32 coeff, u32 counter);
|
| H A D | mali_kbase_ipa_counter_jm.c | 117 s32 coeff, in kbase_g7x_sum_all_memsys_blocks() argument 124 return kbase_ipa_sum_all_memsys_blocks(model_data, coeff, counter); in kbase_g7x_sum_all_memsys_blocks() 140 s32 coeff, in kbase_g7x_sum_all_shader_cores() argument 147 return kbase_ipa_sum_all_shader_cores(model_data, coeff, counter); in kbase_g7x_sum_all_shader_cores() 160 s32 coeff, in kbase_g7x_jm_single_counter() argument 167 return kbase_ipa_single_counter(model_data, coeff, counter); in kbase_g7x_jm_single_counter()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/IspFec/src/ |
| H A D | RkIspFecGenMesh.cpp | 28 const double *coeff, in init() argument 39 if (!lightCenter || !coeff) { in init() 46 …intf("I: the coeff of lens: %.16f, %.16f, %.16f, %.16f\n", coeff[0], coeff[1], coeff[2], coeff[3]); in init() 74 mCoeff.a0 = coeff[0]; in init() 75 mCoeff.a2 = coeff[1]; in init() 76 mCoeff.a3 = coeff[2]; in init() 77 mCoeff.a4 = coeff[3]; in init()
|
| /OK3568_Linux_fs/kernel/drivers/hwmon/pmbus/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/modules/color/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath9k/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/media/test-drivers/vicodec/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | ipu_disp.c | 36 const int (*coeff)[5][3]; member 384 const int (*coeff)[5][3]; in ipu_dp_csc_setup() local 393 coeff = dp_csc_param.coeff; in ipu_dp_csc_setup() 395 if (coeff) { in ipu_dp_csc_setup() 396 __raw_writel(mask_a((*coeff)[0][0]) | in ipu_dp_csc_setup() 397 (mask_a((*coeff)[0][1]) << 16), DP_CSC_A_0()); in ipu_dp_csc_setup() 398 __raw_writel(mask_a((*coeff)[0][2]) | in ipu_dp_csc_setup() 399 (mask_a((*coeff)[1][0]) << 16), DP_CSC_A_1()); in ipu_dp_csc_setup() 400 __raw_writel(mask_a((*coeff)[1][1]) | in ipu_dp_csc_setup() 401 (mask_a((*coeff)[1][2]) << 16), DP_CSC_A_2()); in ipu_dp_csc_setup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | es8323.c | 552 int coeff; in es8323_pcm_hw_params() local 570 coeff = get_coeff(es8323->sysclk, params_rate(params)); in es8323_pcm_hw_params() 571 if (coeff < 0) { in es8323_pcm_hw_params() 572 coeff = get_coeff(es8323->sysclk / 2, params_rate(params)); in es8323_pcm_hw_params() 575 if (coeff < 0) { in es8323_pcm_hw_params() 579 return coeff; in es8323_pcm_hw_params() 604 if (coeff >= 0) { in es8323_pcm_hw_params() 607 coeff_div[coeff].sr | in es8323_pcm_hw_params() 608 coeff_div[coeff].usb << 4); in es8323_pcm_hw_params() 610 coeff_div[coeff].sr | in es8323_pcm_hw_params() [all …]
|
| H A D | msm8916-wcd-digital.c | 433 u32 coeff[BAND_MAX]; in msm8x16_wcd_get_iir_band_audio_mixer() local 435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer() 436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer() 437 coeff[2] = get_iir_band_coeff(component, iir_idx, band_idx, 2); in msm8x16_wcd_get_iir_band_audio_mixer() 438 coeff[3] = get_iir_band_coeff(component, iir_idx, band_idx, 3); in msm8x16_wcd_get_iir_band_audio_mixer() 439 coeff[4] = get_iir_band_coeff(component, iir_idx, band_idx, 4); in msm8x16_wcd_get_iir_band_audio_mixer() 441 memcpy(ucontrol->value.bytes.data, &coeff[0], params->max); in msm8x16_wcd_get_iir_band_audio_mixer() 479 u32 coeff[BAND_MAX]; in msm8x16_wcd_put_iir_band_audio_mixer() local 481 memcpy(&coeff[0], ucontrol->value.bytes.data, params->max); in msm8x16_wcd_put_iir_band_audio_mixer() 489 set_iir_band_coeff(component, iir_idx, band_idx, coeff[0]); in msm8x16_wcd_put_iir_band_audio_mixer() [all …]
|
| H A D | wm8988.c | 672 int coeff; in wm8988_pcm_hw_params() local 674 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params() 675 if (coeff < 0) { in wm8988_pcm_hw_params() 676 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params() 679 if (coeff < 0) { in wm8988_pcm_hw_params() 683 return coeff; in wm8988_pcm_hw_params() 703 if (coeff >= 0) in wm8988_pcm_hw_params() 705 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8988_pcm_hw_params()
|
| H A D | es8326.c | 500 int coeff = get_coeff(es8326->mclk_rate, params_rate(params)); in es8326_pcm_hw_params() local 522 if (coeff >= 0) { in es8326_pcm_hw_params() 524 coeff_div[coeff].reg4); in es8326_pcm_hw_params() 526 coeff_div[coeff].reg5); in es8326_pcm_hw_params() 528 coeff_div[coeff].reg6); in es8326_pcm_hw_params() 530 coeff_div[coeff].reg7); in es8326_pcm_hw_params() 532 coeff_div[coeff].reg8); in es8326_pcm_hw_params() 534 coeff_div[coeff].reg9); in es8326_pcm_hw_params() 536 coeff_div[coeff].rega); in es8326_pcm_hw_params() 538 coeff_div[coeff].regb); in es8326_pcm_hw_params()
|
| /OK3568_Linux_fs/kernel/drivers/iio/proximity/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/dsa/mv88e6xxx/ |
| H A 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()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/hwi/isp21/ |
| H A D | Isp21Params.cpp | 253 const float *coeff = ccm.matrix; in convertAiqCcmToIsp21Params() local 256 …cfg->coeff0_r = (coeff[0] - 1) > 0 ? (short)((coeff[0] - 1) * 128 + 0.5) : (short)((coeff[0] - 1)… in convertAiqCcmToIsp21Params() 257 cfg->coeff1_r = coeff[1] > 0 ? (short)(coeff[1] * 128 + 0.5) : (short)(coeff[1] * 128 - 0.5); in convertAiqCcmToIsp21Params() 258 cfg->coeff2_r = coeff[2] > 0 ? (short)(coeff[2] * 128 + 0.5) : (short)(coeff[2] * 128 - 0.5); in convertAiqCcmToIsp21Params() 259 cfg->coeff0_g = coeff[3] > 0 ? (short)(coeff[3] * 128 + 0.5) : (short)(coeff[3] * 128 - 0.5); in convertAiqCcmToIsp21Params() 260 …cfg->coeff1_g = (coeff[4] - 1) > 0 ? (short)((coeff[4] - 1) * 128 + 0.5) : (short)((coeff[4] - 1)… in convertAiqCcmToIsp21Params() 261 cfg->coeff2_g = coeff[5] > 0 ? (short)(coeff[5] * 128 + 0.5) : (short)(coeff[5] * 128 - 0.5); in convertAiqCcmToIsp21Params() 262 cfg->coeff0_b = coeff[6] > 0 ? (short)(coeff[6] * 128 + 0.5) : (short)(coeff[6] * 128 - 0.5); in convertAiqCcmToIsp21Params() 263 cfg->coeff1_b = coeff[7] > 0 ? (short)(coeff[7] * 128 + 0.5) : (short)(coeff[7] * 128 - 0.5); in convertAiqCcmToIsp21Params() 264 …cfg->coeff2_b = (coeff[8] - 1) > 0 ? (short)((coeff[8] - 1) * 128 + 0.5) : (short)((coeff[8] - 1)… in convertAiqCcmToIsp21Params() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | af9033_priv.h | 30 struct coeff { struct 62 static const struct coeff coeff_lut[] = {
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/uAPI2/ |
| H A D | rk_aiq_user_api2_imgproc.cpp | 4407 csm_attrib.param.coeff[0] = 0.299; in rk_aiq_uapi2_setColorSpace() 4408 csm_attrib.param.coeff[1] = 0.587; in rk_aiq_uapi2_setColorSpace() 4409 csm_attrib.param.coeff[2] = 0.114; in rk_aiq_uapi2_setColorSpace() 4410 csm_attrib.param.coeff[3] = -0.169; in rk_aiq_uapi2_setColorSpace() 4411 csm_attrib.param.coeff[4] = -0.331; in rk_aiq_uapi2_setColorSpace() 4412 csm_attrib.param.coeff[5] = 0.5; in rk_aiq_uapi2_setColorSpace() 4413 csm_attrib.param.coeff[6] = 0.5; in rk_aiq_uapi2_setColorSpace() 4414 csm_attrib.param.coeff[7] = -0.419; in rk_aiq_uapi2_setColorSpace() 4415 csm_attrib.param.coeff[8] = -0.081; in rk_aiq_uapi2_setColorSpace() 4423 csm_attrib.param.coeff[0] = 0.257; in rk_aiq_uapi2_setColorSpace() [all …]
|