Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 164 of 164) sorted by relevance

/linux-4.4.14/drivers/rtc/
Drtc-88pm80x.c117 unsigned long ticks, base, data; in pm80x_rtc_read_time() local
125 ticks = base + data; in pm80x_rtc_read_time()
127 base, data, ticks); in pm80x_rtc_read_time()
128 rtc_time_to_tm(ticks, tm); in pm80x_rtc_read_time()
136 unsigned long ticks, base, data; in pm80x_rtc_set_time() local
143 rtc_tm_to_time(tm, &ticks); in pm80x_rtc_set_time()
148 base = ticks - data; in pm80x_rtc_set_time()
150 base, data, ticks); in pm80x_rtc_set_time()
164 unsigned long ticks, base, data; in pm80x_rtc_read_alarm() local
173 ticks = base + data; in pm80x_rtc_read_alarm()
[all …]
Drtc-tps6586x.c73 unsigned long long ticks = 0; in tps6586x_rtc_read_time() local
86 ticks <<= 8; in tps6586x_rtc_read_time()
87 ticks |= buff[i]; in tps6586x_rtc_read_time()
90 seconds = ticks >> 10; in tps6586x_rtc_read_time()
100 unsigned long long ticks; in tps6586x_rtc_set_time() local
112 ticks = (unsigned long long)seconds << 10; in tps6586x_rtc_set_time()
113 buff[0] = (ticks >> 32) & 0xff; in tps6586x_rtc_set_time()
114 buff[1] = (ticks >> 24) & 0xff; in tps6586x_rtc_set_time()
115 buff[2] = (ticks >> 16) & 0xff; in tps6586x_rtc_set_time()
116 buff[3] = (ticks >> 8) & 0xff; in tps6586x_rtc_set_time()
[all …]
Drtc-88pm860x.c34 int (*sync)(unsigned int ticks);
113 unsigned long ticks, base, data; in pm860x_rtc_read_time() local
123 ticks = base + data; in pm860x_rtc_read_time()
125 base, data, ticks); in pm860x_rtc_read_time()
127 rtc_time_to_tm(ticks, tm); in pm860x_rtc_read_time()
136 unsigned long ticks, base, data; in pm860x_rtc_set_time() local
144 rtc_tm_to_time(tm, &ticks); in pm860x_rtc_set_time()
149 base = ticks - data; in pm860x_rtc_set_time()
151 base, data, ticks); in pm860x_rtc_set_time()
159 info->sync(ticks); in pm860x_rtc_set_time()
[all …]
/linux-4.4.14/fs/
Dtimerfd.c37 u64 ticks; member
66 ctx->ticks++; in timerfd_triggered()
107 ctx->ticks++; in timerfd_clock_was_set()
173 ctx->ticks = 0; in timerfd_setup()
228 if (ctx->ticks) in timerfd_poll()
240 u64 ticks = 0; in timerfd_read() local
242 if (count < sizeof(ticks)) in timerfd_read()
248 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read()
256 ctx->ticks = 0; in timerfd_read()
261 if (ctx->ticks) { in timerfd_read()
[all …]
/linux-4.4.14/drivers/watchdog/
Dcpu5wdt.c42 static int ticks = 10000; variable
75 pr_debug("trigger at %i ticks\n", ticks); in cpu5wdt_trigger()
78 ticks--; in cpu5wdt_trigger()
85 if (cpu5wdt_device.queue && ticks) in cpu5wdt_trigger()
97 ticks = cpu5wdt_device.default_ticks; in cpu5wdt_reset()
100 pr_debug("reset (%i ticks)\n", (int) ticks); in cpu5wdt_reset()
130 ticks = cpu5wdt_device.default_ticks; in cpu5wdt_stop()
228 cpu5wdt_device.default_ticks = ticks; in cpu5wdt_init()
298 module_param(ticks, int, 0);
299 MODULE_PARM_DESC(ticks, "count down ticks, default is 10000");
Dmtx-1_wdt.c57 static int ticks = 100 * HZ; variable
75 ticks--; in mtx1_wdt_trigger()
81 if (mtx1_wdt_device.queue && ticks) in mtx1_wdt_trigger()
90 ticks = mtx1_wdt_device.default_ticks; in mtx1_wdt_reset()
119 ticks = mtx1_wdt_device.default_ticks; in mtx1_wdt_stop()
223 mtx1_wdt_device.default_ticks = ticks; in mtx1_wdt_probe()
Drdc321x_wdt.c52 static int ticks = 1000; variable
76 ticks--; in rdc321x_wdt_trigger()
88 if (rdc321x_wdt_device.queue && ticks) in rdc321x_wdt_trigger()
100 ticks = rdc321x_wdt_device.default_ticks; in rdc321x_wdt_reset()
134 ticks = rdc321x_wdt_device.default_ticks; in rdc321x_wdt_stop()
267 rdc321x_wdt_device.default_ticks = ticks; in rdc321x_wdt_probe()
Dbcm63xx_wdt.c48 atomic_t ticks; member
82 if (!atomic_dec_and_test(&bcm63xx_wdt_device.ticks)) { in bcm63xx_timer_tick()
91 atomic_set(&bcm63xx_wdt_device.ticks, wdt_time); in bcm63xx_wdt_pet()
Ddigicolor_wdt.c39 static void dc_wdt_set(struct dc_wdt *wdt, u32 ticks) in dc_wdt_set() argument
46 writel_relaxed(ticks, wdt->base + TIMER_A_COUNT); in dc_wdt_set()
DiTCO_wdt.c143 static inline unsigned int ticks_to_seconds(int ticks) in ticks_to_seconds() argument
145 return iTCO_wdt_private.iTCO_version == 3 ? ticks : (ticks * 6) / 10; in ticks_to_seconds()
Dhpwdt.c43 #define TICKS_TO_SECS(ticks) ((ticks) * 128 / 1000) argument
/linux-4.4.14/arch/powerpc/sysdev/
Dmpic_timer.c93 const u64 ticks, struct timeval *time) in convert_ticks_to_time() argument
97 time->tv_sec = (__kernel_time_t)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time()
102 if (tmp_sec <= ticks) in convert_ticks_to_time()
104 div_u64((ticks - tmp_sec) * 1000000, priv->timerfreq); in convert_ticks_to_time()
111 const struct timeval *time, u64 *ticks) in convert_time_to_ticks() argument
137 *ticks = tmp; in convert_time_to_ticks()
173 static int set_cascade_timer(struct timer_group_priv *priv, u64 ticks, in set_cascade_timer() argument
190 tmp_ticks = div_u64_rem(ticks, MAX_TICKS_CASCADE, &rem_ticks); in set_cascade_timer()
202 u64 ticks) in get_cascade_timer() argument
210 if (ticks > max_ticks) in get_cascade_timer()
[all …]
/linux-4.4.14/drivers/ssb/
Ddriver_extif.c115 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()
Ddriver_chipcommon.c311 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()
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()
481 ticks = maxt; in ssb_chipco_watchdog_timer_set()
[all …]
Dssb_private.h226 u32 ticks);
249 extern u32 ssb_extif_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks);
253 u32 ticks) in ssb_extif_watchdog_timer_set_wdt() argument
Dembedded.c23 int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) in ssb_watchdog_timer_set() argument
26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); in ssb_watchdog_timer_set()
30 ssb_extif_watchdog_timer_set(&bus->extif, ticks); in ssb_watchdog_timer_set()
/linux-4.4.14/drivers/bcma/
Ddriver_chipcommon.c59 u32 ticks) in bcma_chipco_watchdog_timer_set_wdt() argument
63 return bcma_chipco_watchdog_timer_set(cc, ticks); in bcma_chipco_watchdog_timer_set_wdt()
70 u32 ticks; in bcma_chipco_watchdog_timer_set_ms_wdt() local
72 ticks = bcma_chipco_watchdog_timer_set(cc, cc->ticks_per_ms * ms); in bcma_chipco_watchdog_timer_set_ms_wdt()
73 return ticks / cc->ticks_per_ms; in bcma_chipco_watchdog_timer_set_ms_wdt()
178 u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks) in bcma_chipco_watchdog_timer_set() argument
184 if (ticks == 1) in bcma_chipco_watchdog_timer_set()
185 ticks = 2; in bcma_chipco_watchdog_timer_set()
186 else if (ticks > maxt) in bcma_chipco_watchdog_timer_set()
187 ticks = maxt; in bcma_chipco_watchdog_timer_set()
[all …]
/linux-4.4.14/arch/arm/mach-omap2/
Dsdram-nokia.c159 int ticks, long rate, const char *name) in set_sdrc_timing_regval() argument
162 int ticks) in set_sdrc_timing_regval()
168 if (ticks >= 1 << nr_bits) in set_sdrc_timing_regval()
172 *regval |= ticks << st_bit; in set_sdrc_timing_regval()
174 printk(KERN_INFO "SDRC %s: %i ticks %i ns\n", name, ticks, in set_sdrc_timing_regval()
175 (unsigned int)sdrc_get_fclk_period(rate) * ticks / in set_sdrc_timing_regval()
202 int ticks, ret; in set_sdrc_timing_regval_ps() local
206 ticks = 0; in set_sdrc_timing_regval_ps()
208 ticks = sdrc_ps_to_ticks(time, rate); in set_sdrc_timing_regval_ps()
211 ret = set_sdrc_timing_regval(regval, st_bit, end_bit, ticks, in set_sdrc_timing_regval_ps()
[all …]
/linux-4.4.14/drivers/char/hw_random/
Dn2-drv.c111 unsigned long hv_err, state, ticks, watchdog_delta, watchdog_status; in n2rng_generic_read_control_v2() local
116 &ticks, in n2rng_generic_read_control_v2()
131 __delay(ticks); in n2rng_generic_read_control_v2()
157 unsigned long *ticks) in n2rng_write_ctl_one() argument
163 watchdog_timeout, ticks); in n2rng_write_ctl_one()
169 *ticks = N2RNG_ACCUM_CYCLES_DEFAULT; in n2rng_write_ctl_one()
177 unsigned long ticks, hv_err; in n2rng_generic_read_data() local
181 hv_err = sun4v_rng_data_read(data_ra, &ticks); in n2rng_generic_read_data()
188 __delay(ticks); in n2rng_generic_read_data()
204 unsigned long *ticks) in n2rng_read_diag_data_one() argument
[all …]
/linux-4.4.14/init/
Dcalibrate.c189 unsigned long lpj, lpj_base, ticks, loopadd, loopadd_base, chop_limit; in calibrate_delay_converge() local
195 ticks = jiffies; in calibrate_delay_converge()
196 while (ticks == jiffies) in calibrate_delay_converge()
199 ticks = jiffies; in calibrate_delay_converge()
207 } while (ticks == jiffies); in calibrate_delay_converge()
227 ticks = jiffies; in calibrate_delay_converge()
228 while (ticks == jiffies) in calibrate_delay_converge()
230 ticks = jiffies; in calibrate_delay_converge()
232 if (jiffies != ticks) /* longer than 1 tick */ in calibrate_delay_converge()
/linux-4.4.14/drivers/hwmon/
Dhih6130.c63 static inline int hih6130_temp_ticks_to_millicelsius(int ticks) in hih6130_temp_ticks_to_millicelsius() argument
65 ticks = ticks >> 2; in hih6130_temp_ticks_to_millicelsius()
70 return (DIV_ROUND_CLOSEST(ticks * 1650, 16382) - 400) * 100; in hih6130_temp_ticks_to_millicelsius()
78 static inline int hih6130_rh_ticks_to_per_cent_mille(int ticks) in hih6130_rh_ticks_to_per_cent_mille() argument
80 ticks &= ~0xC000; /* clear status bits */ in hih6130_rh_ticks_to_per_cent_mille()
85 return DIV_ROUND_CLOSEST(ticks * 1000, 16382) * 100; in hih6130_rh_ticks_to_per_cent_mille()
Dhtu21.c42 static inline int htu21_temp_ticks_to_millicelsius(int ticks) in htu21_temp_ticks_to_millicelsius() argument
44 ticks &= ~0x0003; /* clear status bits */ in htu21_temp_ticks_to_millicelsius()
49 return ((21965 * ticks) >> 13) - 46850; in htu21_temp_ticks_to_millicelsius()
52 static inline int htu21_rh_ticks_to_per_cent_mille(int ticks) in htu21_rh_ticks_to_per_cent_mille() argument
54 ticks &= ~0x0003; /* clear status bits */ in htu21_rh_ticks_to_per_cent_mille()
59 return ((15625 * ticks) >> 13) - 6000; in htu21_rh_ticks_to_per_cent_mille()
Dsht21.c61 static inline int sht21_temp_ticks_to_millicelsius(int ticks) in sht21_temp_ticks_to_millicelsius() argument
63 ticks &= ~0x0003; /* clear status bits */ in sht21_temp_ticks_to_millicelsius()
68 return ((21965 * ticks) >> 13) - 46850; in sht21_temp_ticks_to_millicelsius()
76 static inline int sht21_rh_ticks_to_per_cent_mille(int ticks) in sht21_rh_ticks_to_per_cent_mille() argument
78 ticks &= ~0x0003; /* clear status bits */ in sht21_rh_ticks_to_per_cent_mille()
83 return ((15625 * ticks) >> 13) - 6000; in sht21_rh_ticks_to_per_cent_mille()
/linux-4.4.14/sound/isa/gus/
Dgus_timer.c36 unsigned int ticks; in snd_gf1_timer1_start() local
41 ticks = timer->sticks; in snd_gf1_timer1_start()
43 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */ in snd_gf1_timer1_start()
72 unsigned int ticks; in snd_gf1_timer2_start() local
77 ticks = timer->sticks; in snd_gf1_timer2_start()
79 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_2, 256 - ticks); /* timer 2 count */ in snd_gf1_timer2_start()
130 .ticks = 256,
139 .ticks = 256,
/linux-4.4.14/drivers/macintosh/
Dwindfarm_pm91.c101 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()
228 st->ticks = WF_SMU_CPU_FANS_INTERVAL; 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()
[all …]
Dwindfarm_pm81.c180 int ticks; member
249 int ticks; member
293 wf_smu_sys_fans->ticks = 1; in wf_smu_create_sys_fans()
334 if (--st->ticks != 0) { in wf_smu_sys_fans_tick()
339 st->ticks = WF_SMU_SYS_FANS_INTERVAL; in wf_smu_sys_fans_tick()
426 wf_smu_cpu_fans->ticks = 1; in wf_smu_create_cpu_fans()
478 if (--st->ticks != 0) { in wf_smu_cpu_fans_tick()
483 st->ticks = WF_SMU_CPU_FANS_INTERVAL; in wf_smu_cpu_fans_tick()
Dwindfarm_pm121.c441 int ticks; member
458 int ticks; member
549 pm121_sys_state[loop_id]->ticks = 1; in pm121_create_sys_fans()
604 if (--st->ticks != 0) { in pm121_sys_fans_tick()
609 st->ticks = PM121_SYS_INTERVAL; in pm121_sys_fans_tick()
684 pm121_cpu_state->ticks = 1; in pm121_create_cpu_fans()
734 if (--st->ticks != 0) { in pm121_cpu_fans_tick()
739 st->ticks = PM121_CPU_INTERVAL; in pm121_cpu_fans_tick()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-socket.c256 long ticks = timeout * HZ; in lnet_sock_write() local
276 .tv_sec = ticks / HZ, in lnet_sock_write()
277 .tv_usec = ((ticks % HZ) * 1000000) / HZ in lnet_sock_write()
290 ticks -= jiffies - then; in lnet_sock_write()
303 if (ticks <= 0) in lnet_sock_write()
317 long ticks = timeout * HZ; in lnet_sock_read() local
322 LASSERT(ticks > 0); in lnet_sock_read()
335 .tv_sec = ticks / HZ, in lnet_sock_read()
336 .tv_usec = ((ticks % HZ) * 1000000) / HZ in lnet_sock_read()
348 ticks -= jiffies - then; in lnet_sock_read()
[all …]
/linux-4.4.14/sound/core/
Dtimer.c62 unsigned long ticks; member
472 int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks) in snd_timer_start() argument
478 if (timeri == NULL || ticks < 1) in snd_timer_start()
497 timeri->ticks = timeri->cticks = ticks; in snd_timer_start()
499 result = snd_timer_start1(timer, timeri, ticks); in snd_timer_start()
584 timeri->cticks = timeri->ticks; in snd_timer_stop()
640 unsigned long ticks = ~0UL; in snd_timer_reschedule() local
649 if (ticks > ti->cticks) in snd_timer_reschedule()
650 ticks = ti->cticks; in snd_timer_reschedule()
653 if (ticks == ~0UL) { in snd_timer_reschedule()
[all …]
Drtctimer.c53 .ticks = 100000000L, /* FIXME: XXX */
Dhrtimer.c139 timer->hw.ticks = NANO_SEC / resolution; in snd_hrtimer_init()
Dpcm_timer.c95 .ticks = 1,
/linux-4.4.14/arch/m68k/mac/
Dvia.c331 unsigned long ticks, offset = 0; in mac_gettimeoffset() local
334 ticks = via1[vT1CL] | (via1[vT1CH] << 8); in mac_gettimeoffset()
336 if (ticks > MAC_CLOCK_TICK - MAC_CLOCK_TICK / 50) in mac_gettimeoffset()
340 ticks = MAC_CLOCK_TICK - ticks; in mac_gettimeoffset()
341 ticks = ticks * 10000L / MAC_CLOCK_TICK; in mac_gettimeoffset()
343 return (ticks + offset) * 1000; in mac_gettimeoffset()
/linux-4.4.14/arch/m68k/atari/
Dtime.c46 u32 ticks, offset = 0; in atari_gettimeoffset() local
49 ticks = st_mfp.tim_dt_c; in atari_gettimeoffset()
51 if (ticks > INT_TICKS - INT_TICKS / 50) in atari_gettimeoffset()
56 ticks = INT_TICKS - ticks; in atari_gettimeoffset()
57 ticks = ticks * 10000L / INT_TICKS; in atari_gettimeoffset()
59 return (ticks + offset) * 1000; in atari_gettimeoffset()
Datasound.c54 void atari_mksound (unsigned int hz, unsigned int ticks) in atari_mksound() argument
84 if (ticks) { in atari_mksound()
86 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; in atari_mksound()
Dconfig.c74 extern void atari_mksound(unsigned int count, unsigned int ticks);
/linux-4.4.14/arch/m68k/hp300/
Dtime.c53 unsigned short ticks; in hp300_gettimeoffset() local
61 ticks = INTVAL - ((msb2 << 8) | lsb); in hp300_gettimeoffset()
62 return ((USECS_PER_JIFFY * ticks) / INTVAL) * 1000; in hp300_gettimeoffset()
/linux-4.4.14/include/sound/
Dtimer.h61 unsigned long ticks; /* max timer ticks per interrupt */ member
102 unsigned long ticks, unsigned long resolution);
108 unsigned long ticks; /* auto-load ticks when expired */ member
136 int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks);
/linux-4.4.14/arch/m68k/amiga/
Damisound.c71 void amiga_mksound( unsigned int hz, unsigned int ticks ) in amiga_mksound() argument
95 if (ticks) { in amiga_mksound()
96 sound_timer.expires = jiffies + ticks; in amiga_mksound()
Dconfig.c101 extern void amiga_mksound(unsigned int count, unsigned int ticks);
500 u32 ticks, offset = 0; in amiga_gettimeoffset() local
512 ticks = hi << 8 | lo; in amiga_gettimeoffset()
514 if (ticks > jiffy_ticks / 2) in amiga_gettimeoffset()
519 ticks = jiffy_ticks - ticks; in amiga_gettimeoffset()
520 ticks = (10000 * ticks) / jiffy_ticks; in amiga_gettimeoffset()
522 return (ticks + offset) * 1000; in amiga_gettimeoffset()
/linux-4.4.14/drivers/acpi/acpica/
Dhwtimer.c94 acpi_status acpi_get_timer(u32 * ticks) in ACPI_EXPORT_SYMBOL()
100 if (!ticks) { in ACPI_EXPORT_SYMBOL()
110 status = acpi_hw_read(ticks, &acpi_gbl_FADT.xpm_timer_block); in ACPI_EXPORT_SYMBOL()
/linux-4.4.14/sound/core/seq/
Dseq_timer.c137 unsigned long ticks) in snd_seq_timer_interrupt() argument
154 resolution *= ticks; in snd_seq_timer_interrupt()
369 tmr->ticks = 1; in initialize_timer()
375 tmr->ticks = (unsigned int)(1000000000uL / (r * freq)); in initialize_timer()
376 if (! tmr->ticks) in initialize_timer()
377 tmr->ticks = 1; in initialize_timer()
393 snd_timer_start(tmr->timeri, tmr->ticks); in seq_timer_start()
421 snd_timer_start(tmr->timeri, tmr->ticks); in seq_timer_continue()
493 resolution = snd_timer_resolution(ti) * tmr->ticks; in snd_seq_info_timer_read()
Dseq_timer.h49 unsigned int ticks; member
/linux-4.4.14/Documentation/timers/
DNO_HZ.txt11 (also known as "scheduling-clock ticks" or simply "ticks"):
13 1. Never omit scheduling-clock ticks (CONFIG_HZ_PERIODIC=y or
17 2. Omit scheduling-clock ticks on idle CPUs (CONFIG_NO_HZ_IDLE=y or
21 3. Omit scheduling-clock ticks on CPUs that are either idle or that
34 are incapable of omitting scheduling-clock ticks. It turns out that
104 Note that omitting scheduling-clock ticks for CPUs with only one runnable
109 and such CPUs are said to be "adaptive-ticks CPUs". This is important
119 By default, no CPU will be an adaptive-ticks CPU. The "nohz_full="
120 boot parameter specifies the adaptive-ticks CPUs. For example,
121 "nohz_full=1,6-8" says that CPUs 1, 6, 7, and 8 are to be adaptive-ticks
[all …]
Dhighres.txt1 High resolution timers and dynamic ticks design notes
26 - dynamic ticks
39 - independent of ticks (the processing is based on nanoseconds)
52 convert the clock ticks to nanosecond based time values. All other time keeping
79 functionality like high resolution timers or dynamic ticks.
130 enabling of high resolution timers and dynamic ticks is simply provided by
159 dynamic ticks on i386 SMP systems which stop the local APIC in C3 power
204 dynamic ticks
207 Dynamic ticks are the logical consequence of the hrtimer based periodic tick
D00-INDEX4 - High resolution timers and dynamic ticks design notes
/linux-4.4.14/kernel/sched/
Dcputime.c340 struct rq *rq, int ticks) in irqtime_account_process_tick() argument
349 cputime *= ticks; in irqtime_account_process_tick()
350 scaled *= ticks; in irqtime_account_process_tick()
374 static void irqtime_account_idle_ticks(int ticks) in irqtime_account_idle_ticks() argument
378 irqtime_account_process_tick(current, 0, rq, ticks); in irqtime_account_idle_ticks()
381 static inline void irqtime_account_idle_ticks(int ticks) {} in irqtime_account_idle_ticks() argument
494 void account_steal_ticks(unsigned long ticks) in account_steal_ticks() argument
496 account_steal_time(jiffies_to_cputime(ticks)); in account_steal_ticks()
503 void account_idle_ticks(unsigned long ticks) in account_idle_ticks() argument
507 irqtime_account_idle_ticks(ticks); in account_idle_ticks()
[all …]
Dloadavg.c352 void calc_global_load(unsigned long ticks) in calc_global_load() argument
/linux-4.4.14/sound/drivers/opl3/
Dopl3_lib.c162 unsigned int ticks; in snd_opl3_timer1_start() local
167 ticks = timer->sticks; in snd_opl3_timer1_start()
170 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER1, 256 - ticks); /* timer 1 count */ in snd_opl3_timer1_start()
199 unsigned int ticks; in snd_opl3_timer2_start() local
204 ticks = timer->sticks; in snd_opl3_timer2_start()
207 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER2, 256 - ticks); /* timer 1 count */ in snd_opl3_timer2_start()
236 .ticks = 256,
245 .ticks = 256,
/linux-4.4.14/drivers/ide/
Dide-floppy_proc.c38 ide_devset_rw_field(ticks, pc_delay);
44 IDE_PROC_DEVSET(ticks, 0, 255),
/linux-4.4.14/Documentation/block/
Dstat.txt26 read ticks milliseconds total wait time for read requests
30 write ticks milliseconds total wait time for write requests
54 read ticks, write ticks
82 number of requests waiting (see "read ticks" above for an example).
/linux-4.4.14/kernel/time/
Dtick-sched.c54 unsigned long ticks = 0; in tick_do_update_jiffies64() local
78 ticks = ktime_divns(delta, incr); in tick_do_update_jiffies64()
81 incr * ticks); in tick_do_update_jiffies64()
83 do_timer(++ticks); in tick_do_update_jiffies64()
876 unsigned long ticks; in tick_nohz_account_idle_ticks() local
885 ticks = jiffies - ts->idle_jiffies; in tick_nohz_account_idle_ticks()
889 if (ticks && ticks < LONG_MAX) in tick_nohz_account_idle_ticks()
890 account_idle_ticks(ticks); in tick_nohz_account_idle_ticks()
Dtimekeeping.h19 extern void do_timer(unsigned long ticks);
Dtimekeeping.c1921 void do_timer(unsigned long ticks) in do_timer() argument
1923 jiffies_64 += ticks; in do_timer()
1924 calc_global_load(ticks); in do_timer()
2048 void xtime_update(unsigned long ticks) in xtime_update() argument
2051 do_timer(ticks); in xtime_update()
DKconfig73 bool "Periodic timer ticks (constant rate, no dynticks)"
/linux-4.4.14/drivers/pps/
Dpps.c162 unsigned long ticks; in pps_cdev_ioctl() local
167 ticks = fdata.timeout.sec * HZ; in pps_cdev_ioctl()
168 ticks += fdata.timeout.nsec / (NSEC_PER_SEC / HZ); in pps_cdev_ioctl()
170 if (ticks != 0) { in pps_cdev_ioctl()
174 ticks); in pps_cdev_ioctl()
/linux-4.4.14/include/linux/
Dkernel_stat.h95 extern void account_steal_ticks(unsigned long ticks);
96 extern void account_idle_ticks(unsigned long ticks);
Damigaffs.h37 __be32 ticks; member
43 __be16 ticks; member
Dclockchips.h171 div_sc(unsigned long ticks, unsigned long nsec, int shift) in div_sc() argument
173 u64 tmp = ((u64)ticks) << shift; in div_sc()
Domap-gpmc.h162 extern unsigned int gpmc_ticks_to_ns(unsigned int ticks);
Dvt_kern.h30 extern void kd_mksound(unsigned int hz, unsigned int ticks);
Dgenhd.h86 unsigned long ticks[2]; member
Dsched.h177 extern void calc_global_load(unsigned long ticks);
2452 extern void xtime_update(unsigned long ticks);
/linux-4.4.14/drivers/md/
Ddm-stats.c28 unsigned long long ticks[2]; member
559 p->ticks[idx] += duration_jiffies; in dm_stat_for_entry()
562 p->ticks[idx] += stats_aux->duration_ns; in dm_stat_for_entry()
689 shared->tmp.ticks[READ] = 0; in __dm_stat_init_temporary_percpu_totals()
690 shared->tmp.ticks[WRITE] = 0; in __dm_stat_init_temporary_percpu_totals()
707 shared->tmp.ticks[READ] += ACCESS_ONCE(p->ticks[READ]); in __dm_stat_init_temporary_percpu_totals()
708 shared->tmp.ticks[WRITE] += ACCESS_ONCE(p->ticks[WRITE]); in __dm_stat_init_temporary_percpu_totals()
740 p->ticks[READ] -= shared->tmp.ticks[READ]; in __dm_stat_clear()
741 p->ticks[WRITE] -= shared->tmp.ticks[WRITE]; in __dm_stat_clear()
851 dm_jiffies_to_msec64(s, shared->tmp.ticks[READ]), in dm_stats_print()
[all …]
/linux-4.4.14/net/bridge/
Dbr_stp_bpdu.c70 unsigned long ticks = (STP_HZ * j)/ HZ; in br_set_ticks() local
72 put_unaligned_be16(ticks, dest); in br_set_ticks()
77 unsigned long ticks = get_unaligned_be16(src); in br_get_ticks() local
79 return DIV_ROUND_UP(ticks * HZ, STP_HZ); in br_get_ticks()
/linux-4.4.14/arch/tile/kernel/
Dtime.c130 static int tile_timer_set_next_event(unsigned long ticks, in tile_timer_set_next_event() argument
133 BUG_ON(ticks > MAX_TICK); in tile_timer_set_next_event()
134 __insn_mtspr(SPR_TILE_TIMER_CONTROL, ticks); in tile_timer_set_next_event()
/linux-4.4.14/drivers/clocksource/
Dem_sti.c115 cycle_t ticks; in em_sti_count() local
124 ticks = (cycle_t)(em_sti_read(p, STI_COUNT_H) & 0xffff) << 32; in em_sti_count()
125 ticks |= em_sti_read(p, STI_COUNT_L); in em_sti_count()
128 return ticks; in em_sti_count()
Dmetag_generic.c89 unsigned long long ticks = __core_reg_get(TXTIMER); in sched_clock() local
90 return ticks << HARDWARE_TO_NS_SHIFT; in sched_clock()
/linux-4.4.14/sound/pci/pcxhr/
Dpcxhr_mix22.c420 unsigned int ticks; in hr222_get_external_clock() local
462 ticks = (unsigned int)PCXHR_INPB(mgr, PCXHR_XLX_CFG); in hr222_get_external_clock()
463 ticks = (ticks & 0x03) << 8; in hr222_get_external_clock()
464 ticks |= (unsigned int)PCXHR_INPB(mgr, PCXHR_DSP_RESET); in hr222_get_external_clock()
466 if (ticks != 0) in hr222_get_external_clock()
467 calc_rate = 28224000 / ticks; in hr222_get_external_clock()
/linux-4.4.14/arch/um/os-Linux/
Dtime.c116 int os_timer_one_shot(int ticks) in os_timer_one_shot() argument
122 nsec = (ticks + 1); in os_timer_one_shot()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Dkernel.fuc253 // calculate the number of ticks in the specified nanoseconds delay
257 // $r14 - ticks (return)
287 // calculate the number of ticks in the specified microsecond delay
291 // $r14 - ticks (return)
314 // calculate the number of ticks in the specified microsecond delay
317 // $r14 - ticks
321 /* simply divide $ticks by HW_TICKS_PER_US */
330 // $r14 - ticks (make sure it is < 2^31 to avoid any possible overflow)
349 // of the watchdog and add this time to the wanted ticks
/linux-4.4.14/drivers/soc/tegra/
Dpmc.c611 u64 ticks; in tegra_pmc_enter_suspend_mode() local
613 ticks = pmc->cpu_good_time * rate + USEC_PER_SEC - 1; in tegra_pmc_enter_suspend_mode()
614 do_div(ticks, USEC_PER_SEC); in tegra_pmc_enter_suspend_mode()
615 tegra_pmc_writel(ticks, PMC_CPUPWRGOOD_TIMER); in tegra_pmc_enter_suspend_mode()
617 ticks = pmc->cpu_off_time * rate + USEC_PER_SEC - 1; in tegra_pmc_enter_suspend_mode()
618 do_div(ticks, USEC_PER_SEC); in tegra_pmc_enter_suspend_mode()
619 tegra_pmc_writel(ticks, PMC_CPUPWROFF_TIMER); in tegra_pmc_enter_suspend_mode()
/linux-4.4.14/drivers/memory/
Domap-gpmc.c350 unsigned int gpmc_clk_ticks_to_ns(unsigned ticks, int cs, in gpmc_clk_ticks_to_ns() argument
353 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns()
356 unsigned int gpmc_ticks_to_ns(unsigned int ticks) in gpmc_ticks_to_ns() argument
358 return gpmc_clk_ticks_to_ns(ticks, /* any CS */ 0, GPMC_CD_FCLK); in gpmc_ticks_to_ns()
361 static unsigned int gpmc_ticks_to_ps(unsigned int ticks) in gpmc_ticks_to_ps() argument
363 return ticks * gpmc_get_fclk_period(); in gpmc_ticks_to_ps()
368 unsigned long ticks = gpmc_ps_to_ticks(time_ps); in gpmc_round_ps_to_ticks() local
370 return ticks * gpmc_get_fclk_period(); in gpmc_round_ps_to_ticks()
595 int ticks, mask, nr_bits; in set_gpmc_timing_reg() local
598 ticks = 0; in set_gpmc_timing_reg()
[all …]
Dmvebu-devbus.c101 u32 *ticks) in get_timing_param_ps() argument
113 *ticks = (time_ps + devbus->tick_ps - 1) / devbus->tick_ps; in get_timing_param_ps()
116 name, time_ps, *ticks); in get_timing_param_ps()
/linux-4.4.14/drivers/iio/adc/
Dat91_adc.c806 unsigned int ticks; in calc_startup_ticks_9x5() local
808 ticks = startup_time * adc_clk_khz / 1000; in calc_startup_ticks_9x5()
810 if (ticks < startup_lookup[i]) in calc_startup_ticks_9x5()
813 ticks = i; in calc_startup_ticks_9x5()
814 if (ticks == size) in calc_startup_ticks_9x5()
816 ticks = size - 1; in calc_startup_ticks_9x5()
818 return ticks; in calc_startup_ticks_9x5()
1129 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local
1236 ticks = (*st->caps->calc_startup_ticks)(st->startup_time, adc_clk_khz); in at91_adc_probe()
1250 reg |= AT91_ADC_STARTUP_(ticks) & st->registers->mr_startup_mask; in at91_adc_probe()
/linux-4.4.14/include/linux/ssb/
Dssb_driver_extif.h178 extern u32 ssb_extif_watchdog_timer_set(struct ssb_extif *extif, u32 ticks);
216 u32 ssb_extif_watchdog_timer_set(struct ssb_extif *extif, u32 ticks) in ssb_extif_watchdog_timer_set() argument
Dssb_embedded.h8 extern int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks);
Dssb_driver_chipcommon.h637 extern u32 ssb_chipco_watchdog_timer_set(struct ssb_chipcommon *cc, u32 ticks);
/linux-4.4.14/arch/m68k/q40/
Dq40ints.c110 void q40_mksound(unsigned int hz, unsigned int ticks) in q40_mksound() argument
126 sound_ticks = ticks << 1; in q40_mksound()
/linux-4.4.14/sound/pci/ctxfi/
Dcttimer.c148 static void ct_xfitimer_irq_rearm(struct ct_timer *atimer, int ticks) in ct_xfitimer_irq_rearm() argument
151 if (ticks > MAX_TICKS) in ct_xfitimer_irq_rearm()
152 ticks = MAX_TICKS; in ct_xfitimer_irq_rearm()
153 hw->set_timer_tick(hw, ticks); in ct_xfitimer_irq_rearm()
Dcthw20k2.c1124 static int set_timer_tick(struct hw *hw, unsigned int ticks) in set_timer_tick() argument
1126 if (ticks) in set_timer_tick()
1127 ticks |= TIMR_IE | TIMR_IP; in set_timer_tick()
1128 hw_write_20kx(hw, TIMR, ticks); in set_timer_tick()
Dcthw20k1.c1181 static int set_timer_tick(struct hw *hw, unsigned int ticks) in set_timer_tick() argument
1183 if (ticks) in set_timer_tick()
1184 ticks |= TIMR_IE | TIMR_IP; in set_timer_tick()
1185 hw_write_20kx(hw, TIMR, ticks); in set_timer_tick()
/linux-4.4.14/arch/x86/xen/
Dtime.c120 cputime_t ticks; in do_stolen_accounting() local
141 ticks = iter_div_u64_rem(stolen, NS_PER_TICK, &stolen); in do_stolen_accounting()
143 account_steal_ticks(ticks); in do_stolen_accounting()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326.c31 u32 ticks; member
647 mac->instance->ticks >= MAJOR_UPDATE_TICKS) { in mac_update_statistics()
649 mac->instance->ticks = 0; in mac_update_statistics()
659 mac->instance->ticks++; in mac_update_statistics()
701 mac->instance->ticks = 0; in vsc7326_mac_create()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h262 unsigned int ticks) in core_ticks_to_us() argument
264 return (ticks * 1000) / adapter->params.vpd.cclk; in core_ticks_to_us()
/linux-4.4.14/arch/s390/kernel/
Dtime.c304 unsigned long long delta, ticks; in adjust_time() local
309 delta = ticks = clock - old; in adjust_time()
310 delta = ticks = (delta < delay) ? 0 : delta - delay; in adjust_time()
311 delta -= do_div(ticks, CLK_TICKS_PER_JIFFY); in adjust_time()
312 adjust.offset = ticks * (1000000 / HZ); in adjust_time()
315 delta = ticks = old - clock; in adjust_time()
316 delta -= do_div(ticks, CLK_TICKS_PER_JIFFY); in adjust_time()
318 adjust.offset = -ticks * (1000000 / HZ); in adjust_time()
/linux-4.4.14/sound/usb/line6/
Dtoneport.c370 int ticks; in toneport_setup() local
375 ticks = (int)get_seconds(); in toneport_setup()
376 line6_write_data(line6, 0x80c6, &ticks, 4); in toneport_setup()
/linux-4.4.14/sound/pci/emu10k1/
Dtimer.c72 .ticks = 1024,
/linux-4.4.14/tools/perf/Documentation/
Ditrace.txt17 t ticks
Dperf-stat.txt177 8117.370256 task clock ticks # 11.281 CPU utilization factor
Dintel-pt.txt700 "ns" (nanoseconds), "t" (TSC ticks) or "i" (instructions).
702 "ms", "us" and "ns" are converted to TSC ticks.
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dcpsw.txt24 - cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds
25 - cpts_clock_shift : Denominator to convert input clock ticks into nanoseconds
/linux-4.4.14/fs/xfs/
Dxfs_linux.h158 static inline void delay(long ticks) in delay() argument
160 schedule_timeout_uninterruptible(ticks); in delay()
/linux-4.4.14/arch/mips/fw/cfe/
Dcfe_api_int.h88 s64 ticks; /* current time in ticks */ member
Dcfe_api.c295 xiocb.plist.xiocb_time.ticks = 0; in cfe_getticks()
299 return xiocb.plist.xiocb_time.ticks; in cfe_getticks()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_plog.h137 u32 ticks; member
Dbfa_cs.h44 #define BFA_TRC_TS(_trcm) ((_trcm)->ticks++)
70 u32 ticks; member
/linux-4.4.14/drivers/net/wan/lmc/
Dlmc_media.c680 u32 ticks; in lmc_ssi_get_link_status() local
707 ticks = LMC_CSR_READ (sc, csr_gp_timer); in lmc_ssi_get_link_status()
708 ticks = 0x0000ffff - (ticks & 0x0000ffff); in lmc_ssi_get_link_status()
716 else if (ticks == 0 ) { /* no clock found ? */ in lmc_ssi_get_link_status()
Dlmc_var.h174 u32 ticks; /* ticks/sec */ member
Dlmc_main.c644 u32 ticks; in lmc_watchdog() local
784 ticks = LMC_CSR_READ (sc, csr_gp_timer); in lmc_watchdog()
786 sc->ictl.ticks = 0x0000ffff - (ticks & 0x0000ffff); in lmc_watchdog()
/linux-4.4.14/drivers/ata/
Dsata_fsl.c295 unsigned int count, unsigned int ticks) in fsl_sata_set_irq_coalescing() argument
306 if (ticks > ICC_MAX_INT_TICKS_THRESHOLD) in fsl_sata_set_irq_coalescing()
307 ticks = ICC_MAX_INT_TICKS_THRESHOLD; in fsl_sata_set_irq_coalescing()
308 else if ((ICC_MIN_INT_TICKS_THRESHOLD == ticks) && in fsl_sata_set_irq_coalescing()
310 ticks = ICC_SAFE_INT_TICKS; in fsl_sata_set_irq_coalescing()
313 iowrite32((count << 24 | ticks), hcr_base + ICC); in fsl_sata_set_irq_coalescing()
316 intr_coalescing_ticks = ticks; in fsl_sata_set_irq_coalescing()
Dsata_sx4.c1278 u32 ticks = 0; in pdc20621_dimm_init() local
1313 ticks = (time_period - tcount); in pdc20621_dimm_init()
1314 VPRINTK("Num counters 0x%x (%d)\n", ticks, ticks); in pdc20621_dimm_init()
1316 clock = (ticks / 300000); in pdc20621_dimm_init()
/linux-4.4.14/drivers/net/irda/
Dstir4200.c653 long ticks; in turnaround_delay() local
663 ticks = us / (1000000 / HZ); in turnaround_delay()
664 if (ticks > 0) in turnaround_delay()
665 schedule_timeout_interruptible(1 + ticks); in turnaround_delay()
Dbfin_sir.c27 long ticks; in turnaround_delay() local
30 ticks = 1 + mtt / (USEC_PER_SEC / HZ); in turnaround_delay()
31 schedule_timeout_uninterruptible(ticks); in turnaround_delay()
/linux-4.4.14/include/uapi/linux/
Dsoundcard.h1240 #define SEQ_WAIT_TIME(ticks) _TIMER_EVENT(TMR_WAIT_ABS, ticks) argument
1241 #define SEQ_DELTA_TIME(ticks) _TIMER_EVENT(TMR_WAIT_REL, ticks) argument
/linux-4.4.14/drivers/mmc/host/
Dusdhi6rol0.c868 unsigned long ticks; in usdhi6_timeout_set() local
871 ticks = host->rate / 1000 * mrq->cmd->busy_timeout; in usdhi6_timeout_set()
873 ticks = host->rate / 1000000 * (mrq->data->timeout_ns / 1000) + in usdhi6_timeout_set()
876 if (!ticks || ticks > 1 << 27) in usdhi6_timeout_set()
879 else if (ticks < 1 << 13) in usdhi6_timeout_set()
883 val = order_base_2(ticks) - 13; in usdhi6_timeout_set()
886 mrq->data ? "data" : "cmd", ticks, host->rate); in usdhi6_timeout_set()
Dmxs-mmc.c344 const unsigned int ticks = ms * clock_per_ms; in mxs_ns_to_ssp_ticks() local
345 const unsigned int ssp_ticks = ticks / ssp_timeout_mul; in mxs_ns_to_ssp_ticks()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Ddsi.c3221 unsigned ticks, bool x4, bool x16) in dsi_set_lp_rx_timeout() argument
3227 BUG_ON(ticks > 0x1fff); in dsi_set_lp_rx_timeout()
3236 r = FLD_MOD(r, ticks, 12, 0); /* LP_RX_COUNTER */ in dsi_set_lp_rx_timeout()
3239 total_ticks = ticks * (x16 ? 16 : 1) * (x4 ? 4 : 1); in dsi_set_lp_rx_timeout()
3243 ticks, x4 ? " x4" : "", x16 ? " x16" : "", in dsi_set_lp_rx_timeout()
3247 static void dsi_set_ta_timeout(struct platform_device *dsidev, unsigned ticks, in dsi_set_ta_timeout() argument
3254 BUG_ON(ticks > 0x1fff); in dsi_set_ta_timeout()
3263 r = FLD_MOD(r, ticks, 28, 16); /* TA_TO_COUNTER */ in dsi_set_ta_timeout()
3266 total_ticks = ticks * (x16 ? 16 : 1) * (x8 ? 8 : 1); in dsi_set_ta_timeout()
3270 ticks, x8 ? " x8" : "", x16 ? " x16" : "", in dsi_set_ta_timeout()
[all …]
/linux-4.4.14/arch/alpha/kernel/
Dosf_sys.c1224 unsigned long ticks; in SYSCALL_DEFINE2() local
1229 ticks = timeval_to_jiffies(&tmp); in SYSCALL_DEFINE2()
1231 ticks = schedule_timeout_interruptible(ticks); in SYSCALL_DEFINE2()
1234 jiffies_to_timeval(ticks, &tmp); in SYSCALL_DEFINE2()
/linux-4.4.14/arch/sparc/kernel/
Dtime_64.c810 unsigned long ticks = tick_ops->get_tick(); in sched_clock() local
812 return (ticks * timer_ticks_per_nsec_quotient) in sched_clock()
/linux-4.4.14/drivers/scsi/csiostor/
Dcsio_hw.h521 csio_core_ticks_to_us(struct csio_hw *hw, uint32_t ticks) in csio_core_ticks_to_us() argument
524 return (ticks * 1000 + hw->vpd.cclk/2) / hw->vpd.cclk; in csio_core_ticks_to_us()
Dcsio_lnode.c1867 csio_scan_done(struct csio_lnode *ln, unsigned long ticks, in csio_scan_done() argument
1877 ln->tgt_scan_tick = ticks; in csio_scan_done()
1879 if (((ticks - ln->tgt_scan_tick) >= delta_scan_ticks)) { in csio_scan_done()
1888 ln->tgt_scan_tick = ticks; in csio_scan_done()
/linux-4.4.14/drivers/tty/vt/
Dvt_ioctl.c385 unsigned int ticks, count; in vt_ioctl() local
391 ticks = msecs_to_jiffies((arg >> 16) & 0xffff); in vt_ioctl()
392 count = ticks ? (arg & 0xffff) : 0; in vt_ioctl()
395 kd_mksound(count, ticks); in vt_ioctl()
Dkeyboard.c254 void kd_mksound(unsigned int hz, unsigned int ticks) in kd_mksound() argument
260 if (hz && ticks) in kd_mksound()
261 mod_timer(&kd_mksound_timer, jiffies + ticks); in kd_mksound()
/linux-4.4.14/net/sched/
Dsch_netem.c344 u64 ticks; in packet_len_2_sched_time() local
356 ticks = (u64)len * NSEC_PER_SEC; in packet_len_2_sched_time()
358 do_div(ticks, q->rate); in packet_len_2_sched_time()
359 return PSCHED_NS2TICKS(ticks); in packet_len_2_sched_time()
/linux-4.4.14/sound/sparc/
Dcs4231.c669 unsigned int ticks; in snd_cs4231_timer_start() local
673 ticks = timer->sticks; in snd_cs4231_timer_start()
675 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || in snd_cs4231_timer_start()
676 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { in snd_cs4231_timer_start()
679 (unsigned char) (ticks >> 8)); in snd_cs4231_timer_start()
682 (unsigned char) ticks); in snd_cs4231_timer_start()
874 .ticks = 65535,
/linux-4.4.14/arch/ia64/kernel/
Dsmpboot.c496 int ticks; in decay() local
497 get_option (&str, &ticks); in decay()
/linux-4.4.14/drivers/net/ethernet/amd/
Dpcnet32.c885 unsigned long ticks; in pcnet32_loopback_test() local
965 ticks = 0; in pcnet32_loopback_test()
967 while ((lp->rx_ring[x].status & teststatus) && (ticks < 200)) { in pcnet32_loopback_test()
972 ticks++; in pcnet32_loopback_test()
974 if (ticks == 200) { in pcnet32_loopback_test()
1080 int ticks; in pcnet32_suspend() local
1091 ticks = 0; in pcnet32_suspend()
1099 ticks++; in pcnet32_suspend()
1100 if (ticks > 200) { in pcnet32_suspend()
/linux-4.4.14/net/appletalk/
Daarp.c994 static const char *dt2str(unsigned long ticks) in dt2str() argument
998 sprintf(buf, "%ld.%02ld", ticks / HZ, ((ticks % HZ) * 100) / HZ); in dt2str()
/linux-4.4.14/sound/isa/wss/
Dwss_lib.c769 unsigned int ticks; in snd_wss_timer_start() local
772 ticks = timer->sticks; in snd_wss_timer_start()
774 (unsigned char)(ticks >> 8) != chip->image[CS4231_TIMER_HIGH] || in snd_wss_timer_start()
775 (unsigned char)ticks != chip->image[CS4231_TIMER_LOW]) { in snd_wss_timer_start()
776 chip->image[CS4231_TIMER_HIGH] = (unsigned char) (ticks >> 8); in snd_wss_timer_start()
779 chip->image[CS4231_TIMER_LOW] = (unsigned char) ticks; in snd_wss_timer_start()
982 .ticks = 65535,
/linux-4.4.14/kernel/
Dcpuset.c1416 time_t ticks = now - fmp->time; in fmeter_update() local
1418 if (ticks == 0) in fmeter_update()
1421 ticks = min(FM_MAXTICKS, ticks); in fmeter_update()
1422 while (ticks-- > 0) in fmeter_update()
/linux-4.4.14/block/
Dpartition-generic.c128 jiffies_to_msecs(part_stat_read(p, ticks[READ])), in part_stat_show()
132 jiffies_to_msecs(part_stat_read(p, ticks[WRITE])), in part_stat_show()
Dgenhd.c1177 jiffies_to_msecs(part_stat_read(hd, ticks[READ])), in diskstats_show()
1181 jiffies_to_msecs(part_stat_read(hd, ticks[WRITE])), in diskstats_show()
Dbio.c1695 part_stat_add(cpu, part, ticks[rw], duration); in generic_end_io_acct()
Dblk-core.c2295 part_stat_add(cpu, part, ticks[rw], duration); in blk_account_io_done()
/linux-4.4.14/Documentation/watchdog/
Dwatchdog-parameters.txt74 ticks: count down ticks, default is 10000
194 timeout: Watchdog timeout in ticks. (0<timeout<65536, default=65535)
/linux-4.4.14/drivers/scsi/
Daha152x.c1741 long ticks; in msgi_run() local
1756 ticks = (MSGI(3) * 4 + 49) / 50; in msgi_run()
1760 if (ticks > 9 || MSGI(4) < 1 || MSGI(4) > 8) { in msgi_run()
1768 SYNCRATE |= ((ticks - 2) << 4) + MSGI(4); in msgi_run()
1769 } else if (ticks <= 9 && MSGI(4) >= 1) { in msgi_run()
1773 if (ticks < 4) { in msgi_run()
1774 ticks = 4; in msgi_run()
1784 SYNCRATE |= ((ticks - 2) << 4) + MSGI(4); in msgi_run()
/linux-4.4.14/include/linux/mfd/
D88pm860x.h416 int (*sync)(unsigned int ticks);
/linux-4.4.14/drivers/net/ethernet/realtek/
Datp.h258 #define eeprom_delay(ticks) \ argument
/linux-4.4.14/include/uapi/sound/
Dasound.h736 unsigned int ticks; /* requested resolution in ticks */ member
770 unsigned int ticks; member
/linux-4.4.14/Documentation/device-mapper/
Dcache-policies.txt19 issues periodic ticks to the policy. It's suggested that the policy
21 for each tick. The core ticks by watching bios complete, and so
Dstatistics.txt22 the kernel ticks. When the option precise_timestamps is used, the
/linux-4.4.14/arch/um/include/shared/
Dos.h248 extern int os_timer_one_shot(int ticks);
/linux-4.4.14/arch/powerpc/kernel/
Dtime.c612 unsigned long long tb_to_ns(unsigned long long ticks) in tb_to_ns() argument
614 return mulhdu(ticks, tb_to_ns_scale) << tb_to_ns_shift; in tb_to_ns()
/linux-4.4.14/drivers/block/
Damiflop.c222 int ticks; in ms_delay() local
227 ticks = MS_TICKS*ms-1; in ms_delay()
228 ciaa.tblo=ticks%256; in ms_delay()
229 ciaa.tbhi=ticks/256; in ms_delay()
/linux-4.4.14/Documentation/RCU/
Dstallwarn.txt101 0: (63959 ticks this GP) idle=241/3fffffffffffffff/0 softirq=82/543
107 …0: (64628 ticks this GP) idle=dd5/3fffffffffffffff/0 softirq=82/543 last_accelerate: a345/d342 non…
110 The "(64628 ticks this GP)" indicates that this CPU has taken more
DRTFP.txt2011 ,Title="{[PATCH]} add support for dynamic ticks and preempt rcu"
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h1171 unsigned int ticks) in core_ticks_to_us() argument
1174 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / in core_ticks_to_us()
1426 int hz, int ticks);
Dt4_hw.c7804 int hz, int ticks) in t4_idma_monitor() argument
7851 idma->idma_stalled[i] += ticks; in t4_idma_monitor()
7852 idma->idma_warn[i] -= ticks; in t4_idma_monitor()
/linux-4.4.14/Documentation/
Dkernel-per-CPU-kthreads.txt114 to be de-jittered is marked as an adaptive-ticks CPU using the
137 adaptive-ticks state by doing all of the following:
140 to be de-jittered is marked as an adaptive-ticks CPU using
Dlockup-watchdogs.txt70 the "nohz_full" cores, we would have to run timer ticks to activate
Dkernel-parameters.txt2480 nohz= [KNL] Boottime enable/disable dynamic ticks
/linux-4.4.14/drivers/mtd/nand/
Ds3c2410.c252 #define to_ns(ticks, clk) (((ticks) * NS_IN_KHZ) / (unsigned int)(clk)) argument
/linux-4.4.14/drivers/nvdimm/
Dcore.c239 part_stat_add(cpu, &disk->part0, ticks[rw], duration); in nd_iostat_end()
/linux-4.4.14/Documentation/input/
Datarikbd.txt269 X ; x threshold in mouse ticks (positive integers)
270 Y ; y threshold in mouse ticks (positive integers)
280 X ; horizontal mouse ticks per internal X
281 Y ; vertical mouse ticks per internal Y
/linux-4.4.14/include/linux/bcma/
Dbcma_driver_chipcommon.h665 extern u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks);
/linux-4.4.14/fs/affs/
Dinode.c151 be32_to_cpu(tail->change.ticks) / 50 + in affs_iget()
Damigaffs.c384 ds->ticks = cpu_to_be32(secs * 50); in secs_to_datestamp()
/linux-4.4.14/arch/cris/arch-v10/drivers/
DKconfig37 int "Receive flush timeout (ticks) "
41 Number of timer ticks between flush of receive fifo (1 tick = 10ms).
/linux-4.4.14/include/acpi/
Dacpixf.h841 ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_get_timer(u32 *ticks))
/linux-4.4.14/drivers/firewire/
Dohci.c1698 u32 ticks; in cycle_timer_ticks() local
1700 ticks = cycle_timer & 0xfff; in cycle_timer_ticks()
1701 ticks += 3072 * ((cycle_timer >> 12) & 0x1fff); in cycle_timer_ticks()
1702 ticks += (3072 * 8000) * (cycle_timer >> 25); in cycle_timer_ticks()
1704 return ticks; in cycle_timer_ticks()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_fsf.c1980 int ticks = req->adapter->timer_ticks; in zfcp_fsf_req_trace() local
1995 blktrc.channel_lat = lat_in->channel_lat * ticks; in zfcp_fsf_req_trace()
1996 blktrc.fabric_lat = lat_in->fabric_lat * ticks; in zfcp_fsf_req_trace()
/linux-4.4.14/Documentation/metag/
Dkernel-ABI.txt83 kernel (including asynchronous events such as interrupts and timer ticks) except
/linux-4.4.14/Documentation/filesystems/
Dexofs.txt116 to=<integer> - Timeout in ticks for a single command.
Dproc.txt1818 ticks: 0
1823 where 'clockid' is the clock type and 'ticks' is the number of the timer expirations
/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c268 unsigned int ticks) in gfar_ticks2usecs() argument
288 return (ticks * count) / 1000; in gfar_ticks2usecs()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c5101 u8 ticks) in storm_memset_hc_timeout() argument
5105 REG_WR8(bp, addr, ticks); in storm_memset_hc_timeout()
5108 port, fw_sb_id, sb_index, ticks); in storm_memset_hc_timeout()
5132 u8 ticks = usec / BNX2X_BTR; in bnx2x_update_coalesce_sb_index() local
5134 storm_memset_hc_timeout(bp, port, fw_sb_id, sb_index, ticks); in bnx2x_update_coalesce_sb_index()
/linux-4.4.14/drivers/net/ethernet/via/
Dvia-velocity.h1494 u32 ticks; member
/linux-4.4.14/sound/pci/
Dazt3328.c2244 ….ticks = 1024000, /* max tick count, defined by the value register; actually it's not 1024000, but…
2264 snd_azf3328_timer_hw.ticks /= seqtimer_scaling; in snd_azf3328_timer()
/linux-4.4.14/sound/isa/ad1816a/
Dad1816a_lib.c437 .ticks = 65535,
/linux-4.4.14/drivers/net/ethernet/ti/
Dtlan.c244 tlan_set_timer(struct net_device *dev, u32 ticks, u32 type) in tlan_set_timer() argument
264 mod_timer(&priv->timer, jiffies + ticks); in tlan_set_timer()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dskge.c605 static inline u32 skge_clk2usec(const struct skge_hw *hw, u32 ticks) in skge_clk2usec() argument
607 return (ticks * 1000) / hwkhz(hw); in skge_clk2usec()
/linux-4.4.14/Documentation/virtual/kvm/
Dtimekeeping.txt495 ticks and compensate for them internally. Although promising in theory, the
/linux-4.4.14/sound/pci/ymfpci/
Dymfpci_main.c1944 .ticks = 0x10000,