| /drivers/media/usb/gspca/stv06xx/ |
| A D | stv06xx_hdcs.c | 77 } exp; member 177 u8 exp[14]; in hdcs_set_exposure() local 218 exp[5] = rowexp >> 8; in hdcs_set_exposure() 381 hdcs->exp.cto = 4; in hdcs_probe_1x00() 382 hdcs->exp.cpo = 2; in hdcs_probe_1x00() 383 hdcs->exp.rs = 186; in hdcs_probe_1x00() 384 hdcs->exp.er = 100; in hdcs_probe_1x00() 445 hdcs->exp.cto = 3; in hdcs_probe_1020() 446 hdcs->exp.cpo = 3; in hdcs_probe_1020() 447 hdcs->exp.rs = 155; in hdcs_probe_1020() [all …]
|
| /drivers/iio/common/hid-sensors/ |
| A D | hid-sensor-attributes.c | 79 int exp = 0; in simple_div() local 91 exp++; in simple_div() 122 exp = hid_sensor_convert_exponent(exp); in convert_from_vtf_format() 123 if (exp >= 0) { in convert_from_vtf_format() 143 exp = hid_sensor_convert_exponent(exp); in convert_to_vtf_format() 144 if (exp < 0) { in convert_to_vtf_format() 368 if (exp > 0) { in adjust_exponent_nano() 371 if (exp > 9) { in adjust_exponent_nano() 384 exp = abs(exp); in adjust_exponent_nano() 385 if (exp > 9) { in adjust_exponent_nano() [all …]
|
| /drivers/media/rc/img-ir/ |
| A D | img-ir-sharp.c | 14 unsigned int addr, cmd, exp, chk; in img_ir_sharp_scancode() local 21 exp = (raw >> 13) & 0x1; in img_ir_sharp_scancode() 25 if (!exp) in img_ir_sharp_scancode() 40 unsigned int addr, cmd, exp = 0, chk = 0; in img_ir_sharp_filter() local 49 exp = 1; in img_ir_sharp_filter() 57 exp << 13 | in img_ir_sharp_filter()
|
| /drivers/hid/amd-sfh-hid/sfh1_1/ |
| A D | amd_sfh_desc.c | 137 int fraction, shift, mantissa, sign, exp, zeropre; in amd_sfh_float_to_int() local 141 exp = (flt32_val & ~BIT(31)) >> 23; in amd_sfh_float_to_int() 143 if (!exp && !mantissa) in amd_sfh_float_to_int() 150 exp -= 127; in amd_sfh_float_to_int() 151 if (exp < 0) { in amd_sfh_float_to_int() 152 exp = -exp; in amd_sfh_float_to_int() 153 if (exp >= BITS_PER_TYPE(u32)) in amd_sfh_float_to_int() 155 zeropre = (((BIT(23) + mantissa) * 100) >> 23) >> exp; in amd_sfh_float_to_int() 159 shift = 23 - exp; in amd_sfh_float_to_int() 165 flt32_val = BIT(exp) + (mantissa << shift); in amd_sfh_float_to_int() [all …]
|
| /drivers/iio/chemical/ |
| A D | sgp40.c | 106 static u32 sgp40_exp(int exp, u32 power, u32 rounds) in sgp40_exp() argument 113 if (exp == 0) in sgp40_exp() 115 else if (exp < 0) { in sgp40_exp() 117 exp *= -1; in sgp40_exp() 120 xmax = 0x7FFFFFFF / exp; in sgp40_exp() 121 x = exp; in sgp40_exp() 148 u32 exp = 0; in sgp40_calc_voc() local 156 exp = sgp40_exp(x, SGP40_CALC_POWER, 18); in sgp40_calc_voc() 157 *voc = 500 * ((1 << (SGP40_CALC_POWER * 2)) / ((1<<SGP40_CALC_POWER) + exp)); in sgp40_calc_voc() 160 resistance_raw, data->res_calibbias, x, exp, *voc); in sgp40_calc_voc()
|
| A D | sps30.c | 44 int exp = val >> 23; in sps30_float_to_int_clamped() local 48 if (!exp && !mantissa) in sps30_float_to_int_clamped() 51 exp -= 127; in sps30_float_to_int_clamped() 52 if (exp < 0) { in sps30_float_to_int_clamped() 54 return ((((1 << 23) + mantissa) * 100) >> 23) >> (-exp); in sps30_float_to_int_clamped() 58 shift = 23 - exp; in sps30_float_to_int_clamped() 59 val = (1 << exp) + (mantissa >> shift); in sps30_float_to_int_clamped()
|
| A D | scd30_core.c | 95 exp = (float32 & ~BIT(31)) >> 23; in scd30_float_to_fp() local 98 if (!exp && !mantissa) in scd30_float_to_fp() 101 exp -= 127; in scd30_float_to_fp() 102 if (exp < 0) { in scd30_float_to_fp() 103 exp = -exp; in scd30_float_to_fp() 105 return sign * ((((BIT(23) + mantissa) * 100) >> 23) >> exp); in scd30_float_to_fp() 109 shift = 23 - exp; in scd30_float_to_fp() 110 float32 = BIT(exp) + (mantissa >> shift); in scd30_float_to_fp()
|
| /drivers/gpu/drm/amd/display/dc/dml/calcs/ |
| A D | dcn_calc_math.c | 104 float dcn_bw_pow(float a, float exp) in dcn_bw_pow() argument 108 if ((int)exp == 0) in dcn_bw_pow() 110 temp = dcn_bw_pow(a, (int)(exp / 2)); in dcn_bw_pow() 111 if (((int)exp % 2) == 0) { in dcn_bw_pow() 114 if ((int)exp > 0) in dcn_bw_pow()
|
| /drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_standalone_libraries/ |
| A D | lib_float_math.c | 84 float math_pow(float a, float exp) in math_pow() argument 87 if ((int)exp == 0) in math_pow() 89 temp = math_pow(a, (float)((int)(exp / 2))); in math_pow() 90 if (((int)exp % 2) == 0) { in math_pow() 93 if ((int)exp > 0) in math_pow()
|
| /drivers/staging/media/atomisp/include/hmm/ |
| A D | hmm_common.h | 18 #define var_equal_return(var1, var2, exp, fmt, arg ...) \ argument 23 return exp;\ 54 #define check_null_return(ptr, exp, fmt, arg ...) \ argument 55 var_equal_return(ptr, NULL, exp, fmt, ## arg)
|
| A D | hmm_bo.h | 22 #define check_bodev_null_return(bdev, exp) \ argument 23 check_null_return(bdev, exp, \ 51 #define check_bo_null_return(bo, exp) \ argument 52 check_null_return(bo, exp, "NULL hmm buffer object.\n")
|
| /drivers/block/drbd/ |
| A D | drbd_polymorph_printk.h | 121 #define D_ASSERT(x, exp) \ argument 123 if (!(exp)) \ 125 #exp, __func__); \ 133 #define expect(x, exp) ({ \ argument 134 bool _bool = (exp); \ 137 #exp, __func__); \
|
| /drivers/staging/media/atomisp/pci/isp/kernels/macc/macc_1.0/ |
| A D | ia_css_macc.host.c | 25 to->exp = from->exp; in ia_css_macc_encode() 40 config->exp); in ia_css_macc_debug_dtrace()
|
| /drivers/iio/light/ |
| A D | opt4001.c | 148 static u8 opt4001_calculate_crc(u8 exp, u32 mantissa, u8 count) in opt4001_calculate_crc() argument 152 crc = (hweight32(mantissa) + hweight32(exp) + hweight32(count)) % 2; in opt4001_calculate_crc() 153 crc |= ((hweight32(mantissa & 0xAAAAA) + hweight32(exp & 0xA) in opt4001_calculate_crc() 155 crc |= ((hweight32(mantissa & 0x88888) + hweight32(exp & 0x8) in opt4001_calculate_crc() 171 u8 exp; in opt4001_read_lux_value() local 191 exp = FIELD_GET(OPT4001_EXPONENT_MASK, light1); in opt4001_read_lux_value() 196 calc_crc = opt4001_calculate_crc(exp, lux_raw, count); in opt4001_read_lux_value() 200 lux_raw = lux_raw << exp; in opt4001_read_lux_value()
|
| A D | max44009.c | 301 int mantissa, exp; in max44009_threshold_byte_from_fraction() local 316 for (exp = 0; mantissa > 0xff; exp++) in max44009_threshold_byte_from_fraction() 321 exp <<= 4; in max44009_threshold_byte_from_fraction() 323 return exp | mantissa; in max44009_threshold_byte_from_fraction()
|
| /drivers/net/phy/ |
| A D | meson-gxl.c | 153 int ret, wol, lpa, exp; in meson_gxl_read_status() local 171 exp = phy_read(phydev, MII_EXPANSION); in meson_gxl_read_status() 172 if (exp < 0) in meson_gxl_read_status() 173 return exp; in meson_gxl_read_status() 176 ((exp & EXPANSION_NWAY) && !(lpa & LPA_LPACK))) { in meson_gxl_read_status()
|
| /drivers/media/usb/gspca/ |
| A D | sn9c20x.c | 1444 exp[7] = 0x1e; in set_exposure() 1455 exp[0] |= (2 << 4); in set_exposure() 1458 exp[7] = 0x10; in set_exposure() 1462 exp[7] = 0x10; in set_exposure() 1465 exp[7] = 0x1e; in set_exposure() 1466 exp[0] |= (3 << 4); in set_exposure() 1468 exp[3] = expo; in set_exposure() 1475 exp[2] = 0x09; in set_exposure() 1477 exp[4] = expo; in set_exposure() 1481 exp[2] = 0x25; in set_exposure() [all …]
|
| /drivers/staging/media/atomisp/pci/isp/kernels/macc/macc1_5/ |
| A D | ia_css_macc1_5.host.c | 28 to->exp = from->exp; in ia_css_macc1_5_encode() 64 config->exp); in ia_css_macc1_5_debug_dtrace()
|
| /drivers/media/i2c/ccs/ |
| A D | ccs-reg-access.c | 22 s32 exp; in float_to_u32_mul_1000000() local 49 exp = ((int32_t)phloat >> 23) - 127; in float_to_u32_mul_1000000() 54 if (exp < 0) in float_to_u32_mul_1000000() 55 man >>= -exp; in float_to_u32_mul_1000000() 57 man <<= exp; in float_to_u32_mul_1000000()
|
| /drivers/hwmon/ |
| A D | lochnagar-hwmon.c | 73 int exp = ((data & 0x7F800000) >> 23) - 127 - 23; in float_to_long() local 79 if (fls64(man) + exp > (int)sizeof(long) * 8 - 1) in float_to_long() 81 else if (exp < 0) in float_to_long() 82 result = (man + (1ull << (-exp - 1))) >> -exp; in float_to_long() 84 result = man << exp; in float_to_long()
|
| /drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | cn10k.c | 290 u32 exp = 0; in cn10k_get_ingress_rate_cfg() local 309 for (exp = 0; tmp >= 512000000 && exp <= MAX_RATE_EXP; exp++) in cn10k_get_ingress_rate_cfg() 312 if (exp > MAX_RATE_EXP) in cn10k_get_ingress_rate_cfg() 313 exp = MAX_RATE_EXP; in cn10k_get_ingress_rate_cfg() 317 *rate_exp = exp; in cn10k_get_ingress_rate_cfg()
|
| /drivers/media/dvb-core/ |
| A D | dvb_vb2.c | 366 int dvb_vb2_expbuf(struct dvb_vb2_ctx *ctx, struct dmx_exportbuffer *exp) in dvb_vb2_expbuf() argument 369 struct vb2_buffer *vb2 = vb2_get_buffer(q, exp->index); in dvb_vb2_expbuf() 377 ret = vb2_core_expbuf(&ctx->vb_q, &exp->fd, q->type, vb2, in dvb_vb2_expbuf() 378 0, exp->flags); in dvb_vb2_expbuf() 381 exp->index, ret); in dvb_vb2_expbuf() 384 dprintk(3, "[%s] index=%d fd=%d\n", ctx->name, exp->index, exp->fd); in dvb_vb2_expbuf()
|
| /drivers/xen/ |
| A D | gntdev-dmabuf.c | 41 } exp; member 108 kref_put(&gntdev_dmabuf->u.exp.refcount, dmabuf_exp_release); in dmabuf_exp_wait_obj_new() 154 kref_get(&gntdev_dmabuf->u.exp.refcount); in dmabuf_exp_wait_obj_get_dmabuf() 310 container_of(kref, struct gntdev_dmabuf, u.exp.refcount); in dmabuf_exp_release() 332 dmabuf_exp_remove_map(gntdev_dmabuf->u.exp.priv, in dmabuf_exp_ops_release() 333 gntdev_dmabuf->u.exp.map); in dmabuf_exp_ops_release() 335 kref_put(&gntdev_dmabuf->u.exp.refcount, dmabuf_exp_release); in dmabuf_exp_ops_release() 370 kref_init(&gntdev_dmabuf->u.exp.refcount); in dmabuf_exp_from_pages() 375 gntdev_dmabuf->u.exp.priv = args->priv; in dmabuf_exp_from_pages() 376 gntdev_dmabuf->u.exp.map = args->map; in dmabuf_exp_from_pages()
|
| /drivers/iio/proximity/ |
| A D | isl29501.c | 266 u32 value, gain, coeff, exp; in isl29501_read_ext() local 281 ret = isl29501_register_read(isl29501, REG_PHASE_EXP, &exp); in isl29501_read_ext() 289 value = coeff << exp; in isl29501_read_ext() 355 unsigned int exp = 1; in isl29501_find_corr_exp() local 370 while ((val >> exp) > max_mantissa) { in isl29501_find_corr_exp() 371 exp++; in isl29501_find_corr_exp() 373 if (exp > max_exp) in isl29501_find_corr_exp() 377 return exp; in isl29501_find_corr_exp()
|
| /drivers/gpu/drm/nouveau/dispnv50/ |
| A D | wndwc57e.c | 147 int sign = 0, exp = 0, man = 0; in fixedU0_16_FP16() local 149 while (--exp && !(fixed & 0x8000)) in fixedU0_16_FP16() 152 exp += 15; in fixedU0_16_FP16() 154 return (sign << 15) | (exp << 10) | man; in fixedU0_16_FP16()
|