Home
last modified time | relevance | path

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

123456

/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn20/
H A Ddcn20_dpp_cm.c634 const struct gamma_curve *curve; in dpp20_program_shaper_luta_settings() local
659 curve = params->arr_curve_points; in dpp20_program_shaper_luta_settings()
661 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
662 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
663 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
664 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp20_program_shaper_luta_settings()
666 curve += 2; in dpp20_program_shaper_luta_settings()
668 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp20_program_shaper_luta_settings()
669 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp20_program_shaper_luta_settings()
670 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp20_program_shaper_luta_settings()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/mpc/dcn32/
H A Ddcn32_mpc.c349 const struct gamma_curve *curve; in mpc32_program_shaper_luta_settings() local
372 curve = params->arr_curve_points; in mpc32_program_shaper_luta_settings()
374 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc32_program_shaper_luta_settings()
375 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc32_program_shaper_luta_settings()
376 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc32_program_shaper_luta_settings()
377 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc32_program_shaper_luta_settings()
379 curve += 2; in mpc32_program_shaper_luta_settings()
381 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc32_program_shaper_luta_settings()
382 MPCC_MCM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc32_program_shaper_luta_settings()
383 MPCC_MCM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc32_program_shaper_luta_settings()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn30/
H A Ddcn30_dpp.c899 const struct gamma_curve *curve; in dpp3_program_shaper_luta_settings() local
924 curve = params->arr_curve_points; in dpp3_program_shaper_luta_settings()
926 CM_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
927 CM_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
928 CM_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
929 CM_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in dpp3_program_shaper_luta_settings()
931 curve += 2; in dpp3_program_shaper_luta_settings()
933 CM_SHAPER_RAMA_EXP_REGION2_LUT_OFFSET, curve[0].offset, in dpp3_program_shaper_luta_settings()
934 CM_SHAPER_RAMA_EXP_REGION2_NUM_SEGMENTS, curve[0].segments_num, in dpp3_program_shaper_luta_settings()
935 CM_SHAPER_RAMA_EXP_REGION3_LUT_OFFSET, curve[1].offset, in dpp3_program_shaper_luta_settings()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/mpc/dcn30/
H A Ddcn30_mpc.c492 const struct gamma_curve *curve; in mpc3_program_shaper_luta_settings() local
515 curve = params->arr_curve_points; in mpc3_program_shaper_luta_settings()
517 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
518 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
519 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
520 MPC_RMU_SHAPER_RAMA_EXP_REGION1_NUM_SEGMENTS, curve[1].segments_num); in mpc3_program_shaper_luta_settings()
522 curve += 2; in mpc3_program_shaper_luta_settings()
524 MPC_RMU_SHAPER_RAMA_EXP_REGION0_LUT_OFFSET, curve[0].offset, in mpc3_program_shaper_luta_settings()
525 MPC_RMU_SHAPER_RAMA_EXP_REGION0_NUM_SEGMENTS, curve[0].segments_num, in mpc3_program_shaper_luta_settings()
526 MPC_RMU_SHAPER_RAMA_EXP_REGION1_LUT_OFFSET, curve[1].offset, in mpc3_program_shaper_luta_settings()
[all …]
/linux/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[0].segments_num, in regamma_config_regions_and_segments()
[all …]
/linux/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.c122 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
134 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
136 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
137 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
138 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
139 write_reg(par, 0x0033, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
140 write_reg(par, 0x0034, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
141 write_reg(par, 0x0035, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
142 write_reg(par, 0x0036, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
143 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_ili9320.c210 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
222 CURVE(i, j) &= mask[i * par->gamma.num_values + j]; in set_gamma()
224 write_reg(par, 0x0030, CURVE(0, 5) << 8 | CURVE(0, 4)); in set_gamma()
225 write_reg(par, 0x0031, CURVE(0, 7) << 8 | CURVE(0, 6)); in set_gamma()
226 write_reg(par, 0x0032, CURVE(0, 9) << 8 | CURVE(0, 8)); in set_gamma()
227 write_reg(par, 0x0035, CURVE(0, 3) << 8 | CURVE(0, 2)); in set_gamma()
228 write_reg(par, 0x0036, CURVE(0, 1) << 8 | CURVE(0, 0)); in set_gamma()
230 write_reg(par, 0x0037, CURVE(1, 5) << 8 | CURVE(1, 4)); in set_gamma()
231 write_reg(par, 0x0038, CURVE(1, 7) << 8 | CURVE(1, 6)); in set_gamma()
232 write_reg(par, 0x0039, CURVE(1, 9) << 8 | CURVE(1, 8)); in set_gamma()
[all …]
H A Dfb_hx8347d.c117 #define CURVE(num, idx) curves[(num) * par->gamma.num_values + (idx)] macro
130 acc += CURVE(i, j); in set_gamma()
131 CURVE(i, j) &= mask[j]; in set_gamma()
138 write_reg(par, 0x40 + (i * 0x10), CURVE(i, 0)); in set_gamma()
139 write_reg(par, 0x41 + (i * 0x10), CURVE(i, 1)); in set_gamma()
140 write_reg(par, 0x42 + (i * 0x10), CURVE(i, 2)); in set_gamma()
141 write_reg(par, 0x43 + (i * 0x10), CURVE(i, 3)); in set_gamma()
142 write_reg(par, 0x44 + (i * 0x10), CURVE(i, 4)); in set_gamma()
143 write_reg(par, 0x45 + (i * 0x10), CURVE(i, 5)); in set_gamma()
144 write_reg(par, 0x46 + (i * 0x10), CURVE(i, 6)); 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 …]
/linux/include/crypto/
H A Decc_curve.h10 * struct ecc_point - elliptic curve point in affine coordinates
23 * struct ecc_curve - definition of elliptic curve
25 * @name: Short name of the curve.
26 * @nbits: The number of bits of a curve.
27 * @g: Generator point of the curve.
28 * @p: Prime number, if Barrett's reduction is used for this curve
32 * @n: Order of the curve group.
33 * @a: Curve parameter a.
34 * @b: Curve parameter b.
47 * ecc_get_curve() - get elliptic curve;
[all …]
/linux/crypto/
H A Decc.c46 /* Returns curv25519 curve param */
585 * Handbook of Elliptic and Hyperelliptic Curve Cryptography.
932 * Elliptic Curve Domain Parameters" section G.1.4
957 const struct ecc_curve *curve) in vli_mmod_fast() argument
960 const u64 *curve_prime = curve->p; in vli_mmod_fast()
961 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast()
964 if (strncmp(curve->name, "nist_", 5) != 0) { in vli_mmod_fast()
1002 * Assumes that mod is big enough curve order.
1016 const struct ecc_curve *curve) in vli_mod_mult_fast() argument
1020 vli_mult(product, left, right, curve->g.ndigits); in vli_mod_mult_fast()
[all …]
/linux/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[1].offset, in regamma_config_regions_and_segments()
[all …]
/linux/Documentation/hwmon/
H A Dnzxt-kraken3.rst25 control (either as a fixed value or through a temp-PWM curve). The Z-series and
30 for the manual control mode and 2 is for the liquid temp to PWM curve mode.
36 If in curve mode, setting point values should be done in moderation - the devices
39 in an another mode, and then apply them by switching to curve.
62 2 Curve control mode (applies the temp-PWM duty curve based on coolant temp)
73 pwm1_enable Pump duty control mode (0: disabled, 1: manual, 2: curve)
75 pwm2_enable Fan duty control mode (0: disabled, 1: manual, 2: curve)
/linux/net/sched/
H A Dsch_hfsc.c42 * "A Hierarchical Fair Service Curve Algorithm for Link-Sharing,
48 * upperlimit service curve. the link-sharing scheduler does not schedule
72 * kernel internal service curve representation:
77 * The service curve parameters are converted to the internal
93 /* runtime service curve */
143 class's own upperlimit curve) */
154 struct internal_sc cl_rsc; /* internal real-time service curve */
155 struct internal_sc cl_fsc; /* internal fair service curve */
156 struct internal_sc cl_usc; /* internal upperlimit service curve */
157 struct runtime_sc cl_deadline; /* deadline curve */
[all …]
/linux/drivers/hwmon/
H A Dnzxt-kraken3.c30 enum pwm_enable { off, manual, curve } __packed; enumerator
351 /* Writes custom curve to device */
370 /* Copy curve to command */ in kraken3_write_curve()
387 * The devices can only control the duty through a curve. in kraken3_write_fixed_duty()
388 * Since we're setting a fixed duty here, fill the whole curve in kraken3_write_fixed_duty()
394 /* Fill the custom curve with the fixed value we're setting */ in kraken3_write_fixed_duty()
401 /* Write the fixed duty curve to the device */ in kraken3_write_fixed_duty()
457 /* Apply the curve and note as enabled */ in kraken3_write()
465 priv->channel_info[channel].mode = curve; in kraken3_write()
499 if (priv->channel_info[dev_attr->nr].mode == curve) { in kraken3_fan_curve_pwm_store()
[all …]
/linux/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c1285 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); in hpre_ecdh_fill_curve() local
1288 if (unlikely(!curve)) in hpre_ecdh_fill_curve()
1295 fill_curve_param(p, curve->p, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1296 fill_curve_param(a, curve->a, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1297 fill_curve_param(b, curve->b, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1298 fill_curve_param(x, curve->g.x, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1299 fill_curve_param(y, curve->g.y, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1300 fill_curve_param(n, curve->n, cur_sz, curve->g.ndigits); in hpre_ecdh_fill_curve()
1416 dev_err(dev, "Invalid curve size!\n"); in hpre_ecdh_set_secret()
1685 const struct ecc_curve *curve; in hpre_curve25519_fill_curve() local
[all …]
/linux/drivers/net/wireless/ath/ath5k/
H A Deeprom.c628 * For RF5111 we have an XPD -eXternal Power Detector- curve
629 * for each calibrated channel. Each curve has 0,5dB Power steps
631 * exponential function. To recreate the curve we read 11 points
639 * 10% of the pcdac curve -until the curve reaches its maximum-
642 * the pcdac steps based on eeprom version and curve min/max so that we
737 /* Only one curve for RF5111 in ath5k_eeprom_convert_pcal_info_5111()
758 /* Allocate pd points for this curve */ in ath5k_eeprom_convert_pcal_info_5111()
892 * use the higher (3) and the lower (0) curves. Each curve has 0.5dB
894 * linear function. To recreate the curve and pass the power values
934 /* Lowest gain curve (max power) */ in ath5k_eeprom_convert_pcal_info_5112()
[all …]
H A Dphy.c2441 * linear PCDAC curve
2447 * Since we have the top of the curve and we draw the line below
2450 * pcdac values when creating the curve, or fill the table with zeros.
2497 * ath5k_create_power_curve() - Create a Power to PDADC or PCDAC curve
2507 * Power to PCDAC curve.
2509 * Each curve has power on x axis (in 0.5dB units) and PCDAC/PDADC
2511 * PCDAC/PDADC step for each curve is 64 but we can write more than
2609 * range. Use the lowest power curve in ath5k_get_chan_pcal_surrounding_piers()
2617 * range. Use the highest power curve in ath5k_get_chan_pcal_surrounding_piers()
2838 * For RF5111 we have an XPD -eXternal Power Detector- curve
[all …]
/linux/tools/perf/pmu-events/arch/s390/cf_z16/
H A Dcrypto6.json119 …"PublicDescription": "This counter counts the total number of the elliptic-curve cryptography (ECC…
126 …er of CPU cycles when the ECC coprocessor is busy performing the elliptic-curve cryptography (ECC)…
133 …"PublicDescription": "This counter counts the total number of the elliptic-curve cryptography (ECC…
140 …is counter counts the total number of CPU cycles blocked for the elliptic-curve cryptography (ECC)…
/linux/tools/perf/pmu-events/arch/s390/cf_z15/
H A Dcrypto6.json119 …"PublicDescription": "This counter counts the total number of the elliptic-curve cryptography (ECC…
126 …er of CPU cycles when the ECC coprocessor is busy performing the elliptic-curve cryptography (ECC)…
133 …"PublicDescription": "This counter counts the total number of the elliptic-curve cryptography (ECC…
140 …is counter counts the total number of CPU cycles blocked for the elliptic-curve cryptography (ECC)…

123456