Lines Matching refs:dest

88 udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src)  in udf_disk_stamp_to_time()  argument
109 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time()
110 dest->tv_sec -= offset * 60; in udf_disk_stamp_to_time()
113 dest->tv_sec += (((yday * 24) + src.hour) * 60 + src.minute) * 60 + src.second; in udf_disk_stamp_to_time()
114 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
116 return dest; in udf_disk_stamp_to_time()
120 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts) in udf_time_to_disk_stamp() argument
128 if (!dest) in udf_time_to_disk_stamp()
131 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); in udf_time_to_disk_stamp()
136 dest->hour = rem / SECS_PER_HOUR; in udf_time_to_disk_stamp()
138 dest->minute = rem / 60; in udf_time_to_disk_stamp()
139 dest->second = rem % 60; in udf_time_to_disk_stamp()
154 dest->year = cpu_to_le16(y); in udf_time_to_disk_stamp()
159 dest->month = y + 1; in udf_time_to_disk_stamp()
160 dest->day = days + 1; in udf_time_to_disk_stamp()
162 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
163 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
164 dest->centiseconds * 10000) / 100; in udf_time_to_disk_stamp()
165 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
166 dest->hundredsOfMicroseconds * 100); in udf_time_to_disk_stamp()
167 return dest; in udf_time_to_disk_stamp()