Searched refs:fraction (Results 1 - 25 of 33) sorted by relevance

12

/linux-master/sound/core/seq/
H A Dseq_timer.h15 unsigned long fraction; /* current time per tick in nsec */ member in struct:snd_seq_timer_tick
57 tick->fraction += resolution;
58 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution);
59 tick->fraction %= tick->resolution;
H A Dseq_timer.c103 tmr->tick.fraction = 0;
200 tmr->tick.fraction = 0;
/linux-master/tools/perf/ui/gtk/
H A Dprogress.c12 double fraction = p->total ? 1.0 * p->curr / p->total : 0.0; local
34 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), fraction); local
/linux-master/arch/m68k/fpsp040/
H A Dbinstr.S16 | bit 63. The fraction is multiplied by 10 using a mul by 2
26 | Copy the fraction in d2:d3 to d4:d5.
28 | A3. Multiply the fraction in d2:d3 by 8 using bit-field
32 | A4. Multiply the fraction in d4:d5 by 2 using shifts. The msb
51 | d2: upper 32-bits of fraction for mul by 8
52 | d3: lower 32-bits of fraction for mul by 8
53 | d4: upper 32-bits of fraction for mul by 2
54 | d5: lower 32-bits of fraction for mul by 2
84 movel %d2,%d4 |copy the fraction before muls
H A Dsint.S203 | ;there are no fraction bits
208 | ;shift off fraction bits
H A Ddecbin.S27 | digits, rather than 1 integer and 16 fraction digits.
44 | SM = 1 a non-zero digit in Mant0, lsd of the fraction
144 movel #EDIGITS,%d2 |# of nibbles (digits) in fraction part
/linux-master/drivers/net/wireless/ath/
H A Ddfs_pri_detector.c42 * Return value: factor if abs(val - factor*fraction) <= tolerance, 0 otherwise
44 static u32 pde_get_multiple(u32 val, u32 fraction, u32 tolerance) argument
50 if (fraction == 0)
53 delta = (val < fraction) ? (fraction - val) : (val - fraction);
56 /* val and fraction are within tolerance */
59 factor = val / fraction;
60 remainder = val % fraction;
63 if ((fraction
[all...]
/linux-master/drivers/media/tuners/
H A Dmax2165.c150 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) argument
172 *fraction = f;
182 u32 quotient, fraction; local
187 &quotient, &fraction);
191 /* 20-bit fraction */
192 fraction >>= 12;
195 max2165_mask_write_reg(priv, REG_NDIV_FRAC2, 0x0F, fraction >> 16);
196 max2165_write_reg(priv, REG_NDIV_FRAC1, fraction >> 8);
197 max2165_write_reg(priv, REG_NDIV_FRAC0, fraction);
/linux-master/drivers/tty/serial/8250/
H A D8250_mtk.c312 unsigned int baud, quot, fraction; local
393 /*count fraction to set fractoin register */
394 fraction = ((port->uartclk * 100) / baud / quot) % 100;
395 fraction = DIV_ROUND_CLOSEST(fraction, 10);
397 fraction_L_mapping[fraction]);
399 fraction_M_mapping[fraction]);
/linux-master/drivers/iio/chemical/
H A Dsps30.c45 int fraction, shift; local
63 fraction = mantissa & GENMASK(shift - 1, 0);
65 return val * 100 + ((fraction * 100) >> shift);
H A Dscd30_core.c91 int fraction, shift, local
110 fraction = mantissa & GENMASK(shift - 1, 0);
112 return sign * (float32 * 100 + ((fraction * 100) >> shift));
/linux-master/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_desc.c137 int fraction, shift, mantissa, sign, exp, zeropre; local
147 * Calculate the exponent and fraction part of floating
171 fraction = (shift == 0) ? 0 : mantissa & GENMASK(shift - 1, 0);
173 return (((fraction * 100) >> shift) >= 50) ? sign * (flt32_val + 1) : sign * flt32_val;
/linux-master/drivers/gpu/drm/nouveau/dispnv50/
H A Dbase907c.c124 u32 fraction = in & 0xffffffff; local
129 u32 ret = (integer << 16) | (fraction >> 16);
/linux-master/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c435 inits->h_init_luma.fraction,
449 inits->v_init_luma.fraction,
463 inits->h_init_chroma.fraction,
477 inits->v_init_chroma.fraction,
/linux-master/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c297 inits->h_init.fraction = dc_fixpt_u0d19(h_init) << 5;
306 inits->v_init.fraction = dc_fixpt_u0d19(v_init) << 5;
335 inits->v_init.fraction = dc_fixpt_u0d19(v_init) << 5;
352 SCL_H_INIT_FRAC, inits->h_init.fraction);
356 SCL_V_INIT_FRAC, inits->v_init.fraction);
376 SCL_H_INIT_FRAC_RGB_Y, inits->h_init_luma.fraction);
381 SCL_H_INIT_FRAC_CBCR, inits->h_init_chroma.fraction);
385 SCL_V_INIT_FRAC, inits->v_init.fraction);
H A Ddce_transform.h609 uint32_t fraction; member in struct:init_int_and_frac
/linux-master/drivers/hwmon/
H A Demc2103.c52 u8 fraction; /* 0-7 multiples of 0.125 */ member in struct:temperature
97 temp->fraction = (fractional & 0xe0) >> 5;
180 + data->temp[nr].fraction * 125;
H A Dlm90.c1364 int fraction = resolution > 8 ? local
1368 val = clamp_val(val, -64000, 191000 + fraction);
1371 val = clamp_val(val, 0, 255000 + fraction);
1373 val = clamp_val(val, 0, 127000 + fraction);
1375 val = clamp_val(val, -128000, 127000 + fraction);
/linux-master/drivers/gpu/drm/arm/display/komeda/d71/
H A Dd71_component.c877 u64 fraction, denominator; local
899 fraction = h_in;
902 fraction = h_in * v_in;
906 return aclk_rate * denominator >= mode->crtc_clock * 1000 * fraction ?
/linux-master/drivers/iio/light/
H A Dsi1133.c240 static int si1133_calculate_polynomial_inner(s32 input, u8 fraction, u16 mag, argument
243 return ((input << fraction) / mag) << shift;
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_main.c32 #define QLIM_WM(fraction) \
33 ((SPX5_BUFFER_MEMORY / SPX5_BUFFER_CELL_SZ - 100) * (fraction) / 100)
/linux-master/drivers/ufs/host/
H A Dufs-exynos.c524 long clk_period, fraction; local
527 fraction = ((NSEC_PER_SEC % pclk_rate) * precise) / pclk_rate;
529 return (period * precise) / ((clk_period * precise) + fraction);
/linux-master/drivers/atm/
H A Diphase.h250 u_short fraction; member in struct:main_vc
792 u_short fraction; /* fraction */ member in struct:__anon18
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_cdclk.c3407 int divider, fraction; local
3412 fraction = 0;
3416 fraction = 200;
3420 if (fraction) {
3424 fraction) - 1);
3430 return divider + fraction;
/linux-master/drivers/tty/serial/
H A Dstm32-usart.c1174 u32 usartdiv, mantissa, fraction, oversampling; local
1308 fraction = usartdiv % oversampling;
1309 brr = mantissa | fraction;

Completed in 576 milliseconds

12