Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 25 of 84) sorted by relevance

1234

/linux-6.6.21/sound/core/seq/
Dseq_timer.h15 unsigned long fraction; /* current time per tick in nsec */ member
57 tick->fraction += resolution; in snd_seq_timer_update_tick()
58 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick()
59 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
Dseq_timer.c106 tmr->tick.fraction = 0; in seq_timer_reset()
217 tmr->tick.fraction = 0; in snd_seq_timer_set_position_tick()
/linux-6.6.21/arch/m68k/fpsp040/
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
Dsint.S203 | ;there are no fraction bits
208 | ;shift off fraction bits
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-6.6.21/drivers/media/tuners/
Dmax2165.c150 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) in fixpt_div32() argument
172 *fraction = f; in fixpt_div32()
182 u32 quotient, fraction; in max2165_set_rf() local
187 &quotient, &fraction); in max2165_set_rf()
192 fraction >>= 12; in max2165_set_rf()
195 max2165_mask_write_reg(priv, REG_NDIV_FRAC2, 0x0F, fraction >> 16); in max2165_set_rf()
196 max2165_write_reg(priv, REG_NDIV_FRAC1, fraction >> 8); in max2165_set_rf()
197 max2165_write_reg(priv, REG_NDIV_FRAC0, fraction); in max2165_set_rf()
/linux-6.6.21/drivers/net/wireless/ath/
Ddfs_pri_detector.c44 static u32 pde_get_multiple(u32 val, u32 fraction, u32 tolerance) in pde_get_multiple() argument
50 if (fraction == 0) in pde_get_multiple()
53 delta = (val < fraction) ? (fraction - val) : (val - fraction); in pde_get_multiple()
59 factor = val / fraction; in pde_get_multiple()
60 remainder = val % fraction; in pde_get_multiple()
63 if ((fraction - remainder) <= tolerance) in pde_get_multiple()
/linux-6.6.21/tools/perf/ui/gtk/
Dprogress.c12 double fraction = p->total ? 1.0 * p->curr / p->total : 0.0; in gtk_ui_progress__update() local
34 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), fraction); in gtk_ui_progress__update()
/linux-6.6.21/drivers/gpu/drm/ci/
Digt_runner.sh60 --fraction-start $CI_NODE_INDEX \
61 --fraction $CI_NODE_TOTAL \
/linux-6.6.21/drivers/tty/serial/8250/
D8250_mtk.c312 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
394 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
395 fraction = DIV_ROUND_CLOSEST(fraction, 10); in mtk8250_set_termios()
397 fraction_L_mapping[fraction]); in mtk8250_set_termios()
399 fraction_M_mapping[fraction]); in mtk8250_set_termios()
/linux-6.6.21/drivers/iio/chemical/
Dsps30.c45 int fraction, shift; in sps30_float_to_int_clamped() local
63 fraction = mantissa & GENMASK(shift - 1, 0); in sps30_float_to_int_clamped()
65 return val * 100 + ((fraction * 100) >> shift); in sps30_float_to_int_clamped()
Dscd30_core.c91 int fraction, shift, in scd30_float_to_fp() local
110 fraction = mantissa & GENMASK(shift - 1, 0); in scd30_float_to_fp()
112 return sign * (float32 * 100 + ((fraction * 100) >> shift)); in scd30_float_to_fp()
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-firmware-gsmi51 ASCII) representing the fraction of the log to
55 submitted fraction.
/linux-6.6.21/drivers/hid/amd-sfh-hid/sfh1_1/
Damd_sfh_desc.c137 int fraction, shift, mantissa, sign, exp, zeropre; in float_to_int() local
171 fraction = (shift == 0) ? 0 : mantissa & GENMASK(shift - 1, 0); in float_to_int()
173 return (((fraction * 100) >> shift) >= 50) ? sign * (flt32_val + 1) : sign * flt32_val; in float_to_int()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c297 inits->h_init.fraction = dc_fixpt_u0d19(h_init) << 5; in calculate_inits()
306 inits->v_init.fraction = dc_fixpt_u0d19(v_init) << 5; in calculate_inits()
335 inits->v_init.fraction = dc_fixpt_u0d19(v_init) << 5; in dce60_calculate_inits()
352 SCL_H_INIT_FRAC, inits->h_init.fraction); in program_scl_ratios_inits()
356 SCL_V_INIT_FRAC, inits->v_init.fraction); in program_scl_ratios_inits()
376 SCL_H_INIT_FRAC_RGB_Y, inits->h_init_luma.fraction); in dce60_program_scl_ratios_inits()
381 SCL_H_INIT_FRAC_CBCR, inits->h_init_chroma.fraction); in dce60_program_scl_ratios_inits()
385 SCL_V_INIT_FRAC, inits->v_init.fraction); in dce60_program_scl_ratios_inits()
/linux-6.6.21/Documentation/devicetree/bindings/mfd/
Dst,stmpe.yaml178 st,fraction-z:
182 (fraction-z ([0..7]) = Count of the fractional part)
292 st,fraction-z = <7>;
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv50/
Dbase907c.c124 u32 fraction = in & 0xffffffff; in csc_drm_to_base() local
129 u32 ret = (integer << 16) | (fraction >> 16); in csc_drm_to_base()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_transform_v.c435 inits->h_init_luma.fraction, in program_scl_ratios_inits()
449 inits->v_init_luma.fraction, in program_scl_ratios_inits()
463 inits->h_init_chroma.fraction, in program_scl_ratios_inits()
477 inits->v_init_chroma.fraction, in program_scl_ratios_inits()
/linux-6.6.21/arch/arm/boot/dts/intel/socfpga/
Dsocfpga_cyclone5_mcvevk.dts69 ts,fraction-z = <7>;
/linux-6.6.21/Documentation/devicetree/bindings/clock/
Dstarfive,jh7110-pll.yaml11 Each PLL works in integer mode or fraction mode, with configuration
/linux-6.6.21/drivers/hwmon/
Demc2103.c52 u8 fraction; /* 0-7 multiples of 0.125 */ member
97 temp->fraction = (fractional & 0xe0) >> 5; in read_temp_from_i2c()
180 + data->temp[nr].fraction * 125; in temp_show()
/linux-6.6.21/arch/arm/boot/dts/nxp/imx/
Dimx53-m53.dtsi59 st,fraction-z = <7>;
Dimx6ul-phytec-segin-peb-av-02.dtsi73 st,fraction-z = <7>;
/linux-6.6.21/Documentation/sound/designs/
Dtracepoints.rst96 Read-only. This value represents numerator of sampling rate in fraction
103 fraction notation. Basically, when a parameter of
/linux-6.6.21/Documentation/devicetree/bindings/thermal/
Dqcom-spmi-adc-tm-hc.yaml88 integers, denoting the numerator and denominator of the fraction by

1234