Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 8 of 8) sorted by relevance

/fs/proc/
Duptime.c14 u64 nsec; in uptime_proc_show() local
18 nsec = 0; in uptime_proc_show()
20 nsec += (__force u64) kcpustat_cpu(i).cpustat[CPUTIME_IDLE]; in uptime_proc_show()
23 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
/fs/
Dutimes.c11 static bool nsec_valid(long nsec) in nsec_valid() argument
13 if (nsec == UTIME_OMIT || nsec == UTIME_NOW) in nsec_valid()
16 return nsec >= 0 && nsec <= 999999999; in nsec_valid()
Dselect.c273 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec) in poll_select_set_timeout() argument
275 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
281 if (!sec && !nsec) { in poll_select_set_timeout()
/fs/adfs/
Dinode.c175 s64 nsec; in adfs_adfs2unix_time() local
186 nsec = (((s64) high << 32) | (s64) low) * 10000000; /* cs to ns */ in adfs_adfs2unix_time()
189 if (nsec < nsec_unix_epoch_diff_risc_os_epoch) in adfs_adfs2unix_time()
193 nsec -= nsec_unix_epoch_diff_risc_os_epoch; in adfs_adfs2unix_time()
195 *tv = ns_to_timespec64(nsec); in adfs_adfs2unix_time()
/fs/btrfs/
Dioctl.c58 __u32 nsec; member
2677 subvol_info->ctime.nsec = btrfs_stack_timespec_nsec(&root_item->ctime); in btrfs_ioctl_get_subvol_info()
2681 subvol_info->otime.nsec = btrfs_stack_timespec_nsec(&root_item->otime); in btrfs_ioctl_get_subvol_info()
2685 subvol_info->stime.nsec = btrfs_stack_timespec_nsec(&root_item->stime); in btrfs_ioctl_get_subvol_info()
2689 subvol_info->rtime.nsec = btrfs_stack_timespec_nsec(&root_item->rtime); in btrfs_ioctl_get_subvol_info()
5048 sa->rtime.nsec = ct.tv_nsec; in _btrfs_ioctl_set_received_subvol()
5067 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); in _btrfs_ioctl_set_received_subvol()
5069 btrfs_set_stack_timespec_nsec(&root_item->rtime, sa->rtime.nsec); in _btrfs_ioctl_set_received_subvol()
5116 args64->stime.nsec = args32->stime.nsec; in btrfs_ioctl_set_received_subvol_32()
5118 args64->rtime.nsec = args32->rtime.nsec; in btrfs_ioctl_set_received_subvol_32()
[all …]
Dctree.h1583 BTRFS_SETGET_FUNCS(timespec_nsec, struct btrfs_timespec, nsec, 32);
1585 BTRFS_SETGET_STACK_FUNCS(stack_timespec_nsec, struct btrfs_timespec, nsec, 32);
/fs/fuse/
Ddir.c85 static u64 time_to_jiffies(u64 sec, u32 nsec) in time_to_jiffies() argument
87 if (sec || nsec) { in time_to_jiffies()
90 min_t(u32, nsec, NSEC_PER_SEC - 1) in time_to_jiffies()
/fs/ocfs2/
Ddlmglue.c2145 u32 nsec = spec->tv_nsec; in ocfs2_pack_timespec() local
2147 res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK); in ocfs2_pack_timespec()