/linux-master/arch/alpha/kernel/ |
H A D | core_lca.c | 490 printk("\tPrimary clock divisor\t0x%lx\n", LCA_GET_PRIMARY(pmr_reg)); 491 printk("\tOverride clock divisor\t0x%lx\n", LCA_GET_OVERRIDE(pmr_reg)); 510 lca_clock_fiddle(int divisor) 515 LCA_SET_PRIMARY_CLOCK(pmr_reg, divisor); 516 /* lca_norm_clock = divisor; */ 508 lca_clock_fiddle(int divisor) argument
|
/linux-master/arch/arm/lib/ |
H A D | div64.S | 5 * Optimized computation of 64-bit dividend / 32-bit divisor 29 * __do_div64: perform a division with 64-bit dividend and 32-bit divisor. 36 * r4 = divisor (preserved) 50 bls 9f @ divisor is 0 or 1 52 beq 8f @ divisor is power of 2 59 @ Align divisor with upper part of dividend. 60 @ The aligned divisor is stored in yl preserving the original. 102 @ divisor for comparisons, considering the carry-out bit as well. 139 @ divisor at this point since divisor ca [all...] |
H A D | lib1funcs.S | 40 .macro ARM_DIV_BODY dividend, divisor, result, curbit 44 clz \curbit, \divisor 48 mov \divisor, \divisor, lsl \result 54 @ Initially shift the divisor left 3 bits if possible, 58 tst \divisor, #0xe0000000 59 moveq \divisor, \divisor, lsl #3 63 @ Unless the divisor is very big, shift it up in multiples of 65 @ division loop. Continue shifting until the divisor i [all...] |
/linux-master/arch/arm/mach-orion5x/ |
H A D | terastation_pro2-setup.c | 269 /* 38400 baud divisor */ 270 const unsigned divisor = ((orion5x_tclk + (8 * 38400)) / (16 * 38400)); local 276 writel(divisor & 0xff, UART1_REG(DLL)); 277 writel((divisor >> 8) & 0xff, UART1_REG(DLM));
|
H A D | tsx09-common.c | 26 /* 19200 baud divisor */ 27 const unsigned divisor = ((orion5x_tclk + (8 * 19200)) / (16 * 19200)); local 33 writel(divisor & 0xff, UART1_REG(DLL)); 34 writel((divisor >> 8) & 0xff, UART1_REG(DLM));
|
H A D | kurobox_pro-setup.c | 291 /* 38400 baud divisor */ 292 const unsigned divisor = ((orion5x_tclk + (8 * 38400)) / (16 * 38400)); local 298 writel(divisor & 0xff, UART1_REG(DLL)); 299 writel((divisor >> 8) & 0xff, UART1_REG(DLM));
|
/linux-master/arch/m68k/ifpsp060/src/ |
H A D | ilsp.S | 74 # 0x4(sp) = divisor # 89 # codes before performing the final "rts". If the divisor was equal to # 134 mov.l 0x8(%a6),%d7 # fetch divisor 136 beq.w ldiv64eq0 # divisor is = 0!!! 145 # save the sign of the divisor 146 # make divisor unsigned if it's negative 147 tst.l %d7 # chk sign of divisor 148 slt NDIVISOR(%a6) # save sign of divisor 150 neg.l %d7 # complement negative divisor 165 # - is (hi(dividend) == 0 && (divisor < [all...] |
/linux-master/arch/powerpc/boot/ |
H A D | div64.S | 7 * the 64-bit quotient, and r4 contains the divisor. 22 divwu r7,r5,r4 # if dividend.hi >= divisor, 23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor 24 subf. r5,r0,r5 # dividend.hi %= divisor 31 srw r10,r10,r0 # the divisor right the same amount, 41 mulhwu r9,r11,r4 # multiply the estimate by the divisor, 42 subfc r6,r10,r6 # take the product from the divisor,
|
H A D | stdio.c | 43 unsigned int divisor);
|
/linux-master/arch/powerpc/lib/ |
H A D | div64.S | 7 * the 64-bit quotient, and r4 contains the divisor. 22 divwu r7,r5,r4 # if dividend.hi >= divisor, 23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor 24 subf. r5,r0,r5 # dividend.hi %= divisor 31 srw r10,r10,r0 # the divisor right the same amount, 41 mulhwu r9,r11,r4 # multiply the estimate by the divisor, 42 subfc r6,r10,r6 # take the product from the divisor,
|
/linux-master/arch/x86/boot/ |
H A D | early_serial_console.c | 29 unsigned divisor; local 36 divisor = 115200 / baud; 39 outb(divisor & 0xff, port + DLL); 40 outb((divisor >> 8) & 0xff, port + DLH);
|
/linux-master/drivers/acpi/acpica/ |
H A D | utmath.c | 243 * divisor - 32-bit divisor 257 u32 divisor, u64 *out_quotient, u32 *out_remainder) 265 /* Always check for a zero divisor */ 267 if (divisor == 0) { 278 ACPI_DIV_64_BY_32(0, dividend_ovl.part.hi, divisor, 281 ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor, 316 union uint64_overlay divisor; local 327 /* Always check for a zero divisor */ 334 divisor 256 acpi_ut_short_divide(u64 dividend, u32 divisor, u64 *out_quotient, u32 *out_remainder) argument 444 acpi_ut_short_divide(u64 in_dividend, u32 divisor, u64 *out_quotient, u32 *out_remainder) argument [all...] |
/linux-master/drivers/clk/ |
H A D | clk-vt8500.c | 124 /* div == 0 is actually the highest divisor */ 135 u32 divisor; local 140 divisor = *prate / rate; 142 /* If prate / rate would be decimal, incr the divisor */ 143 if (rate * divisor < *prate) 144 divisor++; 147 * If this is a request for SDMMC we have to adjust the divisor 150 if ((cdev->div_mask == 0x3F) && (divisor > 31)) { 151 divisor = 64 * ((divisor / 6 161 u32 divisor; local [all...] |
/linux-master/drivers/clk/pistachio/ |
H A D | clk-pll.c | 94 static inline u64 do_div_round_closest(u64 dividend, u64 divisor) argument 96 dividend += divisor / 2; 97 return div64_u64(dividend, divisor);
|
/linux-master/drivers/hsi/controllers/ |
H A D | omap_ssi.h | 33 * @divisor: TX divider 44 u32 divisor; member in struct:omap_ssm_ctx::__anon264::__anon265
|
/linux-master/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 24 unsigned int offset, divisor; local 27 divisor = TU_TO_USEC(interval); 28 div_u64_rem(tsf, divisor, &offset); 30 return (u32) tsf + divisor - offset;
|
/linux-master/drivers/video/fbdev/via/ |
H A D | hw.c | 1382 cur.divisor = limits[i].divisor; 1383 cur.multiplier = clk / ((f0 / cur.divisor)>>cur.rshift);
|
H A D | hw.h | 481 u8 divisor; member in struct:pll_limit
|
H A D | via_clock.c | 25 | pll.divisor; 30 return ((pll.divisor - 2) << 16) 37 return (pll.divisor << 16)
|
H A D | via_clock.h | 27 u8 divisor; member in struct:via_pll_config 50 return ref_freq / pll.divisor * pll.multiplier;
|
/linux-master/arch/alpha/lib/ |
H A D | divide.S | 29 * the divisor is small is handled better by the DEC algorithm 38 * $1 - shifted divisor 43 * $25 - divisor 56 #define divisor $1 define 104 bis $25,$25,divisor 109 LONGIFY(divisor) 114 beq divisor, 9f /* div by zero */ 118 * shift divisor left, using 3-bit shifts for 125 1: cmpult divisor,modulus,compare 126 s8addq divisor, [all...] |
H A D | ev6-divide.S | 29 * the divisor is small is handled better by the DEC algorithm 38 * $1 - shifted divisor 43 * $25 - divisor 66 #define divisor $1 define 114 bis $25,$25,divisor # E : 120 LONGIFY(divisor) # E : U L L U 127 beq divisor, 9f /* div by zero */ 137 * shift divisor left, using 3-bit shifts for 144 1: cmpult divisor,modulus,compare # E : 145 s8addq divisor, [all...] |
/linux-master/arch/arm/net/ |
H A D | bpf_jit_32.c | 223 static u32 jit_udiv32(u32 dividend, u32 divisor) argument 225 return dividend / divisor; 228 static u32 jit_mod32(u32 dividend, u32 divisor) argument 230 return dividend % divisor; 233 static s32 jit_sdiv32(s32 dividend, s32 divisor) argument 235 return dividend / divisor; 238 static s32 jit_smod32(s32 dividend, s32 divisor) argument 240 return dividend % divisor; 244 static u64 jit_udiv64(u64 dividend, u64 divisor) argument 246 return div64_u64(dividend, divisor); 249 jit_mod64(u64 dividend, u64 divisor) argument 257 jit_sdiv64(s64 dividend, s64 divisor) argument 262 jit_smod64(s64 dividend, s64 divisor) argument [all...] |
/linux-master/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper-jtag.c | 50 uint32_t divisor = cvmx_sysinfo_get()->cpu_clock_hz / (25 * 1000000); local 51 divisor = (divisor - 1) >> 2; 52 /* Convert the divisor into a power of 2 shift */ 53 while (divisor) { 55 divisor = divisor >> 1;
|
/linux-master/arch/mips/ralink/ |
H A D | timer.c | 76 static int rt_timer_config(struct rt_timer *rt, unsigned long divisor) argument 78 if (rt->timer_freq < divisor) 81 rt->timer_div = divisor;
|