Home
last modified time | relevance | path

Searched refs:curve (Results 1 – 25 of 72) sorted by relevance

123

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dpp_cm.c579 const struct gamma_curve *curve; in dpp20_program_shaper_luta_settings() local
604 curve = params->arr_curve_points; in dpp20_program_shaper_luta_settings()
606 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
607 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
608 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
609 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp20_program_shaper_luta_settings()
611 curve += 2; in dpp20_program_shaper_luta_settings()
613 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
614 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
615 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dpp.c783 const struct gamma_curve *curve; in dpp3_program_shaper_luta_settings() local
808 curve = params->arr_curve_points; in dpp3_program_shaper_luta_settings()
810 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
811 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
812 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
813 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp3_program_shaper_luta_settings()
815 curve += 2; in dpp3_program_shaper_luta_settings()
817 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
818 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
819 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
[all …]
H A Ddcn30_mpc.c468 const struct gamma_curve *curve; in mpc3_program_shaper_luta_settings() local
491 curve = params->arr_curve_points; in mpc3_program_shaper_luta_settings()
493 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
494 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
495 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
496 MPC_RMU_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc3_program_shaper_luta_settings()
498 curve += 2; in mpc3_program_shaper_luta_settings()
500 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
501 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
502 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_opp_regamma_v.c135 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
194 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
200 curve[0].offset, in regamma_config_regions_and_segments()
206 curve[0].segments_num, in regamma_config_regions_and_segments()
212 curve[1].offset, in regamma_config_regions_and_segments()
218 curve[1].segments_num, in regamma_config_regions_and_segments()
228 curve += 2; in regamma_config_regions_and_segments()
233 curve[0].offset, in regamma_config_regions_and_segments()
239 curve[0].segments_num, in regamma_config_regions_and_segments()
245 curve[1].offset, in regamma_config_regions_and_segments()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Dregression_4000_data.h6484 uint32_t curve; /* TEE_ECC_CURVE_NIST_P192,... */ member
6495 .curve = TEE_ECC_CURVE_NIST_P192,
6505 .curve = TEE_ECC_CURVE_NIST_P192,
6515 .curve = TEE_ECC_CURVE_NIST_P192,
6525 .curve = TEE_ECC_CURVE_NIST_P192,
6535 .curve = TEE_ECC_CURVE_NIST_P192,
6545 .curve = TEE_ECC_CURVE_NIST_P192,
6555 .curve = TEE_ECC_CURVE_NIST_P192,
6565 .curve = TEE_ECC_CURVE_NIST_P192,
6575 .curve = TEE_ECC_CURVE_NIST_P192,
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Decrdsa.c38 const struct ecc_curve *curve; /* curve from oid */ member
92 if (!ctx->curve || in ecrdsa_verify()
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify()
98 ctx->pub_key.ndigits != ctx->curve->g.ndigits || in ecrdsa_verify()
116 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || in ecrdsa_verify()
118 vli_cmp(s, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
124 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
125 vli_sub(e, e, ctx->curve->n, ndigits); in ecrdsa_verify()
130 vli_mod_inv(v, e, ctx->curve->n, ndigits); in ecrdsa_verify()
133 vli_mod_mult_slow(z1, s, v, ctx->curve->n, ndigits); in ecrdsa_verify()
[all …]
H A Decc.c1144 u64 *initial_z, const struct ecc_curve *curve, in ecc_point_mult() argument
1152 u64 *curve_prime = curve->p; in ecc_point_mult()
1157 carry = vli_add(sk[0], scalar, curve->n, ndigits); in ecc_point_mult()
1158 vli_add(sk[1], sk[0], curve->n, ndigits); in ecc_point_mult()
1208 const struct ecc_curve *curve) in ecc_point_add() argument
1213 unsigned int ndigits = curve->g.ndigits; in ecc_point_add()
1217 vli_mod_sub(z, result->x, p->x, curve->p, ndigits); in ecc_point_add()
1220 xycz_add(px, py, result->x, result->y, curve->p, ndigits); in ecc_point_add()
1221 vli_mod_inv(z, z, curve->p, ndigits); in ecc_point_add()
1222 apply_z(result->x, result->y, z, curve->p, ndigits); in ecc_point_add()
[all …]
H A Decc.h147 int ecc_is_pubkey_valid_partial(const struct ecc_curve *curve,
161 int ecc_is_pubkey_valid_full(const struct ecc_curve *curve,
258 const struct ecc_curve *curve);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c1498 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
1514 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
1517 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in regamma_config_regions_and_segments()
1518 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in regamma_config_regions_and_segments()
1519 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in regamma_config_regions_and_segments()
1520 REGAMMA_CNTLA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in regamma_config_regions_and_segments()
1521 curve += 2; in regamma_config_regions_and_segments()
1524 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in regamma_config_regions_and_segments()
1525 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in regamma_config_regions_and_segments()
1526 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in regamma_config_regions_and_segments()
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dcompandt.c91 #define curve t->segments[i - 3] in prepare_transfer_fn() macro
106 curve.x = line2.x - r * cos(theta); in prepare_transfer_fn()
107 curve.y = line2.y - r * sin(theta); in prepare_transfer_fn()
115 cx = (curve.x + line2.x + x) / 3; in prepare_transfer_fn()
116 cy = (curve.y + line2.y + y) / 3; in prepare_transfer_fn()
121 in1 = cx - curve.x; in prepare_transfer_fn()
122 out1 = cy - curve.y; in prepare_transfer_fn()
123 in2 = line2.x - curve.x; in prepare_transfer_fn()
124 out2 = line2.y - curve.y; in prepare_transfer_fn()
125 curve.a = (out2/in2 - out1/in1) / (in2-in1); in prepare_transfer_fn()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/style/expression/
H A Dfind_zoom_curve.cpp35 auto curve = static_cast<const Interpolate*>(e); in findZoomCurve() local
36 if (curve->getInput()->getKind() == Kind::CompoundExpression) { in findZoomCurve()
37 auto z = static_cast<CompoundExpressionBase*>(curve->getInput().get()); in findZoomCurve()
39 result = {curve}; in findZoomCurve()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/amerge/
H A Drk_aiq_amerge_algo_v12.cpp99 float curve = 0.0f; in CalibrateOECurve() local
103 curve = 1.0f + exp(-smooth * OECURVESMOOTHMAX * (k / 1023.0f - offset / 256.0f)); in CalibrateOECurve()
104 curve = 1024.0f / curve; in CalibrateOECurve()
105 OECurve[i] = round(curve); in CalibrateOECurve()
120 float curve = 0.0f; in CalibrateEachChnCurve() local
124 curve = 1.0f + exp(-smooth * EACHOECURVESMOOTHMAX * (k / 1023.0f - offset)); in CalibrateEachChnCurve()
125 curve = 1024.0f / curve; in CalibrateEachChnCurve()
126 OECurve[i] = round(curve); in CalibrateEachChnCurve()
141 float curve = 0.0f; in CalibrateMDCurveLongFrmMode() local
145 curve = 1.0f + exp(-smooth * MDCURVESMOOTHMAX * in CalibrateMDCurveLongFrmMode()
[all …]
H A Drk_aiq_amerge_algo_v11.cpp99 float curve = 0.0f; in CalibrateOECurveV11() local
103 curve = 1.0f + exp(-smooth * OECURVESMOOTHMAX * (k / 1023.0f - offset / 256.0f)); in CalibrateOECurveV11()
104 curve = 1024.0f / curve; in CalibrateOECurveV11()
105 OECurve[i] = round(curve); in CalibrateOECurveV11()
119 float curve = 0.0f; in CalibrateMDCurveLongFrmMode() local
123 curve = 1.0f + exp(-smooth * MDCURVESMOOTHMAX * in CalibrateMDCurveLongFrmMode()
125 curve = 1024.0f / curve; in CalibrateMDCurveLongFrmMode()
126 MDCurve[i] = round(curve); in CalibrateMDCurveLongFrmMode()
141 float curve = 0.0f; in CalibrateMDCurveShortFrmMode() local
144 curve = 0.01f + pow(i * step, 2.0f); in CalibrateMDCurveShortFrmMode()
[all …]
H A Drk_aiq_amerge_algo_v10.cpp99 float curve = 0.0f; in CalibrateOECurveV10() local
103 curve = 1.0f + exp(-smooth * OECURVESMOOTHMAX * (k / 1023.0f - offset / 256.0f)); in CalibrateOECurveV10()
104 curve = 1024.0f / curve; in CalibrateOECurveV10()
105 OECurve[i] = round(curve); in CalibrateOECurveV10()
119 float curve = 0.0f; in CalibrateMDCurveV10() local
123 curve = 1.0f + exp(-smooth * MDCURVESMOOTHMAX * in CalibrateMDCurveV10()
125 curve = 1024.0f / curve; in CalibrateMDCurveV10()
126 MDCurve[i] = round(curve); in CalibrateMDCurveV10()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c1016 static bool build_degamma(struct pwl_float_data_ex *curve, in build_degamma() argument
1037 curve[i].r = dc_fixpt_zero; in build_degamma()
1038 curve[i].g = dc_fixpt_zero; in build_degamma()
1039 curve[i].b = dc_fixpt_zero; in build_degamma()
1044 curve[i].r = translate_to_linear_space_ex( in build_degamma()
1046 curve[i].g = curve[i].r; in build_degamma()
1047 curve[i].b = curve[i].r; in build_degamma()
1051 curve[i].r = dc_fixpt_one; in build_degamma()
1052 curve[i].g = dc_fixpt_one; in build_degamma()
1053 curve[i].b = dc_fixpt_one; in build_degamma()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/
H A Drk_crypto_api.c148 uint32_t curve) in rk_gen_ec_key() argument
159 IMSG("key_len = %d; curve = %d", key_len, curve); in rk_gen_ec_key()
169 if (curve != TEE_ECC_CURVE_NIST_P192 && in rk_gen_ec_key()
170 curve != TEE_ECC_CURVE_NIST_P224 && in rk_gen_ec_key()
171 curve != TEE_ECC_CURVE_NIST_P256 && in rk_gen_ec_key()
172 curve != TEE_ECC_CURVE_NIST_P384 && in rk_gen_ec_key()
173 curve != TEE_ECC_CURVE_NIST_P521) in rk_gen_ec_key()
176 ec_key->curve = curve; in rk_gen_ec_key()
181 TEE_InitValueAttribute(&attr, TEE_ATTR_ECC_CURVE, curve, 0); in rk_gen_ec_key()
1867 key->curve, key->key_len, algo, mode); in rk_ecdsa_sign()
[all …]
H A Drk_crypto_api.h64 uint32_t curve; member
74 uint32_t curve; member
157 TEE_Result rk_gen_ec_key(ec_key_t *ec_key, uint32_t key_len, uint32_t curve);
159 uint32_t algo, uint32_t curve, uint32_t keysize, uint8_t *out);
/OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/
H A Drk_crypto_api.h62 uint32_t curve; member
72 uint32_t curve; member
140 TEE_Result rk_gen_ec_key(ec_key_t *ec_key, uint32_t key_len, uint32_t curve);
142 uint32_t algo, uint32_t curve, uint32_t keysize, uint8_t *out);
H A Drk_crypto_api.c148 uint32_t curve) in rk_gen_ec_key() argument
159 IMSG("key_len = %d; curve = %d", key_len, curve); in rk_gen_ec_key()
169 if (curve != TEE_ECC_CURVE_NIST_P192 && in rk_gen_ec_key()
170 curve != TEE_ECC_CURVE_NIST_P224 && in rk_gen_ec_key()
171 curve != TEE_ECC_CURVE_NIST_P256 && in rk_gen_ec_key()
172 curve != TEE_ECC_CURVE_NIST_P384 && in rk_gen_ec_key()
173 curve != TEE_ECC_CURVE_NIST_P521) in rk_gen_ec_key()
176 ec_key->curve = curve; in rk_gen_ec_key()
181 TEE_InitValueAttribute(&attr, TEE_ATTR_ECC_CURVE, curve, 0); in rk_gen_ec_key()
1791 key->curve, key->key_len, algo, mode); in rk_ecdsa_sign()
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-class-backlight6 Description of the scale of the brightness curve.
12 backlights with a linear brightness curve.
17 The scale of the brightness curve is unknown.
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Decdsa.c477 DEBUG("ec_key->curve = %d", ec_key->curve );
478 mbedtls_ecp_group_load(&grp, ec_key->curve);
505 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &grp, key->curve ) ); in rk_ecdsa_sign()
540 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &grp, key->curve ) ); in rk_ecdsa_verify()
599 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &grp, key->curve ) ); in rk_ecdsa_sign2()
639 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &grp, key->curve ) ); in rk_ecdsa_verify2()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/
H A Dpsa_util.h163 psa_ecc_curve_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
166 switch( curve ) in mbedtls_psa_get_ecc_oid_from_id()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/
H A Dpsa_util.h163 psa_ecc_curve_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
166 switch( curve ) in mbedtls_psa_get_ecc_oid_from_id()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/
H A Dpsa_util.h163 psa_ecc_curve_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
166 switch( curve ) in mbedtls_psa_get_ecc_oid_from_id()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/
H A Dpsa_util.h163 psa_ecc_curve_t curve, size_t bits, in mbedtls_psa_get_ecc_oid_from_id() argument
166 switch( curve ) in mbedtls_psa_get_ecc_oid_from_id()

123