Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 10 of 10) sorted by relevance

/kernel/time/
Dvsyscall.c20 u64 nsec, sec; in update_vdso_data() local
33 vdso_ts->sec = tk->xtime_sec; in update_vdso_data()
38 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_data()
44 vdso_ts->sec++; in update_vdso_data()
49 sec = vdso_ts->sec; in update_vdso_data()
51 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_data()
56 vdso_ts->sec = sec; in update_vdso_data()
60 vdso_ts->sec++; in update_vdso_data()
66 vdso_ts->sec = tk->raw_sec; in update_vdso_data()
71 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_data()
[all …]
Dtime.c435 const unsigned int min, const unsigned int sec) in mktime64() argument
450 )*60 + sec; /* finally seconds */ in mktime64()
523 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() argument
533 ++sec; in set_normalized_timespec64()
538 --sec; in set_normalized_timespec64()
540 ts->tv_sec = sec; in set_normalized_timespec64()
629 __timespec64_to_jiffies(u64 sec, long nsec) in __timespec64_to_jiffies() argument
633 if (sec >= MAX_SEC_IN_JIFFIES){ in __timespec64_to_jiffies()
634 sec = MAX_SEC_IN_JIFFIES; in __timespec64_to_jiffies()
637 return ((sec * SEC_CONVERSION) + in __timespec64_to_jiffies()
[all …]
Dntp.c807 s64 sec; /* seconds */ member
816 .sec = ts.tv_sec, in pps_normalize_ts()
822 norm.sec++; in pps_normalize_ts()
890 if (freq_norm.sec > (2 << pps_shift)) { in hardpps_update_freq()
896 freq_norm.sec); in hardpps_update_freq()
905 freq_norm.sec); in hardpps_update_freq()
1007 if ((freq_norm.sec == 0) || in __hardpps()
1008 (freq_norm.nsec > MAXFREQ * freq_norm.sec) || in __hardpps()
1009 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) { in __hardpps()
1020 if (freq_norm.sec >= (1 << pps_shift)) { in __hardpps()
Dclockevents.c474 u64 sec; in clockevents_config() local
484 sec = dev->max_delta_ticks; in clockevents_config()
485 do_div(sec, freq); in clockevents_config()
486 if (!sec) in clockevents_config()
487 sec = 1; in clockevents_config()
488 else if (sec > 600 && dev->max_delta_ticks > UINT_MAX) in clockevents_config()
489 sec = 600; in clockevents_config()
491 clockevents_calc_mult_shift(dev, freq, sec); in clockevents_config()
Dclocksource.c853 u64 sec; in __clocksource_update_freq_scale() local
869 sec = cs->mask; in __clocksource_update_freq_scale()
870 do_div(sec, freq); in __clocksource_update_freq_scale()
871 do_div(sec, scale); in __clocksource_update_freq_scale()
872 if (!sec) in __clocksource_update_freq_scale()
873 sec = 1; in __clocksource_update_freq_scale()
874 else if (sec > 600 && cs->mask > UINT_MAX) in __clocksource_update_freq_scale()
875 sec = 600; in __clocksource_update_freq_scale()
878 NSEC_PER_SEC / scale, sec * scale); in __clocksource_update_freq_scale()
/kernel/livepatch/
Dcore.c254 Elf_Shdr *sec; in klp_write_object_relocations() local
263 sec = pmod->klp_info->sechdrs + i; in klp_write_object_relocations()
264 secname = pmod->klp_info->secstrings + sec->sh_name; in klp_write_object_relocations()
265 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_write_object_relocations()
284 ret = klp_resolve_symbols(sec, pmod); in klp_write_object_relocations()
/kernel/
Dkexec_file.c1137 Elf_Shdr *sec; in kexec_purgatory_get_set_symbol() local
1150 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
1152 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
1158 sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; in kexec_purgatory_get_set_symbol()
Dmodule.c370 unsigned int sec = find_sec(info, name); in section_objs() local
373 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
374 return (void *)info->sechdrs[sec].sh_addr; in section_objs()
1562 Elf_Shdr *sec = &info->sechdrs[i]; in add_sect_attrs() local
1563 if (sect_empty(sec)) in add_sect_attrs()
1565 sattr->address = sec->sh_addr; in add_sect_attrs()
1566 sattr->name = kstrdup(info->secstrings + sec->sh_name, in add_sect_attrs()
2661 const Elf_Shdr *sec; in is_core_symbol() local
2673 sec = sechdrs + src->st_shndx; in is_core_symbol()
2674 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol()
[all …]
/kernel/events/
Dcore.c3592 u64 sec = NSEC_PER_SEC; in perf_calculate_period() local
3633 REDUCE_FLS(sec, count); in perf_calculate_period()
3640 REDUCE_FLS(count, sec); in perf_calculate_period()
3644 dividend = count * sec; in perf_calculate_period()
3646 dividend = count * sec; in perf_calculate_period()
/kernel/trace/
Dtrace.c7131 u64 sec = err->info.ts; in tracing_err_log_seq_show() local
7134 nsec = do_div(sec, NSEC_PER_SEC); in tracing_err_log_seq_show()
7135 seq_printf(m, "[%5llu.%06u] %s%s", sec, nsec / 1000, in tracing_err_log_seq_show()