Searched refs:fractional (Results 1 - 124 of 124) sorted by relevance

/linux-4.4.14/drivers/iio/common/ssp_sensors/
H A Dssp_iio_sensor.h47 int *fractional) ssp_convert_to_freq()
50 *fractional = 0; ssp_convert_to_freq()
56 *fractional = *integer_part % SSP_INVERTED_SCALING_FACTOR; ssp_convert_to_freq()
61 static inline int ssp_convert_to_time(int integer_part, int fractional) ssp_convert_to_time() argument
65 value = (u64)integer_part * SSP_INVERTED_SCALING_FACTOR + fractional; ssp_convert_to_time()
46 ssp_convert_to_freq(u32 time, int *integer_part, int *fractional) ssp_convert_to_freq() argument
/linux-4.4.14/drivers/clk/mxs/
H A Dclk-frac.c19 * struct clk_frac - mxs fractional divider clock
20 * @hw: clk_hw for the fractional divider clock
26 * The clock is an adjustable fractional divider with a busy bit to wait
H A Dclk-ref.c26 * clock has a gate control and a fractional * divider. The rate is calculated
/linux-4.4.14/lib/
H A Drational.c24 * with the fractional part size described in given_denominator.
/linux-4.4.14/include/linux/
H A Dtimecounter.h62 * @frac: accumulated fractional nanoseconds
77 * @frac: pointer to storage for the fractional nanoseconds.
H A Dtimekeeper_internal.h21 * @xtime_nsec: Shifted (fractional) nano seconds offset for readout
H A Dclk-provider.h492 * struct clk_fractional_divider - adjustable fractional divider clock
502 * Clock with adjustable fractional divider affecting its output frequency.
H A Dsched.h146 * a load-average precision of 10 bits integer + 11 bits fractional
/linux-4.4.14/arch/powerpc/include/asm/
H A Dvdso_datapage.h88 __u32 stamp_sec_fraction; /* fractional seconds of stamp_xtime */
109 __u32 stamp_sec_fraction; /* fractional seconds of stamp_xtime */
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pll.c32 * amdgpu_pll_reduce_ratio - fractional number reduction
106 * frac_fb_div_p: fractional part of the feedback divider
184 /* represent the searched ratio as fractional number */ amdgpu_pll_compute()
222 /* avoid high jitter with small fractional dividers */ amdgpu_pll_compute()
/linux-4.4.14/drivers/clk/
H A Dclk-fractional-divider.c8 * Adjustable fractional divider clock implementation.
H A Dclk-si570.c187 * @out_rfreq: RFREG fractional multiplier (output)
/linux-4.4.14/drivers/clk/spear/
H A Dclk-frac-synth.c29 * 0-13 (fractional part)
/linux-4.4.14/include/video/
H A Dw100fb.h99 uint8_t N_fac; /* VCO multiplier fractional part */
/linux-4.4.14/arch/m68k/math-emu/
H A Dfp_log.c56 * Since only the fractional part of the mantissa is stored and fp_fsqrt()
H A Dfp_arith.c449 This one rounds off the fractional part using the rounding mode
/linux-4.4.14/drivers/staging/clocking-wizard/
H A Dclk-xlnx-clock-wizard.c196 /* we don't support fractional div/mul yet */ clk_wzrd_probe()
202 dev_warn(&pdev->dev, "fractional div/mul not supported\n"); clk_wzrd_probe()
/linux-4.4.14/drivers/clk/mediatek/
H A Dclk-pll.c40 * part and the remaining bits (if present) for the fractional part. Also they
74 /* The fractional part of the PLL divider. */ __mtk_pll_recalc_rate()
/linux-4.4.14/drivers/hwmon/
H A Demc2103.c77 s8 temp_min[4]; /* no fractional part */
78 s8 temp_max[4]; /* no fractional part */
101 u8 degrees, fractional; read_temp_from_i2c() local
106 if (read_u8_from_i2c(client, i2c_reg + 1, &fractional) < 0) read_temp_from_i2c()
110 temp->fraction = (fractional & 0xe0) >> 5; read_temp_from_i2c()
H A Dw83791d.c248 * are the fractional amount. Since we only have 0.5 degree resolution,
307 * fractional part. We only use the top
H A Dvt8231.c133 * LSBs as fractional precision.
H A Dasc7621.c393 * indicating fractional degrees.
H A Dadt7462.c696 * Reading the fractional register locks the integral adt7462_update_device()
/linux-4.4.14/drivers/clk/bcm/
H A Dclk-kona.h242 * of its bits represent a "fractional" part of the divider. Such
246 * fractional bits. Variable dividers with non-zero fraction width
249 * affects the bits above the fractional part only. (Often in this
255 * been left-shifted by the fractional width of a divider. Dividing
308 /* A divider whose divisor has an integer and fractional part */
H A Dclk-iproc.h35 /* PLL that has fractional part of the NDIV */
H A Dclk-iproc-pll.c315 /* program fractional part of NDIV */ pll_set_rate()
H A Dclk-bcm2835.c633 /* Number of fractional bits in the divider */
1186 /* clamp to the highest possible fractional divider */ bcm2835_clock_choose_div()
H A Dclk-kona-setup.c363 * If a clock has two dividers, the combined number of fractional
H A Dclk-kona.c64 * given whole part (div_value) and fractional part (expressed
/linux-4.4.14/arch/powerpc/platforms/512x/
H A Dclock-commonclk.c51 /* intermediates in div+gate combos or fractional dividers */
314 * divide ratio is fractional
335 * multiplier ratio is fractional
431 *sys_mul *= 2; /* compensate for the fractional divider */ mpc512x_clk_setup_ref_clock()
716 * - fractional dividers appear to not map well to composites mpc512x_clk_setup_clock_tree()
754 * implementation detail, the "fractional divider with quarters" mpc512x_clk_setup_clock_tree()
780 div = 2; /* compensate for the fractional factor */ mpc512x_clk_setup_clock_tree()
/linux-4.4.14/drivers/clk/ti/
H A Dfapll.c334 * Synth frequency integer and fractional divider. ti_fapll_synth_recalc_rate()
418 /* Only post divider m available with no fractional divider? */ ti_fapll_synth_round_rate()
466 /* Need to recalculate the fractional divider? */ ti_fapll_synth_set_rate()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Dhdmi_pll.c72 /* adjust clkdco with fractional mf */ hdmi_pll_compute()
H A Ddispc.c2654 * registers will only hold the fractional part of the offset dispc_ovl_setup_common()
/linux-4.4.14/drivers/iio/pressure/
H A Dmpl115.c74 /* compensated pressure with 4 fractional bits */ mpl115_comp_pressure()
H A Dbmp280.c182 * integer bits and 8 fractional bits). Output value of "24674867"
/linux-4.4.14/drivers/clk/tegra/
H A Dclk-divider.c160 pr_err("%s: could not allocate fractional divider clk\n", tegra_clk_register_divider()
H A Dclk.h46 * struct tegra_clk_frac_div - fractional divider clock
53 * @frac_width: width of the fractional bit field
/linux-4.4.14/include/drm/
H A Ddrm_fixed.h161 /* determine fractional part */ drm_fixp_from_fraction()
/linux-4.4.14/sound/pci/cs46xx/
H A Dcs46xx_dsp_scb_types.h158 fractional phase accumulation
163 On wavetable/3D voices: this 32-bit word specifies the integer.fractional
284 insure that the fractional error is always
689 /* accumPhi: accumulated fractional phase increment (6.26) */
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dr600_blit.c34 /* 23 bits of float fractional data */
41 * as the fractional bits will not fit in a float. (It would be better to
H A Dradeon_display.c900 * avivo_reduce_ratio - fractional number reduction
974 * frac_fb_div_p: fractional part of the feedback divider
1055 /* represent the searched ratio as fractional number */ radeon_compute_pll_avivo()
1093 /* avoid high jitter with small fractional dividers */ radeon_compute_pll_avivo()
H A Datombios.h1549 UCHAR ucFracFbDiv; // fractional feedback divider
1569 UCHAR ucFracFbDiv; // fractional feedback divider
1616 UCHAR ucFracFbDiv; // fractional feedback divider
/linux-4.4.14/drivers/net/wireless/zd1211rw/
H A Dzd_rf_uw2453.c37 * fractional divide ratio) and 3 (VCO config).
70 /* This table stores the synthesizer fractional divide ratio for *all* VCO
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dar9002_phy.c79 if (freq < 4800) { /* 2 GHz, fractional mode */ ar9002_hw_set_channel()
126 * Enable 2G (fractional) mode for channels ar9002_hw_set_channel()
H A Dar9003_phy.c158 if (freq < 4800) { /* 2 GHz, fractional mode */ ar9003_hw_set_channel()
217 /* Enable fractional mode for all channels */ ar9003_hw_set_channel()
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
H A Doverlay.c111 /* Source parameters given in 16.16 fixed point, ignore fractional. */ nv10_update_plane()
359 /* Source parameters given in 16.16 fixed point, ignore fractional. */ nv04_update_plane()
/linux-4.4.14/drivers/ptp/
H A Dptp_clock.c82 * million, but with a 16 bit binary fractional field. scaled_ppm_to_ppb()
/linux-4.4.14/net/dccp/ccids/lib/
H A Dtfrc_equation.c57 integer arithmetic. This means that nearly all fractional parameters are
/linux-4.4.14/sound/firewire/
H A Damdtp-stream.h15 * for clock skew and left-over fractional samples. This should
H A Damdtp-am824.c328 * fractional values, the values in midi_fifo_used[] are measured in bytes
/linux-4.4.14/sound/soc/codecs/
H A Dtlv320aic26.c109 /* compute fractional DDDD component of multiplier */ aic26_hw_params()
H A Dnau8825.c916 /* Calculate the FLL 10-bit integer input and the FLL 16-bit fractional nau8825_calc_fll_param()
932 /* FLL 16-bit fractional input */ nau8825_fll_apply()
H A Dwm8400.c899 /* Ensure we have a fractional part */ fll_factors()
916 /* Calculate fractional part - scale up so we can round. */ fll_factors()
H A Dwm8955.c177 /* Calculate fractional part - scale up so we can round. */ wm8995_pll_factors()
H A Dwm8900.c734 /* Calculate fractional part - scale up so we can round. */ fll_factors()
H A Dwm8990.c951 /* set up N , fractional mode and pre-divisor if necessary */ wm8990_set_dai_pll()
H A Dwm8991.c935 /* set up N , fractional mode and pre-divisor if necessary */ wm8991_set_dai_pll()
H A Dwm8993.c448 /* Calculate fractional part - scale up so we can round. */ fll_factors()
H A Dwm9081.c528 /* Calculate fractional part - scale up so we can round. */ fll_factors()
H A Dwm9713.c811 /* write the fractional k to the reg 0x46 pages */ wm9713_set_pll()
H A Dwm8995.c1778 /* Calculate fractional part - scale up so we can round. */ wm8995_get_fll_config()
H A Dwm8904.c1657 /* Calculate fractional part - scale up so we can round. */ fll_factors()
H A Dwm8994.c2104 /* Calculate fractional part - scale up so we can round. */ wm8994_get_fll_config()
2261 /* Enable (with fractional mode if required) */ _wm8994_set_fll()
/linux-4.4.14/drivers/video/fbdev/
H A Dpxa168fb.c235 * The hardware clock divider has an integer and a fractional
241 * Calculate integer and fractional divider for given clk_in
H A Dmx3fb.c565 * Calculate divider: fractional part is 4 bits so simply multiple by sdc_init_panel()
566 * 2^4 to get fractional part, as long as we stay under ~250MHz and on sdc_init_panel()
/linux-4.4.14/kernel/
H A Dacct.c310 #define MAXFRACT ((1 << MANTSIZE) - 1) /* Maximum fractional value. */
351 #define MAXFRACT2 ((1ul << MANTSIZE2) - 1) /* Maximum fractional value. */
/linux-4.4.14/drivers/media/tuners/
H A Dfc0012.c239 /* From VCO frequency determines the XIN ( fractional part of Delta fc0012_set_params()
H A Dmsi001.c218 /* Calculate PLL integer and fractional control word. */ msi001_set_tuner()
H A Dfc0013.c393 /* From VCO frequency determines the XIN ( fractional part of Delta fc0013_set_params()
H A Dfc2580.c102 /* calculate PLL integer and fractional control word */ fc2580_set_params()
H A De4000.c155 /* calculate PLL integer and fractional control word */ e4000_set_params()
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf-tuner.c84 {0x1e, 0xff, 0x00}, /* channel frequency (lo and fractional) */
/linux-4.4.14/drivers/clk/berlin/
H A Dberlin2-avpll.c333 * AV2/AV3 form a fractional divider, where only specfic values for AV3 berlin2_avpll_channel_recalc_rate()
/linux-4.4.14/fs/isofs/
H A Dcompress.c89 * First block is special since it may be fractional. We also wait for zisofs_uncompress_block()
/linux-4.4.14/kernel/sched/
H A Dloadavg.c234 * @frac_bits: fractional bits of @x
/linux-4.4.14/Documentation/ptp/
H A Dtestptp.c96 * million, but with a 16 bit binary fractional field. ppb_to_scaled_ppm()
/linux-4.4.14/drivers/staging/media/lirc/
H A Dlirc_serial.c39 * - fine tuned transmitter latency, taking advantage of fractional
424 * fractional bits. that gets us within 0.1% or so of the right average
430 /* To match 8 fractional bits used for pulse/space length */
/linux-4.4.14/drivers/rtc/
H A Drtc-imxdi.c564 * fractional part.
588 /* zero the fractional part first */ dryice_rtc_set_mmss()
615 * the fractional part of the alarm register is always zero.
/linux-4.4.14/drivers/tty/serial/
H A Ddigicolor-usart.c304 /* Limit baud rates so that we don't need the fractional divider */ digicolor_uart_set_termios()
H A Dlantiq.c463 /* make sure the fractional divider is off */ lqasc_set_termios()
H A Dsamsung.c1211 * This table takes the fractional value of the baud divisor and gives
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dsp8870.c276 // fractional carrier offset sp8870_set_frontend_parameters()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
H A Dboot.c160 /* set fractional divider according to Appendix C-BB PLL wl1251_boot_init_seq()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A De1000.h378 * bits to count nanoseconds leaving the rest for fractional nonseconds.
/linux-4.4.14/arch/mips/ralink/
H A Dmt7620.c446 * fractional divider to fix this ralink_clk_init()
/linux-4.4.14/include/linux/mfd/
H A Dsta2x11-mfd.h267 #define SCTL_SCRESFRACT 0x10 /* PLL fractional input register */
/linux-4.4.14/drivers/media/usb/msi2500/
H A Dmsi2500.c759 * [15] fractional MSB, bit 20 msi2500_set_usb_adc()
801 /* Calculate PLL integer and fractional control word. */ msi2500_set_usb_adc()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c34 * frequency is adjusted by changing the 32 bit fractional nanoseconds
40 * leaving 19 bits for fractional nanoseconds.
/linux-4.4.14/drivers/gpu/ipu-v3/
H A Dipu-di.c430 * cope with a fractional divider or not. For the ipu_di_config_clock()
/linux-4.4.14/drivers/misc/echo/
H A Decho.c635 implemented with extended fractional precision, which noise shapes things,
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
H A Dcn66xx_device.c153 /* core clock per us / oq ticks will be fractional. TO avoid that lio_cn6xxx_get_oq_ticks()
/linux-4.4.14/include/math-emu/
H A Dop-4.h665 /* move an integer of size rsize into X's fractional part. We rely on
/linux-4.4.14/drivers/tty/serial/8250/
H A D8250_port.c2114 * XR17V35x UARTs have an extra fractional divisor register (DLD)
2115 * Calculate divisor with extra 4-bit fractional portion
2225 /* XR17V35x UARTs have an extra fractional divisor register (DLD) */ serial8250_set_divisor()
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_hash.h790 /* Return a fractional value between 0 and 999 */ __cfs_hash_theta_frac()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dlprocfs_status.c208 pbuf[5] = '\0'; /*only allow 5bits fractional*/ lprocfs_write_frac_helper()
/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_bsdcomp.c190 * with 8 fractional bits.
/linux-4.4.14/drivers/mtd/nand/
H A Ds3c2410.c670 /* cleanup any fractional write */ s3c2440_nand_write_buf()
H A Ddenali.c69 * This macro divides two integers and rounds fractional values up
/linux-4.4.14/drivers/iio/
H A Dindustrialio-core.c504 * @fract: The fractional part of the number
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dnv50.c567 /* no remainder, but the hw doesn't like the fractional nv50_disp_intr_unk20_2_dp()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c51 * round(): discard the fractional portion of the calculation
/linux-4.4.14/drivers/net/ppp/
H A Dbsd_comp.c237 * with 8 fractional bits.
/linux-4.4.14/arch/x86/include/asm/
H A Dkvm_host.h979 /* number of bits of the fractional part of the TSC scaling ratio */
/linux-4.4.14/sound/drivers/
H A Daloop.c118 unsigned int irq_pos; /* fractional IRQ position */
H A Ddummy.c241 unsigned int frac_pos; /* fractional sample position (based HZ) */
/linux-4.4.14/sound/soc/fsl/
H A Dfsl_asrc.c191 * The ratio is a 32-bit fixed point value with 26 fractional bits.
/linux-4.4.14/drivers/atm/
H A Dlanai.c2052 * CBR ICG is stored as a fixed-point number with 4 fractional bits.
2070 * bits of a fractional part, so we keep everything in the numerator
H A Diphase.c522 sp_mod2 = ((sp_mod + sp_mod2) % entries); // calc new fractional part ia_cbr_setup()
/linux-4.4.14/include/sound/
H A Demu10k1.h377 #define CPF_FRACADDRESS_MASK 0x00003fff /* Linear fractional address of the current channel */
522 /* 4 bits of octave, 12 bits of fractional octave */
/linux-4.4.14/drivers/platform/x86/
H A Dintel_ips.c881 val = (val) >> 6; /* discard fractional component */ read_ctv()
/linux-4.4.14/arch/metag/include/asm/
H A Dmetag_regs.h507 * Data unit product shift for fractional arithmetic (default off)
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dptp.c155 /* Number of extra bits allowed when calculating fractional ns.
H A Dmcdi_pcol.h1242 /* enum: Number of fractional bits in frequency adjustment */
1333 /* enum: Number of fractional bits in frequency adjustment */
/linux-4.4.14/drivers/char/
H A Drandom.c290 * To allow fractional bits to be tracked, the entropy_count field is
/linux-4.4.14/fs/
H A Dbinfmt_elf.c108 /* We need to explicitly zero any fractional pages
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_reg.h4073 * This should be the fractional part of the horizontal scaling factor divided
4090 * Sets the fractional part of the 3.15 fixed-point vertical scaling factor.
4108 * Sets the fractional part of the 3.15 fixed-point vertical scaling factor.
H A Dintel_dp.c82 * CHV requires to program fractional division for m2.
/linux-4.4.14/drivers/usb/serial/
H A Dftdi_sio.c1382 /* Probably the BM type needs the MSB of the encoded fractional change_speed()
/linux-4.4.14/net/mac80211/
H A Dutil.c69 * integer if it includes a fractional microsecond) to send frame of ieee80211_frame_duration()
/linux-4.4.14/sound/oss/
H A Dswarm_cs4297a.c57 * 12/21/00 trw - added fractional "defaultorder" inputs. if >100 then use
/linux-4.4.14/drivers/gpu/drm/amd/include/
H A Datombios.h1589 UCHAR ucFracFbDiv; // fractional feedback divider
1609 UCHAR ucFracFbDiv; // fractional feedback divider
1656 UCHAR ucFracFbDiv; // fractional feedback divider
/linux-4.4.14/drivers/md/
H A Dmd.c3336 * This function takes a decimal number with a possible fractional
/linux-4.4.14/arch/x86/kvm/
H A Dx86.c1373 * (frac) represent the fractional part, ie. ratio represents a fixed
/linux-4.4.14/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c1059 * The 4 bits integer part and the 28 bits fractional part are calculated.

Completed in 5697 milliseconds