/drivers/hwmon/pmbus/ |
D | zl6100.c | 68 s16 exponent; in zl6100_l2d() local 72 exponent = l >> 11; in zl6100_l2d() 80 if (exponent >= 0) in zl6100_l2d() 81 val <<= exponent; in zl6100_l2d() 83 val >>= -exponent; in zl6100_l2d() 93 s16 exponent = 0, mantissa; in zl6100_d2l() local 106 while (val >= MAX_MANTISSA && exponent < 15) { in zl6100_d2l() 107 exponent++; in zl6100_d2l() 111 while (val < MIN_MANTISSA && exponent > -15) { in zl6100_d2l() 112 exponent--; in zl6100_d2l() [all …]
|
D | pmbus_core.c | 96 int exponent[PMBUS_PAGES]; member 443 s16 exponent; in pmbus_reg2data_linear() local 448 exponent = data->exponent[sensor->page]; in pmbus_reg2data_linear() 451 exponent = ((s16)sensor->data) >> 11; in pmbus_reg2data_linear() 465 if (exponent >= 0) in pmbus_reg2data_linear() 466 val <<= exponent; in pmbus_reg2data_linear() 468 val >>= -exponent; in pmbus_reg2data_linear() 565 s16 exponent = 0, mantissa; in pmbus_data2reg_linear() local 581 if (data->exponent[sensor->page] < 0) in pmbus_data2reg_linear() 582 val <<= -data->exponent[sensor->page]; in pmbus_data2reg_linear() [all …]
|
/drivers/iio/light/ |
D | opt3001.c | 147 int val2, u8 *exponent) in opt3001_find_scale() argument 161 *exponent = i; in opt3001_find_scale() 169 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument 174 lux = 10 * (mantissa << exponent); in opt3001_to_iio_ret() 228 u8 exponent; in opt3001_get_lux() local 297 exponent = OPT3001_REG_EXPONENT(opt->result); in opt3001_get_lux() 300 opt3001_to_iio_ret(opt, exponent, mantissa, val, val2); in opt3001_get_lux() 441 u8 exponent; in opt3001_write_event_value() local 448 ret = opt3001_find_scale(opt, val, val2, &exponent); in opt3001_write_event_value() 454 mantissa = (((val * 1000) + (val2 / 1000)) / 10) >> exponent; in opt3001_write_event_value() [all …]
|
/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 67 unsigned char exponent[128]; member 159 char exponent[3]; in zcrypt_type6_mex_key_de() member 180 memcpy(key->exponent, pk_exponent, 3); in zcrypt_type6_mex_key_de() 183 temp = key->pvtMeSec.exponent + in zcrypt_type6_mex_key_de() 184 sizeof(key->pvtMeSec.exponent) - mex->inputdatalength; in zcrypt_type6_mex_key_de() 221 char exponent[0]; in zcrypt_type6_mex_key_en() member 232 temp = key->exponent; in zcrypt_type6_mex_key_en()
|
D | zcrypt_msgtype50.c | 92 unsigned char exponent[128]; member 102 unsigned char exponent[256]; member 112 unsigned char exponent[512]; member 202 exp = meb1->exponent + sizeof(meb1->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 212 exp = meb2->exponent + sizeof(meb2->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 223 exp = meb3->exponent + sizeof(meb3->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
|
D | zcrypt_cex2a.h | 62 unsigned char exponent[128]; member 72 unsigned char exponent[256]; member 82 unsigned char exponent[512]; member
|
/drivers/isdn/mISDN/ |
D | dsp_audio.c | 124 int sign, exponent, mantissa; in linear2ulaw() local 134 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw() 135 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw() 136 ulawbyte = ~(sign | (exponent << 4) | mantissa); in linear2ulaw()
|
/drivers/isdn/i4l/ |
D | isdn_audio.c | 264 exponent, in isdn_audio_linear2ulaw() local 277 exponent = exp_lut[(sample >> 7) & 0xFF]; in isdn_audio_linear2ulaw() 278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw() 279 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw()
|
/drivers/md/bcache/ |
D | bset.c | 241 unsigned exponent:BKEY_EXPONENT_BITS; member 550 const uint64_t *p = &k->low - (f->exponent >> 6); in bfloat_mantissa() 551 return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK; in bfloat_mantissa() 572 f->exponent = fls64(KEY_INODE(r) ^ KEY_INODE(l)) + 64; in make_bfloat() 574 f->exponent = fls64(r->low ^ l->low); in make_bfloat() 576 f->exponent = max_t(int, f->exponent - BKEY_MANTISSA_BITS, 0); in make_bfloat() 586 f->exponent = 127; in make_bfloat() 925 if (likely(f->exponent != 127)) in bset_search_tree() 1334 if (t->tree[j].exponent == 127) in bch_btree_keys_stats()
|
/drivers/usb/serial/ |
D | pl2303.c | 386 unsigned int baseline, mantissa, exponent; in pl2303_encode_baud_rate_divisor() local 399 exponent = 0; in pl2303_encode_baud_rate_divisor() 401 if (exponent < 7) { in pl2303_encode_baud_rate_divisor() 403 exponent++; in pl2303_encode_baud_rate_divisor() 413 buf[1] = exponent << 1 | mantissa >> 8; in pl2303_encode_baud_rate_divisor() 417 baud = (baseline / mantissa) >> (exponent << 1); in pl2303_encode_baud_rate_divisor()
|
/drivers/staging/rdma/hfi1/ |
D | firmware.c | 120 u8 exponent[EXPONENT_SIZE]; member 128 u8 exponent[EXPONENT_SIZE]; member 147 u8 *exponent; /* pointer to the exponent */ member 489 fdet->exponent = ff->exponent; in obtain_one_firmware() 514 fdet->exponent = aff->exponent; in obtain_one_firmware()
|
/drivers/usb/host/ |
D | uhci-q.c | 1085 int exponent; in uhci_submit_interrupt() local 1088 for (exponent = 7; exponent >= 0; --exponent) { in uhci_submit_interrupt() 1089 if ((1 << exponent) <= urb->interval) in uhci_submit_interrupt() 1092 if (exponent < 0) in uhci_submit_interrupt() 1097 qh->period = 1 << exponent; in uhci_submit_interrupt() 1098 qh->skel = SKEL_INDEX(exponent); in uhci_submit_interrupt() 1105 } while (ret != 0 && --exponent >= 0); in uhci_submit_interrupt()
|
D | uhci-hcd.h | 331 #define SKEL_INDEX(exponent) (9 - exponent) argument
|
/drivers/pcmcia/ |
D | cistpl.c | 40 static const u_int exponent[] = { variable 46 (mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10) 49 (mantissa[((v)>>3)&15] * exponent[(v)&7] / 10) 50 #define POWER_SCALE(v) (exponent[(v)&7]) 955 timing->waitscale = exponent[scale & 3]; in parse_timing() 963 timing->rdyscale = exponent[scale & 7]; in parse_timing() 971 timing->rsvscale = exponent[scale]; in parse_timing()
|
/drivers/gpu/drm/radeon/ |
D | r600_blit.c | 46 uint32_t msb, exponent, fraction; in int2float() local 60 exponent = (127 + msb) << I2F_FRAC_BITS; in int2float() 62 return fraction + exponent; in int2float()
|
/drivers/spi/ |
D | spi-zynqmp-gqspi.c | 841 u32 exponent = 8; /* 2^8 = 256 */ in zynqmp_qspi_start_transfer() local 853 genfifoentry |= exponent; in zynqmp_qspi_start_transfer() 859 exponent++; in zynqmp_qspi_start_transfer()
|
/drivers/isdn/hardware/mISDN/ |
D | hfcmulti.c | 1845 u8 exponent; in hfcmulti_dtmf() local 1884 exponent = (w_float >> 12) & 0x7; in hfcmulti_dtmf() 1885 if (exponent) { in hfcmulti_dtmf() 1887 mantissa <<= (exponent - 1); in hfcmulti_dtmf() 1903 exponent = (w_float >> 12) & 0x7; in hfcmulti_dtmf() 1904 if (exponent) { in hfcmulti_dtmf() 1906 mantissa <<= (exponent - 1); in hfcmulti_dtmf()
|
/drivers/hid/ |
D | wacom_sys.c | 101 unsigned unit, int exponent) in wacom_calc_hid_res() argument 107 .unit_exponent = exponent, in wacom_calc_hid_res()
|