/drivers/rtc/ |
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 …]
|
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() 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() 134 base, data, ticks); in pm80x_rtc_set_time() 148 unsigned long ticks, base, data; in pm80x_rtc_read_alarm() local 159 ticks = base + data; in pm80x_rtc_read_alarm() [all …]
|
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() 131 unsigned long ticks, base, data; in pm860x_rtc_read_alarm() local 143 ticks = base + data; in pm860x_rtc_read_alarm() [all …]
|
/drivers/watchdog/ |
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");
|
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()
|
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()
|
D | bcm63xx_wdt.c | 45 atomic_t ticks; member 79 if (!atomic_dec_and_test(&bcm63xx_wdt_device.ticks)) { in bcm63xx_timer_tick() 88 atomic_set(&bcm63xx_wdt_device.ticks, wdt_time); in bcm63xx_wdt_pet()
|
/drivers/ssb/ |
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()
|
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() 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 …]
|
D | ssb_private.h | 197 u32 ticks); 220 extern u32 ssb_extif_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks); 224 u32 ticks) in ssb_extif_watchdog_timer_set_wdt() argument
|
/drivers/bcma/ |
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() 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/char/hw_random/ |
D | n2-drv.c | 112 unsigned long hv_err, state, ticks, watchdog_delta, watchdog_status; in n2rng_generic_read_control_v2() local 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 164 watchdog_timeout, ticks); in n2rng_write_ctl_one() 170 *ticks = N2RNG_ACCUM_CYCLES_DEFAULT; in n2rng_write_ctl_one() 178 unsigned long ticks, hv_err; in n2rng_generic_read_data() local 182 hv_err = sun4v_rng_data_read(data_ra, &ticks); in n2rng_generic_read_data() 189 __delay(ticks); in n2rng_generic_read_data() 205 unsigned long *ticks) in n2rng_read_diag_data_one() argument [all …]
|
/drivers/hwmon/ |
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()
|
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()
|
/drivers/macintosh/ |
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() 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 …]
|
D | windfarm_pm81.c | 179 int ticks; member 248 int ticks; member 292 wf_smu_sys_fans->ticks = 1; in wf_smu_create_sys_fans() 333 if (--st->ticks != 0) { in wf_smu_sys_fans_tick() 338 st->ticks = WF_SMU_SYS_FANS_INTERVAL; in wf_smu_sys_fans_tick() 425 wf_smu_cpu_fans->ticks = 1; in wf_smu_create_cpu_fans() 477 if (--st->ticks != 0) { in wf_smu_cpu_fans_tick() 482 st->ticks = WF_SMU_CPU_FANS_INTERVAL; in wf_smu_cpu_fans_tick()
|
D | windfarm_pm121.c | 431 int ticks; member 448 int ticks; member 539 pm121_sys_state[loop_id]->ticks = 1; in pm121_create_sys_fans() 594 if (--st->ticks != 0) { in pm121_sys_fans_tick() 599 st->ticks = PM121_SYS_INTERVAL; in pm121_sys_fans_tick() 674 pm121_cpu_state->ticks = 1; in pm121_create_cpu_fans() 724 if (--st->ticks != 0) { in pm121_cpu_fans_tick() 729 st->ticks = PM121_CPU_INTERVAL; in pm121_cpu_fans_tick()
|
/drivers/gpu/drm/msm/ |
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)
|
/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 336 static int sja1105_ptpclkval_read(struct sja1105_private *priv, u64 *ticks, in sja1105_ptpclkval_read() argument 341 return sja1105_xfer_u64(priv, SPI_READ, regs->ptpclkval, ticks, in sja1105_ptpclkval_read() 346 static int sja1105_ptpclkval_write(struct sja1105_private *priv, u64 ticks, in sja1105_ptpclkval_write() argument 351 return sja1105_xfer_u64(priv, SPI_WRITE, regs->ptpclkval, &ticks, in sja1105_ptpclkval_write() 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 534 rc = sja1105_ptpclkval_read(priv, &ticks, ptp_sts); in __sja1105_ptp_gettimex() 540 *ns = sja1105_ticks_to_ns(ticks); in __sja1105_ptp_gettimex() [all …]
|
/drivers/acpi/acpica/ |
D | hwtimer.c | 60 acpi_status acpi_get_timer(u32 * ticks) in ACPI_EXPORT_SYMBOL() 67 if (!ticks) { in ACPI_EXPORT_SYMBOL() 82 *ticks = (u32)timer_value; in ACPI_EXPORT_SYMBOL()
|
/drivers/md/ |
D | dm-stats.c | 29 unsigned long long ticks[2]; member 589 p->ticks[idx] += duration_jiffies; in dm_stat_for_entry() 592 p->ticks[idx] += stats_aux->duration_ns; in dm_stat_for_entry() 720 shared->tmp.ticks[READ] = 0; in __dm_stat_init_temporary_percpu_totals() 721 shared->tmp.ticks[WRITE] = 0; in __dm_stat_init_temporary_percpu_totals() 738 shared->tmp.ticks[READ] += READ_ONCE(p->ticks[READ]); in __dm_stat_init_temporary_percpu_totals() 739 shared->tmp.ticks[WRITE] += READ_ONCE(p->ticks[WRITE]); in __dm_stat_init_temporary_percpu_totals() 771 p->ticks[READ] -= shared->tmp.ticks[READ]; in __dm_stat_clear() 772 p->ticks[WRITE] -= shared->tmp.ticks[WRITE]; in __dm_stat_clear() 883 dm_jiffies_to_msec64(s, shared->tmp.ticks[READ]), in dm_stats_print() [all …]
|
/drivers/iio/chemical/ |
D | sgp40.c | 164 u32 ticks; in sgp40_measure_resistance_raw() local 172 ticks = (data->rht / 10) * 65535 / 10000; in sgp40_measure_resistance_raw() 173 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between 0 .. 100 %rH */ in sgp40_measure_resistance_raw() 177 ticks = ((data->temp + 45000) / 10 ) * 65535 / 17500; in sgp40_measure_resistance_raw() 178 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between -45 .. +130 °C */ in sgp40_measure_resistance_raw()
|
/drivers/pps/ |
D | pps.c | 63 unsigned long ticks; in pps_cdev_pps_fetch() local 68 ticks = fdata->timeout.sec * HZ; in pps_cdev_pps_fetch() 69 ticks += fdata->timeout.nsec / (NSEC_PER_SEC / HZ); in pps_cdev_pps_fetch() 71 if (ticks != 0) { in pps_cdev_pps_fetch() 75 ticks); in pps_cdev_pps_fetch()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/ |
D | kernel.fuc | 243 // 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
|
/drivers/clocksource/ |
D | em_sti.c | 100 u64 ticks; in em_sti_count() local 109 ticks = (u64)(em_sti_read(p, STI_COUNT_H) & 0xffff) << 32; in em_sti_count() 110 ticks |= em_sti_read(p, STI_COUNT_L); in em_sti_count() 113 return ticks; in em_sti_count()
|