| /linux/drivers/rtc/ |
| H A D | rtc-88pm80x.c | 103 unsigned long ticks, base, data; in pm80x_rtc_read_time() local 113 ticks = base + data; in pm80x_rtc_read_time() 114 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_read_time() 115 base, data, ticks); in pm80x_rtc_read_time() 116 rtc_time64_to_tm(ticks, tm); in pm80x_rtc_read_time() 124 unsigned long ticks, base, data; in pm80x_rtc_set_time() local 126 ticks = rtc_tm_to_time64(tm); in pm80x_rtc_set_time() 132 base = ticks - data; in pm80x_rtc_set_time() 133 dev_dbg(info->dev, "set base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_set_time() 134 base, data, ticks); in pm80x_rtc_set_time() [all …]
|
| H A D | rtc-tps6586x.c | 59 unsigned long long ticks = 0; in tps6586x_rtc_read_time() local 72 ticks <<= 8; in tps6586x_rtc_read_time() 73 ticks |= buff[i]; in tps6586x_rtc_read_time() 76 seconds = ticks >> 10; in tps6586x_rtc_read_time() 85 unsigned long long ticks; in tps6586x_rtc_set_time() local 92 ticks = (unsigned long long)seconds << 10; in tps6586x_rtc_set_time() 93 buff[0] = (ticks >> 32) & 0xff; in tps6586x_rtc_set_time() 94 buff[1] = (ticks >> 24) & 0xff; in tps6586x_rtc_set_time() 95 buff[2] = (ticks >> 16) & 0xff; in tps6586x_rtc_set_time() 96 buff[3] = (ticks >> 8) & 0xff; in tps6586x_rtc_set_time() [all …]
|
| H A D | rtc-88pm860x.c | 82 unsigned long ticks, base, data; in pm860x_rtc_read_time() local 94 ticks = base + data; in pm860x_rtc_read_time() 95 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm860x_rtc_read_time() 96 base, data, ticks); in pm860x_rtc_read_time() 98 rtc_time64_to_tm(ticks, tm); in pm860x_rtc_read_time() 107 unsigned long ticks, base, data; in pm860x_rtc_set_time() local 109 ticks = rtc_tm_to_time64(tm); in pm860x_rtc_set_time() 115 base = ticks - data; in pm860x_rtc_set_time() 116 dev_dbg(info->dev, "set base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm860x_rtc_set_time() 117 base, data, ticks); in pm860x_rtc_set_time() [all …]
|
| /linux/Documentation/timers/ |
| H A D | no_hz.rst | 2 NO_HZ: Reducing Scheduling-Clock Ticks 13 (also known as "scheduling-clock ticks" or simply "ticks"): 15 1. Never omit scheduling-clock ticks (CONFIG_HZ_PERIODIC=y or 19 2. Omit scheduling-clock ticks on idle CPUs (CONFIG_NO_HZ_IDLE=y or 23 3. Omit scheduling-clock ticks on CPUs that are either idle or that 33 Never Omit Scheduling-Clock Ticks 37 are incapable of omitting scheduling-clock ticks. It turns out that 65 Omit Scheduling-Clock Ticks For Idle CPUs 104 Omit Scheduling-Clock Ticks For CPUs With Only One Runnable Task 109 Note that omitting scheduling-clock ticks for CPUs with only one runnable [all …]
|
| H A D | highres.rst | 2 High resolution timers and dynamic ticks design notes 27 - dynamic ticks 41 - independent of ticks (the processing is based on nanoseconds) 54 convert the clock ticks to nanosecond based time values. All other time keeping 82 functionality like high resolution timers or dynamic ticks. 134 enabling of high resolution timers and dynamic ticks is simply provided by 163 dynamic ticks on i386 SMP systems which stop the local APIC in C3 power 208 dynamic ticks 211 Dynamic ticks are the logical consequence of the hrtimer based periodic tick
|
| /linux/arch/powerpc/sysdev/ |
| H A D | mpic_timer.c | 85 const u64 ticks, time64_t *time) in convert_ticks_to_time() argument 87 *time = (u64)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time() 90 /* the time set by the user is converted to "ticks" */ 92 time64_t time, u64 *ticks) in convert_time_to_ticks() argument 101 *ticks = (u64)time * (u64)priv->timerfreq; in convert_time_to_ticks() 137 static int set_cascade_timer(struct timer_group_priv *priv, u64 ticks, in set_cascade_timer() argument 154 tmp_ticks = div_u64_rem(ticks, MAX_TICKS_CASCADE, &rem_ticks); in set_cascade_timer() 166 u64 ticks) in get_cascade_timer() argument 174 if (ticks > max_ticks) in get_cascade_timer() 182 /* set ticks to timer */ in get_cascade_timer() [all …]
|
| /linux/drivers/ssb/ |
| H A D | driver_extif.c | 115 u32 ssb_extif_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks) in ssb_extif_watchdog_timer_set_wdt() argument 119 return ssb_extif_watchdog_timer_set(extif, ticks); in ssb_extif_watchdog_timer_set_wdt() 125 u32 ticks = (SSB_EXTIF_WATCHDOG_CLK / 1000) * ms; in ssb_extif_watchdog_timer_set_ms() local 127 ticks = ssb_extif_watchdog_timer_set(extif, ticks); in ssb_extif_watchdog_timer_set_ms() 129 return (ticks * 1000) / SSB_EXTIF_WATCHDOG_CLK; in ssb_extif_watchdog_timer_set_ms() 132 u32 ssb_extif_watchdog_timer_set(struct ssb_extif *extif, u32 ticks) in ssb_extif_watchdog_timer_set() argument 134 if (ticks > SSB_EXTIF_WATCHDOG_MAX_TIMER) in ssb_extif_watchdog_timer_set() 135 ticks = SSB_EXTIF_WATCHDOG_MAX_TIMER; in ssb_extif_watchdog_timer_set() 136 extif_write32(extif, SSB_EXTIF_WATCHDOG, ticks); in ssb_extif_watchdog_timer_set() 138 return ticks; in ssb_extif_watchdog_timer_set()
|
| H A D | driver_chipcommon.c | 311 u32 ssb_chipco_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks) in ssb_chipco_watchdog_timer_set_wdt() argument 318 return ssb_chipco_watchdog_timer_set(cc, ticks); in ssb_chipco_watchdog_timer_set_wdt() 324 u32 ticks; in ssb_chipco_watchdog_timer_set_ms() local 329 ticks = ssb_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in ssb_chipco_watchdog_timer_set_ms() 330 return ticks / cc->ticks_per_ms; in ssb_chipco_watchdog_timer_set_ms() 470 /* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */ 471 u32 ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, u32 ticks) in ssb_chipco_watchdog_timer_set() argument 478 if (ticks == 1) in ssb_chipco_watchdog_timer_set() 479 ticks = 2; in ssb_chipco_watchdog_timer_set() 480 else if (ticks > maxt) in ssb_chipco_watchdog_timer_set() [all …]
|
| /linux/drivers/bcma/ |
| H A D | driver_chipcommon.c | 78 u32 ticks) in bcma_chipco_watchdog_timer_set_wdt() argument 82 return bcma_chipco_watchdog_timer_set(cc, ticks); in bcma_chipco_watchdog_timer_set_wdt() 89 u32 ticks; in bcma_chipco_watchdog_timer_set_ms_wdt() local 91 ticks = bcma_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in bcma_chipco_watchdog_timer_set_ms_wdt() 92 return ticks / cc->ticks_per_ms; in bcma_chipco_watchdog_timer_set_ms_wdt() 235 /* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */ 236 u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks) in bcma_chipco_watchdog_timer_set() argument 242 if (ticks == 1) in bcma_chipco_watchdog_timer_set() 243 ticks = 2; in bcma_chipco_watchdog_timer_set() 244 else if (ticks > maxt) in bcma_chipco_watchdog_timer_set() [all …]
|
| /linux/kernel/time/ |
| H A D | tick-legacy.c | 15 * @ticks: number of ticks, that have elapsed since the last call. 20 * If 'ticks' is zero, the CPU is not handling timekeeping, so 25 void legacy_timer_tick(unsigned long ticks) in legacy_timer_tick() argument 27 if (ticks) { in legacy_timer_tick() 30 do_timer(ticks); in legacy_timer_tick()
|
| /linux/Documentation/block/ |
| H A D | stat.rst | 32 read ticks milliseconds total wait time for read requests 36 write ticks milliseconds total wait time for write requests 43 discard ticks milliseconds total wait time for discard requests 45 flush ticks milliseconds total wait time for flush requests 75 read ticks, write ticks, discard ticks, flush ticks 103 number of requests waiting (see "read ticks" above for an example).
|
| /linux/arch/arm/mach-rpc/ |
| H A D | time.c | 33 u32 ticks; in ioc_timer_read() local 45 ticks = ioc_time + RPC_LATCH - count2; in ioc_timer_read() 54 ticks += RPC_LATCH; in ioc_timer_read() 59 * been processed, so add the missed ticks. in ioc_timer_read() 61 ticks += RPC_LATCH; in ioc_timer_read() 64 return ticks; in ioc_timer_read()
|
| /linux/include/net/tc_act/ |
| H A D | tc_police.h | 70 * 1 second 2^6 ticks in tcf_police_burst() 75 * 2^6 ticks in tcf_police_burst() 77 * "rate" bytes "burst" nanoseconds 2^6 ticks in tcf_police_burst() 79 * 1 second 2^6 ticks NSEC_PER_SEC nanoseconds in tcf_police_burst() 118 * 1 second 2^6 ticks in tcf_police_burst_pkt() 123 * 2^6 ticks in tcf_police_burst_pkt() 125 * "rate" pkts "burst" nanoseconds 2^6 ticks in tcf_police_burst_pkt() 127 * 1 second 2^6 ticks NSEC_PER_SEC nanoseconds in tcf_police_burst_pkt()
|
| /linux/tools/testing/selftests/tc-testing/plugin-lib/ |
| H A D | nsPlugin.py | 41 ticks = 20 43 if ticks == 0: 53 ticks -= 1 134 ticks = 20 136 if ticks == 0: 148 ticks -= 1 153 ticks = 20 155 if ticks == 0: 163 ticks -= 1
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_local_storage_rcu_tasks_trace.c | 29 "Pid of rcu_tasks_trace kthread for ticks tracking"}, 191 long ticks; in measure() local 195 ticks = kthread_pid_ticks(); in measure() 196 res->stime = ticks - ctx.prev_kthread_stime; in measure() 197 ctx.prev_kthread_stime = ticks; in measure() 220 printf("Iter %d\t avg ticks per tasks_trace grace period\t%lf\n", in report_progress() 232 printf("SUMMARY ticks per tasks_trace grace period"); in report_final() 252 * using /proc/PID/stat to measure rcu_tasks_trace_kthread kernel ticks
|
| /linux/sound/core/ |
| H A D | hrtimer.c | 36 unsigned long ticks; in snd_hrtimer_callback() local 43 ticks = t->sticks; in snd_hrtimer_callback() 49 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback() 51 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback() 145 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
|
| H A D | timer.c | 74 unsigned long ticks; member 607 bool start, unsigned long ticks) in snd_timer_start1() argument 629 if ((u64)snd_timer_hw_resolution(timer) * ticks < 100000) in snd_timer_start1() 634 timeri->ticks = timeri->cticks = ticks; in snd_timer_start1() 648 timer->sticks = ticks; in snd_timer_start1() 696 timeri->cticks = timeri->ticks; in snd_timer_stop1() 742 int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks) in snd_timer_start() argument 744 if (timeri == NULL || ticks < 1) in snd_timer_start() 750 return snd_timer_start1(timeri, true, ticks); in snd_timer_start() 787 * pause.. remember the ticks left [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | utimer-test.c | 29 #define RESULT_PREFIX_LEN strlen("Total ticks count: ") 92 if (strstr(s, "Total ticks count")) in parse_timer_result() 111 * This test triggers the timer and counts ticks at the same time. The amount in TEST_F() 112 * of the timer trigger calls should be equal to the amount of ticks received. in TEST_F() 123 /* The timeout should be the ticks interval * count of ticks + some delta */ in TEST_F()
|
| /linux/drivers/watchdog/ |
| H A D | rdc321x_wdt.c | 38 static int ticks = 1000; variable 62 ticks--; in rdc321x_wdt_trigger() 74 if (rdc321x_wdt_device.queue && ticks) in rdc321x_wdt_trigger() 78 /* ticks doesn't matter anyway */ in rdc321x_wdt_trigger() 86 ticks = rdc321x_wdt_device.default_ticks; in rdc321x_wdt_reset() 120 ticks = rdc321x_wdt_device.default_ticks; in rdc321x_wdt_stop() 234 rdc321x_wdt_device.default_ticks = ticks; in rdc321x_wdt_probe()
|
| H A D | mtx-1_wdt.c | 46 static int ticks = 100 * HZ; variable 64 ticks--; in mtx1_wdt_trigger() 70 if (mtx1_wdt_device.queue && ticks) in mtx1_wdt_trigger() 79 ticks = mtx1_wdt_device.default_ticks; in mtx1_wdt_reset() 108 ticks = mtx1_wdt_device.default_ticks; in mtx1_wdt_stop() 211 mtx1_wdt_device.default_ticks = ticks; in mtx1_wdt_probe()
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_pm91.c | 102 int ticks; member 117 int ticks; member 130 int ticks; member 174 wf_smu_cpu_fans->ticks = 1; in wf_smu_create_cpu_fans() 223 if (--st->ticks != 0) { in wf_smu_cpu_fans_tick() 228 st->ticks = WF_SMU_CPU_FANS_INTERVAL; in wf_smu_cpu_fans_tick() 308 wf_smu_drive_fans->ticks = 1; in wf_smu_create_drive_fans() 331 if (--st->ticks != 0) { in wf_smu_drive_fans_tick() 336 st->ticks = st->pid.param.interval; in wf_smu_drive_fans_tick() 388 wf_smu_slots_fans->ticks = 1; in wf_smu_create_slots_fans() [all …]
|
| /linux/include/linux/ |
| H A D | clockchips.h | 93 * @min_delta_ticks: minimum delta value in ticks stored for reconfiguration 94 * @max_delta_ticks: maximum delta value in ticks stored for reconfiguration 168 * nanoseconds based values to clock ticks: 173 * ticks / nanoseconds ratio: 178 div_sc(unsigned long ticks, unsigned long nsec, int shift) in div_sc() argument 180 u64 tmp = ((u64)ticks) << shift; in div_sc()
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_ptp.c | 297 static int sja1105_ptpclkval_read(struct sja1105_private *priv, u64 *ticks, in sja1105_ptpclkval_read() argument 302 return sja1105_xfer_u64(priv, SPI_READ, regs->ptpclkval, ticks, in sja1105_ptpclkval_read() 307 static int sja1105_ptpclkval_write(struct sja1105_private *priv, u64 ticks, in sja1105_ptpclkval_write() argument 312 return sja1105_xfer_u64(priv, SPI_WRITE, regs->ptpclkval, &ticks, in sja1105_ptpclkval_write() 351 u64 ticks, ts; in sja1105_rxtstamp_work() local 354 rc = sja1105_ptpclkval_read(priv, &ticks, NULL); in sja1105_rxtstamp_work() 364 ts = sja1105_tstamp_reconstruct(ds, ticks, ts); in sja1105_rxtstamp_work() 524 u64 ticks; in __sja1105_ptp_gettimex() local 527 rc = sja1105_ptpclkval_read(priv, &ticks, ptp_sts); in __sja1105_ptp_gettimex() 533 *ns = sja1105_ticks_to_ns(ticks); in __sja1105_ptp_gettimex() [all …]
|
| /linux/arch/m68k/atari/ |
| H A D | atasound.c | 54 void atari_mksound (unsigned int hz, unsigned int ticks) in atari_mksound() argument 57 ticks. */ in atari_mksound() 84 if (ticks) { in atari_mksound() 86 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; in atari_mksound()
|
| /linux/samples/hid/ |
| H A D | hid_surface_dial.c | 6 * - a resolution (-r) of 3600 will report 3600 "ticks" in one full rotation 8 * - any other resolution will report N "ticks" in a full rotation with haptic 53 " -r N\t set the given resolution to the device (number of ticks per 360°)\n\n", in usage() 58 "- a resolution (-r) of 3600 will report 3600 'ticks' in one full rotation\n" in usage() 60 "- any other resolution will report N 'ticks' in a full rotation with haptic\n" in usage()
|