/openbmc/qemu/hw/nvram/ |
H A D | eeprom93xx.c | 77 uint8_t tick; member 135 VMSTATE_UINT8(tick, eeprom_t), 157 uint8_t tick = eeprom->tick; in eeprom93xx_write() local 163 eecs, eesk, eedi, eedo, tick); in eeprom93xx_write() 168 tick = 0; in eeprom93xx_write() 183 } else if (tick >= 2 + 2 + eeprom->addrbits + 16) { in eeprom93xx_write() 199 if (tick == 0) { in eeprom93xx_write() 203 tick++; in eeprom93xx_write() 206 tick = 2; in eeprom93xx_write() 209 } else if (tick == 1) { in eeprom93xx_write() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | cmsdk-apb-watchdog-test.c | 42 int64_t tick; member 60 .tick = 80, 65 .tick = 40, 85 int64_t tick = args->tick; in test_watchdog() local 95 clock_step(500 * tick + 1); in test_watchdog() 100 clock_step(500 * tick); in test_watchdog() 105 clock_step(tick); in test_watchdog() 109 clock_step(500 * tick); in test_watchdog() 177 int64_t tick = args->tick; in test_watchdog_reset() local 191 clock_step(15 * tick + 1); in test_watchdog_reset() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | mvtwsi.c | 94 uint tick; member 266 uint tick) in twsi_wait() argument 282 ndelay(tick); /* One clock cycle */ in twsi_wait() 303 uint tick) in twsi_start() argument 309 return twsi_wait(twsi, expected_status, tick); in twsi_start() 326 int expected_status, uint tick) in twsi_send() argument 334 return twsi_wait(twsi, expected_status, tick); in twsi_send() 351 uint tick) in twsi_recv() argument 363 status = twsi_wait(twsi, expected_status, tick); in twsi_recv() 381 static int twsi_stop(struct mvtwsi_registers *twsi, uint tick) in twsi_stop() argument [all …]
|
/openbmc/linux/sound/core/seq/ |
H A D | seq_timer.h | 28 struct snd_seq_timer_tick tick; /* current tick */ member 53 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument 56 if (tick->resolution > 0) { in snd_seq_timer_update_tick() 57 tick->fraction += resolution; in snd_seq_timer_update_tick() 58 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick() 59 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
|
H A D | seq_prioq.c | 91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp() 108 if (a->time.tick > b->time.tick) in compare_timestamp_rel() 110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel() 206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready() 262 if (cell->event.time.tick) in prioq_match() 347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match() 355 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
|
H A D | seq_timer.c | 24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution() 31 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 33 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 34 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 35 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution() 105 tmr->tick.cur_tick = 0; in seq_timer_reset() 106 tmr->tick.fraction = 0; in seq_timer_reset() 150 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt() 216 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick() [all …]
|
/openbmc/u-boot/lib/ |
H A D | time.c | 117 static uint64_t notrace tick_to_time(uint64_t tick) in tick_to_time() argument 121 tick *= CONFIG_SYS_HZ; in tick_to_time() 122 do_div(tick, div); in tick_to_time() 123 return tick; in tick_to_time() 144 uint64_t tick = usec; in usec_to_tick() local 145 tick *= get_tbclk(); in usec_to_tick() 146 do_div(tick, 1000000); in usec_to_tick() 147 return tick; in usec_to_tick()
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
H A D | timer.c | 40 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument 42 tick *= CONFIG_SYS_HZ; in tick_to_time() 43 do_div(tick, CONFIG_MX27_CLK32); in tick_to_time() 44 return tick; in tick_to_time() 66 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument 68 do_div(tick, TICK_PER_TIME); in tick_to_time() 69 return tick; in tick_to_time()
|
/openbmc/linux/kernel/time/ |
H A D | Makefile | 12 obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o tick-common.o 14 obj-y += tick-broadcast.o 15 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o 18 obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o tick-sched.o 19 obj-$(CONFIG_LEGACY_TIMER_TICK) += tick-legacy.o
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A D | adjtick.c | 128 tx1.tick = tickval; in check_tick_adj() 144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj() 171 long tick, max, interval, err; in main() local 189 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main() 190 if (check_tick_adj(tick)) { in main() 203 tx1.tick = systick; in main()
|
/openbmc/qemu/hw/timer/ |
H A D | stellaris-gptm.c | 32 int64_t tick; in gptm_reload() local 34 tick = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in gptm_reload() 36 tick = s->tick[n]; in gptm_reload() 43 tick += clock_ticks_to_ns(s->clk, count); in gptm_reload() 46 tick += NANOSECONDS_PER_SECOND; in gptm_reload() 55 s->tick[n] = tick; in gptm_reload() 56 timer_mod(s->timer[n], tick); in gptm_reload() 265 VMSTATE_INT64_ARRAY(tick, gptm_state, 2),
|
H A D | sse-counter.c | 114 uint64_t sse_counter_tick_to_time(SSECounter *s, uint64_t tick) in sse_counter_tick_to_time() argument 120 tick -= s->ticks_then; in sse_counter_tick_to_time() 124 tick = muldiv64(tick, 0x01000000, s->cntscr0); in sse_counter_tick_to_time() 127 return s->ns_then + clock_ticks_to_ns(s->clk, tick); in sse_counter_tick_to_time()
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | timer_64.h | 47 unsigned int tick[GET_TICK_NINSTR]; member 56 unsigned long tick, tmp1, tmp2; in get_tick() local 92 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick() 95 return tick; in get_tick()
|
/openbmc/linux/drivers/net/wireless/ath/carl9170/ |
H A D | cmd.c | 173 unsigned int tick; in carl9170_collect_tally() local 181 tick = le32_to_cpu(tally.tick); in carl9170_collect_tally() 182 if (tick) { in carl9170_collect_tally() 183 ar->tally.active += le32_to_cpu(tally.active) / tick; in carl9170_collect_tally() 184 ar->tally.cca += le32_to_cpu(tally.cca) / tick; in carl9170_collect_tally() 185 ar->tally.tx_time += le32_to_cpu(tally.tx_time) / tick; in carl9170_collect_tally()
|
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/ |
H A D | timer.c | 18 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument 20 tick *= CONFIG_SYS_HZ; in tick_to_time() 21 do_div(tick, mxc_get_clock(MXC_IPG_CLK)); in tick_to_time() 23 return tick; in tick_to_time()
|
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | timer.c | 31 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument 37 tick *= CONFIG_SYS_HZ; in tick_to_time() 38 do_div(tick, freq); in tick_to_time() 40 return tick; in tick_to_time()
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | syscounter.c | 34 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument 40 tick *= CONFIG_SYS_HZ; in tick_to_time() 41 do_div(tick, freq); in tick_to_time() 43 return tick; in tick_to_time()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/open-vm-tools/open-vm-tools/ |
H A D | 0014-timeSync-Portable-way-to-print-64bit-time_t.patch | 31 - "const %ld precision %ld tolerance %ld tick %ld\n", 33 - tx->status, tx->constant, tx->precision, tx->tolerance, tx->tick); 35 + "const %jd precision %jd tolerance %jd tick %jd\n", 37 …tus, (intmax_t)tx->constant, (intmax_t)tx->precision, (intmax_t)tx->tolerance, (intmax_t)tx->tick); 49 - g_debug("time slew start: %ld\n", tx.tick); 50 + g_debug("time slew start: %jd\n", (intmax_t)tx.tick);
|
/openbmc/u-boot/arch/arm/mach-rockchip/ |
H A D | rk_timer.c | 25 uint64_t tick = usec; in usec_to_tick() local 26 tick *= CONFIG_SYS_TIMER_RATE / (1000 * 1000); in usec_to_tick() 27 return tick; in usec_to_tick()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | util.c | 28 int timeout, int tick) in ____mt76_poll_msec() argument 32 timeout /= tick; in ____mt76_poll_msec() 38 usleep_range(1000 * tick, 2000 * tick); in ____mt76_poll_msec()
|
/openbmc/u-boot/drivers/spi/ |
H A D | ath79_spi.c | 66 u64 tick; in ath79_spi_xfer() local 99 tick = get_ticks() + priv->rrw_delay; in ath79_spi_xfer() 100 while (get_ticks() < tick) in ath79_spi_xfer() 109 tick = get_ticks() + priv->rrw_delay; in ath79_spi_xfer() 110 while (get_ticks() < tick) in ath79_spi_xfer()
|
/openbmc/qemu/hw/mips/ |
H A D | malta.c | 164 uint8_t tick; member 301 eeprom->tick, eeprom->scl, eeprom->sda, eeprom->data); in eeprom24c0x_read() 309 eeprom->tick, eeprom->scl, scl, eeprom->sda, sda, in eeprom24c0x_write() 312 eeprom->tick = 1; in eeprom24c0x_write() 315 } else if (eeprom->tick == 0 && !eeprom->ack) { in eeprom24c0x_write() 318 eeprom->tick, eeprom->scl, scl, eeprom->sda, sda); in eeprom24c0x_write() 321 eeprom->tick, eeprom->scl, scl, eeprom->sda, sda); in eeprom24c0x_write() 329 if (eeprom->tick < 9) { in eeprom24c0x_write() 332 eeprom->tick++; in eeprom24c0x_write() 333 if (eeprom->tick == 9) { in eeprom24c0x_write() [all …]
|
/openbmc/linux/sound/firewire/motu/ |
H A D | amdtp-motu.c | 314 unsigned int tick; in cache_event_offsets() local 316 tick = ((sph & CIP_SPH_CYCLE_MASK) >> CIP_SPH_CYCLE_SHIFT) * TICKS_PER_CYCLE + in cache_event_offsets() 319 if (tick < base_tick) in cache_event_offsets() 320 tick += TICKS_PER_SECOND; in cache_event_offsets() 321 event_offsets[cache_tail] = tick - base_tick; in cache_event_offsets() 383 unsigned int tick = (base_tick + event_offsets[cache_head]) % TICKS_PER_SECOND; in write_sph() local 384 u32 sph = ((tick / TICKS_PER_CYCLE) << CIP_SPH_CYCLE_SHIFT) | (tick % TICKS_PER_CYCLE); in write_sph()
|
/openbmc/linux/Documentation/timers/ |
H A D | highres.rst | 100 System-level global event devices are used for the Linux periodic tick. Per-CPU 107 - system global periodic tick (jiffies update) 132 utilize the high resolution and dynamic tick functionalities without any change 136 adding the dynamic tick specific calls to the idle routine (a total of 3 lines 186 Once a system has switched to high resolution mode, the periodic tick is 190 The periodic tick functionality is provided by an per-cpu hrtimer. The callback 193 based periodic tick is designed to be extended with dynamic tick functionality. 195 timer and periodic events (jiffies tick, profiling, process accounting) on UP 200 separated from the tick bound timer softirq to allow accurate delivery of high 211 Dynamic ticks are the logical consequence of the hrtimer based periodic tick [all …]
|
/openbmc/linux/arch/mips/generic/ |
H A D | board-sead3.c | 184 unsigned int freq, orig, tick = 0; in sead3_measure_hpt_freq() local 198 while (tick < 100) { in sead3_measure_hpt_freq() 203 tick++; in sead3_measure_hpt_freq()
|