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

/linux-master/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dpp_cm.c634 const struct gamma_curve *curve; local
659 curve = params->arr_curve_points;
661 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
662 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
663 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset,
664 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num);
666 curve += 2;
668 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset,
669 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num,
670 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[
784 const struct gamma_curve *curve; local
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_mpc.c348 const struct gamma_curve *curve; local
371 curve = params->arr_curve_points;
373 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
374 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
375 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset,
376 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num);
378 curve += 2;
380 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
381 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
382 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[
498 const struct gamma_curve *curve; local
[all...]
/linux-master/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; local
192 curve = params->arr_curve_points;
198 curve[0].offset,
204 curve[0].segments_num,
210 curve[1].offset,
216 curve[1].segments_num,
226 curve += 2;
231 curve[0].offset,
237 curve[
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dpp.c899 const struct gamma_curve *curve; local
924 curve = params->arr_curve_points;
926 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
927 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
928 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset,
929 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num);
931 curve += 2;
933 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset,
934 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num,
935 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[
1049 const struct gamma_curve *curve; local
[all...]
H A Ddcn30_mpc.c475 const struct gamma_curve *curve; local
498 curve = params->arr_curve_points;
500 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
501 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
502 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset,
503 MPC_RMU_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num);
505 curve += 2;
507 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
508 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
509 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[
624 const struct gamma_curve *curve; local
[all...]
/linux-master/crypto/
H A Decdsa.c18 const struct ecc_curve *curve; member in struct:ecc_ctx
27 const struct ecc_curve *curve; member in struct:ecdsa_signature_ctx
82 sig->curve->g.ndigits);
91 sig->curve->g.ndigits);
96 const struct ecc_curve *curve = ctx->curve; local
97 unsigned int ndigits = curve->g.ndigits;
106 if (vli_is_zero(r, ndigits) || vli_cmp(r, curve->n, ndigits) >= 0 ||
107 vli_is_zero(s, ndigits) || vli_cmp(s, curve->n, ndigits) >= 0)
115 vli_mod_inv(s1, s, curve
[all...]
H A Decrdsa.c38 const struct ecc_curve *curve; /* curve from oid */ member in struct:ecrdsa_ctx
88 * Digest value, digest algorithm, and curve (modulus) should have the
92 if (!ctx->curve ||
97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) ||
98 ctx->pub_key.ndigits != ctx->curve->g.ndigits ||
116 vli_cmp(r, ctx->curve->n, ndigits) >= 0 ||
118 vli_cmp(s, ctx->curve->n, ndigits) >= 0)
124 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0)
125 vli_sub(e, e, ctx->curve
[all...]
H A Decc.c46 /* Returns curv25519 curve param */
911 const struct ecc_curve *curve)
914 const u64 *curve_prime = curve->p;
915 const unsigned int ndigits = curve->g.ndigits;
918 if (strncmp(curve->name, "nist_", 5) != 0) {
953 * Assumes that mod is big enough curve order.
967 const struct ecc_curve *curve)
971 vli_mult(product, left, right, curve->g.ndigits);
972 vli_mmod_fast(result, product, curve);
977 const struct ecc_curve *curve)
910 vli_mmod_fast(u64 *result, u64 *product, const struct ecc_curve *curve) argument
966 vli_mod_mult_fast(u64 *result, const u64 *left, const u64 *right, const struct ecc_curve *curve) argument
976 vli_mod_square_fast(u64 *result, const u64 *left, const struct ecc_curve *curve) argument
1080 ecc_point_double_jacobian(u64 *x1, u64 *y1, u64 *z1, const struct ecc_curve *curve) argument
1145 apply_z(u64 *x1, u64 *y1, u64 *z, const struct ecc_curve *curve) argument
1156 xycz_initial_double(u64 *x1, u64 *y1, u64 *x2, u64 *y2, u64 *p_initial_z, const struct ecc_curve *curve) argument
1182 xycz_add(u64 *x1, u64 *y1, u64 *x2, u64 *y2, const struct ecc_curve *curve) argument
1225 xycz_add_c(u64 *x1, u64 *y1, u64 *x2, u64 *y2, const struct ecc_curve *curve) 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) 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) 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) argument
1419 __ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, unsigned int ndigits) argument
1446 const struct ecc_curve *curve = ecc_get_curve(curve_id); local
1471 const struct ecc_curve *curve = ecc_get_curve(curve_id); local
1516 const struct ecc_curve *curve = ecc_get_curve(curve_id); local
1550 ecc_is_pubkey_valid_partial(const struct ecc_curve *curve, struct ecc_point *pk) argument
1583 ecc_is_pubkey_valid_full(const struct ecc_curve *curve, struct ecc_point *pk) argument
1618 const struct ecc_curve *curve = ecc_get_curve(curve_id); local
[all...]
/linux-master/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 in struct:ocs_ecc_ctx
224 const struct ecc_curve *curve)
227 u32 op_size = (curve->g.ndigits > ECC_CURVE_NIST_P256_DIGITS) ?
229 size_t nbytes = digits_to_bytes(curve->g.ndigits);
273 /* Write p = curve prime(GF modulus). */
275 curve->p, nbytes);
277 /* Write a = curve coefficient. */
279 curve
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) 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) argument
349 kmb_ocs_ecc_is_pubkey_valid_partial(struct ocs_ecc_dev *ecc_dev, const struct ecc_curve *curve, struct ecc_point *pk) argument
424 kmb_ocs_ecc_is_pubkey_valid_full(struct ocs_ecc_dev *ecc_dev, const struct ecc_curve *curve, struct ecc_point *pk) argument
454 kmb_ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, size_t private_key_len) argument
491 kmb_ecc_gen_privkey(const struct ecc_curve *curve, u64 *privkey) argument
579 const struct ecc_curve *curve = tctx->curve; local
661 const struct ecc_curve *curve = tctx->curve; local
726 const struct ecc_curve *curve = tctx->curve; local
751 const struct ecc_curve *curve = tctx->curve; local
[all...]
/linux-master/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...]
/linux-master/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c1483 const struct gamma_curve *curve; local
1499 curve = params->arr_curve_points;
1502 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
1503 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
1504 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[1].offset,
1505 REGAMMA_CNTLA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num);
1506 curve += 2;
1509 REGAMMA_CNTLA_EXP_REGION0_LUT_OFFSET, curve[0].offset,
1510 REGAMMA_CNTLA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num,
1511 REGAMMA_CNTLA_EXP_REGION1_LUT_OFFSET, curve[
[all...]
/linux-master/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c1149 * because the last point in the curve must be such that
1180 static bool build_degamma(struct pwl_float_data_ex *curve, argument
1201 curve[i].r = dc_fixpt_zero;
1202 curve[i].g = dc_fixpt_zero;
1203 curve[i].b = dc_fixpt_zero;
1208 curve[i].r = translate_to_linear_space_ex(
1210 curve[i].g = curve[i].r;
1211 curve[i].b = curve[
1984 struct pwl_float_data_ex *curve = NULL; local
[all...]
/linux-master/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c1283 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); local
1286 if (unlikely(!curve))
1293 fill_curve_param(p, curve->p, cur_sz, curve->g.ndigits);
1294 fill_curve_param(a, curve->a, cur_sz, curve->g.ndigits);
1295 fill_curve_param(b, curve->b, cur_sz, curve->g.ndigits);
1296 fill_curve_param(x, curve->g.x, cur_sz, curve
1683 const struct ecc_curve *curve; local
1863 const struct ecc_curve *curve; local
[all...]
/linux-master/drivers/hwmon/
H A Dnzxt-kraken3.c28 enum pwm_enable { off, manual, curve } __packed; enumerator in enum:pwm_enable
351 /* Writes custom curve to device */
363 /* Copy curve to command */
380 * The devices can only control the duty through a curve.
381 * Since we're setting a fixed duty here, fill the whole curve
387 /* Fill the custom curve with the fixed value we're setting */
394 /* Write the fixed duty curve to the device */
450 /* Apply the curve and note as enabled */
458 priv->channel_info[channel].mode = curve;
492 if (priv->channel_info[dev_attr->nr].mode == curve) {
[all...]

Completed in 182 milliseconds