divisor 508 arch/alpha/kernel/core_lca.c lca_clock_fiddle(int divisor) divisor 513 arch/alpha/kernel/core_lca.c LCA_SET_PRIMARY_CLOCK(pmr_reg, divisor); divisor 295 arch/arm/mach-orion5x/kurobox_pro-setup.c const unsigned divisor = ((orion5x_tclk + (8 * 38400)) / (16 * 38400)); divisor 301 arch/arm/mach-orion5x/kurobox_pro-setup.c writel(divisor & 0xff, UART1_REG(DLL)); divisor 302 arch/arm/mach-orion5x/kurobox_pro-setup.c writel((divisor >> 8) & 0xff, UART1_REG(DLM)); divisor 270 arch/arm/mach-orion5x/terastation_pro2-setup.c const unsigned divisor = ((orion5x_tclk + (8 * 38400)) / (16 * 38400)); divisor 276 arch/arm/mach-orion5x/terastation_pro2-setup.c writel(divisor & 0xff, UART1_REG(DLL)); divisor 277 arch/arm/mach-orion5x/terastation_pro2-setup.c writel((divisor >> 8) & 0xff, UART1_REG(DLM)); divisor 27 arch/arm/mach-orion5x/tsx09-common.c const unsigned divisor = ((orion5x_tclk + (8 * 19200)) / (16 * 19200)); divisor 33 arch/arm/mach-orion5x/tsx09-common.c writel(divisor & 0xff, UART1_REG(DLL)); divisor 34 arch/arm/mach-orion5x/tsx09-common.c writel((divisor >> 8) & 0xff, UART1_REG(DLM)); divisor 167 arch/arm/mach-pxa/viper.c unsigned int divisor = 0; divisor 171 arch/arm/mach-pxa/viper.c v = "1.0"; divisor = 0xfff; divisor 173 arch/arm/mach-pxa/viper.c v = "1.1"; divisor = 0xde5; divisor 175 arch/arm/mach-pxa/viper.c v = "1.3"; divisor = 0x325; divisor 186 arch/arm/mach-pxa/viper.c step = divisor; divisor 187 arch/arm/mach-pxa/viper.c else if (current_voltage_divisor < divisor - STEP) divisor 189 arch/arm/mach-pxa/viper.c else if (current_voltage_divisor > divisor + STEP) divisor 192 arch/arm/mach-pxa/viper.c step = divisor; divisor 217 arch/arm/mach-pxa/viper.c } while (current_voltage_divisor != divisor); divisor 209 arch/arm/net/bpf_jit_32.c static u32 jit_udiv32(u32 dividend, u32 divisor) divisor 211 arch/arm/net/bpf_jit_32.c return dividend / divisor; divisor 214 arch/arm/net/bpf_jit_32.c static u32 jit_mod32(u32 dividend, u32 divisor) divisor 216 arch/arm/net/bpf_jit_32.c return dividend % divisor; divisor 15 arch/c6x/kernel/c6x_ksyms.c extern int __c6xabi_divi(int dividend, int divisor); divisor 18 arch/c6x/kernel/c6x_ksyms.c extern unsigned __c6xabi_divu(unsigned dividend, unsigned divisor); divisor 21 arch/c6x/kernel/c6x_ksyms.c extern int __c6xabi_remi(int dividend, int divisor); divisor 24 arch/c6x/kernel/c6x_ksyms.c extern unsigned __c6xabi_remu(unsigned dividend, unsigned divisor); divisor 27 arch/c6x/kernel/c6x_ksyms.c extern int __c6xabi_divremi(int dividend, int divisor); divisor 30 arch/c6x/kernel/c6x_ksyms.c extern unsigned __c6xabi_divremu(unsigned dividend, unsigned divisor); divisor 283 arch/m68k/ifpsp060/src/ilsp.S # if the divisor msw is 0, use simpler algorithm then the full blown divisor 168 arch/mips/ar7/clock.c int divisor = prediv * postdiv; divisor 187 arch/mips/ar7/clock.c return base_clock / divisor; divisor 190 arch/mips/ar7/clock.c return (base_clock >> (mul / 16 + 1)) / divisor; divisor 196 arch/mips/ar7/clock.c return product / divisor; divisor 200 arch/mips/ar7/clock.c return base_clock / divisor; divisor 202 arch/mips/ar7/clock.c return base_clock * mul / divisor; divisor 50 arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c uint32_t divisor = cvmx_sysinfo_get()->cpu_clock_hz / (25 * 1000000); divisor 51 arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c divisor = (divisor - 1) >> 2; divisor 53 arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c while (divisor) { divisor 55 arch/mips/cavium-octeon/executive/cvmx-helper-jtag.c divisor = divisor >> 1; divisor 71 arch/mips/ralink/timer.c static int rt_timer_config(struct rt_timer *rt, unsigned long divisor) divisor 73 arch/mips/ralink/timer.c if (rt->timer_freq < divisor) divisor 76 arch/mips/ralink/timer.c rt->timer_div = divisor; divisor 43 arch/powerpc/boot/stdio.c unsigned int divisor); divisor 29 arch/powerpc/boot/virtex.c u16 divisor; divisor 52 arch/powerpc/boot/virtex.c divisor = clk / (16 * spd); divisor 58 arch/powerpc/boot/virtex.c out_8(reg_base + (UART_DLL << reg_shift), divisor & 0xFF); divisor 59 arch/powerpc/boot/virtex.c out_8(reg_base + (UART_DLM << reg_shift), divisor >> 8); divisor 188 arch/powerpc/include/asm/time.h unsigned divisor, struct div_result *dr); divisor 1152 arch/powerpc/kernel/time.c unsigned divisor, struct div_result *dr) divisor 1163 arch/powerpc/kernel/time.c w = a / divisor; divisor 1164 arch/powerpc/kernel/time.c ra = ((u64)(a - (w * divisor)) << 32) + b; divisor 1166 arch/powerpc/kernel/time.c rb = ((u64) do_div(ra, divisor) << 32) + c; divisor 1169 arch/powerpc/kernel/time.c rc = ((u64) do_div(rb, divisor) << 32) + d; divisor 1172 arch/powerpc/kernel/time.c do_div(rc, divisor); divisor 126 arch/powerpc/kernel/udbg_16550.c unsigned int dll, dlm, divisor, prescaler, speed; divisor 137 arch/powerpc/kernel/udbg_16550.c divisor = dlm << 8 | dll; divisor 149 arch/powerpc/kernel/udbg_16550.c speed = (clock / prescaler) / (divisor * 16); divisor 30 arch/sh/kernel/cpu/sh4/clock-sh4-202.c int divisor = clk->parent->rate / rate; divisor 34 arch/sh/kernel/cpu/sh4/clock-sh4-202.c if (frqcr3_divisors[i] == divisor) divisor 79 arch/sh/kernel/cpu/sh4/clock-sh4-202.c int divisor = frqcr3_divisors[i]; divisor 81 arch/sh/kernel/cpu/sh4/clock-sh4-202.c if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0) divisor 29 arch/x86/boot/early_serial_console.c unsigned divisor; divisor 36 arch/x86/boot/early_serial_console.c divisor = 115200 / baud; divisor 39 arch/x86/boot/early_serial_console.c outb(divisor & 0xff, port + DLL); divisor 40 arch/x86/boot/early_serial_console.c outb((divisor >> 8) & 0xff, port + DLH); divisor 202 arch/x86/boot/string.c static inline u64 __div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) divisor 212 arch/x86/boot/string.c if (upper >= divisor) { divisor 213 arch/x86/boot/string.c d.v32[1] = upper / divisor; divisor 214 arch/x86/boot/string.c upper %= divisor; divisor 217 arch/x86/boot/string.c "rm" (divisor), "0" (d.v32[0]), "1" (upper)); divisor 221 arch/x86/boot/string.c static inline u64 __div_u64(u64 dividend, u32 divisor) divisor 225 arch/x86/boot/string.c return __div_u64_rem(dividend, divisor, &remainder); divisor 418 arch/x86/include/asm/apicdef.h u32 divisor : 4, divisor 43 arch/x86/include/asm/div64.h static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) divisor 53 arch/x86/include/asm/div64.h if (upper >= divisor) { divisor 54 arch/x86/include/asm/div64.h d.v32[1] = upper / divisor; divisor 55 arch/x86/include/asm/div64.h upper %= divisor; divisor 58 arch/x86/include/asm/div64.h "rm" (divisor), "0" (d.v32[0]), "1" (upper)); divisor 133 arch/x86/kernel/early_printk.c static __init void early_serial_hw_init(unsigned divisor) divisor 144 arch/x86/kernel/early_printk.c serial_out(early_serial_base, DLL, divisor & 0xff); divisor 145 arch/x86/kernel/early_printk.c serial_out(early_serial_base, DLH, (divisor >> 8) & 0xff); divisor 153 arch/x86/kernel/early_printk.c unsigned divisor; divisor 187 arch/x86/kernel/early_printk.c divisor = 115200 / baud; divisor 194 arch/x86/kernel/early_printk.c early_serial_hw_init(divisor); divisor 222 arch/x86/kernel/early_printk.c unsigned divisor; divisor 316 arch/x86/kernel/early_printk.c divisor = 115200 / baud; divisor 319 arch/x86/kernel/early_printk.c early_serial_hw_init(divisor); divisor 7185 arch/x86/kvm/vmx/vmx.c u64 divisor, u64 *result) divisor 7190 arch/x86/kvm/vmx/vmx.c if (high >= divisor) divisor 7195 arch/x86/kvm/vmx/vmx.c "rm" (divisor), "0" (low), "1" (high)); divisor 1712 arch/x86/kvm/x86.c static uint32_t div_frac(uint32_t dividend, uint32_t divisor) divisor 1714 arch/x86/kvm/x86.c do_shl32_div32(dividend, divisor); divisor 3037 block/bfq-iosched.c u32 rate, weight, divisor; divisor 3116 block/bfq-iosched.c divisor = 10 - weight; divisor 3123 block/bfq-iosched.c bfqd->peak_rate *= divisor-1; divisor 3124 block/bfq-iosched.c bfqd->peak_rate /= divisor; divisor 3125 block/bfq-iosched.c rate /= divisor; /* smoothing constant alpha = 1/divisor */ divisor 622 block/kyber-iosched.c u64 divisor; divisor 625 block/kyber-iosched.c divisor = max_t(u64, target >> KYBER_LATENCY_SHIFT, 1); divisor 626 block/kyber-iosched.c bucket = min_t(unsigned int, div64_u64(latency - 1, divisor), divisor 167 drivers/acpi/acpica/acmacros.h #define _ACPI_MOD(value, divisor) ((u32) ((value) & ((divisor) -1))) divisor 525 drivers/acpi/acpica/acutils.h u32 divisor, u64 *out_quotient, u32 *out_remainder); divisor 257 drivers/acpi/acpica/utmath.c u32 divisor, u64 *out_quotient, u32 *out_remainder) divisor 267 drivers/acpi/acpica/utmath.c if (divisor == 0) { divisor 278 drivers/acpi/acpica/utmath.c ACPI_DIV_64_BY_32(0, dividend_ovl.part.hi, divisor, divisor 281 drivers/acpi/acpica/utmath.c ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor, divisor 316 drivers/acpi/acpica/utmath.c union uint64_overlay divisor; divisor 334 drivers/acpi/acpica/utmath.c divisor.full = in_divisor; divisor 336 drivers/acpi/acpica/utmath.c if (divisor.part.hi == 0) { divisor 347 drivers/acpi/acpica/utmath.c ACPI_DIV_64_BY_32(0, dividend.part.hi, divisor.part.lo, divisor 350 drivers/acpi/acpica/utmath.c ACPI_DIV_64_BY_32(partial1, dividend.part.lo, divisor.part.lo, divisor 361 drivers/acpi/acpica/utmath.c normalized_divisor = divisor; divisor 384 drivers/acpi/acpica/utmath.c partial1 = quotient.part.lo * divisor.part.hi; divisor 385 drivers/acpi/acpica/utmath.c partial2.full = (u64) quotient.part.lo * divisor.part.lo; divisor 396 drivers/acpi/acpica/utmath.c remainder.full -= divisor.full; divisor 400 drivers/acpi/acpica/utmath.c remainder.full -= divisor.full; divisor 445 drivers/acpi/acpica/utmath.c u32 divisor, u64 *out_quotient, u32 *out_remainder) divisor 452 drivers/acpi/acpica/utmath.c if (divisor == 0) { divisor 460 drivers/acpi/acpica/utmath.c *out_quotient = in_dividend / divisor; divisor 463 drivers/acpi/acpica/utmath.c *out_remainder = (u32) (in_dividend % divisor); divisor 135 drivers/clk/clk-vt8500.c u32 divisor; divisor 140 drivers/clk/clk-vt8500.c divisor = *prate / rate; divisor 143 drivers/clk/clk-vt8500.c if (rate * divisor < *prate) divisor 144 drivers/clk/clk-vt8500.c divisor++; divisor 150 drivers/clk/clk-vt8500.c if ((cdev->div_mask == 0x3F) && (divisor > 31)) { divisor 151 drivers/clk/clk-vt8500.c divisor = 64 * ((divisor / 64) + 1); divisor 154 drivers/clk/clk-vt8500.c return *prate / divisor; divisor 161 drivers/clk/clk-vt8500.c u32 divisor; divisor 167 drivers/clk/clk-vt8500.c divisor = parent_rate / rate; divisor 169 drivers/clk/clk-vt8500.c if (divisor == cdev->div_mask + 1) divisor 170 drivers/clk/clk-vt8500.c divisor = 0; divisor 173 drivers/clk/clk-vt8500.c if ((cdev->div_mask == 0x3F) && (divisor > 31)) { divisor 178 drivers/clk/clk-vt8500.c divisor = 0x20 + (divisor / 64); divisor 181 drivers/clk/clk-vt8500.c if (divisor > cdev->div_mask) { divisor 189 drivers/clk/clk-vt8500.c writel(divisor, cdev->div_reg); divisor 35 drivers/clk/meson/clk-mpll.c unsigned long divisor = (SDM_DEN * n2) + sdm; divisor 40 drivers/clk/meson/clk-mpll.c return DIV_ROUND_UP_ULL((u64)parent_rate * SDM_DEN, divisor); divisor 128 drivers/clk/mmp/clk-mix.c item->divisor = parent_rate / item->rate; divisor 230 drivers/clk/mmp/clk-mix.c mix_rate = parent_rate / item->divisor; divisor 364 drivers/clk/mmp/clk-mix.c div_val = _get_div_val(mix, item->divisor); divisor 397 drivers/clk/mmp/clk-mix.c && item->divisor == best_divisor) divisor 403 drivers/clk/mmp/clk-mix.c _get_div_val(mix, item->divisor), divisor 70 drivers/clk/mmp/clk.h unsigned int divisor; divisor 94 drivers/clk/pistachio/clk-pll.c static inline u64 do_div_round_closest(u64 dividend, u64 divisor) divisor 96 drivers/clk/pistachio/clk-pll.c dividend += divisor / 2; divisor 97 drivers/clk/pistachio/clk-pll.c return div64_u64(dividend, divisor); divisor 30 drivers/clk/versatile/icst.c u32 divisor = (vco.r + 2) * p->s2div[vco.s]; divisor 32 drivers/clk/versatile/icst.c do_div(dividend, divisor); divisor 101 drivers/clocksource/samsung_pwm_timer.c static void samsung_timer_set_divisor(unsigned int channel, u8 divisor) divisor 108 drivers/clocksource/samsung_pwm_timer.c bits = (fls(divisor) - 1) - pwm.variant.div_base; divisor 416 drivers/clocksource/timer-atmel-tcb.c unsigned divisor = atmel_tcb_divisors[i]; divisor 420 drivers/clocksource/timer-atmel-tcb.c if (!divisor) { divisor 425 drivers/clocksource/timer-atmel-tcb.c tmp = rate / divisor; divisor 426 drivers/clocksource/timer-atmel-tcb.c pr_debug("TC: %u / %-3u [%d] --> %u\n", rate, divisor, i, tmp); divisor 88 drivers/cpufreq/sparc-us2e-cpufreq.c unsigned long old_divisor, unsigned long divisor) divisor 93 drivers/cpufreq/sparc-us2e-cpufreq.c refr_count /= (MCTRL0_REFR_CLKS_P_CNT * divisor * 1000000000UL); divisor 120 drivers/cpufreq/sparc-us2e-cpufreq.c unsigned long old_divisor, unsigned long divisor) divisor 125 drivers/cpufreq/sparc-us2e-cpufreq.c if (old_divisor == 2 && divisor == 1) { divisor 128 drivers/cpufreq/sparc-us2e-cpufreq.c frob_mem_refresh(0, clock_tick, old_divisor, divisor); divisor 129 drivers/cpufreq/sparc-us2e-cpufreq.c } else if (old_divisor == 1 && divisor == 2) { divisor 130 drivers/cpufreq/sparc-us2e-cpufreq.c frob_mem_refresh(1, clock_tick, old_divisor, divisor); divisor 133 drivers/cpufreq/sparc-us2e-cpufreq.c } else if (old_divisor == 1 && divisor > 2) { divisor 137 drivers/cpufreq/sparc-us2e-cpufreq.c 2, divisor); divisor 138 drivers/cpufreq/sparc-us2e-cpufreq.c } else if (old_divisor > 2 && divisor == 1) { divisor 142 drivers/cpufreq/sparc-us2e-cpufreq.c 2, divisor); divisor 143 drivers/cpufreq/sparc-us2e-cpufreq.c } else if (old_divisor < divisor) { divisor 144 drivers/cpufreq/sparc-us2e-cpufreq.c frob_mem_refresh(0, clock_tick, old_divisor, divisor); divisor 146 drivers/cpufreq/sparc-us2e-cpufreq.c } else if (old_divisor > divisor) { divisor 148 drivers/cpufreq/sparc-us2e-cpufreq.c frob_mem_refresh(1, clock_tick, old_divisor, divisor); divisor 250 drivers/cpufreq/sparc-us2e-cpufreq.c unsigned long clock_tick, divisor, old_divisor, estar; divisor 254 drivers/cpufreq/sparc-us2e-cpufreq.c divisor = index_to_divisor(*index); divisor 255 drivers/cpufreq/sparc-us2e-cpufreq.c new_freq /= divisor; divisor 261 drivers/cpufreq/sparc-us2e-cpufreq.c if (old_divisor != divisor) { divisor 263 drivers/cpufreq/sparc-us2e-cpufreq.c old_divisor, divisor); divisor 182 drivers/cpuidle/governors/menu.c int i, divisor; divisor 194 drivers/cpuidle/governors/menu.c divisor = 0; divisor 199 drivers/cpuidle/governors/menu.c divisor++; divisor 215 drivers/cpuidle/governors/menu.c if (divisor == INTERVALS) divisor 218 drivers/cpuidle/governors/menu.c avg = div_u64(sum, divisor); divisor 229 drivers/cpuidle/governors/menu.c if (divisor == INTERVALS) divisor 232 drivers/cpuidle/governors/menu.c do_div(variance, divisor); divisor 247 drivers/cpuidle/governors/menu.c if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3)) divisor 262 drivers/cpuidle/governors/menu.c if ((divisor * 4) <= INTERVALS * 3) divisor 40 drivers/gpu/drm/amd/display/dc/basics/conversion.c int32_t divisor = 1 << fractional_bits; divisor 48 drivers/gpu/drm/amd/display/dc/basics/conversion.c if (d <= (uint16_t)(1 << integer_bits) - (1 / (uint16_t)divisor)) divisor 52 drivers/gpu/drm/amd/display/dc/basics/conversion.c divisor)); divisor 60 drivers/gpu/drm/amd/display/dc/basics/conversion.c divisor)))); divisor 45 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c unsigned long long divisor, divisor 50 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c ASSERT(divisor); divisor 52 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c result = div64_u64_rem(dividend, divisor, remainder); divisor 2104 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c int32_t divisor = 1 << fractional_bits; divisor 2112 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (d <= (uint16_t)(1 << integer_bits) - (1 / (uint16_t)divisor)) divisor 2116 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c divisor)); divisor 2124 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c divisor)))); divisor 913 drivers/gpu/drm/i915/display/icl_dsi.c u32 tmp, hs_tx_timeout, lp_rx_timeout, ta_timeout, divisor, mul; divisor 922 drivers/gpu/drm/i915/display/icl_dsi.c divisor = intel_dsi_tlpx_ns(intel_dsi) * intel_dsi_bitrate(intel_dsi) * 1000; divisor 925 drivers/gpu/drm/i915/display/icl_dsi.c divisor); divisor 926 drivers/gpu/drm/i915/display/icl_dsi.c lp_rx_timeout = DIV_ROUND_UP(intel_dsi->lp_rx_timeout * mul, divisor); divisor 927 drivers/gpu/drm/i915/display/icl_dsi.c ta_timeout = DIV_ROUND_UP(intel_dsi->turn_arnd_val * mul, divisor); divisor 1731 drivers/gpu/drm/i915/display/intel_dp.c const struct dp_link_dpll *divisor = NULL; divisor 1735 drivers/gpu/drm/i915/display/intel_dp.c divisor = g4x_dpll; divisor 1738 drivers/gpu/drm/i915/display/intel_dp.c divisor = pch_dpll; divisor 1741 drivers/gpu/drm/i915/display/intel_dp.c divisor = chv_dpll; divisor 1744 drivers/gpu/drm/i915/display/intel_dp.c divisor = vlv_dpll; divisor 1748 drivers/gpu/drm/i915/display/intel_dp.c if (divisor && count) { divisor 1750 drivers/gpu/drm/i915/display/intel_dp.c if (pipe_config->port_clock == divisor[i].clock) { divisor 1751 drivers/gpu/drm/i915/display/intel_dp.c pipe_config->dpll = divisor[i].dpll; divisor 1540 drivers/gpu/drm/mgag200/mgag200_mode.c uint32_t total_area, divisor; divisor 1544 drivers/gpu/drm/mgag200/mgag200_mode.c divisor = 1024; divisor 1556 drivers/gpu/drm/mgag200/mgag200_mode.c do_div(bandwidth, divisor); divisor 147 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c u32 divisor = ref_clk * 10; divisor 150 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c rem = do_div(dividend, divisor); divisor 151 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c if (rem > (divisor >> 1)) divisor 2489 drivers/gpu/drm/omapdrm/dss/dispc.c #define DIV_FRAC(dividend, divisor) \ divisor 2490 drivers/gpu/drm/omapdrm/dss/dispc.c ((dividend) * 100 / (divisor) - ((dividend) / (divisor) * 100)) divisor 132 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c int divisor = idf * odf; divisor 135 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c if (!divisor) divisor 138 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor); divisor 44 drivers/hsi/controllers/omap_ssi.h u32 divisor; divisor 146 drivers/hsi/controllers/omap_ssi_port.c omap_port->sst.divisor = val; divisor 501 drivers/hsi/controllers/omap_ssi_port.c omap_port->sst.divisor = div; divisor 1270 drivers/hsi/controllers/omap_ssi_port.c writel_relaxed(omap_port->sst.divisor, divisor 1281 drivers/hsi/controllers/omap_ssi_port.c omap_port->sst.divisor = div; divisor 125 drivers/hwmon/abituguru3.c int divisor; divisor 845 drivers/hwmon/abituguru3.c value = (value * sensor->multiplier) / sensor->divisor + divisor 436 drivers/hwmon/ntc_thermistor.c static inline u64 div64_u64_safe(u64 dividend, u64 divisor) divisor 438 drivers/hwmon/ntc_thermistor.c if (divisor == 0 && dividend == 0) divisor 440 drivers/hwmon/ntc_thermistor.c if (divisor == 0) divisor 442 drivers/hwmon/ntc_thermistor.c return div64_u64(dividend, divisor); divisor 411 drivers/hwmon/occ/common.c u64 divisor = get_unaligned_be32(samples); divisor 413 drivers/hwmon/occ/common.c return (divisor == 0) ? 0 : divisor 414 drivers/hwmon/occ/common.c div64_u64(get_unaligned_be64(accum) * 1000000ULL, divisor); divisor 146 drivers/i2c/busses/i2c-altera.c u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; divisor 155 drivers/i2c/busses/i2c-altera.c t_high = divisor * 1 / 2; divisor 156 drivers/i2c/busses/i2c-altera.c t_low = divisor * 1 / 2; divisor 160 drivers/i2c/busses/i2c-altera.c t_high = divisor * 1 / 3; divisor 161 drivers/i2c/busses/i2c-altera.c t_low = divisor * 2 / 3; divisor 166 drivers/i2c/busses/i2c-altera.c idev->bus_clk_rate, clk_mhz, divisor); divisor 151 drivers/i2c/busses/i2c-aspeed.c u32 divisor); divisor 795 drivers/i2c/busses/i2c-aspeed.c u32 divisor) divisor 828 drivers/i2c/busses/i2c-aspeed.c base_clk_divisor = divisor > clk_high_low_max ? divisor 829 drivers/i2c/busses/i2c-aspeed.c ilog2((divisor - 1) / clk_high_low_max) + 1 : 0; divisor 837 drivers/i2c/busses/i2c-aspeed.c divisor, (1 << base_clk_divisor) * clk_high_low_max); divisor 839 drivers/i2c/busses/i2c-aspeed.c tmp = (divisor + (1 << base_clk_divisor) - 1) divisor 860 drivers/i2c/busses/i2c-aspeed.c static u32 aspeed_i2c_24xx_get_clk_reg_val(struct device *dev, u32 divisor) divisor 866 drivers/i2c/busses/i2c-aspeed.c return aspeed_i2c_get_clk_reg_val(dev, GENMASK(2, 0), divisor); divisor 869 drivers/i2c/busses/i2c-aspeed.c static u32 aspeed_i2c_25xx_get_clk_reg_val(struct device *dev, u32 divisor) divisor 875 drivers/i2c/busses/i2c-aspeed.c return aspeed_i2c_get_clk_reg_val(dev, GENMASK(3, 0), divisor); divisor 881 drivers/i2c/busses/i2c-aspeed.c u32 divisor, clk_reg_val; divisor 883 drivers/i2c/busses/i2c-aspeed.c divisor = DIV_ROUND_UP(bus->parent_clk_frequency, bus->bus_frequency); divisor 888 drivers/i2c/busses/i2c-aspeed.c clk_reg_val |= bus->get_clk_reg_val(bus->dev, divisor); divisor 178 drivers/i2c/busses/i2c-axxia.c u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; divisor 187 drivers/i2c/busses/i2c-axxia.c idev->bus_clk_rate, clk_mhz, divisor); divisor 204 drivers/i2c/busses/i2c-axxia.c t_high = divisor * 1 / 2; divisor 205 drivers/i2c/busses/i2c-axxia.c t_low = divisor * 1 / 2; divisor 209 drivers/i2c/busses/i2c-axxia.c t_high = divisor * 1 / 3; divisor 210 drivers/i2c/busses/i2c-axxia.c t_low = divisor * 2 / 3; divisor 181 drivers/iio/adc/vf610_adc.c int divisor, i; divisor 187 drivers/iio/adc/vf610_adc.c divisor = ipg_rate / adck_rate; divisor 188 drivers/iio/adc/vf610_adc.c adc_feature->clk_div = 1 << fls(divisor + 1); divisor 76 drivers/iio/common/hid-sensors/hid-sensor-attributes.c static void simple_div(int dividend, int divisor, int *whole, divisor 83 drivers/iio/common/hid-sensors/hid-sensor-attributes.c if (divisor == 0) { divisor 87 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *whole = dividend/divisor; divisor 88 drivers/iio/common/hid-sensors/hid-sensor-attributes.c rem = dividend % divisor; divisor 90 drivers/iio/common/hid-sensors/hid-sensor-attributes.c while (rem <= divisor) { divisor 94 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); divisor 100 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int divisor = int_pow(10, exp); divisor 102 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *val1 = no / divisor; divisor 103 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *val2 = no % divisor * int_pow(10, 6 - exp); divisor 138 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int divisor; divisor 146 drivers/iio/common/hid-sensors/hid-sensor-attributes.c divisor = int_pow(10, 6 + exp); divisor 148 drivers/iio/common/hid-sensors/hid-sensor-attributes.c value += abs(val2) / divisor; divisor 150 drivers/iio/common/hid-sensors/hid-sensor-attributes.c divisor = int_pow(10, exp); divisor 151 drivers/iio/common/hid-sensors/hid-sensor-attributes.c value = abs(val1) / divisor; divisor 309 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int divisor; divisor 323 drivers/iio/common/hid-sensors/hid-sensor-attributes.c divisor = int_pow(10, 8 - i); divisor 324 drivers/iio/common/hid-sensors/hid-sensor-attributes.c x = scale1 / divisor; divisor 326 drivers/iio/common/hid-sensors/hid-sensor-attributes.c scale1 = scale1 % divisor; divisor 336 drivers/iio/common/hid-sensors/hid-sensor-attributes.c divisor = int_pow(10, exp); divisor 337 drivers/iio/common/hid-sensors/hid-sensor-attributes.c *val0 = scale0 / divisor; divisor 338 drivers/iio/common/hid-sensors/hid-sensor-attributes.c rem = scale0 % divisor; divisor 341 drivers/iio/common/hid-sensors/hid-sensor-attributes.c divisor = int_pow(10, 8 - i); divisor 342 drivers/iio/common/hid-sensors/hid-sensor-attributes.c x = scale1 / divisor; divisor 344 drivers/iio/common/hid-sensors/hid-sensor-attributes.c scale1 = scale1 % divisor; divisor 186 drivers/iio/gyro/mpu3050-core.c freq /= (mpu3050->divisor + 1); divisor 228 drivers/iio/gyro/mpu3050-core.c ret = regmap_write(mpu3050->map, MPU3050_SMPLRT_DIV, mpu3050->divisor); divisor 245 drivers/iio/gyro/mpu3050-core.c u8 divisor; divisor 249 drivers/iio/gyro/mpu3050-core.c divisor = mpu3050->divisor; divisor 252 drivers/iio/gyro/mpu3050-core.c mpu3050->divisor = 0; /* Divide by 1 */ divisor 256 drivers/iio/gyro/mpu3050-core.c mpu3050->divisor = divisor; divisor 409 drivers/iio/gyro/mpu3050-core.c mpu3050->divisor = DIV_ROUND_CLOSEST(8000, val) - 1; divisor 414 drivers/iio/gyro/mpu3050-core.c mpu3050->divisor = DIV_ROUND_CLOSEST(1000, val) - 1; divisor 1151 drivers/iio/gyro/mpu3050-core.c mpu3050->divisor = 99; divisor 77 drivers/iio/gyro/mpu3050.h u8 divisor; divisor 31 drivers/input/serio/ambakmi.c unsigned int divisor; divisor 67 drivers/input/serio/ambakmi.c unsigned int divisor; divisor 74 drivers/input/serio/ambakmi.c divisor = clk_get_rate(kmi->clk) / 8000000 - 1; divisor 75 drivers/input/serio/ambakmi.c writeb(divisor, KMICLKDIV); divisor 952 drivers/md/dm-stats.c unsigned divisor; divisor 990 drivers/md/dm-stats.c if (sscanf(a, "/%u%c", &divisor, &dummy) == 1) { divisor 991 drivers/md/dm-stats.c if (!divisor) divisor 994 drivers/md/dm-stats.c if (do_div(step, divisor)) divisor 620 drivers/media/i2c/max2175.c static inline s64 max2175_round_closest(s64 dividend, s32 divisor) divisor 622 drivers/media/i2c/max2175.c if ((dividend > 0 && divisor > 0) || (dividend < 0 && divisor < 0)) divisor 623 drivers/media/i2c/max2175.c return div_s64(dividend + divisor / 2, divisor); divisor 625 drivers/media/i2c/max2175.c return div_s64(dividend - divisor / 2, divisor); divisor 105 drivers/media/pci/cx88/cx88-dsp.c u32 divisor; divisor 121 drivers/media/pci/cx88/cx88-dsp.c divisor = N * N; divisor 122 drivers/media/pci/cx88/cx88-dsp.c do_div(tmp, divisor); divisor 1029 drivers/media/rc/mceusb.c int prescaler = 0, divisor = 0; divisor 1046 drivers/media/rc/mceusb.c divisor = (clk >> (2 * prescaler)) / carrier; divisor 1047 drivers/media/rc/mceusb.c if (divisor <= 0xff) { divisor 1050 drivers/media/rc/mceusb.c cmdbuf[3] = divisor; divisor 308 drivers/media/rc/redrat3.c u32 divisor = (RR3_CLK_CONV_FACTOR) / 1000; divisor 309 drivers/media/rc/redrat3.c u32 result = (u32) (biglen / divisor); divisor 329 drivers/media/rc/redrat3.c u32 divisor; divisor 332 drivers/media/rc/redrat3.c divisor = (RR3_CLK_CONV_FACTOR / 1000); divisor 333 drivers/media/rc/redrat3.c result = (u32)(microsec * divisor) / 1000; divisor 150 drivers/media/tuners/max2165.c static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) divisor 156 drivers/media/tuners/max2165.c if (0 == divisor) divisor 159 drivers/media/tuners/max2165.c q = dividend / divisor; divisor 160 drivers/media/tuners/max2165.c remainder = dividend - q * divisor; divisor 164 drivers/media/tuners/max2165.c if (remainder >= divisor) { divisor 166 drivers/media/tuners/max2165.c remainder -= divisor; divisor 565 drivers/media/tuners/tda18271-fe.c s32 divisor, dividend; divisor 611 drivers/media/tuners/tda18271-fe.c divisor = (s32)(rf_freq[RF2] - rf_freq[RF1]) / 1000; divisor 612 drivers/media/tuners/tda18271-fe.c map[i].rf_a1 = (dividend / divisor); divisor 618 drivers/media/tuners/tda18271-fe.c divisor = (s32)(rf_freq[RF3] - rf_freq[RF2]) / 1000; divisor 619 drivers/media/tuners/tda18271-fe.c map[i].rf_a2 = (dividend / divisor); divisor 285 drivers/media/usb/gspca/cpia1.c u8 divisor; divisor 664 drivers/media/usb/gspca/cpia1.c params->sensorFps.divisor = 1; divisor 672 drivers/media/usb/gspca/cpia1.c [params->sensorFps.divisor]; divisor 946 drivers/media/usb/gspca/cpia1.c sd->params.sensorFps.divisor, divisor 1279 drivers/media/usb/gspca/cpia1.c sd->params.sensorFps.divisor < 2) { divisor 1282 drivers/media/usb/gspca/cpia1.c ++sd->params.sensorFps.divisor; divisor 1288 drivers/media/usb/gspca/cpia1.c [sd->params.sensorFps.divisor]; divisor 1304 drivers/media/usb/gspca/cpia1.c sd->params.sensorFps.divisor > 0) { divisor 1309 drivers/media/usb/gspca/cpia1.c --sd->params.sensorFps.divisor; divisor 1315 drivers/media/usb/gspca/cpia1.c [sd->params.sensorFps.divisor]; divisor 1335 drivers/media/usb/gspca/cpia1.c sd->params.sensorFps.divisor < 2) { divisor 1338 drivers/media/usb/gspca/cpia1.c ++sd->params.sensorFps.divisor; divisor 1351 drivers/media/usb/gspca/cpia1.c sd->params.sensorFps.divisor > 0) { divisor 1354 drivers/media/usb/gspca/cpia1.c --sd->params.sensorFps.divisor; divisor 1783 drivers/media/usb/gspca/cpia1.c [sd->params.sensorFps.divisor]; divisor 45 drivers/mfd/mcp-sa11x0.c mcp_sa11x0_set_telecom_divisor(struct mcp *mcp, unsigned int divisor) divisor 49 drivers/mfd/mcp-sa11x0.c divisor /= 32; divisor 52 drivers/mfd/mcp-sa11x0.c m->mccr0 |= divisor << 8; divisor 57 drivers/mfd/mcp-sa11x0.c mcp_sa11x0_set_audio_divisor(struct mcp *mcp, unsigned int divisor) divisor 61 drivers/mfd/mcp-sa11x0.c divisor /= 32; divisor 64 drivers/mfd/mcp-sa11x0.c m->mccr0 |= divisor; divisor 605 drivers/mmc/host/au1xmmc.c unsigned int divisor = ((pbus / rate) / 2) - 1; divisor 611 drivers/mmc/host/au1xmmc.c config |= (divisor & SD_CONFIG_DIV) | SD_CONFIG_DE; divisor 53 drivers/mmc/host/tmio_mmc.c unsigned int divisor; divisor 62 drivers/mmc/host/tmio_mmc.c divisor = host->pdata->hclk / new_clock; divisor 65 drivers/mmc/host/tmio_mmc.c clk_sel = (divisor <= 1); divisor 66 drivers/mmc/host/tmio_mmc.c clk = clk_sel ? 0 : (roundup_pow_of_two(divisor) >> 2); divisor 429 drivers/mmc/host/uniphier-sd.c unsigned long divisor; divisor 445 drivers/mmc/host/uniphier-sd.c divisor = priv->clk_rate / clock; divisor 455 drivers/mmc/host/uniphier-sd.c if (divisor <= 1) divisor 457 drivers/mmc/host/uniphier-sd.c else if (priv->caps & UNIPHIER_SD_CAP_EXTENDED_IP && divisor > 512) divisor 460 drivers/mmc/host/uniphier-sd.c tmp |= roundup_pow_of_two(divisor) >> 2; divisor 347 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int hwm, lwm, divisor; divisor 419 drivers/net/ethernet/chelsio/cxgb3/xgmac.c divisor = (adap->params.rev == T3_REV_C) ? 64 : 8; divisor 421 drivers/net/ethernet/chelsio/cxgb3/xgmac.c (hwm - lwm) * 4 / divisor); divisor 969 drivers/net/ethernet/intel/i40e/i40e_txrx.c unsigned int divisor; divisor 973 drivers/net/ethernet/intel/i40e/i40e_txrx.c divisor = I40E_ITR_ADAPTIVE_MIN_INC * 1024; divisor 977 drivers/net/ethernet/intel/i40e/i40e_txrx.c divisor = I40E_ITR_ADAPTIVE_MIN_INC * 512; divisor 981 drivers/net/ethernet/intel/i40e/i40e_txrx.c divisor = I40E_ITR_ADAPTIVE_MIN_INC * 256; divisor 985 drivers/net/ethernet/intel/i40e/i40e_txrx.c divisor = I40E_ITR_ADAPTIVE_MIN_INC * 32; divisor 989 drivers/net/ethernet/intel/i40e/i40e_txrx.c return divisor; divisor 379 drivers/net/ethernet/intel/iavf/iavf_txrx.c unsigned int divisor; divisor 383 drivers/net/ethernet/intel/iavf/iavf_txrx.c divisor = IAVF_ITR_ADAPTIVE_MIN_INC * 1024; divisor 387 drivers/net/ethernet/intel/iavf/iavf_txrx.c divisor = IAVF_ITR_ADAPTIVE_MIN_INC * 512; divisor 391 drivers/net/ethernet/intel/iavf/iavf_txrx.c divisor = IAVF_ITR_ADAPTIVE_MIN_INC * 256; divisor 395 drivers/net/ethernet/intel/iavf/iavf_txrx.c divisor = IAVF_ITR_ADAPTIVE_MIN_INC * 32; divisor 399 drivers/net/ethernet/intel/iavf/iavf_txrx.c return divisor; divisor 9232 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (cls->hnode.divisor > 0) divisor 453 drivers/net/ethernet/ti/davinci_cpdma.c u64 divident, divisor; divisor 470 drivers/net/ethernet/ti/davinci_cpdma.c divisor = min_send_cnt; divisor 471 drivers/net/ethernet/ti/davinci_cpdma.c idle_cnt = DIV_ROUND_CLOSEST_ULL(divident, divisor); divisor 474 drivers/net/ethernet/ti/davinci_cpdma.c divisor = idle_cnt + send_cnt; divisor 475 drivers/net/ethernet/ti/davinci_cpdma.c new_rate = DIV_ROUND_CLOSEST_ULL(divident, divisor); divisor 812 drivers/net/ethernet/ti/davinci_cpdma.c unsigned int divident, divisor; divisor 815 drivers/net/ethernet/ti/davinci_cpdma.c divisor = 1 + CPDMA_MAX_RLIM_CNT; divisor 817 drivers/net/ethernet/ti/davinci_cpdma.c return DIV_ROUND_UP(divident, divisor); divisor 171 drivers/net/hamradio/baycom_ser_fdx.c unsigned int divisor) divisor 174 drivers/net/hamradio/baycom_ser_fdx.c outb(divisor, DLL(dev->base_addr)); divisor 175 drivers/net/hamradio/baycom_ser_fdx.c outb(divisor >> 8, DLM(dev->base_addr)); divisor 156 drivers/net/hamradio/baycom_ser_hdx.c unsigned char divisor) divisor 159 drivers/net/hamradio/baycom_ser_hdx.c outb(divisor, DLL(dev->base_addr)); divisor 463 drivers/net/hamradio/yam.c int divisor = 115200 / yp->baudrate; divisor 467 drivers/net/hamradio/yam.c outb(divisor, DLL(dev->base_addr)); divisor 58 drivers/net/phy/mdio-mux-bcm-iproc.c u32 divisor; divisor 70 drivers/net/phy/mdio-mux-bcm-iproc.c divisor = clk_get_rate(md->core_clk) / MDIO_OPERATING_FREQUENCY; divisor 71 drivers/net/phy/mdio-mux-bcm-iproc.c divisor = divisor / (MDIO_RATE_ADJ_DIVIDENT + 1); divisor 72 drivers/net/phy/mdio-mux-bcm-iproc.c val = divisor; divisor 24 drivers/net/wireless/ath/ath9k/common-beacon.c unsigned int offset, divisor; divisor 27 drivers/net/wireless/ath/ath9k/common-beacon.c divisor = TU_TO_USEC(interval); divisor 28 drivers/net/wireless/ath/ath9k/common-beacon.c div_u64_rem(tsf, divisor, &offset); divisor 30 drivers/net/wireless/ath/ath9k/common-beacon.c return (u32) tsf + divisor - offset; divisor 1060 drivers/net/wireless/broadcom/b43/phy_lp.c static u32 lpphy_qdiv_roundup(u32 dividend, u32 divisor, u8 precision) divisor 1064 drivers/net/wireless/broadcom/b43/phy_lp.c if (divisor == 0) divisor 1067 drivers/net/wireless/broadcom/b43/phy_lp.c quotient = dividend / divisor; divisor 1068 drivers/net/wireless/broadcom/b43/phy_lp.c remainder = dividend % divisor; divisor 1072 drivers/net/wireless/broadcom/b43/phy_lp.c if (remainder << 1 >= divisor) { divisor 1074 drivers/net/wireless/broadcom/b43/phy_lp.c remainder = (remainder << 1) - divisor; divisor 1079 drivers/net/wireless/broadcom/b43/phy_lp.c if (remainder << 1 >= divisor) divisor 1005 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_qdiv_roundup(u32 dividend, u32 divisor, u8 precision) divisor 1009 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c quotient = dividend / divisor; divisor 1010 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c remainder = dividend % divisor; divisor 1011 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c rbit = divisor & 1; divisor 1012 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c roundup = (divisor >> 1) + rbit; divisor 617 drivers/net/wireless/zydas/zd1211rw/zd_mac.c u32 divisor; divisor 619 drivers/net/wireless/zydas/zd1211rw/zd_mac.c divisor = rate_divisor[ZD_PURE_RATE(zd_rate)]; divisor 620 drivers/net/wireless/zydas/zd1211rw/zd_mac.c if (divisor == 0) divisor 639 drivers/net/wireless/zydas/zd1211rw/zd_mac.c return bits/divisor; divisor 56 drivers/power/reset/qnap-poweroff.c const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); divisor 62 drivers/power/reset/qnap-poweroff.c writel(divisor & 0xff, UART1_REG(DLL)); divisor 63 drivers/power/reset/qnap-poweroff.c writel((divisor >> 8) & 0xff, UART1_REG(DLM)); divisor 121 drivers/pwm/pwm-samsung.c unsigned int channel, u8 divisor) divisor 128 drivers/pwm/pwm-samsung.c bits = (fls(divisor) - 1) - pwm->variant.div_base; divisor 2623 drivers/scsi/aacraid/aacraid.h static inline unsigned int cap_to_cyls(sector_t capacity, unsigned divisor) divisor 2625 drivers/scsi/aacraid/aacraid.h sector_div(capacity, divisor); divisor 2694 drivers/scsi/megaraid/megaraid_sas.h u32 mega_mod64(u64 dividend, u32 divisor); divisor 70 drivers/scsi/megaraid/megaraid_sas_fp.c u32 mega_mod64(u64 dividend, u32 divisor) divisor 75 drivers/scsi/megaraid/megaraid_sas_fp.c if (!divisor) divisor 78 drivers/scsi/megaraid/megaraid_sas_fp.c remainder = do_div(d, divisor); divisor 88 drivers/scsi/megaraid/megaraid_sas_fp.c u64 mega_div64_32(uint64_t dividend, uint32_t divisor) divisor 93 drivers/scsi/megaraid/megaraid_sas_fp.c if (!divisor) divisor 97 drivers/scsi/megaraid/megaraid_sas_fp.c remainder = do_div(d, divisor); divisor 1410 drivers/scsi/mpt3sas/mpt3sas_base.c static u32 base_mod64(u64 dividend, u32 divisor) divisor 1414 drivers/scsi/mpt3sas/mpt3sas_base.c if (!divisor) divisor 1416 drivers/scsi/mpt3sas/mpt3sas_base.c remainder = do_div(dividend, divisor); divisor 210 drivers/soc/fsl/qe/qe.c u32 divisor, tempval; divisor 216 drivers/soc/fsl/qe/qe.c divisor = qe_get_brg_clk() / (rate * multiplier); divisor 218 drivers/soc/fsl/qe/qe.c if (divisor > QE_BRGC_DIVISOR_MAX + 1) { divisor 220 drivers/soc/fsl/qe/qe.c divisor /= 16; divisor 227 drivers/soc/fsl/qe/qe.c if (!div16 && (divisor & 1) && (divisor > 3)) divisor 228 drivers/soc/fsl/qe/qe.c divisor++; divisor 230 drivers/soc/fsl/qe/qe.c tempval = ((divisor - 1) << QE_BRGC_DIVISOR_SHIFT) | divisor 154 drivers/ssb/driver_chipcommon.c int divisor = 1; divisor 161 drivers/ssb/driver_chipcommon.c divisor = 64; divisor 164 drivers/ssb/driver_chipcommon.c divisor = 32; divisor 176 drivers/ssb/driver_chipcommon.c divisor = (tmp >> 16) + 1; divisor 177 drivers/ssb/driver_chipcommon.c divisor *= 4; divisor 182 drivers/ssb/driver_chipcommon.c divisor = (tmp >> 16) + 1; divisor 183 drivers/ssb/driver_chipcommon.c divisor *= 4; divisor 206 drivers/ssb/driver_chipcommon.c limit /= divisor; divisor 276 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int divisor; divisor 280 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = DIV_ROUND_UP(ns, timer_base); divisor 283 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = ns / timer_base; divisor 287 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = DIV_ROUND_CLOSEST(ns, timer_base); divisor 293 drivers/staging/comedi/drivers/addi_apci_3120.c if (divisor > 0x00ffffff) divisor 294 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = 0x00ffffff; divisor 297 drivers/staging/comedi/drivers/addi_apci_3120.c if (divisor > 0xffff) divisor 298 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = 0xffff; divisor 301 drivers/staging/comedi/drivers/addi_apci_3120.c if (divisor < 2) divisor 302 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = 2; divisor 304 drivers/staging/comedi/drivers/addi_apci_3120.c return divisor; divisor 541 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int divisor; divisor 563 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = apci3120_ns_to_timer(dev, 1, cmd->scan_begin_arg, divisor 566 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_timer_write(dev, 1, divisor); divisor 573 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = apci3120_ns_to_timer(dev, 0, cmd->convert_arg, cmd->flags); divisor 575 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_timer_write(dev, 0, divisor); divisor 709 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int divisor; divisor 731 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = apci3120_ns_to_timer(dev, 0, 10000, CMDF_ROUND_NEAREST); divisor 735 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_timer_write(dev, 0, divisor); divisor 822 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int divisor; divisor 830 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = apci3120_ns_to_timer(dev, 2, data[1], divisor 832 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_timer_write(dev, 2, divisor); divisor 179 drivers/staging/comedi/drivers/adv_pci1760.c unsigned int divisor; divisor 183 drivers/staging/comedi/drivers/adv_pci1760.c divisor = DIV_ROUND_CLOSEST(ns, PCI1760_PWM_TIMEBASE); divisor 186 drivers/staging/comedi/drivers/adv_pci1760.c divisor = DIV_ROUND_UP(ns, PCI1760_PWM_TIMEBASE); divisor 189 drivers/staging/comedi/drivers/adv_pci1760.c divisor = ns / PCI1760_PWM_TIMEBASE; divisor 195 drivers/staging/comedi/drivers/adv_pci1760.c if (divisor < 1) divisor 196 drivers/staging/comedi/drivers/adv_pci1760.c divisor = 1; divisor 197 drivers/staging/comedi/drivers/adv_pci1760.c if (divisor > 0xffff) divisor 198 drivers/staging/comedi/drivers/adv_pci1760.c divisor = 0xffff; divisor 200 drivers/staging/comedi/drivers/adv_pci1760.c return divisor; divisor 1112 drivers/staging/comedi/drivers/cb_pcidas64.c unsigned int divisor; divisor 1932 drivers/staging/comedi/drivers/cb_pcidas64.c unsigned int divisor = data[4]; divisor 1935 drivers/staging/comedi/drivers/cb_pcidas64.c if (divisor < 2) { divisor 1936 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = 2; divisor 1942 drivers/staging/comedi/drivers/cb_pcidas64.c devpriv->ext_clock.divisor = divisor; divisor 1949 drivers/staging/comedi/drivers/cb_pcidas64.c data[4] = divisor; divisor 1994 drivers/staging/comedi/drivers/cb_pcidas64.c unsigned int divisor; divisor 1998 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = DIV_ROUND_UP(ns, TIMER_BASE); divisor 2001 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = ns / TIMER_BASE; divisor 2005 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = DIV_ROUND_CLOSEST(ns, TIMER_BASE); divisor 2008 drivers/staging/comedi/drivers/cb_pcidas64.c return divisor; divisor 2302 drivers/staging/comedi/drivers/cb_pcidas64.c unsigned int divisor; divisor 2306 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = cmd->scan_begin_arg / TIMER_BASE; divisor 2309 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = devpriv->ext_clock.divisor; divisor 2313 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = 1000; divisor 2318 drivers/staging/comedi/drivers/cb_pcidas64.c return divisor - 2; divisor 3201 drivers/staging/comedi/drivers/cb_pcidas64.c unsigned int divisor; divisor 3206 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = get_ao_divisor(cmd->scan_begin_arg, cmd->flags); divisor 3207 drivers/staging/comedi/drivers/cb_pcidas64.c if (divisor > max_counter_value) { divisor 3209 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = max_counter_value; divisor 3211 drivers/staging/comedi/drivers/cb_pcidas64.c writew(divisor & 0xffff, divisor 3213 drivers/staging/comedi/drivers/cb_pcidas64.c writew((divisor >> 16) & 0xff, divisor 341 drivers/staging/comedi/drivers/comedi_8254.c i8254->divisor = i8254->next_div & 0xffff; divisor 441 drivers/staging/comedi/drivers/comedi_8254.c unsigned int divisor; divisor 446 drivers/staging/comedi/drivers/comedi_8254.c divisor = DIV_ROUND_CLOSEST(*nanosec, i8254->osc_base); divisor 449 drivers/staging/comedi/drivers/comedi_8254.c divisor = DIV_ROUND_UP(*nanosec, i8254->osc_base); divisor 452 drivers/staging/comedi/drivers/comedi_8254.c divisor = *nanosec / i8254->osc_base; divisor 455 drivers/staging/comedi/drivers/comedi_8254.c if (divisor < 2) divisor 456 drivers/staging/comedi/drivers/comedi_8254.c divisor = 2; divisor 457 drivers/staging/comedi/drivers/comedi_8254.c if (divisor > I8254_MAX_COUNT) divisor 458 drivers/staging/comedi/drivers/comedi_8254.c divisor = I8254_MAX_COUNT; divisor 460 drivers/staging/comedi/drivers/comedi_8254.c *nanosec = divisor * i8254->osc_base; divisor 461 drivers/staging/comedi/drivers/comedi_8254.c i8254->next_div = divisor; divisor 84 drivers/staging/comedi/drivers/comedi_8254.h unsigned int divisor; divisor 327 drivers/staging/comedi/drivers/dt2811.c unsigned int divisor = DT2811_TMRCTR_MANTISSA(_div) | divisor 343 drivers/staging/comedi/drivers/dt2811.c divisor_hi = divisor; divisor 348 drivers/staging/comedi/drivers/dt2811.c divisor_lo = divisor; divisor 307 drivers/staging/comedi/drivers/dt282x.c unsigned int divisor; divisor 709 drivers/staging/comedi/drivers/dt282x.c devpriv->divisor = dt282x_ns_to_timer(&arg, cmd->flags); divisor 727 drivers/staging/comedi/drivers/dt282x.c outw(devpriv->divisor, dev->iobase + DT2821_TMRCTR_REG); divisor 872 drivers/staging/comedi/drivers/dt282x.c devpriv->divisor = dt282x_ns_to_timer(&arg, cmd->flags); divisor 927 drivers/staging/comedi/drivers/dt282x.c outw(devpriv->divisor, dev->iobase + DT2821_TMRCTR_REG); divisor 707 drivers/staging/comedi/drivers/ni_labpc_common.c comedi_8254_write(counter, 0, pacer->divisor); divisor 693 drivers/staging/octeon-usb/octeon-hcd.c int divisor; divisor 768 drivers/staging/octeon-usb/octeon-hcd.c divisor = DIV_ROUND_UP(octeon_get_clock_rate(), 125000000); divisor 770 drivers/staging/octeon-usb/octeon-hcd.c if (divisor < 4) divisor 771 drivers/staging/octeon-usb/octeon-hcd.c divisor = 4; divisor 772 drivers/staging/octeon-usb/octeon-hcd.c usbn_clk_ctl.s.divide = divisor; divisor 88 drivers/staging/sm750fb/ddk750_chip.c unsigned int reg, divisor; divisor 106 drivers/staging/sm750fb/ddk750_chip.c divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); divisor 110 drivers/staging/sm750fb/ddk750_chip.c switch (divisor) { divisor 140 drivers/staging/sm750fb/ddk750_chip.c unsigned int reg, divisor; divisor 158 drivers/staging/sm750fb/ddk750_chip.c divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); divisor 162 drivers/staging/sm750fb/ddk750_chip.c switch (divisor) { divisor 701 drivers/tty/rocket.c int bits, baud, divisor; divisor 739 drivers/tty/rocket.c divisor = ((rp_baud_base[info->board] + (baud >> 1)) / baud) - 1; divisor 740 drivers/tty/rocket.c if ((divisor >= 8192 || divisor < 0) && old_termios) { divisor 744 drivers/tty/rocket.c divisor = (rp_baud_base[info->board] / baud) - 1; divisor 746 drivers/tty/rocket.c if (divisor >= 8192 || divisor < 0) { divisor 748 drivers/tty/rocket.c divisor = (rp_baud_base[info->board] / baud) - 1; divisor 751 drivers/tty/rocket.c sSetBaud(cp, divisor); divisor 115 drivers/tty/serial/8250/8250_early.c unsigned int divisor; divisor 126 drivers/tty/serial/8250/8250_early.c divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud); divisor 129 drivers/tty/serial/8250/8250_early.c serial8250_early_out(port, UART_DLL, divisor & 0xff); divisor 130 drivers/tty/serial/8250/8250_early.c serial8250_early_out(port, UART_DLM, (divisor >> 8) & 0xff); divisor 94 drivers/tty/serial/8250/8250_ingenic.c unsigned int divisor; divisor 110 drivers/tty/serial/8250/8250_ingenic.c divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); divisor 122 drivers/tty/serial/8250/8250_ingenic.c early_out(port, UART_DLL, divisor & 0xff); divisor 123 drivers/tty/serial/8250/8250_ingenic.c early_out(port, UART_DLM, (divisor >> 8) & 0xff); divisor 292 drivers/tty/serial/digicolor-usart.c unsigned int baud, divisor; divisor 304 drivers/tty/serial/digicolor-usart.c divisor = uart_get_divisor(port, baud) - 1; divisor 341 drivers/tty/serial/digicolor-usart.c writeb_relaxed(divisor & 0xff, port->membase + UA_HBAUD_LO); divisor 342 drivers/tty/serial/digicolor-usart.c writeb_relaxed(divisor >> 8, port->membase + UA_HBAUD_HI); divisor 415 drivers/tty/serial/lantiq.c unsigned int divisor; divisor 480 drivers/tty/serial/lantiq.c divisor = uart_get_divisor(port, baud); divisor 481 drivers/tty/serial/lantiq.c divisor = divisor / 2 - 1; divisor 493 drivers/tty/serial/lantiq.c __raw_writel(divisor, port->membase + LTQ_ASC_BG); divisor 127 drivers/tty/serial/mpc52xx_uart.c u16 prescaler, unsigned int divisor) divisor 131 drivers/tty/serial/mpc52xx_uart.c out_8(&psc->ctur, divisor >> 8); divisor 132 drivers/tty/serial/mpc52xx_uart.c out_8(&psc->ctlr, divisor & 0xff); divisor 295 drivers/tty/serial/mpc52xx_uart.c unsigned int divisor; divisor 301 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 16 * baud) / (32 * baud); divisor 304 drivers/tty/serial/mpc52xx_uart.c mpc52xx_set_divisor(PSC(port), 0xdd00, divisor); divisor 313 drivers/tty/serial/mpc52xx_uart.c unsigned int divisor; divisor 321 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 2 * baud) / (4 * baud); divisor 325 drivers/tty/serial/mpc52xx_uart.c if (divisor > 0xffff || baud <= 115200) { divisor 326 drivers/tty/serial/mpc52xx_uart.c divisor = (divisor + 4) / 8; divisor 330 drivers/tty/serial/mpc52xx_uart.c mpc52xx_set_divisor(PSC(port), prescaler, divisor); divisor 541 drivers/tty/serial/mpc52xx_uart.c unsigned int divisor; divisor 560 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 8 * baud) / (16 * baud); divisor 563 drivers/tty/serial/mpc52xx_uart.c mpc52xx_set_divisor(PSC(port), 0xdd00, divisor); divisor 878 drivers/tty/serial/mpc52xx_uart.c u8 prescaler, unsigned int divisor) divisor 882 drivers/tty/serial/mpc52xx_uart.c out_8(&psc->ctur, divisor >> 8); divisor 883 drivers/tty/serial/mpc52xx_uart.c out_8(&psc->ctlr, divisor & 0xff); divisor 891 drivers/tty/serial/mpc52xx_uart.c unsigned int divisor; divisor 901 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 8 * baud) / (16 * baud); divisor 904 drivers/tty/serial/mpc52xx_uart.c mpc5125_set_divisor(PSC_5125(port), 0xdd, divisor); divisor 1026 drivers/tty/serial/msm_serial.c u16 divisor; divisor 1036 drivers/tty/serial/msm_serial.c unsigned int divisor, result; divisor 1060 drivers/tty/serial/msm_serial.c divisor = DIV_ROUND_CLOSEST(target, 16 * baud); divisor 1065 drivers/tty/serial/msm_serial.c if (entry->divisor <= divisor) { divisor 1066 drivers/tty/serial/msm_serial.c result = target / entry->divisor / 16; divisor 1078 drivers/tty/serial/msm_serial.c } else if (entry->divisor > divisor) { divisor 1090 drivers/tty/serial/msm_serial.c divisor = DIV_ROUND_CLOSEST(target, 16 * baud); divisor 1113 drivers/tty/serial/msm_serial.c baud = rate / 16 / entry->divisor; divisor 378 drivers/tty/serial/serial-tegra.c unsigned int divisor; divisor 400 drivers/tty/serial/serial-tegra.c divisor = 1; divisor 406 drivers/tty/serial/serial-tegra.c divisor = DIV_ROUND_CLOSEST(rate, baud * 16); divisor 414 drivers/tty/serial/serial-tegra.c tegra_uart_write(tup, divisor & 0xFF, UART_TX); divisor 415 drivers/tty/serial/serial-tegra.c tegra_uart_write(tup, ((divisor >> 8) & 0xFF), UART_IER); divisor 154 drivers/usb/serial/ch341.c short divisor; divisor 159 drivers/usb/serial/ch341.c divisor = CH341_BAUDBASE_DIVMAX; divisor 161 drivers/usb/serial/ch341.c while ((factor > 0xfff0) && divisor) { divisor 163 drivers/usb/serial/ch341.c divisor--; divisor 170 drivers/usb/serial/ch341.c a = (factor & 0xff00) | divisor; divisor 419 drivers/usb/serial/f81232.c int divisor; divisor 438 drivers/usb/serial/f81232.c divisor = calc_baud_divisor(baudrate, priv->baud_base); divisor 465 drivers/usb/serial/f81232.c divisor & 0x00ff); /* low */ divisor 473 drivers/usb/serial/f81232.c (divisor & 0xff00) >> 8); /* high */ divisor 565 drivers/usb/serial/f81534.c u32 divisor; divisor 618 drivers/usb/serial/f81534.c divisor = f81534_calc_baud_divisor(baudrate, port_priv->baud_base); divisor 630 drivers/usb/serial/f81534.c value = divisor & 0xff; divisor 637 drivers/usb/serial/f81534.c value = (divisor >> 8) & 0xff; divisor 1142 drivers/usb/serial/ftdi_sio.c unsigned short int divisor; divisor 1147 drivers/usb/serial/ftdi_sio.c divisor = divisor3 >> 3; divisor 1150 drivers/usb/serial/ftdi_sio.c divisor |= 0xc000; divisor 1152 drivers/usb/serial/ftdi_sio.c divisor |= 0x4000; divisor 1154 drivers/usb/serial/ftdi_sio.c divisor |= 0x8000; divisor 1155 drivers/usb/serial/ftdi_sio.c else if (divisor == 1) divisor 1156 drivers/usb/serial/ftdi_sio.c divisor = 0; /* special case for maximum baud rate */ divisor 1157 drivers/usb/serial/ftdi_sio.c return divisor; divisor 1168 drivers/usb/serial/ftdi_sio.c u32 divisor; divisor 1171 drivers/usb/serial/ftdi_sio.c divisor = divisor3 >> 3; divisor 1172 drivers/usb/serial/ftdi_sio.c divisor |= (u32)divfrac[divisor3 & 0x7] << 14; divisor 1174 drivers/usb/serial/ftdi_sio.c if (divisor == 1) divisor 1175 drivers/usb/serial/ftdi_sio.c divisor = 0; divisor 1176 drivers/usb/serial/ftdi_sio.c else if (divisor == 0x4001) divisor 1177 drivers/usb/serial/ftdi_sio.c divisor = 1; divisor 1178 drivers/usb/serial/ftdi_sio.c return divisor; divisor 1189 drivers/usb/serial/ftdi_sio.c u32 divisor; divisor 1195 drivers/usb/serial/ftdi_sio.c divisor = divisor3 >> 3; divisor 1196 drivers/usb/serial/ftdi_sio.c divisor |= (u32)divfrac[divisor3 & 0x7] << 14; divisor 1198 drivers/usb/serial/ftdi_sio.c if (divisor == 1) divisor 1199 drivers/usb/serial/ftdi_sio.c divisor = 0; divisor 1200 drivers/usb/serial/ftdi_sio.c else if (divisor == 0x4001) divisor 1201 drivers/usb/serial/ftdi_sio.c divisor = 1; divisor 1207 drivers/usb/serial/ftdi_sio.c divisor |= 0x00020000; divisor 1208 drivers/usb/serial/ftdi_sio.c return divisor; divisor 311 drivers/usb/serial/io_edgeport.c static int calc_baud_rate_divisor(struct device *dev, int baud_rate, int *divisor); divisor 2306 drivers/usb/serial/io_edgeport.c int divisor; divisor 2319 drivers/usb/serial/io_edgeport.c status = calc_baud_rate_divisor(dev, baudRate, &divisor); divisor 2336 drivers/usb/serial/io_edgeport.c MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, number, DLL, LOW8(divisor)); divisor 2337 drivers/usb/serial/io_edgeport.c MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, number, DLM, HIGH8(divisor)); divisor 2358 drivers/usb/serial/io_edgeport.c static int calc_baud_rate_divisor(struct device *dev, int baudrate, int *divisor) divisor 2365 drivers/usb/serial/io_edgeport.c *divisor = divisor_table[i].Divisor; divisor 2377 drivers/usb/serial/io_edgeport.c *divisor = custom; divisor 177 drivers/usb/serial/mct_u232.c unsigned int divisor; divisor 187 drivers/usb/serial/mct_u232.c divisor = mct_u232_calculate_baud_rate(serial, value, &speed); divisor 188 drivers/usb/serial/mct_u232.c put_unaligned_le32(divisor, buf); divisor 199 drivers/usb/serial/mct_u232.c dev_dbg(&port->dev, "set_baud_rate: value: 0x%x, divisor: 0x%x\n", value, divisor); divisor 1403 drivers/usb/serial/mos7720.c __u16 divisor; divisor 1433 drivers/usb/serial/mos7720.c static int calc_baud_rate_divisor(struct usb_serial_port *port, int baudrate, int *divisor) divisor 1445 drivers/usb/serial/mos7720.c *divisor = divisor_table[i].divisor; divisor 1461 drivers/usb/serial/mos7720.c *divisor = custom; divisor 1481 drivers/usb/serial/mos7720.c int divisor; divisor 1495 drivers/usb/serial/mos7720.c status = calc_baud_rate_divisor(port, baudrate, &divisor); divisor 1506 drivers/usb/serial/mos7720.c write_mos_reg(serial, number, MOS7720_DLL, (__u8)(divisor & 0xff)); divisor 1508 drivers/usb/serial/mos7720.c (__u8)((divisor & 0xff00) >> 8)); divisor 1543 drivers/usb/serial/mos7840.c int baudRate, int *divisor, divisor 1549 drivers/usb/serial/mos7840.c *divisor = 115200 / baudRate; divisor 1553 drivers/usb/serial/mos7840.c *divisor = 230400 / baudRate; divisor 1556 drivers/usb/serial/mos7840.c *divisor = 403200 / baudRate; divisor 1559 drivers/usb/serial/mos7840.c *divisor = 460800 / baudRate; divisor 1562 drivers/usb/serial/mos7840.c *divisor = 806400 / baudRate; divisor 1565 drivers/usb/serial/mos7840.c *divisor = 921600 / baudRate; divisor 1568 drivers/usb/serial/mos7840.c *divisor = 1572864 / baudRate; divisor 1571 drivers/usb/serial/mos7840.c *divisor = 3145728 / baudRate; divisor 1586 drivers/usb/serial/mos7840.c int divisor = 0; divisor 1636 drivers/usb/serial/mos7840.c status = mos7840_calc_baud_rate_divisor(port, baudRate, &divisor, divisor 1663 drivers/usb/serial/mos7840.c Data = (unsigned char)(divisor & 0xff); divisor 1667 drivers/usb/serial/mos7840.c Data = (unsigned char)((divisor & 0xff00) >> 8); divisor 76 drivers/usb/serial/oti6858.c __le16 divisor; /* baud rate = 96000000 / (16 * divisor), LE */ divisor 114 drivers/usb/serial/oti6858.c (((a)->divisor == (priv)->pending_setup.divisor) \ divisor 181 drivers/usb/serial/oti6858.c __le16 divisor; divisor 228 drivers/usb/serial/oti6858.c new_setup->divisor = priv->pending_setup.divisor; divisor 406 drivers/usb/serial/oti6858.c __le16 divisor; divisor 412 drivers/usb/serial/oti6858.c divisor = priv->pending_setup.divisor; divisor 441 drivers/usb/serial/oti6858.c divisor = 0; divisor 449 drivers/usb/serial/oti6858.c divisor = cpu_to_le16(new_divisor); divisor 491 drivers/usb/serial/oti6858.c if (divisor != priv->pending_setup.divisor divisor 494 drivers/usb/serial/oti6858.c priv->pending_setup.divisor = divisor; divisor 524 drivers/usb/serial/oti6858.c buf->divisor = cpu_to_le16(0x009c); /* 38400 bps */ divisor 535 drivers/usb/serial/oti6858.c priv->pending_setup.divisor = buf->divisor; divisor 148 drivers/usb/serial/quatech2.c int divisor, rem; divisor 150 drivers/usb/serial/quatech2.c divisor = MAX_BAUD_RATE / baudrate; divisor 154 drivers/usb/serial/quatech2.c divisor++; divisor 156 drivers/usb/serial/quatech2.c return divisor; divisor 163 drivers/usb/serial/quatech2.c int divisor = calc_baud_divisor(baudrate); divisor 168 drivers/usb/serial/quatech2.c divisor, index, NULL, 0, QT2_USB_TIMEOUT); divisor 222 drivers/usb/serial/ssu100.c u16 baud, divisor, remainder; divisor 257 drivers/usb/serial/ssu100.c divisor = MAX_BAUD_RATE / baud; divisor 260 drivers/usb/serial/ssu100.c divisor++; divisor 264 drivers/usb/serial/ssu100.c result = ssu100_control_msg(dev, QT_GET_SET_UART, divisor, urb_value); divisor 120 drivers/video/fbdev/asiliantfb.c unsigned char divisor = 0; divisor 128 drivers/video/fbdev/asiliantfb.c divisor += 0x10; divisor 166 drivers/video/fbdev/asiliantfb.c divisor |= 4; /* or set VCO loop divide to 1 */ divisor 169 drivers/video/fbdev/asiliantfb.c *dclk2_div = divisor; divisor 1141 drivers/video/fbdev/core/fbmon.c u32 divisor, hfreq; divisor 1143 drivers/video/fbdev/core/fbmon.c divisor = (1000000 - (vfreq * FLYBACK))/1000; divisor 1145 drivers/video/fbdev/core/fbmon.c return (hfreq/divisor); divisor 2457 drivers/video/fbdev/omap2/omapfb/dss/dispc.c #define DIV_FRAC(dividend, divisor) \ divisor 2458 drivers/video/fbdev/omap2/omapfb/dss/dispc.c ((dividend) * 100 / (divisor) - ((dividend) / (divisor) * 100)) divisor 1382 drivers/video/fbdev/via/hw.c cur.divisor = limits[i].divisor; divisor 1383 drivers/video/fbdev/via/hw.c cur.multiplier = clk / ((f0 / cur.divisor)>>cur.rshift); divisor 481 drivers/video/fbdev/via/hw.h u8 divisor; divisor 25 drivers/video/fbdev/via/via_clock.c | pll.divisor; divisor 30 drivers/video/fbdev/via/via_clock.c return ((pll.divisor - 2) << 16) divisor 37 drivers/video/fbdev/via/via_clock.c return (pll.divisor << 16) divisor 27 drivers/video/fbdev/via/via_clock.h u8 divisor; divisor 50 drivers/video/fbdev/via/via_clock.h return ref_freq / pll.divisor * pll.multiplier; divisor 318 drivers/vlynq/vlynq.c vdev->divisor = ids->divisor; divisor 404 drivers/vlynq/vlynq.c dev->divisor = i; divisor 441 drivers/vlynq/vlynq.c dev->divisor = i; divisor 474 drivers/vlynq/vlynq.c dev->divisor = vlynq_div_external; divisor 490 drivers/vlynq/vlynq.c switch (dev->divisor) { divisor 519 drivers/vlynq/vlynq.c VLYNQ_CTRL_CLOCK_DIV(dev->divisor - divisor 526 drivers/vlynq/vlynq.c dev->divisor - vlynq_ldiv1 + 1); divisor 540 drivers/vlynq/vlynq.c VLYNQ_CTRL_CLOCK_DIV(dev->divisor - divisor 546 drivers/vlynq/vlynq.c dev->divisor - vlynq_rdiv1 + 1); divisor 726 drivers/vlynq/vlynq.c dev->divisor = vlynq_div_auto; divisor 66 drivers/w1/masters/ds1wm.c unsigned long divisor; divisor 303 drivers/w1/masters/ds1wm.c return freq[i].divisor; divisor 310 drivers/w1/masters/ds1wm.c int divisor; divisor 317 drivers/w1/masters/ds1wm.c divisor = ds1wm_find_divisor(plat->clock_rate); divisor 319 drivers/w1/masters/ds1wm.c divisor, plat->clock_rate); divisor 320 drivers/w1/masters/ds1wm.c if (divisor == 0) { divisor 325 drivers/w1/masters/ds1wm.c ds1wm_write_register(ds1wm_data, DS1WM_CLKDIV, divisor); divisor 69 drivers/watchdog/octeon-wdt-main.c static int divisor; divisor 449 drivers/watchdog/octeon-wdt-main.c timeout_cnt = ((octeon_get_io_clock_rate() / divisor) * timeout_sec) >> 8; divisor 531 drivers/watchdog/octeon-wdt-main.c divisor = 0x200; divisor 533 drivers/watchdog/octeon-wdt-main.c divisor = 0x400; divisor 535 drivers/watchdog/octeon-wdt-main.c divisor = 0x100; divisor 548 drivers/watchdog/octeon-wdt-main.c timeout_cnt = ((octeon_get_io_clock_rate() / divisor) * max_timeout_sec) >> 8; divisor 305 drivers/watchdog/s3c2410_wdt.c unsigned int divisor = 1; divisor 323 drivers/watchdog/s3c2410_wdt.c divisor = DIV_ROUND_UP(count, 0xffff); divisor 325 drivers/watchdog/s3c2410_wdt.c if (divisor > 0x100) { divisor 332 drivers/watchdog/s3c2410_wdt.c timeout, divisor, count, DIV_ROUND_UP(count, divisor)); divisor 334 drivers/watchdog/s3c2410_wdt.c count = DIV_ROUND_UP(count, divisor); divisor 340 drivers/watchdog/s3c2410_wdt.c wtcon |= S3C2410_WTCON_PRESCALE(divisor-1); divisor 345 drivers/watchdog/s3c2410_wdt.c wdd->timeout = (count * divisor) / freq; divisor 84 drivers/watchdog/zx2967_wdt.c unsigned int divisor = ZX2967_WDT_DIV_DEFAULT; divisor 88 drivers/watchdog/zx2967_wdt.c if (count > divisor * ZX2967_WDT_MAX_COUNT) divisor 89 drivers/watchdog/zx2967_wdt.c divisor = DIV_ROUND_UP(count, ZX2967_WDT_MAX_COUNT); divisor 90 drivers/watchdog/zx2967_wdt.c count = DIV_ROUND_UP(count, divisor); divisor 92 drivers/watchdog/zx2967_wdt.c ZX2967_WDT_CFG_DIV(divisor) & ZX2967_WDT_VAL_MASK); divisor 96 drivers/watchdog/zx2967_wdt.c wdd->timeout = (count * divisor) / ZX2967_WDT_CLK_FREQ; divisor 627 fs/ubifs/budget.c int divisor, factor, f; divisor 644 fs/ubifs/budget.c divisor = UBIFS_MAX_DATA_NODE_SZ; divisor 645 fs/ubifs/budget.c divisor += (c->max_idx_node_sz * 3) / (f - 1); divisor 647 fs/ubifs/budget.c return div_u64(free, divisor); divisor 217 include/asm-generic/div64.h extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor); divisor 142 include/linux/kernel.h #define DIV_ROUND_CLOSEST(x, divisor)( \ divisor 145 include/linux/kernel.h typeof(divisor) __d = divisor; \ divisor 147 include/linux/kernel.h ((typeof(divisor))-1) > 0 || \ divisor 157 include/linux/kernel.h #define DIV_ROUND_CLOSEST_ULL(x, divisor)( \ divisor 159 include/linux/kernel.h typeof(divisor) __d = divisor; \ divisor 24 include/linux/math64.h static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) divisor 26 include/linux/math64.h *remainder = dividend % divisor; divisor 27 include/linux/math64.h return dividend / divisor; divisor 38 include/linux/math64.h static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) divisor 40 include/linux/math64.h *remainder = dividend % divisor; divisor 41 include/linux/math64.h return dividend / divisor; divisor 52 include/linux/math64.h static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) divisor 54 include/linux/math64.h *remainder = dividend % divisor; divisor 55 include/linux/math64.h return dividend / divisor; divisor 65 include/linux/math64.h static inline u64 div64_u64(u64 dividend, u64 divisor) divisor 67 include/linux/math64.h return dividend / divisor; divisor 77 include/linux/math64.h static inline s64 div64_s64(s64 dividend, s64 divisor) divisor 79 include/linux/math64.h return dividend / divisor; divisor 88 include/linux/math64.h static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) divisor 90 include/linux/math64.h *remainder = do_div(dividend, divisor); divisor 96 include/linux/math64.h extern s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder); divisor 100 include/linux/math64.h extern u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder); divisor 104 include/linux/math64.h extern u64 div64_u64(u64 dividend, u64 divisor); divisor 108 include/linux/math64.h extern s64 div64_s64(s64 dividend, s64 divisor); divisor 123 include/linux/math64.h static inline u64 div_u64(u64 dividend, u32 divisor) divisor 126 include/linux/math64.h return div_u64_rem(dividend, divisor, &remainder); divisor 136 include/linux/math64.h static inline s64 div_s64(s64 dividend, s32 divisor) divisor 139 include/linux/math64.h return div_s64_rem(dividend, divisor, &remainder); divisor 143 include/linux/math64.h u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder); divisor 146 include/linux/math64.h __iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) divisor 150 include/linux/math64.h while (dividend >= divisor) { divisor 155 include/linux/math64.h dividend -= divisor; divisor 256 include/linux/math64.h static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor) divisor 274 include/linux/math64.h rl.l.high = do_div(rh.ll, divisor); divisor 277 include/linux/math64.h do_div(rl.ll, divisor); divisor 297 include/linux/math64.h #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ divisor 298 include/linux/math64.h ({ u64 _tmp = (divisor); div64_u64((dividend) + _tmp / 2, _tmp); }) divisor 619 include/linux/mtd/rawnand.h #define __DIVIDE(dividend, divisor) ({ \ divisor 621 include/linux/mtd/rawnand.h DIV_ROUND_UP(dividend, divisor) : \ divisor 622 include/linux/mtd/rawnand.h DIV_ROUND_UP_ULL(dividend, divisor)); \ divisor 44 include/linux/vlynq.h enum vlynq_divisor divisor; divisor 53 include/linux/vlynq.h enum vlynq_divisor divisor; divisor 548 include/net/pkt_cls.h unsigned int divisor; divisor 217 include/uapi/linux/pkt_sched.h unsigned divisor; /* Hash divisor */ divisor 3598 kernel/events/core.c u64 divisor, dividend; divisor 3642 kernel/events/core.c divisor = nsec * frequency; divisor 3646 kernel/events/core.c divisor >>= 1; divisor 3658 kernel/events/core.c divisor = nsec * frequency; divisor 3661 kernel/events/core.c if (!divisor) divisor 3664 kernel/events/core.c return div64_u64(dividend, divisor); divisor 71 lib/math/div64.c s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) divisor 76 lib/math/div64.c quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); divisor 78 lib/math/div64.c if (divisor > 0) divisor 81 lib/math/div64.c quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); divisor 82 lib/math/div64.c if (divisor < 0) divisor 102 lib/math/div64.c u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) divisor 104 lib/math/div64.c u32 high = divisor >> 32; divisor 109 lib/math/div64.c quot = div_u64_rem(dividend, divisor, &rem32); divisor 113 lib/math/div64.c quot = div_u64(dividend >> n, divisor >> n); divisor 118 lib/math/div64.c *remainder = dividend - quot * divisor; divisor 119 lib/math/div64.c if (*remainder >= divisor) { divisor 121 lib/math/div64.c *remainder -= divisor; divisor 142 lib/math/div64.c u64 div64_u64(u64 dividend, u64 divisor) divisor 144 lib/math/div64.c u32 high = divisor >> 32; divisor 148 lib/math/div64.c quot = div_u64(dividend, divisor); divisor 151 lib/math/div64.c quot = div_u64(dividend >> n, divisor >> n); divisor 155 lib/math/div64.c if ((dividend - quot * divisor) >= divisor) divisor 170 lib/math/div64.c s64 div64_s64(s64 dividend, s64 divisor) divisor 174 lib/math/div64.c quot = div64_u64(abs(dividend), abs(divisor)); divisor 175 lib/math/div64.c t = (dividend ^ divisor) >> 63; divisor 188 lib/math/div64.c u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) divisor 190 lib/math/div64.c return __iter_div_u64_rem(dividend, divisor, remainder); divisor 47 lib/string_helpers.c static const unsigned int divisor[] = { divisor 76 lib/string_helpers.c do_div(blk_size, divisor[units]); divisor 81 lib/string_helpers.c do_div(size, divisor[units]); divisor 90 lib/string_helpers.c while (size >= divisor[units]) { divisor 91 lib/string_helpers.c remainder = do_div(size, divisor[units]); divisor 53 net/sched/cls_flow.c u32 divisor; divisor 330 net/sched/cls_flow.c if (f->divisor) divisor 331 net/sched/cls_flow.c classid %= f->divisor; divisor 466 net/sched/cls_flow.c fnew->divisor = fold->divisor; divisor 537 net/sched/cls_flow.c fnew->divisor = nla_get_u32(tb[TCA_FLOW_DIVISOR]); divisor 649 net/sched/cls_flow.c if (f->divisor && divisor 650 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_DIVISOR, f->divisor)) divisor 74 net/sched/cls_u32.c unsigned int divisor; divisor 202 net/sched/cls_u32.c if (ht->divisor) { divisor 209 net/sched/cls_u32.c sel = ht->divisor & u32_hash_fold(*data, &n->sel, divisor 273 net/sched/cls_u32.c if (sel > ht->divisor) divisor 479 net/sched/cls_u32.c cls_u32.hnode.divisor = h->divisor; divisor 497 net/sched/cls_u32.c cls_u32.hnode.divisor = h->divisor; divisor 575 net/sched/cls_u32.c for (h = 0; h <= ht->divisor; h++) { divisor 927 net/sched/cls_u32.c unsigned int divisor = nla_get_u32(tb[TCA_U32_DIVISOR]); divisor 929 net/sched/cls_u32.c if (!is_power_of_2(divisor)) { divisor 933 net/sched/cls_u32.c if (divisor-- > 0x100) { divisor 941 net/sched/cls_u32.c ht = kzalloc(sizeof(*ht) + divisor*sizeof(void *), GFP_KERNEL); divisor 959 net/sched/cls_u32.c ht->divisor = divisor; divisor 996 net/sched/cls_u32.c if (ht->divisor < TC_U32_HASH(htid)) { divisor 1134 net/sched/cls_u32.c for (h = 0; h <= ht->divisor; h++) { divisor 1161 net/sched/cls_u32.c cls_u32.hnode.divisor = ht->divisor; divisor 1237 net/sched/cls_u32.c for (h = 0; h <= ht->divisor; h++) { divisor 1289 net/sched/cls_u32.c u32 divisor = ht->divisor + 1; divisor 1291 net/sched/cls_u32.c if (nla_put_u32(skb, TCA_U32_DIVISOR, divisor)) divisor 116 net/sched/sch_sfq.c unsigned int divisor; /* number of slots in hash table */ divisor 160 net/sched/sch_sfq.c return skb_get_hash_perturb(skb, &q->perturbation) & (q->divisor - 1); divisor 173 net/sched/sch_sfq.c TC_H_MIN(skb->priority) <= q->divisor) divisor 194 net/sched/sch_sfq.c if (TC_H_MIN(res.classid) <= q->divisor) divisor 637 net/sched/sch_sfq.c if (ctl->divisor && divisor 638 net/sched/sch_sfq.c (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) divisor 665 net/sched/sch_sfq.c if (ctl->divisor) { divisor 666 net/sched/sch_sfq.c q->divisor = ctl->divisor; divisor 667 net/sched/sch_sfq.c q->maxflows = min_t(u32, q->maxflows, q->divisor); divisor 754 net/sched/sch_sfq.c q->divisor = SFQ_DEFAULT_HASH_DIVISOR; divisor 767 net/sched/sch_sfq.c q->ht = sfq_alloc(sizeof(q->ht[0]) * q->divisor); divisor 774 net/sched/sch_sfq.c for (i = 0; i < q->divisor; i++) divisor 799 net/sched/sch_sfq.c opt.v0.divisor = q->divisor; divisor 890 net/sched/sch_sfq.c for (i = 0; i < q->divisor; i++) { divisor 122 samples/vfio-mdev/mtty.c u16 divisor; divisor 301 samples/vfio-mdev/mtty.c mdev_state->s[index].divisor |= data; divisor 351 samples/vfio-mdev/mtty.c mdev_state->s[index].divisor |= (u16)data << 8; divisor 418 samples/vfio-mdev/mtty.c mdev_state->s[index].divisor = 0; divisor 467 samples/vfio-mdev/mtty.c *buf = (u8)mdev_state->s[index].divisor; divisor 500 samples/vfio-mdev/mtty.c *buf = (u8)(mdev_state->s[index].divisor >> 8); divisor 123 sound/drivers/serial-u16550.c unsigned char divisor; divisor 382 sound/drivers/serial-u16550.c if (uart->divisor != 0) { divisor 389 sound/drivers/serial-u16550.c outb(uart->divisor divisor 489 sound/drivers/serial-u16550.c if (uart->divisor != 0) { divisor 811 sound/drivers/serial-u16550.c uart->divisor = base / speed; divisor 812 sound/drivers/serial-u16550.c uart->speed = base / (unsigned int)uart->divisor; divisor 149 sound/isa/cs423x/cs4236_lib.c static unsigned char divisor_to_rate_register(unsigned int divisor) divisor 151 sound/isa/cs423x/cs4236_lib.c switch (divisor) { divisor 160 sound/isa/cs423x/cs4236_lib.c if (divisor < 21 || divisor > 192) { divisor 164 sound/isa/cs423x/cs4236_lib.c return divisor; divisor 70 sound/soc/codecs/tlv320aic26.c int fsref, divisor, wlen, pval, jval, dval, qval; divisor 79 sound/soc/codecs/tlv320aic26.c case 8000: fsref = 48000; divisor = AIC26_DIV_6; break; divisor 80 sound/soc/codecs/tlv320aic26.c case 11025: fsref = 44100; divisor = AIC26_DIV_4; break; divisor 81 sound/soc/codecs/tlv320aic26.c case 12000: fsref = 48000; divisor = AIC26_DIV_4; break; divisor 82 sound/soc/codecs/tlv320aic26.c case 16000: fsref = 48000; divisor = AIC26_DIV_3; break; divisor 83 sound/soc/codecs/tlv320aic26.c case 22050: fsref = 44100; divisor = AIC26_DIV_2; break; divisor 84 sound/soc/codecs/tlv320aic26.c case 24000: fsref = 48000; divisor = AIC26_DIV_2; break; divisor 85 sound/soc/codecs/tlv320aic26.c case 32000: fsref = 48000; divisor = AIC26_DIV_1_5; break; divisor 86 sound/soc/codecs/tlv320aic26.c case 44100: fsref = 44100; divisor = AIC26_DIV_1; break; divisor 87 sound/soc/codecs/tlv320aic26.c case 48000: fsref = 48000; divisor = AIC26_DIV_1; break; divisor 128 sound/soc/codecs/tlv320aic26.c reg = wlen | aic26->datfm | (divisor << 3) | divisor; divisor 312 sound/soc/codecs/tlv320aic32x4-clk.c u8 divisor; divisor 314 sound/soc/codecs/tlv320aic32x4-clk.c divisor = DIV_ROUND_UP(parent_rate, rate); divisor 315 sound/soc/codecs/tlv320aic32x4-clk.c if (divisor > 128) divisor 319 sound/soc/codecs/tlv320aic32x4-clk.c AIC32X4_DIV_MASK, divisor); divisor 325 sound/soc/codecs/tlv320aic32x4-clk.c unsigned long divisor; divisor 327 sound/soc/codecs/tlv320aic32x4-clk.c divisor = DIV_ROUND_UP(*parent_rate, rate); divisor 328 sound/soc/codecs/tlv320aic32x4-clk.c if (divisor > 128) divisor 331 sound/soc/codecs/tlv320aic32x4-clk.c return DIV_ROUND_UP(*parent_rate, divisor); divisor 1280 sound/sparc/dbri.c int divisor = 12288 / clockrate; divisor 1282 sound/sparc/dbri.c if (divisor > 255 || divisor * clockrate != 12288) divisor 1286 sound/sparc/dbri.c *(cmd++) = DBRI_CMD(D_CHI, 0, D_CHI_CHICM(divisor) | D_CHI_FD divisor 732 sound/x86/intel_hdmi_audio.c u64 dividend, divisor; divisor 740 sound/x86/intel_hdmi_audio.c divisor = 128 * aud_samp_freq; divisor 741 sound/x86/intel_hdmi_audio.c cts_val = div64_u64(dividend, divisor); divisor 216 tools/include/uapi/linux/pkt_sched.h unsigned divisor; /* Hash divisor */ divisor 242 tools/vm/slabinfo.c unsigned long divisor = 1; divisor 248 tools/vm/slabinfo.c divisor = 100000000UL; divisor 251 tools/vm/slabinfo.c divisor = 100000UL; divisor 254 tools/vm/slabinfo.c divisor = 100; divisor 259 tools/vm/slabinfo.c value /= divisor; divisor 266 tools/vm/slabinfo.c if (divisor != 1) {