Home
last modified time | relevance | path

Searched refs:timebase (Results 1 – 25 of 139) sorted by relevance

123456

/OK3568_Linux_fs/kernel/arch/powerpc/boot/
H A Dpq2.c29 u32 *timebase, u32 *brgfreq) in pq2_get_clocks() argument
55 if (timebase) in pq2_get_clocks()
56 *timebase = busclk / 4; in pq2_get_clocks()
75 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq) in pq2_set_clocks() argument
79 dt_fixup_cpu_clocks(corefreq, timebase, sysfreq); in pq2_set_clocks()
92 u32 sysfreq, corefreq, timebase, brgfreq; in pq2_fixup_clocks() local
94 if (!pq2_get_clocks(crystal, &sysfreq, &corefreq, &timebase, &brgfreq)) in pq2_fixup_clocks()
97 pq2_set_clocks(sysfreq, corefreq, timebase, brgfreq); in pq2_fixup_clocks()
H A Dsimpleboot.c28 const u32 *na, *ns, *reg, *timebase; in platform_init() local
73 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
74 if (timebase && (size == 4)) in platform_init()
75 timebase_period_ns = 1000000000 / *timebase; in platform_init()
H A Dtreeboot-currituck.c85 const u32 *timebase; in platform_init() local
107 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
108 if (timebase && (size == 4)) in platform_init()
109 timebase_period_ns = 1000000000 / *timebase; in platform_init()
H A Dtreeboot-akebono.c98 const u32 *timebase; in platform_init() local
151 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
152 if (timebase && (size == 4)) in platform_init()
153 timebase_period_ns = 1000000000 / *timebase; in platform_init()
H A Dpq2.h8 u32 *timebase, u32 *brgfreq);
9 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq);
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/
H A Dsmp.c67 static u64 timebase; variable
383 timebase = get_tb(); in smp_psurge_kick_cpu()
385 while (timebase) in smp_psurge_kick_cpu()
422 while (!timebase) in smp_psurge_take_timebase()
425 set_tb(timebase >> 32, timebase & 0xffffffff); in smp_psurge_take_timebase()
426 timebase = 0; in smp_psurge_take_timebase()
465 timebase = get_tb(); in smp_core99_give_timebase()
467 while (timebase) in smp_core99_give_timebase()
485 while (!timebase) in smp_core99_take_timebase()
488 set_tb(timebase >> 32, timebase & 0xffffffff); in smp_core99_take_timebase()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/85xx/
H A Dsmp.c43 static u64 timebase; variable
73 asm volatile("mfspr %0, %1" : "=r" (timebase) : in mpc85xx_give_timebase()
77 prev = timebase; in mpc85xx_give_timebase()
78 asm volatile("mfspr %0, %1" : "=r" (timebase) : in mpc85xx_give_timebase()
80 } while (prev != timebase); in mpc85xx_give_timebase()
83 timebase = get_tb(); in mpc85xx_give_timebase()
107 set_tb(timebase >> 32, timebase & 0xffffffff); in mpc85xx_take_timebase()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/watchdog/
H A Dof-xilinx-wdt.txt5 - compatible : Should be "xlnx,xps-timebase-wdt-1.00.a" or
6 "xlnx,xps-timebase-wdt-1.01.a".
19 axi-timebase-wdt@40100000 {
21 compatible = "xlnx,xps-timebase-wdt-1.00.a";
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pasemi/
H A Dsetup.c100 static unsigned long timebase; variable
111 timebase = get_tb(); in pas_give_timebase()
114 while (timebase) in pas_give_timebase()
122 while (!timebase) in pas_take_timebase()
126 set_tb(timebase >> 32, timebase & 0xffffffff); in pas_take_timebase()
127 timebase = 0; in pas_take_timebase()
/OK3568_Linux_fs/kernel/drivers/pwm/
H A Dpwm-img.c95 u32 val, div, duty, timebase; in img_pwm_config() local
113 timebase = DIV_ROUND_UP(mul, 1); in img_pwm_config()
116 timebase = DIV_ROUND_UP(mul, 8); in img_pwm_config()
119 timebase = DIV_ROUND_UP(mul, 64); in img_pwm_config()
122 timebase = DIV_ROUND_UP(mul, 512); in img_pwm_config()
129 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); in img_pwm_config()
144 (timebase << PWM_CH_CFG_TMBASE_SHIFT); in img_pwm_config()
/OK3568_Linux_fs/kernel/drivers/isdn/mISDN/
H A Dl1oip_core.c265 u16 timebase, u8 *buf, int len) in l1oip_socket_send() argument
306 *p++ = timebase >> 8; /* time base */ in l1oip_socket_send()
307 *p++ = timebase; in l1oip_socket_send()
350 l1oip_socket_recv(struct l1oip *hc, u8 remotecodec, u8 channel, u16 timebase, in l1oip_socket_recv() argument
408 if (((s16)(timebase - rx_counter)) >= 0) { in l1oip_socket_recv()
410 if (timebase >= (rx_counter & 0xffff)) in l1oip_socket_recv()
412 (rx_counter & 0xffff0000) | timebase; in l1oip_socket_recv()
415 | timebase; in l1oip_socket_recv()
418 if (timebase < (rx_counter & 0xffff)) in l1oip_socket_recv()
420 (rx_counter & 0xffff0000) | timebase; in l1oip_socket_recv()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/
H A Diss4xx-mpic.dts39 timebase-frequency = <100000000>;
53 timebase-frequency = <100000000>;
69 timebase-frequency = <100000000>;
85 timebase-frequency = <100000000>;
H A Dps3.dts33 * dtc expects a clock-frequency and timebase-frequency entries, so
51 timebase-frequency = <0>;
H A Dsbc8548-pre.dtsi36 timebase-frequency = <0>; // From uboot
/OK3568_Linux_fs/kernel/drivers/leds/
H A Dleds-asic3.c42 u32 timebase; in brightness_set() local
45 timebase = (value == LED_OFF) ? 0 : (LED_EN|0x4); in brightness_set()
51 asic3_write_register(asic, (base + ASIC3_LED_TimeBase), timebase); in brightness_set()
/OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/fsl/
H A Dmpc8641si-pre.dtsi37 timebase-frequency = <0>;
49 timebase-frequency = <0>;
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-rk-timer.c68 u64 timebase; member
86 return tick_to_sec(rk_timer_rtc, tick) + rk_timer_rtc->timebase; in tick_to_time64()
91 return (time - rk_timer_rtc->timebase) * rk_timer_rtc->freq; in time64_to_tick()
199 rk_timer_rtc->timebase = rtc_tm_to_time64(tm); in rk_timer_rtc_set_time()
201 dev_dbg(dev, "Setting new timebase:%lld\n", rk_timer_rtc->timebase); in rk_timer_rtc_set_time()
/OK3568_Linux_fs/buildroot/dl/unixbench/git/UnixBench/
H A DWRITING_TESTS49 COUNT|score|timebase|label
66 * "timebase" is the time base used for the final report to the user. A
113 If you want results reported as loops per minute, then set timebase to 60:
124 and report that directly. To do this, just set timebase to 0:
H A DRun1006 my $timebase = $presult->{'COUNT1'};
1023 if ($timebase > 0 && $time > 0) {
1024 $sum += $count / ($time / $timebase);
1025 $product += log($count) - log($time / $timebase) if ($count > 0);
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Drtas.c1340 static u64 timebase = 0; variable
1350 timebase = get_tb(); in rtas_give_timebase()
1353 while (timebase) in rtas_give_timebase()
1361 while (!timebase) in rtas_take_timebase()
1364 set_tb(timebase >> 32, timebase & 0xffffffff); in rtas_take_timebase()
1365 timebase = 0; in rtas_take_timebase()
/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Dadi_i2c.c91 ulong timebase = get_timer(0); in wait_for_completion() local
140 timebase = get_timer(0); in wait_for_completion()
142 } while (get_timer(timebase) < I2C_TIMEOUT); in wait_for_completion()
/OK3568_Linux_fs/u-boot/drivers/mtd/spi/
H A Dsf_dataflash.c100 int timebase; in dataflash_waitready() local
102 timebase = get_timer(0); in dataflash_waitready()
112 } while (get_timer(timebase) < timeout); in dataflash_waitready()
H A Dspi-nor-tiny.c323 unsigned long timebase; in spi_nor_wait_till_ready_with_timeout() local
326 timebase = get_timer(0); in spi_nor_wait_till_ready_with_timeout()
328 while (get_timer(timebase) < timeout) { in spi_nor_wait_till_ready_with_timeout()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/powerpc/opal/
H A Dpower-mgt.txt15 extent of state-loss, whether timebase is stopped on this
45 0x00000002 /* Needs timebase restore */
54 /* timebase (POWER8) */
/OK3568_Linux_fs/kernel/arch/powerpc/include/asm/
H A Ddtl.h17 __be64 timebase; member

123456