Lines Matching +full:little +full:- +full:endian
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project.
5 * Copyright (c) 2001-2005 Anton Altaparmakov
14 #include "endian.h"
19 * utc2ntfs - convert Linux UTC time to NTFS time
23 * that in little endian format.
26 * and a long tv_nsec where tv_sec is the number of 1-second intervals since
27 * 1st January 1970, 00:00:00 UTC and tv_nsec is the number of 1-nano-second
31 * measured as the number of 100-nano-second intervals since 1st January 1601,
37 * Convert the seconds to 100ns intervals, add the nano-seconds in utc2ntfs()
45 * get_current_ntfs_time - get the current time in little endian NTFS format
48 * NTFS time and return that in little endian format.
59 * ntfs2utc - convert NTFS time to Linux time
60 * @time: NTFS time (little endian) to convert to Linux UTC
62 * Convert the little endian NTFS time @time to its corresponding Linux UTC
66 * and a long tv_nsec where tv_sec is the number of 1-second intervals since
67 * 1st January 1970, 00:00:00 UTC and tv_nsec is the number of 1-nano-second
71 * measured as the number of 100 nano-second intervals since 1st January 1601,
79 u64 t = (u64)(sle64_to_cpu(time) - NTFS_TIME_OFFSET); in ntfs2utc()
81 * Convert the time to 1-second intervals and the remainder to in ntfs2utc()
82 * 1-nano-second intervals. in ntfs2utc()