Home
last modified time | relevance | path

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

123

/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 …]
/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()
Dtangox_wdt.c64 u32 ticks; in tangox_wdt_start() local
66 ticks = 1 + wdt->timeout * dev->clk_rate; in tangox_wdt_start()
67 writel(ticks, dev->base + WD_COUNTER); in tangox_wdt_start()
/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 …]
/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 …]
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()
/drivers/bcma/
Ddriver_chipcommon.c78 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()
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()
245 ticks = maxt; in bcma_chipco_watchdog_timer_set()
[all …]
/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()
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()
/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()
/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()
/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 …]
/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()
/drivers/ide/
Dide-floppy_proc.c38 ide_devset_rw_field(ticks, pc_delay);
44 IDE_PROC_DEVSET(ticks, 0, 255),
/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()
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Dkernel.fuc243 // calculate the number of ticks in the specified nanoseconds delay
247 // $r14 - ticks (return)
277 // calculate the number of ticks in the specified microsecond delay
281 // $r14 - ticks (return)
304 // calculate the number of ticks in the specified microsecond delay
307 // $r14 - ticks
311 /* simply divide $ticks by HW_TICKS_PER_US */
320 // $r14 - ticks (make sure it is < 2^31 to avoid any possible overflow)
339 // of the watchdog and add this time to the wanted ticks

123