Searched refs:timecounter (Results 1 - 27 of 27) sorted by relevance

/linux-4.4.14/kernel/time/
H A Dtimecounter.c2 * linux/kernel/time/timecounter.c
19 #include <linux/timecounter.h>
21 void timecounter_init(struct timecounter *tc, timecounter_init()
44 static u64 timecounter_read_delta(struct timecounter *tc) timecounter_read_delta()
65 u64 timecounter_read(struct timecounter *tc) timecounter_read()
92 u64 timecounter_cyc2time(struct timecounter *tc, timecounter_cyc2time()
/linux-4.4.14/include/clocksource/
H A Darm_arch_timer.h19 #include <linux/timecounter.h>
50 extern struct timecounter *arch_timer_get_timecounter(void);
64 static inline struct timecounter *arch_timer_get_timecounter(void) arch_timer_get_timecounter()
/linux-4.4.14/include/linux/
H A Dtimecounter.h2 * linux/include/linux/timecounter.h
47 * struct timecounter - layer above a %struct cyclecounter which counts nanoseconds
64 struct timecounter { struct
93 static inline void timecounter_adjtime(struct timecounter *tc, s64 delta) timecounter_adjtime()
108 extern void timecounter_init(struct timecounter *tc,
120 extern u64 timecounter_read(struct timecounter *tc);
136 extern u64 timecounter_cyc2time(struct timecounter *tc,
/linux-4.4.14/virt/kvm/arm/
H A Darch_timer.c33 static struct timecounter *timecounter; variable in typeref:struct:timecounter
39 return timecounter->cc->read(timecounter->cc); kvm_phys_timer_read()
108 ns = cyclecounter_cyc2ns(timecounter->cc, kvm_timer_compute_delta()
110 timecounter->mask, kvm_timer_compute_delta()
111 &timecounter->frac); kvm_timer_compute_delta()
422 timecounter = arch_timer_get_timecounter(); kvm_timer_hyp_init()
423 if (!timecounter) kvm_timer_hyp_init()
494 if (timecounter && wqueue) kvm_timer_enable()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dptp.c86 * Adjust the timer by resetting the timecounter structure.
106 * Read the timecounter and return the correct value in ns after converting
130 * Reset the timecounter to use a new base value instead of the kernel
143 /* reset the timecounter */ e1000e_phc_settime()
H A De1000.h37 #include <linux/timecounter.h>
346 struct timecounter tc;
H A Dnetdev.c532 * If the time stamp is valid, convert it into the timecounter ns value
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c144 * Adjust the timer by resetting the timecounter structure.
164 * Read the timecounter and return the correct value in ns after converting
189 * Reset the timecounter to use a new base value instead of the kernel
200 /* reset the timecounter */ mlx4_en_phc_settime()
H A Dmlx4_en.h410 struct timecounter clock;
/linux-4.4.14/drivers/net/ethernet/ti/
H A Dcpts.h30 #include <linux/timecounter.h>
120 struct timecounter tc;
/linux-4.4.14/arch/microblaze/kernel/
H A Dtimer.c20 #include <linux/timecounter.h>
197 static struct timecounter xilinx_tc = {
241 /* register timecounter - for ftrace support */ xilinx_clocksource_init()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c42 * nanoseconds the cyclecounter and timecounter structures are
257 * adjust the timer by resetting the timecounter structure.
279 * read the timecounter and return the correct value on ns,
303 * reset the timecounter to use a new base value instead of the kernel
316 /* reset the timecounter */ ixgbe_ptp_settime()
399 * this watchdog task periodically reads the timecounter
456 * if the timestamp is valid, we convert it into the timecounter ns
521 * if the timestamp is valid, we convert it into the timecounter ns
721 * is. It does not directly modify SYSTIME registers or the timecounter
H A Dixgbe.h41 #include <linux/timecounter.h>
759 struct timecounter tc;
/linux-4.4.14/drivers/clocksource/
H A Darm_arch_timer.c450 static struct timecounter timecounter; variable in typeref:struct:timecounter
452 struct timecounter *arch_timer_get_timecounter(void) arch_timer_get_timecounter()
454 return &timecounter; arch_timer_get_timecounter()
482 timecounter_init(&timecounter, &cyclecounter, start_count); arch_counter_register()
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dfec_ptp.c255 * this function initializes the timecounter and cyclecounter
369 * adjust the timer by resetting the timecounter structure.
389 * read the timecounter and return the correct value on ns,
413 * reset the timecounter to use a new base value instead of the kernel
H A Dfec.h19 #include <linux/timecounter.h>
533 struct timecounter tc;
/linux-4.4.14/sound/hda/
H A Dhdac_stream.c478 struct timecounter *tc = &azx_dev->tc; azx_timecounter_init()
489 * last after reading the timecounter value. azx_timecounter_init()
502 * force timecounter to use predefined value, azx_timecounter_init()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A Digb.h32 #include <linux/timecounter.h>
441 struct timecounter tc;
/linux-4.4.14/sound/pci/hda/
H A Dhda_controller.h18 #include <linux/timecounter.h>
/linux-4.4.14/include/sound/
H A Dhdaudio.h10 #include <linux/timecounter.h>
424 struct timecounter tc;
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ptp.c260 /* Setup the timecounter */ xgbe_ptp_register()
H A Dxgbe.h127 #include <linux/timecounter.h>
872 struct timecounter tstamp_tc;
H A Dxgbe-dev.c1284 /* Initialize the timecounter */ xgbe_config_tstamp()
/linux-4.4.14/arch/alpha/kernel/
H A Dtime.c257 * a half-hearted attempt in init_rtc_rpcc_info to sync the timecounter
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x.h27 #include <linux/timecounter.h>
1936 struct timecounter timecounter; member in struct:bnx2x
H A Dbnx2x_main.c13710 timecounter_adjtime(&bp->timecounter, delta); bnx2x_ptp_adjtime()
13720 ns = timecounter_read(&bp->timecounter); bnx2x_ptp_gettime()
13739 /* Re-init the timecounter */ bnx2x_ptp_settime()
13740 timecounter_init(&bp->timecounter, &bp->cyclecounter, ns); bnx2x_ptp_settime()
15086 ns = timecounter_cyc2time(&bp->timecounter, timestamp); bnx2x_ptp_task()
15118 ns = timecounter_cyc2time(&bp->timecounter, timestamp); bnx2x_set_rx_ts()
15380 /* Init cyclecounter and timecounter. This is done only in the first bnx2x_init_ptp()
15386 timecounter_init(&bp->timecounter, &bp->cyclecounter, bnx2x_init_ptp()
/linux-4.4.14/include/linux/mlx4/
H A Ddevice.h45 #include <linux/timecounter.h>

Completed in 1453 milliseconds