Home
last modified time | relevance | path

Searched refs:stime (Results 1 – 25 of 50) sorted by relevance

12

/linux/sound/core/
H A Dhrtimer.c33 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback() local
34 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
42 stime->in_callback = true; in snd_hrtimer_callback()
51 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
59 stime->in_callback = false; in snd_hrtimer_callback()
65 struct snd_hrtimer *stime; in snd_hrtimer_open() local
67 stime = kzalloc_obj(*stime); in snd_hrtimer_open()
68 if (!stime) in snd_hrtimer_open()
70 stime->timer = t; in snd_hrtimer_open()
71 hrtimer_setup(&stime->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
[all …]
/linux/arch/powerpc/kernel/
H A Dtime.c171 unsigned long now, unsigned long stime) in vtime_delta_scaled() argument
194 stime_scaled = stime; in vtime_delta_scaled()
196 if (deltascaled != stime + utime) { in vtime_delta_scaled()
198 stime_scaled = deltascaled * stime / (stime + utime); in vtime_delta_scaled()
214 unsigned long now, stime; in vtime_delta() local
219 stime = now - acct->starttime; in vtime_delta()
222 *stime_scaled = vtime_delta_scaled(acct, now, stime); in vtime_delta()
230 return stime; in vtime_delta()
234 unsigned long *stime, unsigned long *stime_scaled) in vtime_delta_kernel() argument
238 *stime = vtime_delta(acct, stime_scaled, &steal_time); in vtime_delta_kernel()
[all …]
/linux/kernel/
H A Dtsacct.c25 u64 utime, stime, utimescaled, stimescaled; in bacct_add_tsk() local
67 task_cputime(tsk, &utime, &stime); in bacct_add_tsk()
69 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk()
124 u64 utime, u64 stime) in __acct_update_integrals() argument
131 time = stime + utime; in __acct_update_integrals()
153 u64 utime, stime; in acct_update_integrals() local
157 task_cputime(tsk, &utime, &stime); in acct_update_integrals()
158 __acct_update_integrals(tsk, utime, stime); in acct_update_integrals()
168 __acct_update_integrals(tsk, tsk->utime, tsk->stime); in acct_account_cputime()
H A Ddelayacct.c151 u64 utime, stime, stimescaled, utimescaled; in delayacct_add_tsk()
156 task_cputime(tsk, &utime, &stime); in delayacct_add_tsk()
158 tmp += utime + stime; in delayacct_add_tsk()
145 u64 utime, stime, stimescaled, utimescaled; delayacct_add_tsk() local
H A Dacct.c560 u64 utime, stime; in acct_collect() local
589 task_cputime(current, &utime, &stime); in acct_collect()
591 pacct->ac_stime += stime; in acct_collect()
H A Dtaskstats.c218 u64 delta, utime, stime; in fill_stats_for_tgid() local
254 task_cputime(tsk, &utime, &stime); in fill_stats_for_tgid()
256 stats->ac_stime += div_u64(stime, NSEC_PER_USEC); in fill_stats_for_tgid()
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage_rcu_tasks_trace.c90 long stime; in kthread_pid_ticks() local
102 if (fscanf(f, "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %ld", &stime) != 1) { in kthread_pid_ticks()
107 return stime; in kthread_pid_ticks()
196 res->stime = ticks - ctx.prev_kthread_stime; in measure()
221 iter, res->stime / (double)res->gp_ct); in report_progress()
/linux/kernel/cgroup/
H A Drstat.c543 dst_bstat->cputime.stime += src_bstat->cputime.stime; in cgroup_base_stat_add()
555 dst_bstat->cputime.stime -= src_bstat->cputime.stime; in cgroup_base_stat_sub()
649 rstatbc->bstat.cputime.stime += delta_exec; in __cgroup_account_cputime_field()
690 cputime->stime += sys; in root_cgroup_cputime()
723 &bstat.cputime.utime, &bstat.cputime.stime); in cgroup_base_stat_cputime_show()
731 do_div(bstat.cputime.stime, NSEC_PER_USEC); in cgroup_base_stat_cputime_show()
740 bstat.cputime.stime, in cgroup_base_stat_cputime_show()
/linux/tools/testing/selftests/sched_ext/
H A Drt_stall.c90 long utime, stime; in get_process_runtime() local
103 &utime, &stime); in get_process_runtime()
112 long total_time = utime + stime; in get_process_runtime()
/linux/kernel/sched/
H A Dcpuacct.c276 cputime.stime += cpustat[CPUTIME_SYSTEM]; in cpuacct_stats_show()
277 cputime.stime += cpustat[CPUTIME_IRQ]; in cpuacct_stats_show()
278 cputime.stime += cpustat[CPUTIME_SOFTIRQ]; in cpuacct_stats_show()
/linux/include/linux/sched/
H A Dtypes.h18 u64 stime; member
/linux/io_uring/
H A Dsqpoll.c181 u64 utime, stime; in io_sq_cpu_usec() local
183 task_cputime_adjusted(tsk, &utime, &stime); in io_sq_cpu_usec()
184 do_div(stime, 1000); in io_sq_cpu_usec()
185 return stime; in io_sq_cpu_usec()
/linux/arch/powerpc/include/asm/
H A Daccounting.h13 unsigned long stime; member
H A Dcputime.h59 acct->stime += (tb - acct->starttime); in account_cpu_user_exit()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c86 ktime_t *stime, ktime_t *etime) in nouveau_display_scanoutpos_head() argument
111 if (stime) *stime = ns_to_ktime(args.time[0]); in nouveau_display_scanoutpos_head()
120 ktime_t *stime, ktime_t *etime, in nouveau_display_scanoutpos() argument
124 stime, etime); in nouveau_display_scanoutpos()
H A Dnouveau_display.h59 ktime_t *stime, ktime_t *etime,
/linux/tools/testing/selftests/bpf/
H A Dbench.h49 unsigned int stime;
48 unsigned int stime; global() member
/linux/drivers/gpu/drm/vc4/
H A Dvc4_crtc.c109 ktime_t *stime, ktime_t *etime, in vc4_crtc_get_scanout_position() argument
127 if (stime) in vc4_crtc_get_scanout_position()
128 *stime = ktime_get(); in vc4_crtc_get_scanout_position()
211 if (stime) in vc4_crtc_get_scanout_position()
212 *stime = vc4_crtc->t_vblank; in vc4_crtc_get_scanout_position()
/linux/fs/btrfs/
H A Dioctl.c77 struct btrfs_ioctl_timespec_32 stime; /* in */ member
1997 subvol_info->stime.sec = btrfs_stack_timespec_sec(&root_item->stime); in btrfs_ioctl_get_subvol_info()
1998 subvol_info->stime.nsec = btrfs_stack_timespec_nsec(&root_item->stime); in btrfs_ioctl_get_subvol_info()
3886 btrfs_set_stack_timespec_sec(&root_item->stime, sa->stime.sec); in _btrfs_ioctl_set_received_subvol()
3887 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); in _btrfs_ioctl_set_received_subvol()
3935 args64->stime.sec = args32->stime.sec; in btrfs_ioctl_set_received_subvol_32()
3936 args64->stime.nsec = args32->stime.nsec; in btrfs_ioctl_set_received_subvol_32()
3948 args32->stime.sec = args64->stime.sec; in btrfs_ioctl_set_received_subvol_32()
3949 args32->stime.nsec = args64->stime.nsec; in btrfs_ioctl_set_received_subvol_32()
/linux/drivers/isdn/mISDN/
H A Dstack.c198 u64 utime, stime; in mISDNStackd() local
301 task_cputime(st->thread, &utime, &stime); in mISDNStackd()
304 dev_name(&st->dev->dev), utime, stime); in mISDNStackd()
/linux/tools/testing/selftests/wireguard/qemu/
H A Dinit.c79 if (stime(&(time_t){1433512680}) < 0) in set_time()
/linux/arch/x86/kernel/
H A Dapm_32.c906 u64 stime, utime; in apm_cpu_idle() local
913 task_cputime(current, &utime, &stime); in apm_cpu_idle()
919 idle_percentage = nsecs_to_jiffies(stime - last_stime); in apm_cpu_idle()
928 last_stime = stime; in apm_cpu_idle()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_crtc.c903 ktime_t *stime, in lsdc_crtc_get_scanout_position() argument
921 if (stime) in lsdc_crtc_get_scanout_position()
922 *stime = ktime_get(); in lsdc_crtc_get_scanout_position()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_display.c1609 int *hpos, ktime_t *stime, ktime_t *etime, in amdgpu_display_get_crtc_scanoutpos() argument
1621 if (stime) in amdgpu_display_get_crtc_scanoutpos()
1622 *stime = ktime_get(); in amdgpu_display_get_crtc_scanoutpos()
1731 int *hpos, ktime_t *stime, ktime_t *etime, in amdgpu_crtc_get_scanout_position() argument
1738 stime, etime, mode); in amdgpu_crtc_get_scanout_position()
/linux/drivers/power/supply/
H A Dlp8788-charger.c606 static const char * const stime[] = { in lp8788_show_eoc_time() local
615 return sysfs_emit(buf, "End Of Charge Time: %s\n", stime[val]); in lp8788_show_eoc_time()

12