Home
last modified time | relevance | path

Searched refs:quotient (Results 1 – 25 of 32) sorted by relevance

12

/linux/lib/math/
H A Dtest_div64.c56 u64 quotient; member
152 static inline bool test_div64_verify(u64 quotient, u32 remainder, int i, int j) in test_div64_verify() argument
154 return (quotient == test_div64_results[i][j].quotient && in test_div64_verify()
165 u64 quotient; \
168 quotient = dividend; \
169 remainder = do_div(quotient, divisor); \
170 if (!test_div64_verify(quotient, remainder, i, j)) { \
172 dividend, divisor, quotient, remainder); \
174 test_div64_results[i][j].quotient, \
H A Ddiv64.c70 u64 quotient; in div_s64_rem() local
73 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
76 quotient = -quotient; in div_s64_rem()
78 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
80 quotient = -quotient; in div_s64_rem()
82 return quotient; in div_s64_rem()
/linux/drivers/acpi/acpica/
H A Dutmath.c260 union uint64_overlay quotient; in acpi_ut_short_divide() local
279 quotient.part.hi, remainder32); in acpi_ut_short_divide()
282 quotient.part.lo, remainder32); in acpi_ut_short_divide()
287 *out_quotient = quotient.full; in acpi_ut_short_divide()
317 union uint64_overlay quotient; in acpi_ut_divide() local
348 quotient.part.hi, partial1); in acpi_ut_divide()
351 quotient.part.lo, remainder.part.lo); in acpi_ut_divide()
359 quotient.part.hi = 0; in acpi_ut_divide()
395 quotient.part.lo--; in acpi_ut_divide()
399 quotient.part.lo--; in acpi_ut_divide()
[all …]
H A Dhwtimer.c123 u64 quotient; in ACPI_EXPORT_SYMBOL() local
168 ACPI_PM_TIMER_FREQUENCY, &quotient, NULL); in ACPI_EXPORT_SYMBOL()
170 *time_elapsed = (u32)quotient; in ACPI_EXPORT_SYMBOL()
H A Dutstrsuppt.c373 u64 quotient; in acpi_ut_strtoul_multiply64() local
390 acpi_ut_short_divide(ACPI_UINT64_MAX, base, &quotient, NULL); in acpi_ut_strtoul_multiply64()
391 if (multiplicand > quotient) { in acpi_ut_strtoul_multiply64()
/linux/drivers/net/wireless/realtek/rtw89/
H A Dutil.h27 s32 quotient; in s32_div_u32_round_down() local
29 quotient = dividend / i_divisor; in s32_div_u32_round_down()
33 quotient--; in s32_div_u32_round_down()
39 return quotient; in s32_div_u32_round_down()
/linux/arch/alpha/lib/
H A Ddivide.S66 #define quotient $27 macro
74 #define quotient $2 macro
108 bis $31,$31,quotient
139 2: DIV_ONLY(addq quotient,mask,tmp2)
143 DIV_ONLY(cmovne compare,tmp2,quotient)
H A Dev6-divide.S76 #define quotient $27 macro
84 #define quotient $2 macro
119 bis $31,$31,quotient # E :
167 DIV_ONLY(addq quotient,mask,tmp2) # E :
176 DIV_ONLY(cmovne compare,tmp2,quotient) # E : Latency 2, extra map slot
/linux/Documentation/devicetree/bindings/power/avs/
H A Dqcom,cpr.yaml59 - description: Corner 1 quotient offset
60 - description: Corner 2 quotient offset
61 - description: Corner 3 quotient offset
65 - description: Corner 1 quotient
66 - description: Corner 2 quotient
67 - description: Corner 3 quotient
/linux/arch/m68k/ifpsp060/src/
H A Dilsp.S80 # 0x10(sp) = points to location of remainder/quotient. #
305 mov.w %d5, %d1 # first quotient word
312 mov.w %d5, %d1 # 2nd quotient 'digit'
315 mov.l %d1, %d6 # and quotient
329 clr.l %d1 # %d1 will hold trial quotient
348 mov.w &0xffff, %d1 # use max trial quotient word
353 divu.w %d3, %d1 # use quotient of mslw/msw
360 # quotient will be at worst 1 too large.
400 bcc ldd2nd # no carry, do next quotient digit
429 # add 2nd word to quotient, get the remainder.
[all …]
/linux/arch/powerpc/lib/
H A Ddiv64.S23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor
40 2: mullw r10,r11,r4 # to get an estimate of the quotient,
44 subfe. r5,r9,r5 # quotient
52 4: stw r7,0(r3) # return the quotient in *r3
/linux/arch/powerpc/boot/
H A Ddiv64.S23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor
40 2: mullw r10,r11,r4 # to get an estimate of the quotient,
44 subfe. r5,r9,r5 # quotient
52 4: stw r7,0(r3) # return the quotient in *r3
/linux/drivers/media/tuners/
H A Dmax2165.c150 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) in fixpt_div32() argument
171 *quotient = q; in fixpt_div32()
182 u32 quotient, fraction; in max2165_set_rf() local
187 &quotient, &fraction); in max2165_set_rf()
194 max2165_write_reg(priv, REG_NDIV_INT, quotient); in max2165_set_rf()
/linux/arch/m68k/math-emu/
H A Dfp_emu.h56 #define fp_set_quotient(quotient) ({ \ argument
58 FPDATA->fpsr |= ((quotient) & 0xff) << 16; \
/linux/arch/sparc/kernel/
H A Dtime_64.c822 unsigned long freq, quotient, tick; in init_tick_ops() local
825 quotient = clocksource_hz2mult(freq, SPARC64_NSEC_PER_CYC_SHIFT); in init_tick_ops()
828 ops->offset = (tick * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT; in init_tick_ops()
829 ops->ticks_per_nsec_quotient = quotient; in init_tick_ops()
883 unsigned long quotient = tick_operations.ticks_per_nsec_quotient; in sched_clock() local
893 return ((get_tick() * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT) - offset; in sched_clock()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c54 u32 quotient, reminder; in stmmac_adjust_time() local
66 quotient = div_u64_rem(delta, 1000000000ULL, &reminder); in stmmac_adjust_time()
67 sec = quotient; in stmmac_adjust_time()
/linux/drivers/clk/qcom/
H A Dclk-alpha-pll.c602 u64 quotient; in alpha_pll_round_rate() local
604 quotient = rate; in alpha_pll_round_rate()
605 remainder = do_div(quotient, prate); in alpha_pll_round_rate()
606 *l = quotient; in alpha_pll_round_rate()
619 quotient++; in alpha_pll_round_rate()
621 *a = quotient; in alpha_pll_round_rate()
809 u64 quotient; in alpha_huayra_pll_round_rate() local
811 quotient = rate; in alpha_huayra_pll_round_rate()
813 *l = quotient; in alpha_huayra_pll_round_rate()
824 quotient++; in alpha_huayra_pll_round_rate()
[all …]
/linux/drivers/media/pci/cx25821/
H A Dcx25821-medusa-video.c515 int quotient; in mapM() local
528 quotient = numerator / denominator; in mapM()
531 quotient++; in mapM()
533 *dstVal = quotient + dstMin; in mapM()
/linux/Documentation/devicetree/bindings/iio/afe/
H A Dvoltage-divider.yaml60 the Rout / (R + Rout) quotient.
/linux/drivers/pmdomain/qcom/
H A Dcpr.c135 char *quotient; member
901 ret = nvmem_cell_read_variable_le_u32(drv->dev, fuses->quotient, &fuse->quot); in cpr_fuse_corner_init()
1253 fuses[i].quotient = devm_kstrdup(drv->dev, tbuf, GFP_KERNEL); in cpr_get_fuses()
1254 if (!fuses[i].quotient) in cpr_get_fuses()
/linux/arch/m68k/fpsp040/
H A Dfpsp.h96 .set FPSR_QBYTE,USER_FPSR+1 | FPSR quotient
227 .set q_sn_bit,7 | sign bit of quotient byte
/linux/Documentation/staging/
H A Dcrc32.rst41 When computing a CRC, we don't care about the quotient, so we can
42 throw the quotient bit away, but subtract the appropriate multiple of
/linux/arch/arm/nwfpe/
H A Dsoftfloat-macros552 Returns an approximation to the 64-bit integer quotient obtained by dividing
554 divisor `b' must be at least 2^63. If q is the exact quotient truncated
556 If the exact quotient q is larger than 64 bits, the maximum positive 64-bit
/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_lp.c1062 u32 quotient, remainder; in lpphy_qdiv_roundup() local
1067 quotient = dividend / divisor; in lpphy_qdiv_roundup()
1071 quotient <<= 1; in lpphy_qdiv_roundup()
1073 quotient++; in lpphy_qdiv_roundup()
1080 quotient++; in lpphy_qdiv_roundup()
1082 return quotient; in lpphy_qdiv_roundup()
/linux/arch/m68k/ifpsp060/
H A Dilsp.doc108 mov.l (%sp)+,%d0 # load quotient

12