Home
last modified time | relevance | path

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

/kernel/time/
Dtime.c335 const unsigned int min, const unsigned int sec) in mktime64() argument
350 )*60 + sec; /* finally seconds */ in mktime64()
368 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec) in set_normalized_timespec() argument
378 ++sec; in set_normalized_timespec()
383 --sec; in set_normalized_timespec()
385 ts->tv_sec = sec; in set_normalized_timespec()
448 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() argument
458 ++sec; in set_normalized_timespec64()
463 --sec; in set_normalized_timespec64()
465 ts->tv_sec = sec; in set_normalized_timespec64()
[all …]
Dntp.c798 s64 sec; /* seconds */ member
807 .sec = ts.tv_sec, in pps_normalize_ts()
813 norm.sec++; in pps_normalize_ts()
881 if (freq_norm.sec > (2 << pps_shift)) { in hardpps_update_freq()
887 freq_norm.sec); in hardpps_update_freq()
896 freq_norm.sec); in hardpps_update_freq()
998 if ((freq_norm.sec == 0) || in __hardpps()
999 (freq_norm.nsec > MAXFREQ * freq_norm.sec) || in __hardpps()
1000 (freq_norm.nsec < -MAXFREQ * freq_norm.sec)) { in __hardpps()
1011 if (freq_norm.sec >= (1 << pps_shift)) { in __hardpps()
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()
Dclocksource.c704 u64 sec; in __clocksource_update_freq_scale() local
720 sec = cs->mask; in __clocksource_update_freq_scale()
721 do_div(sec, freq); in __clocksource_update_freq_scale()
722 do_div(sec, scale); in __clocksource_update_freq_scale()
723 if (!sec) in __clocksource_update_freq_scale()
724 sec = 1; in __clocksource_update_freq_scale()
725 else if (sec > 600 && cs->mask > UINT_MAX) in __clocksource_update_freq_scale()
726 sec = 600; in __clocksource_update_freq_scale()
729 NSEC_PER_SEC / scale, sec * scale); in __clocksource_update_freq_scale()
/kernel/livepatch/
Dcore.c270 Elf_Shdr *sec; in klp_write_object_relocations() local
279 sec = pmod->klp_info->sechdrs + i; in klp_write_object_relocations()
280 secname = pmod->klp_info->secstrings + sec->sh_name; in klp_write_object_relocations()
281 if (!(sec->sh_flags & SHF_RELA_LIVEPATCH)) in klp_write_object_relocations()
300 ret = klp_resolve_symbols(sec, pmod); in klp_write_object_relocations()
/kernel/
Dmodule.c375 unsigned int sec = find_sec(info, name); in section_objs() local
378 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
379 return (void *)info->sechdrs[sec].sh_addr; in section_objs()
1500 Elf_Shdr *sec = &info->sechdrs[i]; in add_sect_attrs() local
1501 if (sect_empty(sec)) in add_sect_attrs()
1503 sattr->address = sec->sh_addr; in add_sect_attrs()
1504 sattr->name = kstrdup(info->secstrings + sec->sh_name, in add_sect_attrs()
2566 const Elf_Shdr *sec; in is_core_symbol() local
2578 sec = sechdrs + src->st_shndx; in is_core_symbol()
2579 if (!(sec->sh_flags & SHF_ALLOC) in is_core_symbol()
[all …]
/kernel/events/
Dcore.c3193 u64 sec = NSEC_PER_SEC; in perf_calculate_period() local
3234 REDUCE_FLS(sec, count); in perf_calculate_period()
3241 REDUCE_FLS(count, sec); in perf_calculate_period()
3245 dividend = count * sec; in perf_calculate_period()
3247 dividend = count * sec; in perf_calculate_period()