/linux/drivers/rtc/ |
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 96 buff[3] = (ticks >> 8) & 0xff; in tps6586x_rtc_set_time() 97 buff[4] = ticks & 0xff; in tps6586x_rtc_set_time() 140 unsigned long ticks; in tps6586x_rtc_set_alarm() local 175 buff[2] = ticks & 0xff; in tps6586x_rtc_set_alarm() 187 unsigned long ticks; in tps6586x_rtc_read_alarm() local [all …]
|
A D | rtc-88pm80x.c | 113 ticks = base + data; 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() 126 ticks = rtc_tm_to_time64(tm); in pm80x_rtc_set_time() 132 base = ticks - data; in pm80x_rtc_set_time() 134 base, data, ticks); in pm80x_rtc_set_time() 159 ticks = base + data; in pm80x_rtc_read_alarm() 161 base, data, ticks); in pm80x_rtc_read_alarm() 189 ticks = base + data; in pm80x_rtc_set_alarm() 191 base, data, ticks); in pm80x_rtc_set_alarm() [all …]
|
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() 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() 117 base, data, ticks); in pm860x_rtc_set_time() 143 ticks = base + data; in pm860x_rtc_read_alarm() 145 base, data, ticks); in pm860x_rtc_read_alarm() [all …]
|
/linux/fs/ |
A D | timerfd.c | 39 u64 ticks; member 69 ctx->ticks++; in timerfd_triggered() 110 ctx->ticks++; in timerfd_clock_was_set() 201 ctx->ticks = 0; in timerfd_setup() 258 if (ctx->ticks) in timerfd_poll() 270 u64 ticks = 0; in timerfd_read() local 292 ticks = ctx->ticks; in timerfd_read() 315 if (ticks) in timerfd_read() 357 u64 ticks; in timerfd_ioctl() local 361 if (!ticks) in timerfd_ioctl() [all …]
|
/linux/arch/powerpc/sysdev/ |
A D | mpic_timer.c | 86 const u64 ticks, time64_t *time) in convert_ticks_to_time() argument 93 time64_t time, u64 *ticks) in convert_time_to_ticks() argument 102 *ticks = (u64)time * (u64)priv->timerfreq; in convert_time_to_ticks() 167 u64 ticks) in get_cascade_timer() argument 175 if (ticks > max_ticks) in get_cascade_timer() 196 u64 ticks; in get_timer() local 207 if (ticks > MAX_TICKS) { in get_timer() 227 ticks | TIMER_STOP); in get_timer() 293 u64 ticks; in mpic_get_remain_time() local 302 ticks += tmp_ticks; in mpic_get_remain_time() [all …]
|
/linux/drivers/watchdog/ |
A D | cpu5wdt.c | 28 static int ticks = 10000; variable 61 pr_debug("trigger at %i ticks\n", ticks); in cpu5wdt_trigger() 64 ticks--; in cpu5wdt_trigger() 71 if (cpu5wdt_device.queue && ticks) in cpu5wdt_trigger() 83 ticks = cpu5wdt_device.default_ticks; in cpu5wdt_reset() 86 pr_debug("reset (%i ticks)\n", (int) ticks); in cpu5wdt_reset() 116 ticks = cpu5wdt_device.default_ticks; in cpu5wdt_stop() 215 cpu5wdt_device.default_ticks = ticks; in cpu5wdt_init() 284 module_param(ticks, int, 0); 285 MODULE_PARM_DESC(ticks, "count down ticks, default is 10000");
|
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() 212 mtx1_wdt_device.default_ticks = ticks; in mtx1_wdt_probe()
|
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() 86 ticks = rdc321x_wdt_device.default_ticks; in rdc321x_wdt_reset() 120 ticks = rdc321x_wdt_device.default_ticks; in rdc321x_wdt_stop() 235 rdc321x_wdt_device.default_ticks = ticks; in rdc321x_wdt_probe()
|
/linux/drivers/ssb/ |
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()
|
A D | driver_chipcommon.c | 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 330 return ticks / cc->ticks_per_ms; in ssb_chipco_watchdog_timer_set_ms() 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() 481 ticks = maxt; in ssb_chipco_watchdog_timer_set() 486 if (ticks > maxt) in ssb_chipco_watchdog_timer_set() 487 ticks = maxt; in ssb_chipco_watchdog_timer_set() 489 chipco_write32(cc, SSB_CHIPCO_WATCHDOG, ticks); in ssb_chipco_watchdog_timer_set() [all …]
|
/linux/drivers/bcma/ |
A D | driver_chipcommon.c | 78 u32 ticks) in bcma_chipco_watchdog_timer_set_wdt() argument 89 u32 ticks; in bcma_chipco_watchdog_timer_set_ms_wdt() local 92 return ticks / cc->ticks_per_ms; in bcma_chipco_watchdog_timer_set_ms_wdt() 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() 245 ticks = maxt; in bcma_chipco_watchdog_timer_set() 256 if (ticks > maxt) in bcma_chipco_watchdog_timer_set() 257 ticks = maxt; in bcma_chipco_watchdog_timer_set() 259 bcma_cc_write32(cc, BCMA_CC_WATCHDOG, ticks); in bcma_chipco_watchdog_timer_set() [all …]
|
/linux/init/ |
A D | calibrate.c | 190 unsigned long lpj, lpj_base, ticks, loopadd, loopadd_base, chop_limit; in calibrate_delay_converge() local 196 ticks = jiffies; in calibrate_delay_converge() 197 while (ticks == jiffies) in calibrate_delay_converge() 200 ticks = jiffies; in calibrate_delay_converge() 208 } while (ticks == jiffies); in calibrate_delay_converge() 228 ticks = jiffies; in calibrate_delay_converge() 229 while (ticks == jiffies) in calibrate_delay_converge() 231 ticks = jiffies; in calibrate_delay_converge() 233 if (jiffies != ticks) /* longer than 1 tick */ in calibrate_delay_converge()
|
/linux/drivers/char/hw_random/ |
A D | n2-drv.c | 117 &ticks, in n2rng_generic_read_control_v2() 132 __delay(ticks); in n2rng_generic_read_control_v2() 158 unsigned long *ticks) in n2rng_write_ctl_one() argument 178 unsigned long ticks, hv_err; in n2rng_generic_read_data() local 189 __delay(ticks); in n2rng_generic_read_data() 213 unit, ticks); in n2rng_read_diag_data_one() 214 if (!*ticks) in n2rng_read_diag_data_one() 225 unsigned long ticks, hv_err; in n2rng_generic_read_diag_data() local 231 &ticks); in n2rng_generic_read_diag_data() 238 __delay(ticks); in n2rng_generic_read_diag_data() [all …]
|
/linux/drivers/hwmon/ |
A D | hih6130.c | 50 static inline int hih6130_temp_ticks_to_millicelsius(int ticks) in hih6130_temp_ticks_to_millicelsius() argument 52 ticks = ticks >> 2; in hih6130_temp_ticks_to_millicelsius() 57 return (DIV_ROUND_CLOSEST(ticks * 1650, 16382) - 400) * 100; in hih6130_temp_ticks_to_millicelsius() 65 static inline int hih6130_rh_ticks_to_per_cent_mille(int ticks) in hih6130_rh_ticks_to_per_cent_mille() argument 67 ticks &= ~0xC000; /* clear status bits */ in hih6130_rh_ticks_to_per_cent_mille() 72 return DIV_ROUND_CLOSEST(ticks * 1000, 16382) * 100; in hih6130_rh_ticks_to_per_cent_mille()
|
A D | sht21.c | 53 static inline int sht21_temp_ticks_to_millicelsius(int ticks) in sht21_temp_ticks_to_millicelsius() argument 55 ticks &= ~0x0003; /* clear status bits */ in sht21_temp_ticks_to_millicelsius() 60 return ((21965 * ticks) >> 13) - 46850; in sht21_temp_ticks_to_millicelsius() 68 static inline int sht21_rh_ticks_to_per_cent_mille(int ticks) in sht21_rh_ticks_to_per_cent_mille() argument 70 ticks &= ~0x0003; /* clear status bits */ in sht21_rh_ticks_to_per_cent_mille() 75 return ((15625 * ticks) >> 13) - 6000; in sht21_rh_ticks_to_per_cent_mille()
|
/linux/sound/isa/gus/ |
A D | gus_timer.c | 21 unsigned int ticks; in snd_gf1_timer1_start() local 26 ticks = timer->sticks; in snd_gf1_timer1_start() 28 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */ in snd_gf1_timer1_start() 57 unsigned int ticks; in snd_gf1_timer2_start() local 62 ticks = timer->sticks; in snd_gf1_timer2_start() 64 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2, 256 - ticks); /* timer 2 count */ in snd_gf1_timer2_start() 115 .ticks = 256, 124 .ticks = 256,
|
/linux/arch/arm/mach-rpc/ |
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() 61 ticks += RPC_LATCH; in ioc_timer_read() 64 return ticks; in ioc_timer_read()
|
/linux/sound/core/ |
A D | hrtimer.c | 35 unsigned long ticks; in snd_hrtimer_callback() local 42 ticks = t->sticks; in snd_hrtimer_callback() 48 ticks += ktime_divns(delta, ticks * resolution); in snd_hrtimer_callback() 50 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback() 147 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
|
A D | timer.c | 72 unsigned long ticks; member 557 timeri->ticks = timeri->cticks = ticks; in snd_timer_start1() 768 if (ticks > timer->hw.ticks) in snd_timer_reschedule() 769 ticks = timer->hw.ticks; in snd_timer_reschedule() 1333 r->ticks += ticks; in snd_timer_user_interrupt() 1343 r->ticks = ticks; in snd_timer_user_interrupt() 1433 if (ticks == 0) in snd_timer_user_tinterrupt() 1449 r1.val = ticks; in snd_timer_user_tinterrupt() 1502 tu->ticks = 1; in snd_timer_user_open() 1912 r->ticks = 0; in snd_timer_user_params() [all …]
|
/linux/drivers/macintosh/ |
A D | windfarm_pm91.c | 101 int ticks; member 116 int ticks; member 129 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() 309 wf_smu_drive_fans->ticks = 1; in wf_smu_create_drive_fans() 332 if (--st->ticks != 0) { in wf_smu_drive_fans_tick() 337 st->ticks = st->pid.param.interval; in wf_smu_drive_fans_tick() 390 wf_smu_slots_fans->ticks = 1; in wf_smu_create_slots_fans() 413 if (--st->ticks != 0) { in wf_smu_slots_fans_tick() [all …]
|
/linux/Documentation/block/ |
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/kernel/time/ |
A D | tick-legacy.c | 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/arch/m68k/hp300/ |
A D | time.c | 79 u32 ticks; in hp300_read_clk() local 94 ticks = INTVAL - ((msb << 8) | lsb); in hp300_read_clk() 95 ticks += clk_offset + clk_total; in hp300_read_clk() 98 return ticks; in hp300_read_clk()
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_gpu_trace.h | 34 TP_PROTO(struct msm_gem_submit *submit, u64 ticks), 35 TP_ARGS(submit, ticks), 41 __field(u64, ticks) 48 __entry->ticks = ticks; 52 __entry->ticks)
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_ptp.c | 390 u64 ticks, ts; in sja1105_rxtstamp_work() local 393 rc = sja1105_ptpclkval_read(priv, &ticks, NULL); in sja1105_rxtstamp_work() 403 ts = sja1105_tstamp_reconstruct(ds, ticks, ts); in sja1105_rxtstamp_work() 531 u64 ticks; in __sja1105_ptp_gettimex() local 540 *ns = sja1105_ticks_to_ns(ticks); in __sja1105_ptp_gettimex() 583 u64 ticks = ns_to_sja1105_ticks(ns); in __sja1105_ptp_settime() local 649 s64 ticks = ns_to_sja1105_ticks(delta); in __sja1105_ptp_adjtime() local 658 rc = sja1105_ptpclkval_write(priv, ticks, NULL); in __sja1105_ptp_adjtime() 960 u64 ticks, ts; in sja1105_ptp_txtstamp_skb() local 974 rc = sja1105_ptpclkval_read(priv, &ticks, NULL); in sja1105_ptp_txtstamp_skb() [all …]
|