/drivers/acpi/acpica/ |
D | utmath.c | 90 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 …]
|
D | utstring.c | 177 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/ |
D | xgbe-ptp.c | 237 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/ |
D | hid-sensor-attributes.c | 73 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/ |
D | max2165.c | 164 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()
|
D | tda18271-fe.c | 577 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/ |
D | cx24113.c | 306 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()
|
D | cxd2820r_priv.h | 67 u32 cxd2820r_div_u64_round_closest(u64 dividend, u32 divisor);
|
D | cxd2820r_core.c | 248 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/ |
D | menu.c | 199 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/ |
D | clk-common.c | 98 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/ |
D | ntc_thermistor.c | 300 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/ |
D | st-asc.c | 540 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/ |
D | megaraid_sas_fp.c | 84 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/ |
D | clk-kona.h | 506 extern u64 do_div_round_closest(u64 dividend, unsigned long divisor);
|
D | clk-kona.c | 59 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/ |
D | phy_lp.c | 1072 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/ |
D | phy_lcn.c | 1016 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()
|