Home
last modified time | relevance | path

Searched refs:mantissa (Results 1 – 8 of 8) sorted by relevance

/drivers/hwmon/pmbus/
Dzl6100.c68 s32 mantissa; in zl6100_l2d() local
72 mantissa = ((s16)((l & 0x7ff) << 5)) >> 5; in zl6100_l2d()
74 val = mantissa; in zl6100_l2d()
92 s16 exponent = 0, mantissa; in zl6100_d2l() local
116 mantissa = DIV_ROUND_CLOSEST(val, 1000); in zl6100_d2l()
119 if (mantissa > 0x3ff) in zl6100_d2l()
120 mantissa = 0x3ff; in zl6100_d2l()
124 mantissa = -mantissa; in zl6100_d2l()
127 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in zl6100_d2l()
Dpmbus_core.c411 s32 mantissa; in pmbus_reg2data_linear() local
416 mantissa = (u16) sensor->data; in pmbus_reg2data_linear()
419 mantissa = ((s16)((sensor->data & 0x7ff) << 5)) >> 5; in pmbus_reg2data_linear()
422 val = mantissa; in pmbus_reg2data_linear()
524 s16 exponent = 0, mantissa; in pmbus_data2reg_linear() local
576 mantissa = DIV_ROUND_CLOSEST(val, 1000); in pmbus_data2reg_linear()
579 if (mantissa > 0x3ff) in pmbus_data2reg_linear()
580 mantissa = 0x3ff; in pmbus_data2reg_linear()
584 mantissa = -mantissa; in pmbus_data2reg_linear()
587 return (mantissa & 0x7ff) | ((exponent << 11) & 0xf800); in pmbus_data2reg_linear()
/drivers/isdn/mISDN/
Ddsp_audio.c123 int sign, exponent, mantissa; in linear2ulaw() local
134 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw()
135 ulawbyte = ~(sign | (exponent << 4) | mantissa); in linear2ulaw()
/drivers/isdn/i4l/
Disdn_audio.c265 mantissa; in isdn_audio_linear2ulaw() local
278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw()
279 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw()
/drivers/isdn/hardware/mISDN/
Dhfcmulti.c1842 u_int mantissa; in hfcmulti_dtmf() local
1881 mantissa = w_float & 0x0fff; in hfcmulti_dtmf()
1883 mantissa |= 0xfffff000; in hfcmulti_dtmf()
1886 mantissa ^= 0x1000; in hfcmulti_dtmf()
1887 mantissa <<= (exponent - 1); in hfcmulti_dtmf()
1891 coeff[co << 1] = mantissa; in hfcmulti_dtmf()
1900 mantissa = w_float & 0x0fff; in hfcmulti_dtmf()
1902 mantissa |= 0xfffff000; in hfcmulti_dtmf()
1905 mantissa ^= 0x1000; in hfcmulti_dtmf()
1906 mantissa <<= (exponent - 1); in hfcmulti_dtmf()
[all …]
/drivers/md/bcache/
Dbset.c243 unsigned mantissa:BKEY_MANTISSA_BITS; member
584 f->mantissa = bfloat_mantissa(m, f) - 1; in make_bfloat()
917 (f->mantissa - in bset_search_tree()
/drivers/pcmcia/
Dcistpl.c35 static const u_char mantissa[] = { variable
46 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10)
49 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10)
/drivers/atm/
Diphase.c340 u32 exp, mantissa, cps;
344 mantissa = rate & M_MASK;
347 cps = (1 << M_BITS) | mantissa;