Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 9 of 9) 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.c40 static bool nsec_valid(long nsec) in nsec_valid() argument
42 if (nsec == UTIME_OMIT || nsec == UTIME_NOW) in nsec_valid()
45 return nsec >= 0 && nsec <= 999999999; in nsec_valid()
Dselect.c274 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec) in poll_select_set_timeout() argument
276 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
282 if (!sec && !nsec) { in poll_select_set_timeout()
/fs/adfs/
Dinode.c178 s64 nsec; in adfs_adfs2unix_time() local
189 nsec = (((s64) high << 32) | (s64) low) * 10000000; /* cs to ns */ in adfs_adfs2unix_time()
192 if (nsec < nsec_unix_epoch_diff_risc_os_epoch) in adfs_adfs2unix_time()
196 nsec -= nsec_unix_epoch_diff_risc_os_epoch; in adfs_adfs2unix_time()
198 *tv = ns_to_timespec(nsec); in adfs_adfs2unix_time()
/fs/btrfs/
Dioctl.c72 __u32 nsec; member
5191 sa->rtime.nsec = ct.tv_nsec; in _btrfs_ioctl_set_received_subvol()
5204 btrfs_set_stack_timespec_nsec(&root_item->stime, sa->stime.nsec); in _btrfs_ioctl_set_received_subvol()
5206 btrfs_set_stack_timespec_nsec(&root_item->rtime, sa->rtime.nsec); in _btrfs_ioctl_set_received_subvol()
5257 args64->stime.nsec = args32->stime.nsec; in btrfs_ioctl_set_received_subvol_32()
5259 args64->rtime.nsec = args32->rtime.nsec; in btrfs_ioctl_set_received_subvol_32()
5270 args32->stime.nsec = args64->stime.nsec; in btrfs_ioctl_set_received_subvol_32()
5272 args32->rtime.nsec = args64->rtime.nsec; in btrfs_ioctl_set_received_subvol_32()
Dctree.h1734 BTRFS_SETGET_FUNCS(timespec_nsec, struct btrfs_timespec, nsec, 32);
1736 BTRFS_SETGET_STACK_FUNCS(stack_timespec_nsec, struct btrfs_timespec, nsec, 32);
/fs/fuse/
Ddir.c66 static u64 time_to_jiffies(u64 sec, u32 nsec) in time_to_jiffies() argument
68 if (sec || nsec) { in time_to_jiffies()
71 min_t(u32, nsec, NSEC_PER_SEC - 1) in time_to_jiffies()
/fs/ocfs2/
Ddlmglue.c2091 u32 nsec = spec->tv_nsec; in ocfs2_pack_timespec() local
2093 res = (sec << OCFS2_SEC_SHIFT) | (nsec & OCFS2_NSEC_MASK); in ocfs2_pack_timespec()
/fs/nfs/
Dnfs4xdr.c4163 uint32_t nsec; in decode_attr_time() local
4169 nsec = be32_to_cpup(p); in decode_attr_time()
4171 time->tv_nsec = (long)nsec; in decode_attr_time()