| /OK3568_Linux_fs/u-boot/arch/powerpc/lib/ |
| H A D | time.c | 20 ulong ticks; in usec2ticks() local 23 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks() 25 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks() 28 return (ticks); in usec2ticks() 35 * microseconds to wait) into a number of time base ticks; then we 40 ulong ticks = usec2ticks (usec); in __udelay() local 41 wait_ticks (ticks); in __udelay() 46 unsigned long ticks2usec(unsigned long ticks) in ticks2usec() argument 50 /* usec = ticks * 1000000 / tbclk in ticks2usec() 51 * Multiplication would overflow at ~4.2e3 ticks, in ticks2usec() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm920t/ep93xx/ |
| H A D | timer.c | 24 #define TIMER_FREQ 508469 /* ticks / second */ 29 unsigned long long ticks; member 35 unsigned long long ticks = (unsigned long long)usecs * TIMER_FREQ; in usecs_to_ticks() local 36 do_div(ticks, 1000 * 1000); in usecs_to_ticks() 38 return ticks; in usecs_to_ticks() 47 timer.ticks += now - timer.last_read; in read_timer() 50 timer.ticks += TIMER_MAX_VAL - timer.last_read + now; in read_timer() 56 * Get the number of ticks (in CONFIG_SYS_HZ resolution) 64 sys_ticks = timer.ticks * CONFIG_SYS_HZ; in get_ticks() 86 target = timer.ticks + usecs_to_ticks(usec); in __udelay() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A 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() 114 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", 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() 133 dev_dbg(info->dev, "set base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_set_time() 134 base, data, ticks); in pm80x_rtc_set_time() [all …]
|
| H A D | rtc-tps6586x.c | 72 unsigned long long ticks = 0; in tps6586x_rtc_read_time() local 85 ticks <<= 8; in tps6586x_rtc_read_time() 86 ticks |= buff[i]; in tps6586x_rtc_read_time() 89 seconds = ticks >> 10; in tps6586x_rtc_read_time() 98 unsigned long long ticks; in tps6586x_rtc_set_time() local 105 ticks = (unsigned long long)seconds << 10; in tps6586x_rtc_set_time() 106 buff[0] = (ticks >> 32) & 0xff; in tps6586x_rtc_set_time() 107 buff[1] = (ticks >> 24) & 0xff; in tps6586x_rtc_set_time() 108 buff[2] = (ticks >> 16) & 0xff; in tps6586x_rtc_set_time() 109 buff[3] = (ticks >> 8) & 0xff; in tps6586x_rtc_set_time() [all …]
|
| H 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() 95 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", 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() 116 dev_dbg(info->dev, "set base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm860x_rtc_set_time() 117 base, data, ticks); in pm860x_rtc_set_time() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | timerfd.c | 41 u64 ticks; member 71 ctx->ticks++; in timerfd_triggered() 96 * wake-up requires ctx->ticks to be non zero, therefore we increment 112 ctx->ticks++; in timerfd_clock_was_set() 187 ctx->ticks = 0; in timerfd_setup() 244 if (ctx->ticks) in timerfd_poll() 256 u64 ticks = 0; in timerfd_read() local 258 if (count < sizeof(ticks)) in timerfd_read() 264 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); in timerfd_read() 268 * ticks and we do not rearm the timer. Userspace must in timerfd_read() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/timers/ |
| H A D | no_hz.rst | 2 NO_HZ: Reducing Scheduling-Clock Ticks 13 (also known as "scheduling-clock ticks" or simply "ticks"): 15 1. Never omit scheduling-clock ticks (CONFIG_HZ_PERIODIC=y or 19 2. Omit scheduling-clock ticks on idle CPUs (CONFIG_NO_HZ_IDLE=y or 23 3. Omit scheduling-clock ticks on CPUs that are either idle or that 33 Never Omit Scheduling-Clock Ticks 37 are incapable of omitting scheduling-clock ticks. It turns out that 65 Omit Scheduling-Clock Ticks For Idle CPUs 104 Omit Scheduling-Clock Ticks For CPUs With Only One Runnable Task 109 Note that omitting scheduling-clock ticks for CPUs with only one runnable [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
| H A D | mali_kbase_js_backend.c | 119 u32 ticks = atom->ticks++; in timer_callback() local 153 ticks > soft_stop_ticks) in timer_callback() 154 ticks = atom->ticks = soft_stop_ticks; in timer_callback() 157 if (ticks == soft_stop_ticks) { in timer_callback() 159 * js_devdata->soft_stop_ticks ticks. in timer_callback() 194 } else if (ticks == hard_stop_ticks) { in timer_callback() 196 * js_devdata->hard_stop_ticks_ss ticks. in timer_callback() 205 dev_warn(kbdev->dev, "JS: Job Hard-Stopped (took more than %lu ticks at %lu ms/tick)", in timer_callback() 206 (unsigned long)ticks, in timer_callback() 211 } else if (ticks == gpu_reset_ticks) { in timer_callback() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
| H A D | mali_kbase_js_backend.c | 120 u32 ticks = atom->ticks++; in timer_callback() local 148 ticks > soft_stop_ticks) in timer_callback() 149 ticks = atom->ticks = soft_stop_ticks; in timer_callback() 152 if (ticks == soft_stop_ticks) { in timer_callback() 157 * js_devdata->soft_stop_ticks ticks. in timer_callback() 187 } else if (ticks == hard_stop_ticks) { in timer_callback() 189 * js_devdata->hard_stop_ticks_ss ticks. in timer_callback() 197 dev_warn(kbdev->dev, "JS: Job Hard-Stopped (took more than %lu ticks at %lu ms/tick)", in timer_callback() 198 (unsigned long)ticks, in timer_callback() 203 } else if (ticks == gpu_reset_ticks) { in timer_callback() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/watchdog/ |
| H 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() 74 /* ticks doesn't matter anyway */ 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() 285 module_param(ticks, int, 0); [all …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | initcall.c | 13 #define TICKS_TO_US(ticks) ((ticks) / (COUNTER_FREQUENCY / 1000000)) argument 14 #define US_TO_MS(ticks) ((ticks) / 1000) argument 15 #define US_TO_US(ticks) ((ticks) % 1000) argument 18 static inline void call_get_ticks(ulong *ticks) { *ticks = get_ticks(); } in call_get_ticks() argument 20 static inline void call_get_ticks(ulong *ticks) { } in call_get_ticks() argument
|
| /OK3568_Linux_fs/kernel/drivers/hwmon/ |
| H A D | hih6130.c | 46 * hih6130_temp_ticks_to_millicelsius() - convert raw temperature ticks to 48 * @ticks: temperature ticks value received from sensor 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() 55 * Formula T = ( ticks / ( 2^14 - 2 ) ) * 165 -40 in hih6130_temp_ticks_to_millicelsius() 57 return (DIV_ROUND_CLOSEST(ticks * 1650, 16382) - 400) * 100; in hih6130_temp_ticks_to_millicelsius() 61 * hih6130_rh_ticks_to_per_cent_mille() - convert raw humidity ticks to 63 * @ticks: humidity ticks value received from sensor 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() [all …]
|
| H A D | sht21.c | 49 * sht21_temp_ticks_to_millicelsius() - convert raw temperature ticks to 51 * @ticks: temperature ticks value received from sensor 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() 64 * sht21_rh_ticks_to_per_cent_mille() - convert raw humidity ticks to 66 * @ticks: humidity ticks value received from sensor 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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | mpic_timer.c | 86 const u64 ticks, time64_t *time) in convert_ticks_to_time() argument 88 *time = (u64)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time() 91 /* the time set by the user is converted to "ticks" */ 93 time64_t time, u64 *ticks) in convert_time_to_ticks() argument 102 *ticks = (u64)time * (u64)priv->timerfreq; in convert_time_to_ticks() 138 static int set_cascade_timer(struct timer_group_priv *priv, u64 ticks, in set_cascade_timer() argument 155 tmp_ticks = div_u64_rem(ticks, MAX_TICKS_CASCADE, &rem_ticks); in set_cascade_timer() 167 u64 ticks) in get_cascade_timer() argument 175 if (ticks > max_ticks) in get_cascade_timer() 183 /* set ticks to timer */ in get_cascade_timer() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ssb/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/bcma/ |
| H A 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() 235 /* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */ 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() [all …]
|
| /OK3568_Linux_fs/u-boot/doc/SPI/ |
| H A D | README.sandbox-spi | 38 0 erase: 1 ticks, 1024000 KiB/s 8192.000 Mbps 39 1 check: 2 ticks, 512000 KiB/s 4096.000 Mbps 40 2 write: 6 ticks, 170666 KiB/s 1365.328 Mbps 41 3 read: 0 ticks, 1048576000 KiB/s -201326.-592 Mbps 43 0 erase: 1 ticks, 1024000 KiB/s 8192.000 Mbps 44 1 check: 2 ticks, 512000 KiB/s 4096.000 Mbps 45 2 write: 6 ticks, 170666 KiB/s 1365.328 Mbps 46 3 read: 0 ticks, 1048576000 KiB/s -201326.-592 Mbps
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv8/ |
| H A D | generic_timer.c | 48 unsigned long ticks = timer_read_counter(); in get_ticks() local 50 gd->arch.tbl = ticks; in get_ticks() 52 return ticks; in get_ticks() 57 ulong ticks; in usec2ticks() local 59 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks() 61 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks() 63 return ticks; in usec2ticks()
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | timer.h | 47 unsigned long ticks; /* max timer ticks per interrupt */ member 70 unsigned long sticks; /* schedule ticks */ 94 unsigned long ticks, unsigned long resolution); 101 unsigned long ticks; /* auto-load ticks when expired */ member 102 unsigned long cticks; /* current ticks */ 103 unsigned long pticks; /* accumulated ticks for callback */ 105 unsigned long lost; /* lost ticks */ 133 int snd_timer_start(struct snd_timer_instance *timeri, unsigned int ticks);
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A D | hwtimer.c | 53 * PARAMETERS: ticks - Where the timer value is returned in ACPI_EXPORT_SYMBOL() 55 * RETURN: Status and current timer value (ticks) in ACPI_EXPORT_SYMBOL() 57 * DESCRIPTION: Obtains current value of ACPI PM Timer (in ticks). in ACPI_EXPORT_SYMBOL() 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() 104 * The PM Timer's clock ticks at roughly 3.6 times per in ACPI_EXPORT_SYMBOL() 114 * 2**24 Ticks / 3,600,000 Ticks/Sec = 4.66 sec in ACPI_EXPORT_SYMBOL() 115 * 2**32 Ticks / 3,600,000 Ticks/Sec = 1193 sec or 19.88 minutes in ACPI_EXPORT_SYMBOL()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/ |
| H A D | mali_kbase_config_defaults.h | 126 * Power Manager number of ticks before shader cores are powered off 131 * Power Manager number of ticks before GPU is powered off 141 * Default minimum number of scheduling ticks before jobs are soft-stopped. 149 * Default minimum number of scheduling ticks before CL jobs are soft-stopped. 154 * Default minimum number of scheduling ticks before jobs are hard-stopped 160 * Default minimum number of scheduling ticks before CL jobs are hard-stopped. 165 * Default minimum number of scheduling ticks before jobs are hard-stopped 177 * Default minimum number of scheduling ticks before the GPU is reset to clear a 184 * Default minimum number of scheduling ticks before the GPU is reset to clear a 190 * Default minimum number of scheduling ticks before the GPU is reset to clear a
|
| /OK3568_Linux_fs/kernel/Documentation/block/ |
| H 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).
|
| /OK3568_Linux_fs/kernel/sound/isa/gus/ |
| H 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,
|
| /OK3568_Linux_fs/kernel/drivers/char/hw_random/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-rpc/ |
| H 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() 59 * been processed, so add the missed ticks. in ioc_timer_read() 61 ticks += RPC_LATCH; in ioc_timer_read() 64 return ticks; in ioc_timer_read()
|