/netbsd/sys/sys/ |
H A D | timetc.h | 42 struct timecounter; 44 typedef u_int timecounter_get_t(struct timecounter *); 45 typedef void timecounter_pps_t(struct timecounter *); 47 struct timecounter { struct 76 struct timecounter *tc_next; argument 81 extern struct timecounter *timecounter; 84 void tc_init(struct timecounter *tc); 85 int tc_detach(struct timecounter *); 88 void tc_gonebad(struct timecounter *);
|
H A D | cctr.h | 46 struct timecounter *cc_init(timecounter_get_t, uint64_t, const char *, int); 48 u_int cc_get_timecount(struct timecounter *);
|
/netbsd/sys/kern/ |
H A D | kern_tc.c | 137 struct timecounter *timecounter = &dummy_timecounter; variable 280 tc = timecounter; in sysctl_kern_timecounter_hardware() 309 timecounter = newtc; in sysctl_kern_timecounter_hardware() 324 struct timecounter *tc; in sysctl_kern_timecounter_choice() 428 struct timecounter *tc; in tc_delta() 744 timecounter = tc; in tc_init() 770 timecounter = best; in tc_pick() 792 struct timecounter *tc; in tc_detach() 946 ncount = timecounter->tc_get_timecount(timecounter); in tc_windup() 1538 (void)timecounter->tc_get_timecount(timecounter); in inittimecounter() [all …]
|
H A D | kern_cctr.c | 105 static struct timecounter cc_timecounter = { 125 struct timecounter * 184 cc_get_timecount(struct timecounter *tc) in cc_get_timecount()
|
/netbsd/sys/arch/powerpc/powerpc/ |
H A D | clock.c | 64 static u_int get_powerpc_timecount(struct timecounter *); 66 static u_int get_601_timecount(struct timecounter *); 74 static struct timecounter powerpc_601_timecounter = { 86 static struct timecounter powerpc_timecounter = { 252 get_powerpc_timecount(struct timecounter *tc) in get_powerpc_timecount() 268 get_601_timecount(struct timecounter *tc) in get_601_timecount() 286 struct timecounter *tc; in init_powerpc_tc()
|
/netbsd/sys/arch/sparc64/sparc64/ |
H A D | clock.c | 147 static u_int tick_get_timecount(struct timecounter *); 148 static u_int stick_get_timecount(struct timecounter *); 150 static u_int stick2e_get_timecount(struct timecounter *); 157 static struct timecounter tick_timecounter = { 166 static struct timecounter stick_timecounter = { 175 static struct timecounter stick2e_timecounter = { 187 tick_get_timecount(struct timecounter *tc) in tick_get_timecount() 193 stick_get_timecount(struct timecounter *tc) in stick_get_timecount() 200 stick2e_get_timecount(struct timecounter *tc) in stick2e_get_timecount() 213 static struct timecounter counter_timecounter = { [all …]
|
/netbsd/sys/dev/ic/ |
H A D | acpipmtimer.c | 20 struct timecounter tc; 26 static u_int acpihwtimer_read_safe(struct timecounter *); 27 static u_int acpihwtimer_read_fast(struct timecounter *); 76 acpihwtimer_read_safe(struct timecounter *tc) in acpihwtimer_read_safe() 92 acpihwtimer_read_fast(struct timecounter *tc) in acpihwtimer_read_fast()
|
/netbsd/sys/arch/arm/sunxi/ |
H A D | sunxi_timer.c | 106 struct timecounter sc_tc; 107 struct timecounter sc_tc_losc; 160 sunxi_timer_get_timecount(struct timecounter *tc) in sunxi_timer_get_timecount() 169 sunxi_timer_get_timecount_losc(struct timecounter *tc) in sunxi_timer_get_timecount_losc() 189 struct timecounter *tc = &sc->sc_tc; in sunxi_timer_attach() 190 struct timecounter *tc_losc = &sc->sc_tc_losc; in sunxi_timer_attach()
|
/netbsd/sys/arch/sparc/sparc/ |
H A D | timer_msiiep.c | 87 static u_int timer_get_timecount(struct timecounter *); 105 static struct timecounter counter_timecounter = { 209 timer_get_timecount(struct timecounter *tc) in timer_get_timecount() 251 if (timecounter->tc_get_timecount == timer_get_timecount) in clockintr_msiiep()
|
H A D | timer.c | 80 static u_int timer_get_timecount(struct timecounter *); 103 static struct timecounter counter_timecounter = { 118 timer_get_timecount(struct timecounter *tc) in timer_get_timecount() 183 if (timecounter->tc_get_timecount == timer_get_timecount) { in tickle_tc()
|
/netbsd/sys/arch/hppa/dev/ |
H A D | clock.c | 56 static unsigned get_itimer_count(struct timecounter *); 61 static struct timecounter tc = { in cpu_initclocks() 81 get_itimer_count(struct timecounter *tc) in get_itimer_count()
|
/netbsd/sys/arch/i386/pci/ |
H A D | geodecntr.c | 47 struct timecounter sc_tc; 50 static unsigned geode_get_timecount(struct timecounter *); 106 static unsigned geode_get_timecount(struct timecounter *tc) in geode_get_timecount()
|
/netbsd/sys/arch/usermode/dev/ |
H A D | clock.c | 53 static unsigned int clock_getcounter(struct timecounter *); 66 static struct timecounter clock_timecounter = { 125 clock_getcounter(struct timecounter *tc) in clock_getcounter()
|
/netbsd/sys/arch/arm/iomd/ |
H A D | iomd_clock.c | 87 static u_int iomd_timecounter0_get(struct timecounter *tc); 96 static struct timecounter iomd_timecounter = { 157 timecounter->tc_get_timecount == iomd_timecounter0_get) { in tickle_tc() 307 static u_int iomd_timecounter0_get(struct timecounter *tc) in iomd_timecounter0_get()
|
/netbsd/sys/arch/arm/imx/ |
H A D | imxclock.c | 58 static u_int imx_epit_get_timecount(struct timecounter *); 61 static struct timecounter imx_epit_timecounter = { 133 imx_epit_get_timecount(struct timecounter *tc) in imx_epit_get_timecount()
|
H A D | imx23_digctl.c | 58 static u_int digctl_tc_get_timecount(struct timecounter *); 73 static struct timecounter tc_useconds; 189 digctl_tc_get_timecount(struct timecounter *tc) in digctl_tc_get_timecount()
|
/netbsd/sys/arch/alpha/alpha/ |
H A D | qemu.c | 56 struct timecounter sc_tc; 104 qemu_get_timecount(struct timecounter * const tc __unused) in qemu_get_timecount() 182 struct timecounter * const tc = &sc->sc_tc; in qemu_attach()
|
/netbsd/sys/dev/acpi/ |
H A D | acpi_timer.c | 45 static struct timecounter acpi_timecounter = { 127 acpitimer_read_fast(struct timecounter *tc) in acpitimer_read_fast() 141 acpitimer_read_safe(struct timecounter *tc) in acpitimer_read_safe()
|
H A D | acpi_timer.h | 34 u_int acpitimer_read_safe(struct timecounter *); 35 u_int acpitimer_read_fast(struct timecounter *);
|
/netbsd/sys/arch/arm/xscale/ |
H A D | becc_timer.c | 70 static u_int becc_get_timecount(struct timecounter *); 72 static struct timecounter becc_timecounter = { 199 becc_get_timecount(struct timecounter *tc) in becc_get_timecount()
|
/netbsd/sys/arch/vax/vax/ |
H A D | clock.c | 62 vax_diag_get_counter(struct timecounter *tc) in vax_diag_get_counter() 80 vax_mfpr_get_counter(struct timecounter *tc) in vax_mfpr_get_counter() 112 static struct timecounter vax_diag_tc = { 121 static struct timecounter vax_mfpr_tc = {
|
/netbsd/sys/arch/mipsco/obio/ |
H A D | rambo.c | 55 static unsigned rambo_get_timecount(struct timecounter *); 152 rambo_get_timecount(struct timecounter *tc) in rambo_get_timecount() 161 static struct timecounter tc = { in rambo_tc_init()
|
/netbsd/sys/arch/arm/amlogic/ |
H A D | meson6_timer.c | 51 struct timecounter sc_tc; 93 meson6_timer_get_timecount(struct timecounter *tc) in meson6_timer_get_timecount() 153 struct timecounter *tc = &sc->sc_tc; in meson6_timer_attach()
|
/netbsd/sys/arch/evbarm/iq80310/ |
H A D | iq80310_timer.c | 85 static u_int iq80310_get_timecount(struct timecounter *); 87 static struct timecounter iq80310_timecounter = { 253 iq80310_get_timecount(struct timecounter *tc) in iq80310_get_timecount()
|
/netbsd/sys/arch/powerpc/booke/ |
H A D | e500_timer.c | 60 static u_int get_ppcbooke_timecount(struct timecounter *); 62 static struct timecounter ppcbooke_timecounter = { 178 get_ppcbooke_timecount(struct timecounter *tc) in get_ppcbooke_timecount()
|