Searched refs:exponent (Results 51 - 75 of 88) sorted by path

1234

/linux-master/drivers/firmware/arm_scmi/
H A Dsensors.c438 a->exponent = S32_EXT(SENSOR_RES_EXP(ares));
676 s->exponent = S32_EXT(SENSOR_RES_EXP(sres));
/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dppevvmath.h67 static int uPow(int base, int exponent); /* Returns base^exponent an INT */
73 static fInt fExponential(fInt exponent); /* Can be used to calculate e^exponent */
108 static fInt fExponential(fInt exponent) /*Can be used to calculate e^exponent*/ argument
123 if (GreaterThan(fZERO, exponent)) {
124 exponent = fNegate(exponent);
128 while (GreaterThan(exponent, lower_boun
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_color.c130 #define ILK_CSC_COEFF_LIMITED_RANGE ((235 - 16) << (12 - 8)) /* exponent 0 */
826 unsigned int mantissa, exponent; local
833 exponent = 3;
836 exponent--;
839 return (exponent << 6) |
/linux-master/drivers/gpu/drm/i915/
H A Di915_perf.c275 /* The maximum exponent the hardware accepts is 63 (essentially it selects one
280 * reasonable to limit the OA exponent where it's still possible to account for
983 "OA buffer overflow (exponent = %d): force restart\n",
1196 "OA buffer overflow (exponent = %d): force restart\n",
2661 * exponent for periodic sampling which is primarily used for system
2667 * won't automatically reload an out-of-date timer exponent even
3963 static u64 oa_exponent_to_ns(struct i915_perf *perf, int exponent) argument
3965 u64 nom = (2ULL << exponent) * NSEC_PER_SEC;
4085 "OA timer exponent too high (> %u)\n",
4114 "OA exponent woul
[all...]
/linux-master/drivers/hid/
H A Dwacom_sys.c197 unsigned unit, int exponent)
203 .unit_exponent = exponent,
196 wacom_calc_hid_res(int logical_extents, int physical_extents, unsigned unit, int exponent) argument
/linux-master/drivers/hwmon/pmbus/
H A Dbpa-rs600.c49 int ret, exponent, mantissa; local
56 exponent = ret >> 11;
59 exponent++;
62 ret = (exponent << 11) | mantissa;
H A Dmp2856.c79 s16 exponent = 0, mantissa; local
91 while (val >= MAX_LIN_MANTISSA && exponent < 15) {
92 exponent++;
96 while (val < MIN_LIN_MANTISSA && exponent > -15) {
97 exponent--;
108 /* Convert to 5 bit exponent, 11 bit mantissa */
109 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
H A Dmp2975.c181 s16 exponent = 0, mantissa; local
189 while (val >= MAX_LIN_MANTISSA && exponent < 15) {
190 exponent++;
194 while (val < MIN_LIN_MANTISSA && exponent > -15) {
195 exponent--;
206 /* Convert to 5 bit exponent, 11 bit mantissa */
207 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800);
H A Dpmbus_core.c88 int exponent[PMBUS_PAGES]; member in struct:pmbus_data
89 /* linear mode: exponent for output voltages */
653 * bit 10..14: exponent
655 * exponent=0:
657 * exponent=1..30:
658 * v=(���1)^signbit * 2^(exponent - 15) * 1.significantbits
659 * exponent=31:
663 * To do that, add '10' to the exponent. By doing that, we can just add
669 int exponent; local
675 exponent
697 val <<= exponent; local
714 s16 exponent; local
737 val <<= exponent; local
854 u16 exponent = (15 + 10); local
918 s16 exponent = 0, mantissa; local
[all...]
H A Dxdpe12284.c28 s16 exponent; local
40 exponent = ((s16)ret) >> 11;
43 if (exponent >= 0)
44 val <<= exponent; local
46 val >>= -exponent;
H A Dzl6100.c62 s16 exponent; local
66 exponent = l >> 11;
74 if (exponent >= 0)
75 val <<= exponent; local
77 val >>= -exponent;
87 s16 exponent = 0, mantissa; local
100 while (val >= MAX_MANTISSA && exponent < 15) {
101 exponent++;
105 while (val < MIN_MANTISSA && exponent > -15) {
106 exponent
[all...]
/linux-master/drivers/iio/common/scmi_sensors/
H A Dscmi_iio.c380 s8 exponent, scale; local
391 exponent = sensor->sensor_info->axis[0].exponent;
396 * need to divide the resolution exponent by the sensor scale
398 exponent = exponent - scale;
399 if (exponent < 0) {
401 int_pow(10, abs(exponent))
407 resolution = resolution * int_pow(10, exponent);
/linux-master/drivers/iio/light/
H A Dmax44009.c175 int exponent; local
183 /* The exponent byte is just the upper nibble of the Lux High Byte */
184 exponent = (hi >> 4) & 0xf;
187 * The exponent value is base 2 to the power of the raw exponent byte.
189 exponent = 1 << exponent;
191 return exponent * mantissa;
367 int mantissa, exponent; local
388 * Exponent is base 2 to the power of the threshold exponent byt
[all...]
H A Dopt3001.c148 int val2, u8 *exponent)
162 *exponent = i;
170 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, argument
175 lux = 10 * (mantissa << exponent);
229 u8 exponent; local
339 exponent = OPT3001_REG_EXPONENT(opt->result);
342 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2);
483 u8 exponent; local
490 ret = opt3001_find_scale(opt, val, val2, &exponent);
496 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent;
147 opt3001_find_scale(const struct opt3001 *opt, int val, int val2, u8 *exponent) argument
[all...]
H A Dsi1145.c349 u8 exponent = 0; local
354 exponent = (x & 0xf0) >> 4;
357 if (exponent >= 4)
358 return result << (exponent - 4);
359 return result >> (4 - exponent);
365 u32 exponent = 0; local
376 exponent += 1;
381 if (exponent < 5) {
382 significand = x << (4 - exponent);
383 return (exponent <<
[all...]
/linux-master/drivers/infiniband/hw/hfi1/
H A Dfirmware.c87 u8 exponent[EXPONENT_SIZE]; member in struct:firmware_file
95 u8 exponent[EXPONENT_SIZE]; member in struct:augmented_firmware_file
114 u8 *exponent; /* pointer to the exponent */ member in struct:firmware_details
475 fdet->exponent = ff->exponent;
500 fdet->exponent = aff->exponent;
/linux-master/drivers/isdn/hardware/mISDN/
H A Dhfcmulti.c1800 u8 exponent; local
1839 exponent = (w_float >> 12) & 0x7;
1840 if (exponent) {
1842 mantissa <<= (exponent - 1);
1858 exponent = (w_float >> 12) & 0x7;
1859 if (exponent) {
1861 mantissa <<= (exponent - 1);
/linux-master/drivers/md/bcache/
H A Dbset.c245 unsigned int exponent:BKEY_EXPONENT_BITS; member in struct:bkey_float
572 * If most significant bit of f->exponent is not set, then
573 * - f->exponent >> 6 is 0
576 * if most isgnificant bits of f->exponent is set, then
577 * - f->exponent >> 6 is 1
581 * See make_bfloat() to check when most significant bit of f->exponent
587 const uint64_t *p = &k->low - (f->exponent >> 6);
589 return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK;
611 * device), f->exponent records how many least significant bits
614 * If l and r have same KEY_INODE value, f->exponent record
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmcu.c3771 u8 exponent; member in struct:__anon1256
3785 .exponent = flow->exp,
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.c4154 u8 exponent; member in struct:__anon1411
4171 .exponent = flow->exp,
/linux-master/drivers/pcmcia/
H A Dcistpl.c39 static const u_int exponent[] = { variable
45 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10)
48 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
49 #define POWER_SCALE(v) (exponent[(v)&7])
954 timing->waitscale = exponent[scale & 3];
962 timing->rdyscale = exponent[scale & 7];
970 timing->rsvscale = exponent[scale];
/linux-master/drivers/s390/crypto/
H A Dzcrypt_cca_key.h41 * section. So, an arbitrary public exponent of 0x010001 will be
111 char exponent[]; member in struct:__anon160
130 ptr = key->exponent;
229 * section. So, an arbitrary public exponent of 0x010001 will be
H A Dzcrypt_msgtype50.c72 unsigned char exponent[128]; member in struct:type50_meb1_msg
82 unsigned char exponent[256]; member in struct:type50_meb2_msg
92 unsigned char exponent[512]; member in struct:type50_meb3_msg
213 exp = meb1->exponent + sizeof(meb1->exponent) - mod_len;
224 exp = meb2->exponent + sizeof(meb2->exponent) - mod_len;
235 exp = meb3->exponent + sizeof(meb3->exponent) - mod_len;
/linux-master/drivers/spi/
H A Dspi-zynqmp-gqspi.c703 u32 exponent = 8; /* 2^8 = 256 */ local
715 genfifoentry |= exponent;
721 exponent++;
/linux-master/drivers/staging/media/ipu3/
H A Dipu3-css-params.c50 int exponent = imgu_css_scaler_get_exp(output_width, input_width); local
51 int mantissa = (1 << exponent) * output_width;
99 info->exp_shift = IMGU_SCALER_MAX_EXPONENT_SHIFT - exponent;

Completed in 429 milliseconds

1234