Home
last modified time | relevance | path

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

/kernel/time/
Dvsyscall.c22 u64 nsec, sec; in update_vdso_data() local
35 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_data()
41 vdso_ts->sec++; in update_vdso_data()
46 sec = vdso_ts->sec; in update_vdso_data()
48 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_data()
53 vdso_ts->sec = sec; in update_vdso_data()
57 vdso_ts->sec++; in update_vdso_data()
63 vdso_ts->sec = tk->raw_sec; in update_vdso_data()
68 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_data()
88 vdso_ts->sec = tk->xtime_sec; in update_vsyscall()
[all …]
Dtime.c433 const unsigned int min, const unsigned int sec) in mktime64() argument
448 )*60 + sec; /* finally seconds */ in mktime64()
478 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() argument
488 ++sec; in set_normalized_timespec64()
493 --sec; in set_normalized_timespec64()
495 ts->tv_sec = sec; in set_normalized_timespec64()
590 u64 sec = value->tv_sec; in timespec64_to_jiffies() local
593 if (sec >= MAX_SEC_IN_JIFFIES){ in timespec64_to_jiffies()
594 sec = MAX_SEC_IN_JIFFIES; in timespec64_to_jiffies()
597 return ((sec * SEC_CONVERSION) + in timespec64_to_jiffies()
Dclockevents.c473 u64 sec; in clockevents_config() local
483 sec = dev->max_delta_ticks; in clockevents_config()
484 do_div(sec, freq); in clockevents_config()
485 if (!sec) in clockevents_config()
486 sec = 1; in clockevents_config()
487 else if (sec > 600 && dev->max_delta_ticks > UINT_MAX) in clockevents_config()
488 sec = 600; in clockevents_config()
490 clockevents_calc_mult_shift(dev, freq, sec); in clockevents_config()
Dntp.c855 s64 sec; /* seconds */ member
864 .sec = ts.tv_sec, in pps_normalize_ts()
870 norm.sec++; in pps_normalize_ts()
938 if (freq_norm.sec > (2 << pps_shift)) { in hardpps_update_freq()
944 freq_norm.sec); in hardpps_update_freq()
953 freq_norm.sec); in hardpps_update_freq()
1055 if ((freq_norm.sec == 0) || in __hardpps()
1056 (freq_norm.nsec > MAXFREQ * freq_norm.sec) || in __hardpps()
1057 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) { in __hardpps()
1068 if (freq_norm.sec >= (1 << pps_shift)) { in __hardpps()
Dclocksource.c1113 u64 sec; in __clocksource_update_freq_scale() local
1129 sec = cs->mask; in __clocksource_update_freq_scale()
1130 do_div(sec, freq); in __clocksource_update_freq_scale()
1131 do_div(sec, scale); in __clocksource_update_freq_scale()
1132 if (!sec) in __clocksource_update_freq_scale()
1133 sec = 1; in __clocksource_update_freq_scale()
1134 else if (sec > 600 && cs->mask > UINT_MAX) in __clocksource_update_freq_scale()
1135 sec = 600; in __clocksource_update_freq_scale()
1138 NSEC_PER_SEC / scale, sec * scale); in __clocksource_update_freq_scale()
Dnamespace.c146 ret.sec = off.tv_sec; in offset_from_ts()
/kernel/module/
Dsysfs.c98 Elf_Shdr *sec = &info->sechdrs[i]; in add_sect_attrs() local
100 if (sect_empty(sec)) in add_sect_attrs()
103 sattr->address = sec->sh_addr; in add_sect_attrs()
105 kstrdup(info->secstrings + sec->sh_name, GFP_KERNEL); in add_sect_attrs()
Dkallsyms.c80 const Elf_Shdr *sec; in is_core_symbol() local
92 sec = sechdrs + src->st_shndx; in is_core_symbol()
93 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol()
95 || !(sec->sh_flags & SHF_EXECINSTR) in is_core_symbol()
97 || (sec->sh_entsize & INIT_OFFSET_MASK)) in is_core_symbol()
Dmain.c208 unsigned int sec = find_sec(info, name); in section_objs() local
211 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
212 return (void *)info->sechdrs[sec].sh_addr; in section_objs()
237 unsigned int sec = find_any_sec(info, name); in any_section_objs() local
240 *num = info->sechdrs[sec].sh_size / object_size; in any_section_objs()
241 return (void *)info->sechdrs[sec].sh_addr; in any_section_objs()
/kernel/livepatch/
Dcore.c294 Elf_Shdr *sec = sechdrs + secndx; in klp_apply_section_relocs() local
301 cnt = sscanf(shstrtab + sec->sh_name, ".klp.rela.%55[^.]", in klp_apply_section_relocs()
305 shstrtab + sec->sh_name); in klp_apply_section_relocs()
312 ret = klp_resolve_symbols(sechdrs, strtab, symndx, sec, sec_objname); in klp_apply_section_relocs()
772 Elf_Shdr *sec = info->sechdrs + i; in klp_apply_object_relocs() local
774 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_apply_object_relocs()
/kernel/
Dkexec_file.c1119 Elf_Shdr *sec; in kexec_purgatory_get_set_symbol() local
1132 sec = pi->sechdrs + sym->st_shndx; in kexec_purgatory_get_set_symbol()
1134 if (sec->sh_type == SHT_NOBITS) { in kexec_purgatory_get_set_symbol()
1140 sym_buf = (char *)pi->purgatory_buf + sec->sh_offset + sym->st_value; in kexec_purgatory_get_set_symbol()
/kernel/events/
Dcore.c3991 u64 sec = NSEC_PER_SEC; in perf_calculate_period() local
4032 REDUCE_FLS(sec, count); in perf_calculate_period()
4039 REDUCE_FLS(count, sec); in perf_calculate_period()
4043 dividend = count * sec; in perf_calculate_period()
4045 dividend = count * sec; in perf_calculate_period()
/kernel/trace/
Dtrace.c8041 u64 sec = err->info.ts; in tracing_err_log_seq_show() local
8044 nsec = do_div(sec, NSEC_PER_SEC); in tracing_err_log_seq_show()
8045 seq_printf(m, "[%5llu.%06u] %s%s", sec, nsec / 1000, in tracing_err_log_seq_show()