Home
last modified time | relevance | path

Searched refs:dividend (Results 1 – 18 of 18) sorted by relevance

/drivers/acpi/acpica/
Dutmath.c90 acpi_ut_short_divide(u64 dividend, in acpi_ut_short_divide() argument
106 dividend_ovl.full = dividend; in acpi_ut_short_divide()
148 union uint64_overlay dividend; in acpi_ut_divide() local
168 dividend.full = in_dividend; in acpi_ut_divide()
180 ACPI_DIV_64_BY_32(0, dividend.part.hi, divisor.part.lo, in acpi_ut_divide()
182 ACPI_DIV_64_BY_32(partial1, dividend.part.lo, divisor.part.lo, in acpi_ut_divide()
192 normalized_dividend = dividend; in acpi_ut_divide()
224 if (partial3.part.lo >= dividend.part.hi) { in acpi_ut_divide()
225 if (partial3.part.lo == dividend.part.hi) { in acpi_ut_divide()
226 if (partial2.part.lo > dividend.part.lo) { in acpi_ut_divide()
[all …]
Dutstring.c177 u64 dividend; in acpi_ut_strtoul64() local
239 dividend = (mode32) ? ACPI_UINT32_MAX : ACPI_UINT64_MAX; in acpi_ut_strtoul64()
295 (void)acpi_ut_short_divide((dividend - (u64)this_digit), in acpi_ut_strtoul64()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c237 u64 dividend; in xgbe_ptp_register() local
261 dividend = 50000000; in xgbe_ptp_register()
262 dividend <<= 32; in xgbe_ptp_register()
263 pdata->tstamp_addend = div_u64(dividend, clk_get_rate(pdata->ptpclk)); in xgbe_ptp_register()
/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c73 static void simple_div(int dividend, int divisor, int *whole, in simple_div() argument
84 *whole = dividend/divisor; in simple_div()
85 rem = dividend % divisor; in simple_div()
/drivers/media/tuners/
Dmax2165.c164 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) in fixpt_div32() argument
173 q = dividend / divisor; in fixpt_div32()
174 remainder = dividend - q * divisor; in fixpt_div32()
Dtda18271-fe.c577 s32 divisor, dividend; in tda18271_rf_tracking_filters_init() local
621 dividend = (prog_cal[RF2] - prog_tab[RF2] - in tda18271_rf_tracking_filters_init()
624 map[i].rf_a1 = (dividend / divisor); in tda18271_rf_tracking_filters_init()
628 dividend = (prog_cal[RF3] - prog_tab[RF3] - in tda18271_rf_tracking_filters_init()
631 map[i].rf_a2 = (dividend / divisor); in tda18271_rf_tracking_filters_init()
/drivers/media/dvb-frontends/
Dcx24113.c306 u64 dividend; in cx24113_calc_pll_nf() local
351 dividend = F; in cx24113_calc_pll_nf()
352 do_div(dividend, state->config->xtal_khz * 1000 * factor * 2); in cx24113_calc_pll_nf()
353 F = dividend; in cx24113_calc_pll_nf()
Dcxd2820r_priv.h67 u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor);
Dcxd2820r_core.c248 u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor) in cxd2820r_div_u64_round_closest() argument
250 return div_u64(dividend + (divisor / 2), divisor); in cxd2820r_div_u64_round_closest()
/drivers/cpuidle/governors/
Dmenu.c199 static u64 div_round64(u64 dividend, u32 divisor) in div_round64() argument
201 return div_u64(dividend + (divisor / 2), divisor); in div_round64()
/drivers/clk/sirf/
Dclk-common.c98 u64 dividend; in pll_clk_round_rate() local
119 dividend = (u64)fin * nf; in pll_clk_round_rate()
120 do_div(dividend, nr * od); in pll_clk_round_rate()
122 return (long)dividend; in pll_clk_round_rate()
/drivers/hwmon/
Dntc_thermistor.c300 static inline u64 div64_u64_safe(u64 dividend, u64 divisor) in div64_u64_safe() argument
302 if (divisor == 0 && dividend == 0) in div64_u64_safe()
306 return div64_u64(dividend, divisor); in div64_u64_safe()
/drivers/tty/serial/
Dst-asc.c540 u64 dividend = (u64)baud * (1 << 16); in asc_set_termios() local
542 do_div(dividend, port->uartclk / 16); in asc_set_termios()
543 asc_out(port, ASC_BAUDRATE, dividend); in asc_set_termios()
/drivers/scsi/megaraid/
Dmegaraid_sas_fp.c84 u32 mega_mod64(u64 dividend, u32 divisor) in mega_mod64() argument
91 d = dividend; in mega_mod64()
102 u64 mega_div64_32(uint64_t dividend, uint32_t divisor) in mega_div64_32() argument
110 d = dividend; in mega_div64_32()
/drivers/clk/bcm/
Dclk-kona.h506 extern u64 do_div_round_closest(u64 dividend, unsigned long divisor);
Dclk-kona.c59 u64 do_div_round_closest(u64 dividend, unsigned long divisor) in do_div_round_closest() argument
63 result = dividend + ((u64)divisor >> 1); in do_div_round_closest()
/drivers/net/wireless/b43/
Dphy_lp.c1072 static u32 lpphy_qdiv_roundup(u32 dividend, u32 divisor, u8 precision) in lpphy_qdiv_roundup() argument
1079 quotient = dividend / divisor; in lpphy_qdiv_roundup()
1080 remainder = dividend % divisor; in lpphy_qdiv_roundup()
/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_lcn.c1016 wlc_lcnphy_qdiv_roundup(u32 dividend, u32 divisor, u8 precision) in wlc_lcnphy_qdiv_roundup() argument
1020 quotient = dividend / divisor; in wlc_lcnphy_qdiv_roundup()
1021 remainder = dividend % divisor; in wlc_lcnphy_qdiv_roundup()