/kernel/time/ |
D | timeconv.c | 80 long days, rem, y; in time64_to_tm() local 85 rem = remainder; in time64_to_tm() 86 rem += offset; in time64_to_tm() 87 while (rem < 0) { in time64_to_tm() 88 rem += SECS_PER_DAY; in time64_to_tm() 91 while (rem >= SECS_PER_DAY) { in time64_to_tm() 92 rem -= SECS_PER_DAY; in time64_to_tm() 96 result->tm_hour = rem / SECS_PER_HOUR; in time64_to_tm() 97 rem %= SECS_PER_HOUR; in time64_to_tm() 98 result->tm_min = rem / 60; in time64_to_tm() [all …]
|
D | time.c | 463 s32 rem; in ns_to_timespec() local 468 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec() 469 if (unlikely(rem < 0)) { in ns_to_timespec() 471 rem += NSEC_PER_SEC; in ns_to_timespec() 473 ts.tv_nsec = rem; in ns_to_timespec() 554 s32 rem; in ns_to_timespec64() local 559 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64() 560 if (unlikely(rem < 0)) { in ns_to_timespec64() 562 rem += NSEC_PER_SEC; in ns_to_timespec64() 564 ts.tv_nsec = rem; in ns_to_timespec64() [all …]
|
D | itimer.c | 31 ktime_t rem = __hrtimer_get_remaining(timer, true); in itimer_get_remtime() local 39 if (rem <= 0) in itimer_get_remtime() 40 rem = NSEC_PER_USEC; in itimer_get_remtime() 42 rem = 0; in itimer_get_remtime() 44 return ktime_to_timeval(rem); in itimer_get_remtime()
|
D | ntp.c | 404 s32 rem; in second_overflow() local 415 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow() 416 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow() 419 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow() 420 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
|
D | hrtimer.c | 1295 ktime_t rem; in __hrtimer_get_remaining() local 1299 rem = hrtimer_expires_remaining_adjusted(timer); in __hrtimer_get_remaining() 1301 rem = hrtimer_expires_remaining(timer); in __hrtimer_get_remaining() 1304 return rem; in __hrtimer_get_remaining() 1888 ktime_t rem = hrtimer_expires_remaining(&t->timer); in do_nanosleep() local 1891 if (rem <= 0) in do_nanosleep() 1893 rmt = ktime_to_timespec64(rem); in do_nanosleep()
|
D | alarmtimer.c | 748 ktime_t rem; in alarmtimer_do_nsleep() local 750 rem = ktime_sub(absexp, alarm_bases[type].gettime()); in alarmtimer_do_nsleep() 752 if (rem <= 0) in alarmtimer_do_nsleep() 754 rmt = ktime_to_timespec64(rem); in alarmtimer_do_nsleep()
|
D | timer.c | 276 int rem; in round_jiffies_common() local 289 rem = j % HZ; in round_jiffies_common() 298 if (rem < HZ/4 && !force_up) /* round down */ in round_jiffies_common() 299 j = j - rem; in round_jiffies_common() 301 j = j - rem + HZ; in round_jiffies_common()
|
D | timekeeping.c | 1000 u64 tmp, rem; in scale64_check_overflow() local 1002 tmp = div64_u64_rem(*base, div, &rem); in scale64_check_overflow() 1005 ((int)sizeof(u64)*8 - fls64(mult) < fls64(rem))) in scale64_check_overflow() 1008 rem *= mult; in scale64_check_overflow() 1010 do_div(rem, div); in scale64_check_overflow() 1011 *base = tmp + rem; in scale64_check_overflow()
|
/kernel/debug/kdb/ |
D | kdb_support.c | 747 unsigned int rem, h_offset; in debug_kmalloc() local 775 rem = best->size - size; in debug_kmalloc() 777 if (best->next == 0 && bestprev == NULL && rem < dah_overhead) in debug_kmalloc() 779 if (rem >= dah_overhead) { in debug_kmalloc() 784 h->size = rem - dah_overhead; in debug_kmalloc()
|
/kernel/locking/ |
D | lockdep_proc.c | 382 s32 rem; in snprint_time() local 385 div = div_s64_rem(nr, 1000, &rem); in snprint_time() 386 snprintf(buf, bufsiz, "%lld.%02d", (long long)div, (int)rem/10); in snprint_time()
|
/kernel/trace/ |
D | trace.c | 6115 tracing_fill_pipe_page(size_t rem, struct trace_iterator *iter) in tracing_fill_pipe_page() argument 6142 if (rem < count) { in tracing_fill_pipe_page() 6143 rem = 0; in tracing_fill_pipe_page() 6150 rem -= count; in tracing_fill_pipe_page() 6152 rem = 0; in tracing_fill_pipe_page() 6158 return rem; in tracing_fill_pipe_page() 6179 size_t rem; in tracing_splice_read_pipe() local 6207 for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { in tracing_splice_read_pipe() 6212 rem = tracing_fill_pipe_page(rem, iter); in tracing_splice_read_pipe()
|
/kernel/sched/ |
D | core.c | 7314 u32 rem; in cpu_uclamp_print() local 7327 percent = div_u64_rem(percent, POW10(UCLAMP_PERCENT_SHIFT), &rem); in cpu_uclamp_print() 7328 seq_printf(sf, "%llu.%0*u\n", percent, UCLAMP_PERCENT_SHIFT, rem); in cpu_uclamp_print()
|
/kernel/events/ |
D | core.c | 6160 unsigned int rem; in perf_output_sample_ustack() local 6182 rem = __output_copy_user(handle, (void *) sp, dump_size); in perf_output_sample_ustack() 6184 dyn_size = dump_size - rem; in perf_output_sample_ustack() 6186 perf_output_skip(handle, rem); in perf_output_sample_ustack()
|