Home
last modified time | relevance | path

Searched full:curve (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/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.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[0].segments_num, in regamma_config_regions_and_segments()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/fbtft/
H A Dfb_hx8340bn.c145 * Gamma Curve selection, GC (only GC0 can be customized):
151 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
164 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
167 write_reg(par, MIPI_DCS_SET_GAMMA_CURVE, 1 << CURVE(1, 14)); in set_gamma()
169 if (CURVE(1, 14)) in set_gamma()
173 (CURVE(0, 8) << 4) | CURVE(0, 7), in set_gamma()
174 (CURVE(0, 10) << 4) | CURVE(0, 9), in set_gamma()
175 (CURVE(0, 12) << 4) | CURVE(0, 11), in set_gamma()
176 CURVE(0, 2), in set_gamma()
177 (CURVE(0, 4) << 4) | CURVE(0, 3), in set_gamma()
[all …]
H A Dfb_s6d1121.c119 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
132 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
134 write_reg(par, 0x0030, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma()
135 write_reg(par, 0x0031, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
136 write_reg(par, 0x0032, CURVE(0, 5) << 8 | CURVE(0, 3)); in set_gamma()
137 write_reg(par, 0x0033, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
138 write_reg(par, 0x0034, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
139 write_reg(par, 0x0035, CURVE(0, 11) << 8 | CURVE(0, 10)); in set_gamma()
141 write_reg(par, 0x0036, CURVE(1, 1) << 8 | CURVE(1, 0)); in set_gamma()
142 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma()
[all …]
H A Dfb_ssd1289.c125 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
137 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
139 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
140 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
141 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
142 write_reg(par, 0x0033, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
143 write_reg(par, 0x0034, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
144 write_reg(par, 0x0035, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
145 write_reg(par, 0x0036, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
146 write_reg(par, 0x0037, CURVE(1, 3) << 8 | CURVE(1, 2)); in set_gamma()
[all …]
H A Dfb_st7735r.c136 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
144 CURVE(i, j) &= 0x3f; in set_gamma()
148 CURVE(i, 0), CURVE(i, 1), in set_gamma()
149 CURVE(i, 2), CURVE(i, 3), in set_gamma()
150 CURVE(i, 4), CURVE(i, 5), in set_gamma()
151 CURVE(i, 6), CURVE(i, 7), in set_gamma()
152 CURVE(i, 8), CURVE(i, 9), in set_gamma()
153 CURVE(i, 10), CURVE(i, 11), in set_gamma()
154 CURVE(i, 12), CURVE(i, 13), in set_gamma()
155 CURVE(i, 14), CURVE(i, 15)); in set_gamma()
[all …]
H A Dfb_hx8347d.c95 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
108 acc += CURVE(i, j); in set_gamma()
109 CURVE(i, j) &= mask[j]; in set_gamma()
116 write_reg(par, 0x40 + (i * 0x10), CURVE(i, 0)); in set_gamma()
117 write_reg(par, 0x41 + (i * 0x10), CURVE(i, 1)); in set_gamma()
118 write_reg(par, 0x42 + (i * 0x10), CURVE(i, 2)); in set_gamma()
119 write_reg(par, 0x43 + (i * 0x10), CURVE(i, 3)); in set_gamma()
120 write_reg(par, 0x44 + (i * 0x10), CURVE(i, 4)); in set_gamma()
121 write_reg(par, 0x45 + (i * 0x10), CURVE(i, 5)); in set_gamma()
122 write_reg(par, 0x46 + (i * 0x10), CURVE(i, 6)); in set_gamma()
[all …]
H A Dfb_ili9320.c213 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
225 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
227 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
228 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
229 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
230 write_reg(par, 0x0035, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
231 write_reg(par, 0x0036, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma()
233 write_reg(par, 0x0037, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
234 write_reg(par, 0x0038, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
235 write_reg(par, 0x0039, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
[all …]
H A Dfb_ili9341.c114 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
121 CURVE(i, 0), CURVE(i, 1), CURVE(i, 2), in set_gamma()
122 CURVE(i, 3), CURVE(i, 4), CURVE(i, 5), in set_gamma()
123 CURVE(i, 6), CURVE(i, 7), CURVE(i, 8), in set_gamma()
124 CURVE(i, 9), CURVE(i, 10), CURVE(i, 11), in set_gamma()
125 CURVE(i, 12), CURVE(i, 13), CURVE(i, 14)); in set_gamma()
130 #undef CURVE
H A Dfb_ili9163.c84 /* default gamma curve 3 */ in init_display()
191 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
202 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in gamma_adj()
205 CURVE(0, 0), in gamma_adj()
206 CURVE(0, 1), in gamma_adj()
207 CURVE(0, 2), in gamma_adj()
208 CURVE(0, 3), in gamma_adj()
209 CURVE(0, 4), in gamma_adj()
210 CURVE(0, 5), in gamma_adj()
211 CURVE(0, 6), in gamma_adj()
[all …]
H A Dfb_ili9325.c204 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
216 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
218 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
219 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
220 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
221 write_reg(par, 0x0035, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
222 write_reg(par, 0x0036, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma()
224 write_reg(par, 0x0037, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
225 write_reg(par, 0x0038, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
226 write_reg(par, 0x0039, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Decc.h37 * struct ecc_point - elliptic curve point in affine coordinates
52 * struct ecc_curve - definition of elliptic curve
54 * @name: Short name of the curve.
55 * @g: Generator point of the curve.
56 * @p: Prime number, if Barrett's reduction is used for this curve
60 * @n: Order of the curve group.
61 * @a: Curve parameter a.
62 * @b: Curve parameter b.
76 * @curve_id: id representing the curve to use
77 * @ndigits: curve's number of digits
[all …]
H A Decrdsa.c3 * Elliptic Curve (Russian) Digital Signature Algorithm for Cryptographic API
38 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->n, ndigits); in ecrdsa_verify()
[all …]
H A Decc.c547 * Handbook of Elliptic and Hyperelliptic Curve Cryptography.
821 * Assumes that mod is big enough curve order.
1144 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()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/
H A Decp_internal.h5 * \brief Function declarations for alternative implementation of elliptic curve
33 * for elliptic curve cryptosystems. In : Cryptographic Hardware and
42 * [4] Certicom Research. SEC 2: Recommended Elliptic Curve Domain Parameters.
46 * Curve Cryptography.
51 * [7] Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer
73 * \brief Indicate if the Elliptic Curve Point module extension can
76 * \param grp The pointer to the elliptic curve group that will be the
84 * \brief Initialise the Elliptic Curve Point module extension.
101 * \brief Frees and deallocates the Elliptic Curve Point module
115 * \param grp Pointer to the group representing the curve.
[all …]
H A Decdsa.h7 * The Elliptic Curve Digital Signature Algorithm (ECDSA) is defined in
9 * SEC1 Elliptic Curve Cryptography</em>.
10 * The use of ECDSA for TLS is defined in <em>RFC-4492: Elliptic Curve
45 * \brief Maximum ECDSA signature size for a given curve bit size
47 * \param bits Curve size in bits
148 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
153 * \param grp The context for the elliptic curve to use.
191 * Curve Digital Signature Algorithm (ECDSA)</em>.
196 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
214 * \param grp The context for the elliptic curve to use.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/
H A Decp_internal.h5 * \brief Function declarations for alternative implementation of elliptic curve
33 * for elliptic curve cryptosystems. In : Cryptographic Hardware and
42 * [4] Certicom Research. SEC 2: Recommended Elliptic Curve Domain Parameters.
46 * Curve Cryptography.
51 * [7] Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer
73 * \brief Indicate if the Elliptic Curve Point module extension can
76 * \param grp The pointer to the elliptic curve group that will be the
84 * \brief Initialise the Elliptic Curve Point module extension.
101 * \brief Frees and deallocates the Elliptic Curve Point module
115 * \param grp Pointer to the group representing the curve.
[all …]
H A Decdsa.h7 * The Elliptic Curve Digital Signature Algorithm (ECDSA) is defined in
9 * SEC1 Elliptic Curve Cryptography</em>.
10 * The use of ECDSA for TLS is defined in <em>RFC-4492: Elliptic Curve
45 * \brief Maximum ECDSA signature size for a given curve bit size
47 * \param bits Curve size in bits
148 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
153 * \param grp The context for the elliptic curve to use.
191 * Curve Digital Signature Algorithm (ECDSA)</em>.
196 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
214 * \param grp The context for the elliptic curve to use.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/
H A Decp_internal.h5 * \brief Function declarations for alternative implementation of elliptic curve
33 * for elliptic curve cryptosystems. In : Cryptographic Hardware and
42 * [4] Certicom Research. SEC 2: Recommended Elliptic Curve Domain Parameters.
46 * Curve Cryptography.
51 * [7] Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer
73 * \brief Indicate if the Elliptic Curve Point module extension can
76 * \param grp The pointer to the elliptic curve group that will be the
84 * \brief Initialise the Elliptic Curve Point module extension.
101 * \brief Frees and deallocates the Elliptic Curve Point module
115 * \param grp Pointer to the group representing the curve.
[all …]
H A Decdsa.h7 * The Elliptic Curve Digital Signature Algorithm (ECDSA) is defined in
9 * SEC1 Elliptic Curve Cryptography</em>.
10 * The use of ECDSA for TLS is defined in <em>RFC-4492: Elliptic Curve
45 * \brief Maximum ECDSA signature size for a given curve bit size
47 * \param bits Curve size in bits
148 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
153 * \param grp The context for the elliptic curve to use.
191 * Curve Digital Signature Algorithm (ECDSA)</em>.
196 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
214 * \param grp The context for the elliptic curve to use.
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/
H A Decp_internal.h5 * \brief Function declarations for alternative implementation of elliptic curve
33 * for elliptic curve cryptosystems. In : Cryptographic Hardware and
42 * [4] Certicom Research. SEC 2: Recommended Elliptic Curve Domain Parameters.
46 * Curve Cryptography.
51 * [7] Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer
73 * \brief Indicate if the Elliptic Curve Point module extension can
76 * \param grp The pointer to the elliptic curve group that will be the
84 * \brief Initialise the Elliptic Curve Point module extension.
101 * \brief Frees and deallocates the Elliptic Curve Point module
115 * \param grp Pointer to the group representing the curve.
[all …]
H A Decdsa.h7 * The Elliptic Curve Digital Signature Algorithm (ECDSA) is defined in
9 * SEC1 Elliptic Curve Cryptography</em>.
10 * The use of ECDSA for TLS is defined in <em>RFC-4492: Elliptic Curve
45 * \brief Maximum ECDSA signature size for a given curve bit size
47 * \param bits Curve size in bits
148 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
153 * \param grp The context for the elliptic curve to use.
191 * Curve Digital Signature Algorithm (ECDSA)</em>.
196 * (SECG): SEC1 Elliptic Curve Cryptography</em>, section
214 * \param grp The context for the elliptic curve to use.
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/test/include/c_mode/
H A Decp.h42 #define MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE -0x4E80 /**< Requested curve not availab…
60 unsigned int curve; member
65 * Domain parameters (curve, subgroup and generator) identifiers.
76 MBEDTLS_ECP_DP_SECP192R1, /*!< 192-bits NIST curve */
77 MBEDTLS_ECP_DP_SECP224R1, /*!< 224-bits NIST curve */
78 MBEDTLS_ECP_DP_SECP256R1, /*!< 256-bits NIST curve */
79 MBEDTLS_ECP_DP_SECP384R1, /*!< 384-bits NIST curve */
80 MBEDTLS_ECP_DP_SECP521R1, /*!< 521-bits NIST curve */
81 MBEDTLS_ECP_DP_BP256R1, /*!< 256-bits Brainpool curve */
82 MBEDTLS_ECP_DP_BP384R1, /*!< 384-bits Brainpool curve */
[all …]

12345678910>>...14