/linux-master/arch/powerpc/boot/ |
H A D | pq2.h | 8 u32 *timebase, u32 *brgfreq); 9 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq);
|
H A D | pq2.c | 29 u32 *timebase, u32 *brgfreq) 55 if (timebase) 56 *timebase = busclk / 4; 75 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq) argument 79 dt_fixup_cpu_clocks(corefreq, timebase, sysfreq); 92 u32 sysfreq, corefreq, timebase, brgfreq; local 94 if (!pq2_get_clocks(crystal, &sysfreq, &corefreq, &timebase, &brgfreq)) 97 pq2_set_clocks(sysfreq, corefreq, timebase, brgfreq); 28 pq2_get_clocks(u32 crystal, u32 *sysfreq, u32 *corefreq, u32 *timebase, u32 *brgfreq) argument
|
H A D | treeboot-currituck.c | 85 const u32 *timebase; local 107 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); 108 if (timebase && (size == 4)) 109 timebase_period_ns = 1000000000 / *timebase;
|
H A D | simpleboot.c | 28 const u32 *na, *ns, *reg, *timebase; local 68 /* finally, setup the timebase */ 73 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); 74 if (timebase && (size == 4)) 75 timebase_period_ns = 1000000000 / *timebase;
|
H A D | treeboot-akebono.c | 98 const u32 *timebase; local 151 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); 152 if (timebase && (size == 4)) 153 timebase_period_ns = 1000000000 / *timebase;
|
/linux-master/arch/powerpc/include/asm/ |
H A D | timex.h | 12 #include <asm/vdso/timebase.h>
|
H A D | dtl.h | 17 __be64 timebase; member in struct:dtl_entry
|
H A D | time.h | 18 #include <asm/vdso/timebase.h> 32 /* Some sane defaults: 125 MHz timebase, 1GHz processor */ 114 /* Convert timebase ticks to nanoseconds */
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | smp.c | 43 static u64 timebase; variable 62 * that will reread the timebase until TBL is non-zero. 63 * That would be a bad thing when the timebase is frozen. 73 asm volatile("mfspr %0, %1" : "=r" (timebase) : 77 prev = timebase; 78 asm volatile("mfspr %0, %1" : "=r" (timebase) : 80 } while (prev != timebase); 83 timebase = get_tb(); 107 set_tb(timebase >> 32, timebase [all...] |
/linux-master/arch/powerpc/platforms/pasemi/ |
H A D | setup.c | 102 static unsigned long timebase; variable 113 timebase = get_tb(); 116 while (timebase) 124 while (!timebase) 128 set_tb(timebase >> 32, timebase & 0xffffffff); 129 timebase = 0;
|
/linux-master/arch/powerpc/platforms/powermac/ |
H A D | smp.c | 67 static u64 timebase; variable 298 /* No sure how timebase sync works on those, let's use SW */ 359 * We can't use udelay here because the timebase is now frozen. 366 * Also, because the timebase is frozen, we must not return to the 384 timebase = get_tb(); 386 while (timebase) 423 while (!timebase) 426 set_tb(timebase >> 32, timebase & 0xffffffff); 427 timebase [all...] |
/linux-master/drivers/pwm/ |
H A D | pwm-img.c | 43 * PWM period is specified with a timebase register, 45 * specified in step periods, in the [0, $timebase] range. 46 * In other words, the timebase imposes the duty cycle 47 * resolution. Therefore, let's constraint the timebase to 49 * Imposing a minimum timebase, will impose a maximum PWM frequency. 92 u32 val, div, duty, timebase; local 110 timebase = DIV_ROUND_UP(mul, 1); 113 timebase = DIV_ROUND_UP(mul, 8); 116 timebase = DIV_ROUND_UP(mul, 64); 119 timebase [all...] |
/linux-master/drivers/isdn/mISDN/ |
H A D | l1oip_core.c | 265 u16 timebase, u8 *buf, int len) 306 *p++ = timebase >> 8; /* time base */ 307 *p++ = timebase; 350 l1oip_socket_recv(struct l1oip *hc, u8 remotecodec, u8 channel, u16 timebase, argument 408 if (((s16)(timebase - rx_counter)) >= 0) { 410 if (timebase >= (rx_counter & 0xffff)) 412 (rx_counter & 0xffff0000) | timebase; 415 | timebase; 418 if (timebase < (rx_counter & 0xffff)) 420 (rx_counter & 0xffff0000) | timebase; 264 l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask, u16 timebase, u8 *buf, int len) argument 449 u16 timebase; local [all...] |
/linux-master/arch/powerpc/include/asm/vdso/ |
H A D | gettimeofday.h | 7 #include <asm/vdso/timebase.h>
|
/linux-master/arch/powerpc/boot/dts/ |
H A D | kuroboxHD.dts | 43 timebase-frequency = <24391680>; /* Fixed by bootloader */
|
H A D | kuroboxHG.dts | 43 timebase-frequency = <32522240>; /* Fixed by bootloader */
|
/linux-master/arch/powerpc/kernel/ |
H A D | rtas.c | 2161 static u64 timebase = 0; variable 2170 timebase = get_tb(); 2173 while (timebase) 2181 while (!timebase) 2184 set_tb(timebase >> 32, timebase & 0xffffffff); 2185 timebase = 0;
|
/linux-master/arch/powerpc/platforms/cell/spufs/ |
H A D | spufs.h | 63 u64 timebase; member in struct:switch_log::switch_log_entry
|
H A D | file.c | 2357 (unsigned long long) p->timebase); 2476 p->timebase = get_tb();
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | dtl.c | 391 dtb = be64_to_cpu(dtl->timebase);
|
/linux-master/drivers/comedi/drivers/ |
H A D | amplc_pci230.c | 631 static unsigned int pci230_divide_ns(u64 ns, unsigned int timebase, argument 638 rem = do_div(div, timebase); 642 div += DIV_ROUND_CLOSEST(rem, timebase); 647 div += DIV_ROUND_UP(rem, timebase);
|
/linux-master/drivers/net/ethernet/ibm/ |
H A D | ibmvnic.h | 182 __be64 timebase; member in struct:ibmvnic_fw_trace_entry
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_hv.c | 101 /* Used as a "null" value for timebase values */ 282 * lock. The stolen times are measured in units of timebase ticks. 807 dt->timebase = cpu_to_be64(now); 2657 * Now that we know the timebase offset, update the 2658 * decrementer expiry with a guest timebase value. If
|