Searched refs:ticks (Results 51 - 75 of 157) sorted by relevance

1234567

/linux-master/drivers/iio/chemical/
H A Dsgp40.c164 u32 ticks; local
172 ticks = (data->rht / 10) * 65535 / 10000;
173 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between 0 .. 100 %rH */
177 ticks = ((data->temp + 45000) / 10 ) * 65535 / 17500;
178 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between -45 .. +130 ��C */
/linux-master/drivers/net/ipa/
H A Dipa_endpoint.c940 u32 ticks; local
943 ticks = DIV_ROUND_CLOSEST(microseconds, 100);
944 if (ticks <= max)
949 ticks = DIV_ROUND_CLOSEST(microseconds, 1000);
950 if (ticks <= max)
956 ticks = DIV_ROUND_CLOSEST(microseconds, 100);
958 WARN_ON(ticks > max);
962 return ticks;
969 u32 ticks; local
979 ticks
1051 u64 ticks; local
1062 u32 ticks; local
[all...]
/linux-master/arch/m68k/mvme16x/
H A Dconfig.c415 u32 ticks; local
419 ticks = in_be32(PCCTCNT1);
422 ticks = in_be32(PCCTCNT1);
423 ticks += overflow * PCC_TIMER_CYCLES;
424 ticks += clk_total;
427 return ticks;
/linux-master/drivers/watchdog/
H A Ddigicolor_wdt.c34 static void dc_wdt_set(struct dc_wdt *wdt, u32 ticks) argument
41 writel_relaxed(ticks, wdt->base + TIMER_A_COUNT);
H A Drza_wdt.c53 unsigned int ticks; local
56 ticks = DIV_ROUND_UP(timeout * rate, DIVIDER_4BIT);
63 priv->count = 256 - ticks;
/linux-master/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.h11 /* Timestamps are in units of 8 ns clock ticks (equivalent to
21 static inline s64 sja1105_ticks_to_ns(s64 ticks) argument
23 return ticks * SJA1105_TICK_NS;
/linux-master/arch/m68k/q40/
H A Dq40ints.c109 int ql_ticks; /* 200Hz ticks since last jiffie */
114 void q40_mksound(unsigned int hz, unsigned int ticks) argument
130 sound_ticks = ticks << 1;
/linux-master/drivers/macintosh/
H A Dwindfarm_pm121.c432 int ticks; member in struct:pm121_sys_state
449 int ticks; member in struct:pm121_cpu_state
540 pm121_sys_state[loop_id]->ticks = 1;
595 if (--st->ticks != 0) {
600 st->ticks = PM121_SYS_INTERVAL;
675 pm121_cpu_state->ticks = 1;
725 if (--st->ticks != 0) {
730 st->ticks = PM121_CPU_INTERVAL;
803 /* skipping ticks */
847 * ticks t
[all...]
H A Dwindfarm_pm81.c180 int ticks; member in struct:wf_smu_sys_fans_state
249 int ticks; member in struct:wf_smu_cpu_fans_state
293 wf_smu_sys_fans->ticks = 1;
334 if (--st->ticks != 0) {
339 st->ticks = WF_SMU_SYS_FANS_INTERVAL;
426 wf_smu_cpu_fans->ticks = 1;
478 if (--st->ticks != 0) {
483 st->ticks = WF_SMU_CPU_FANS_INTERVAL;
555 /* Skipping ticks */
592 * ticks t
[all...]
/linux-master/arch/mips/fw/cfe/
H A Dcfe_api_int.h75 s64 ticks; /* current time in ticks */ member in struct:xiocb_time
/linux-master/drivers/scsi/bfa/
H A Dbfa_plog.h130 u32 ticks; member in struct:bfa_plog_s
/linux-master/drivers/clocksource/
H A Dem_sti.c100 u64 ticks; local
109 ticks = (u64)(em_sti_read(p, STI_COUNT_H) & 0xffff) << 32;
110 ticks |= em_sti_read(p, STI_COUNT_L);
113 return ticks;
/linux-master/sound/pci/emu10k1/
H A Dtimer.c21 if (delay < 5 ) /* minimum time is 5 ticks */
63 .ticks = 1024,
/linux-master/arch/m68k/atari/
H A Dtime.c81 u32 ticks; local
90 ticks = INT_TICKS - count;
91 ticks += clk_total;
94 return ticks;
/linux-master/arch/m68k/mac/
H A Dvia.c615 u32 ticks; local
633 ticks = VIA_TIMER_CYCLES - count;
634 ticks += clk_offset + clk_total;
637 return ticks;
/linux-master/drivers/ssb/
H A Dssb_private.h197 u32 ticks);
220 extern u32 ssb_extif_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks);
224 u32 ticks)
223 ssb_extif_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt, u32 ticks) argument
H A Dembedded.c23 int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) argument
26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks);
30 ssb_extif_watchdog_timer_set(&bus->extif, ticks);
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c101 u32 ticks; local
137 ret = adf_heartbeat_ms_to_ticks(accel_dev, timer_ms, &ticks);
141 ret = adf_send_admin_hb_timer(accel_dev, ticks);
H A Dadf_heartbeat.c98 u32 ticks; local
123 ret = adf_heartbeat_ms_to_ticks(accel_dev, timer_ms, &ticks);
130 *value = ticks;
/linux-master/drivers/md/
H A Ddm-stats.c29 unsigned long long ticks[2]; member in struct:dm_stat_percpu
606 p->ticks[idx] += duration_jiffies;
609 p->ticks[idx] += stats_aux->duration_ns;
737 shared->tmp.ticks[READ] = 0;
738 shared->tmp.ticks[WRITE] = 0;
755 shared->tmp.ticks[READ] += READ_ONCE(p->ticks[READ]);
756 shared->tmp.ticks[WRITE] += READ_ONCE(p->ticks[WRITE]);
789 p->ticks[REA
[all...]
/linux-master/drivers/pps/
H A Dpps.c63 unsigned long ticks; local
68 ticks = fdata->timeout.sec * HZ;
69 ticks += fdata->timeout.nsec / (NSEC_PER_SEC / HZ);
71 if (ticks != 0) {
75 ticks);
/linux-master/sound/pci/pcxhr/
H A Dpcxhr_mix22.c407 unsigned int ticks; local
449 ticks = (unsigned int)PCXHR_INPB(mgr, PCXHR_XLX_CFG);
450 ticks = (ticks & 0x03) << 8;
451 ticks |= (unsigned int)PCXHR_INPB(mgr, PCXHR_DSP_RESET);
453 if (ticks != 0)
454 calc_rate = 28224000 / ticks;
/linux-master/arch/m68k/amiga/
H A Dconfig.c510 u32 ticks; local
524 ticks = hi << 8 | lo;
526 if (ticks > jiffy_ticks / 2)
531 ticks = jiffy_ticks - ticks;
532 ticks += clk_offset + clk_total;
536 return ticks;
/linux-master/drivers/memory/
H A Dmvebu-devbus.c89 u32 *ticks)
101 *ticks = (time_ps + devbus->tick_ps - 1) / devbus->tick_ps;
104 name, time_ps, *ticks);
86 get_timing_param_ps(struct devbus *devbus, struct device_node *node, const char *name, u32 *ticks) argument
/linux-master/sound/pci/ctxfi/
H A Dcttimer.c144 static void ct_xfitimer_irq_rearm(struct ct_timer *atimer, int ticks) argument
147 if (ticks > MAX_TICKS)
148 ticks = MAX_TICKS;
149 hw->set_timer_tick(hw, ticks);

Completed in 221 milliseconds

1234567