Home
last modified time | relevance | path

Searched refs:curve (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dpp.c786 const struct gamma_curve *curve; in dpp3_program_shaper_luta_settings() local
811 curve = params->arr_curve_points; in dpp3_program_shaper_luta_settings()
813 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
814 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
815 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
816 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp3_program_shaper_luta_settings()
818 curve += 2; in dpp3_program_shaper_luta_settings()
820 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
821 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
822 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[ in dpp3_program_shaper_luta_settings()
936 const struct gamma_curve *curve; dpp3_program_shaper_lutb_settings() local
[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[ in mpc3_program_shaper_luta_settings()
617 const struct gamma_curve *curve; mpc3_program_shaper_lutb_settings() local
[all...]
/kernel/linux/linux-5.10/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[ in dpp20_program_shaper_luta_settings()
729 const struct gamma_curve *curve; dpp20_program_shaper_lutb_settings() local
[all...]
/kernel/linux/linux-6.6/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[ in dpp20_program_shaper_luta_settings()
729 const struct gamma_curve *curve; dpp20_program_shaper_lutb_settings() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_mpc.c344 const struct gamma_curve *curve; in mpc32_program_shaper_luta_settings() local
367 curve = params->arr_curve_points; in mpc32_program_shaper_luta_settings()
369 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc32_program_shaper_luta_settings()
370 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc32_program_shaper_luta_settings()
371 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc32_program_shaper_luta_settings()
372 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc32_program_shaper_luta_settings()
374 curve += 2; in mpc32_program_shaper_luta_settings()
376 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc32_program_shaper_luta_settings()
377 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc32_program_shaper_luta_settings()
378 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[ in mpc32_program_shaper_luta_settings()
494 const struct gamma_curve *curve; mpc32_program_shaper_lutb_settings() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_opp_regamma_v.c120 * build regamma curve by using predefined hw points
135 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[ in regamma_config_regions_and_segments()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_opp_regamma_v.c118 * build regamma curve by using predefined hw points
133 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
192 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
198 curve[0].offset, in regamma_config_regions_and_segments()
204 curve[0].segments_num, in regamma_config_regions_and_segments()
210 curve[1].offset, in regamma_config_regions_and_segments()
216 curve[1].segments_num, in regamma_config_regions_and_segments()
226 curve += 2; in regamma_config_regions_and_segments()
231 curve[0].offset, in regamma_config_regions_and_segments()
237 curve[ in regamma_config_regions_and_segments()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dpp.c863 const struct gamma_curve *curve; in dpp3_program_shaper_luta_settings() local
888 curve = params->arr_curve_points; in dpp3_program_shaper_luta_settings()
890 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
891 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
892 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
893 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp3_program_shaper_luta_settings()
895 curve += 2; in dpp3_program_shaper_luta_settings()
897 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
898 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
899 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[ in dpp3_program_shaper_luta_settings()
1013 const struct gamma_curve *curve; dpp3_program_shaper_lutb_settings() local
[all...]
H A Ddcn30_mpc.c481 const struct gamma_curve *curve; in mpc3_program_shaper_luta_settings() local
504 curve = params->arr_curve_points; in mpc3_program_shaper_luta_settings()
506 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
507 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
508 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
509 MPC_RMU_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc3_program_shaper_luta_settings()
511 curve += 2; in mpc3_program_shaper_luta_settings()
513 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
514 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
515 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[ in mpc3_program_shaper_luta_settings()
630 const struct gamma_curve *curve; mpc3_program_shaper_lutb_settings() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c96 * @curve: The elliptic curve used by this transformation.
101 const struct ecc_curve *curve; member
224 const struct ecc_curve *curve) in kmb_ecc_point_mult()
227 u32 op_size = (curve->g.ndigits > ECC_CURVE_NIST_P256_DIGITS) ? in kmb_ecc_point_mult()
229 size_t nbytes = digits_to_bytes(curve->g.ndigits); in kmb_ecc_point_mult()
273 /* Write p = curve prime(GF modulus). */ in kmb_ecc_point_mult()
275 curve->p, nbytes); in kmb_ecc_point_mult()
277 /* Write a = curve coefficient. */ in kmb_ecc_point_mult()
279 curve in kmb_ecc_point_mult()
220 kmb_ecc_point_mult(struct ocs_ecc_dev *ecc_dev, struct ecc_point *result, const struct ecc_point *point, u64 *scalar, const struct ecc_curve *curve) kmb_ecc_point_mult() argument
305 kmb_ecc_do_scalar_op(struct ocs_ecc_dev *ecc_dev, u64 *scalar_out, const u64 *scalar_a, const u64 *scalar_b, const struct ecc_curve *curve, unsigned int ndigits, const u32 inst) kmb_ecc_do_scalar_op() argument
349 kmb_ocs_ecc_is_pubkey_valid_partial(struct ocs_ecc_dev *ecc_dev, const struct ecc_curve *curve, struct ecc_point *pk) kmb_ocs_ecc_is_pubkey_valid_partial() argument
424 kmb_ocs_ecc_is_pubkey_valid_full(struct ocs_ecc_dev *ecc_dev, const struct ecc_curve *curve, struct ecc_point *pk) kmb_ocs_ecc_is_pubkey_valid_full() argument
454 kmb_ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, size_t private_key_len) kmb_ecc_is_key_valid() argument
491 kmb_ecc_gen_privkey(const struct ecc_curve *curve, u64 *privkey) kmb_ecc_gen_privkey() argument
579 const struct ecc_curve *curve = tctx->curve; kmb_ecc_do_shared_secret() local
661 const struct ecc_curve *curve = tctx->curve; kmb_ecc_do_public_key() local
726 const struct ecc_curve *curve = tctx->curve; kmb_ocs_ecdh_generate_public_key() local
751 const struct ecc_curve *curve = tctx->curve; kmb_ocs_ecdh_compute_shared_secret() local
[all...]
/kernel/linux/linux-5.10/crypto/
H A Decdsa.c18 const struct ecc_curve *curve; member
27 const struct ecc_curve *curve; member
82 sig->curve->g.ndigits); in ecdsa_get_signature_r()
91 sig->curve->g.ndigits); in ecdsa_get_signature_s()
96 const struct ecc_curve *curve = ctx->curve; in _ecdsa_verify() local
97 unsigned int ndigits = curve->g.ndigits; in _ecdsa_verify()
106 if (vli_is_zero(r, ndigits) || vli_cmp(r, curve->n, ndigits) >= 0 || in _ecdsa_verify()
107 vli_is_zero(s, ndigits) || vli_cmp(s, curve->n, ndigits) >= 0) in _ecdsa_verify()
115 vli_mod_inv(s1, s, curve in _ecdsa_verify()
[all...]
H A Decc.c900 const struct ecc_curve *curve) in vli_mmod_fast()
903 const u64 *curve_prime = curve->p; in vli_mmod_fast()
904 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast()
907 if (strncmp(curve->name, "nist_", 5) != 0) { in vli_mmod_fast()
942 * Assumes that mod is big enough curve order.
956 const struct ecc_curve *curve) in vli_mod_mult_fast()
960 vli_mult(product, left, right, curve->g.ndigits); in vli_mod_mult_fast()
961 vli_mmod_fast(result, product, curve); in vli_mod_mult_fast()
966 const struct ecc_curve *curve) in vli_mod_square_fast()
970 vli_square(product, left, curve in vli_mod_square_fast()
899 vli_mmod_fast(u64 *result, u64 *product, const struct ecc_curve *curve) vli_mmod_fast() argument
955 vli_mod_mult_fast(u64 *result, const u64 *left, const u64 *right, const struct ecc_curve *curve) vli_mod_mult_fast() argument
965 vli_mod_square_fast(u64 *result, const u64 *left, const struct ecc_curve *curve) vli_mod_square_fast() argument
1068 ecc_point_double_jacobian(u64 *x1, u64 *y1, u64 *z1, const struct ecc_curve *curve) ecc_point_double_jacobian() argument
1133 apply_z(u64 *x1, u64 *y1, u64 *z, const struct ecc_curve *curve) apply_z() argument
1144 xycz_initial_double(u64 *x1, u64 *y1, u64 *x2, u64 *y2, u64 *p_initial_z, const struct ecc_curve *curve) xycz_initial_double() argument
1170 xycz_add(u64 *x1, u64 *y1, u64 *x2, u64 *y2, const struct ecc_curve *curve) xycz_add() argument
1213 xycz_add_c(u64 *x1, u64 *y1, u64 *x2, u64 *y2, const struct ecc_curve *curve) xycz_add_c() argument
1268 ecc_point_mult(struct ecc_point *result, const struct ecc_point *point, const u64 *scalar, u64 *initial_z, const struct ecc_curve *curve, unsigned int ndigits) ecc_point_mult() argument
1328 ecc_point_add(const struct ecc_point *result, const struct ecc_point *p, const struct ecc_point *q, const struct ecc_curve *curve) ecc_point_add() argument
1350 ecc_point_mult_shamir(const struct ecc_point *result, const u64 *u1, const struct ecc_point *p, const u64 *u2, const struct ecc_point *q, const struct ecc_curve *curve) ecc_point_mult_shamir() argument
1405 __ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, unsigned int ndigits) __ecc_is_key_valid() argument
1432 const struct ecc_curve *curve = ecc_get_curve(curve_id); ecc_is_key_valid() local
1457 const struct ecc_curve *curve = ecc_get_curve(curve_id); ecc_gen_privkey() local
1502 const struct ecc_curve *curve = ecc_get_curve(curve_id); ecc_make_pub_key() local
1536 ecc_is_pubkey_valid_partial(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_partial() argument
1569 ecc_is_pubkey_valid_full(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_full() argument
1604 const struct ecc_curve *curve = ecc_get_curve(curve_id); crypto_ecdh_shared_secret() local
[all...]
H A Decrdsa.c38 const struct ecc_curve *curve; /* curve from oid */ member
88 * Digest value, digest algorithm, and curve (modulus) should have the in ecrdsa_verify()
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 in ecrdsa_verify()
[all...]
H A Decc.h40 * struct ecc_point - elliptic curve point in affine coordinates
55 * struct ecc_curve - definition of elliptic curve
57 * @name: Short name of the curve.
58 * @g: Generator point of the curve.
59 * @p: Prime number, if Barrett's reduction is used for this curve
63 * @n: Order of the curve group.
92 * ecc_get_curve() - Get a curve given its curve_id
93 * @curve_id: Id of the curve
95 * Returns pointer to the curve data, NULL if curve i
[all...]
/kernel/linux/linux-6.6/crypto/
H A Decdsa.c18 const struct ecc_curve *curve; member
27 const struct ecc_curve *curve; member
82 sig->curve->g.ndigits); in ecdsa_get_signature_r()
91 sig->curve->g.ndigits); in ecdsa_get_signature_s()
96 const struct ecc_curve *curve = ctx->curve; in _ecdsa_verify() local
97 unsigned int ndigits = curve->g.ndigits; in _ecdsa_verify()
106 if (vli_is_zero(r, ndigits) || vli_cmp(r, curve->n, ndigits) >= 0 || in _ecdsa_verify()
107 vli_is_zero(s, ndigits) || vli_cmp(s, curve->n, ndigits) >= 0) in _ecdsa_verify()
115 vli_mod_inv(s1, s, curve in _ecdsa_verify()
[all...]
H A Decc.c46 /* Returns curv25519 curve param */
911 const struct ecc_curve *curve) in vli_mmod_fast()
914 const u64 *curve_prime = curve->p; in vli_mmod_fast()
915 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast()
918 if (strncmp(curve->name, "nist_", 5) != 0) { in vli_mmod_fast()
953 * Assumes that mod is big enough curve order.
967 const struct ecc_curve *curve) in vli_mod_mult_fast()
971 vli_mult(product, left, right, curve->g.ndigits); in vli_mod_mult_fast()
972 vli_mmod_fast(result, product, curve); in vli_mod_mult_fast()
977 const struct ecc_curve *curve) in vli_mod_square_fast()
910 vli_mmod_fast(u64 *result, u64 *product, const struct ecc_curve *curve) vli_mmod_fast() argument
966 vli_mod_mult_fast(u64 *result, const u64 *left, const u64 *right, const struct ecc_curve *curve) vli_mod_mult_fast() argument
976 vli_mod_square_fast(u64 *result, const u64 *left, const struct ecc_curve *curve) vli_mod_square_fast() argument
1080 ecc_point_double_jacobian(u64 *x1, u64 *y1, u64 *z1, const struct ecc_curve *curve) ecc_point_double_jacobian() argument
1145 apply_z(u64 *x1, u64 *y1, u64 *z, const struct ecc_curve *curve) apply_z() argument
1156 xycz_initial_double(u64 *x1, u64 *y1, u64 *x2, u64 *y2, u64 *p_initial_z, const struct ecc_curve *curve) xycz_initial_double() argument
1182 xycz_add(u64 *x1, u64 *y1, u64 *x2, u64 *y2, const struct ecc_curve *curve) xycz_add() argument
1225 xycz_add_c(u64 *x1, u64 *y1, u64 *x2, u64 *y2, const struct ecc_curve *curve) xycz_add_c() argument
1280 ecc_point_mult(struct ecc_point *result, const struct ecc_point *point, const u64 *scalar, u64 *initial_z, const struct ecc_curve *curve, unsigned int ndigits) ecc_point_mult() argument
1340 ecc_point_add(const struct ecc_point *result, const struct ecc_point *p, const struct ecc_point *q, const struct ecc_curve *curve) ecc_point_add() argument
1362 ecc_point_mult_shamir(const struct ecc_point *result, const u64 *u1, const struct ecc_point *p, const u64 *u2, const struct ecc_point *q, const struct ecc_curve *curve) ecc_point_mult_shamir() argument
1419 __ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, unsigned int ndigits) __ecc_is_key_valid() argument
1446 const struct ecc_curve *curve = ecc_get_curve(curve_id); ecc_is_key_valid() local
1471 const struct ecc_curve *curve = ecc_get_curve(curve_id); ecc_gen_privkey() local
1516 const struct ecc_curve *curve = ecc_get_curve(curve_id); ecc_make_pub_key() local
1550 ecc_is_pubkey_valid_partial(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_partial() argument
1583 ecc_is_pubkey_valid_full(const struct ecc_curve *curve, struct ecc_point *pk) ecc_is_pubkey_valid_full() argument
1618 const struct ecc_curve *curve = ecc_get_curve(curve_id); crypto_ecdh_shared_secret() local
[all...]
H A Decrdsa.c38 const struct ecc_curve *curve; /* curve from oid */ member
88 * Digest value, digest algorithm, and curve (modulus) should have the in ecrdsa_verify()
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 in ecrdsa_verify()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c1497 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
1513 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
1516 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in regamma_config_regions_and_segments()
1517 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in regamma_config_regions_and_segments()
1518 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in regamma_config_regions_and_segments()
1519 REGAMMA_CNTLA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in regamma_config_regions_and_segments()
1520 curve += 2; in regamma_config_regions_and_segments()
1523 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in regamma_config_regions_and_segments()
1524 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in regamma_config_regions_and_segments()
1525 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[ in regamma_config_regions_and_segments()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c1483 const struct gamma_curve *curve; in regamma_config_regions_and_segments() local
1499 curve = params->arr_curve_points; in regamma_config_regions_and_segments()
1502 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in regamma_config_regions_and_segments()
1503 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in regamma_config_regions_and_segments()
1504 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in regamma_config_regions_and_segments()
1505 REGAMMA_CNTLA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in regamma_config_regions_and_segments()
1506 curve += 2; in regamma_config_regions_and_segments()
1509 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in regamma_config_regions_and_segments()
1510 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in regamma_config_regions_and_segments()
1511 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[ in regamma_config_regions_and_segments()
[all...]
/kernel/linux/linux-6.6/include/crypto/internal/
H A Decc.h62 * @curve_id: id representing the curve to use
63 * @ndigits: curve's number of digits
64 * @private_key: private key to be used for the given curve
77 * @curve_id: id representing the curve to use
78 * @ndigits: curve number of digits
89 * @curve_id: id representing the curve to use
90 * @ndigits: curve's number of digits
91 * @private_key: pregenerated private key for the given curve
103 * @curve_id: id representing the curve to use
104 * @ndigits: curve'
[all...]
/kernel/linux/linux-5.10/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[ in build_degamma()
1798 struct pwl_float_data_ex *curve = NULL; mod_color_calculate_degamma_params() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c1047 * because the last point in the curve must be such that in build_freesync_hdr()
1078 static bool build_degamma(struct pwl_float_data_ex *curve, in build_degamma() argument
1099 curve[i].r = dc_fixpt_zero; in build_degamma()
1100 curve[i].g = dc_fixpt_zero; in build_degamma()
1101 curve[i].b = dc_fixpt_zero; in build_degamma()
1106 curve[i].r = translate_to_linear_space_ex( in build_degamma()
1108 curve[i].g = curve[i].r; in build_degamma()
1109 curve[i].b = curve[ in build_degamma()
1882 struct pwl_float_data_ex *curve = NULL; mod_color_calculate_degamma_params() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c1280 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); in hpre_ecdh_fill_curve() local
1283 if (unlikely(!curve)) in hpre_ecdh_fill_curve()
1290 fill_curve_param(p, curve->p, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1291 fill_curve_param(a, curve->a, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1292 fill_curve_param(b, curve->b, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1293 fill_curve_param(x, curve->g.x, cur_sz, curve in hpre_ecdh_fill_curve()
1680 const struct ecc_curve *curve; hpre_curve25519_fill_curve() local
1860 const struct ecc_curve *curve; hpre_curve25519_src_init() local
[all...]

Completed in 27 milliseconds