/base/powermgr/thermal_manager/services/native/src/thermal_observer/ |
H A D | thermal_service_subscriber.cpp | 90 int32_t sec = 0; in SetHistoryTypeTempMap() local 92 sec = static_cast<int32_t>(difftime(endTime_, startTime_)) / magnification_; in SetHistoryTypeTempMap() 94 THERMAL_HILOGD(COMP_SVC, "SetHistoryTypeTempMap: sec=%{public}d", sec); in SetHistoryTypeTempMap() 101 if (sec == SEC_MIN_NUM) { in SetHistoryTypeTempMap() 102 rate = (sum / THOUSAND_UNIT / sec) * SEC_MIN_NUM; in SetHistoryTypeTempMap()
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | powerpc-hcalls.py | 173 def powerpc__hcall_exit(name, context, cpu, sec, nsec, pid, comm, callchain, 176 diff = nsecs(sec, nsec) - d_enter[cpu][opcode] 197 def powerpc__hcall_entry(event_name, context, cpu, sec, nsec, pid, comm, 200 d_enter[cpu][opcode] = nsecs(sec, nsec) 202 d_enter[cpu] = {opcode: nsecs(sec, nsec)}
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | powerpc-hcalls.py | 173 def powerpc__hcall_exit(name, context, cpu, sec, nsec, pid, comm, callchain, 176 diff = nsecs(sec, nsec) - d_enter[cpu][opcode] 197 def powerpc__hcall_entry(event_name, context, cpu, sec, nsec, pid, comm, 200 d_enter[cpu][opcode] = nsecs(sec, nsec) 202 d_enter[cpu] = {opcode: nsecs(sec, nsec)}
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
H A D | utimensat.c | 22 const long sec = 123840; variable 36 struct timespec times[] = {{.tv_sec = 0}, {.tv_sec = sec}}; in utimensat_0100() 51 if (statbuf.st_mtim.tv_sec != sec) { in utimensat_0100() 86 struct timespec times[] = {{.tv_sec = 0}, {.tv_sec = sec}}; in utimensat_time64_0100() 101 if (statbuf.st_mtim.tv_sec != sec) { in utimensat_time64_0100()
|
/third_party/openssl/test/ |
H A D | time_offset_test.c | 72 int day, sec; in test_offset() local 79 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset() 87 else if (sec > 0) in test_offset() 89 else if (sec < 0) in test_offset() 95 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | module.h | 74 static inline int get_plt_idx(unsigned long val, Elf_Shdr *sechdrs, const struct mod_section *sec) in get_plt_idx() argument 77 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr; in get_plt_idx() 79 for (i = 0; i < sec->num_entries; i++) { in get_plt_idx() 103 const struct mod_section *sec) in get_got_entry() 106 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr; in get_got_entry() 108 for (i = 0; i < sec->num_entries; i++) in get_got_entry() 101 get_got_entry(Elf_Addr val, Elf_Shdr *sechdrs, const struct mod_section *sec) get_got_entry() argument
|
/kernel/linux/linux-5.10/arch/mips/dec/ |
H A D | time.c | 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 30 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock64() 42 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock64() 47 sec = bcd2bin(sec); in read_persistent_clock64() 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
|
/kernel/linux/linux-6.6/arch/mips/dec/ |
H A D | time.c | 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 30 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock64() 42 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock64() 47 sec = bcd2bin(sec); in read_persistent_clock64() 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
|
/kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
H A D | module.h | 68 static inline int get_plt_idx(unsigned long val, Elf_Shdr *sechdrs, const struct mod_section *sec) in get_plt_idx() argument 71 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr; in get_plt_idx() 73 for (i = 0; i < sec->num_entries; i++) { in get_plt_idx() 97 const struct mod_section *sec) in get_got_entry() 100 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr; in get_got_entry() 102 for (i = 0; i < sec->num_entries; i++) in get_got_entry() 95 get_got_entry(Elf_Addr val, Elf_Shdr *sechdrs, const struct mod_section *sec) get_got_entry() argument
|
/kernel/linux/linux-6.6/arch/riscv/include/asm/ |
H A D | module.h | 37 const struct mod_section *sec) in get_got_entry() 39 struct got_entry *got = (struct got_entry *)(sec->shdr->sh_addr); in get_got_entry() 41 for (i = 0; i < sec->num_entries; i++) { in get_got_entry() 90 static inline int get_got_plt_idx(unsigned long val, const struct mod_section *sec) in get_got_plt_idx() argument 92 struct got_entry *got_plt = (struct got_entry *)sec->shdr->sh_addr; in get_got_plt_idx() 94 for (i = 0; i < sec->num_entries; i++) { in get_got_plt_idx() 36 get_got_entry(unsigned long val, const struct mod_section *sec) get_got_entry() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_hwtstamp.c | 60 static int init_systime(void __iomem *ioaddr, u32 sec, u32 nsec) in init_systime() argument 64 writel(sec, ioaddr + PTP_STSUR); in init_systime() 101 static int adjust_systime(void __iomem *ioaddr, u32 sec, u32 nsec, in adjust_systime() argument 108 /* If the new sec value needs to be subtracted with in adjust_systime() 113 sec = -sec; in adjust_systime() 122 writel(sec, ioaddr + PTP_STSUR); in adjust_systime()
|
/kernel/linux/linux-5.10/scripts/ |
H A D | extract-sys-certs.pl | 107 foreach my $sec (@sections) { 108 my $s_name = $sec->{name}; 109 my $s_vma = $sec->{vma}; 110 my $s_len = $sec->{len}; 111 my $s_foff = $sec->{foff}; 135 $s = $sec;
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | xattr.h | 37 struct reiserfs_security_handle *sec); 40 struct reiserfs_security_handle *sec); 41 void reiserfs_security_free(struct reiserfs_security_handle *sec); 103 struct reiserfs_security_handle *sec) in reiserfs_security_init() 110 struct reiserfs_security_handle *sec) in reiserfs_security_write() 114 static inline void reiserfs_security_free(struct reiserfs_security_handle *sec) in reiserfs_security_free() argument 100 reiserfs_security_init(struct inode *dir, struct inode *inode, const struct qstr *qstr, struct reiserfs_security_handle *sec) reiserfs_security_init() argument 108 reiserfs_security_write(struct reiserfs_transaction_handle *th, struct inode *inode, struct reiserfs_security_handle *sec) reiserfs_security_write() argument
|
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | xattr.h | 38 struct reiserfs_security_handle *sec); 41 struct reiserfs_security_handle *sec); 42 void reiserfs_security_free(struct reiserfs_security_handle *sec); 104 struct reiserfs_security_handle *sec) in reiserfs_security_init() 111 struct reiserfs_security_handle *sec) in reiserfs_security_write() 115 static inline void reiserfs_security_free(struct reiserfs_security_handle *sec) in reiserfs_security_free() argument 101 reiserfs_security_init(struct inode *dir, struct inode *inode, const struct qstr *qstr, struct reiserfs_security_handle *sec) reiserfs_security_init() argument 109 reiserfs_security_write(struct reiserfs_transaction_handle *th, struct inode *inode, struct reiserfs_security_handle *sec) reiserfs_security_write() argument
|
/kernel/linux/linux-6.6/scripts/ |
H A D | extract-sys-certs.pl | 107 foreach my $sec (@sections) { 108 my $s_name = $sec->{name}; 109 my $s_vma = $sec->{vma}; 110 my $s_len = $sec->{len}; 111 my $s_foff = $sec->{foff}; 135 $s = $sec;
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | dw_wdt.c | 79 unsigned int sec; member 134 if (dw_wdt->timeouts[idx].sec >= timeout) in dw_wdt_find_best_top() 143 return dw_wdt->timeouts[idx].sec; in dw_wdt_find_best_top() 155 if (dw_wdt->timeouts[idx].sec) in dw_wdt_get_min_timeout() 159 return dw_wdt->timeouts[idx].sec; in dw_wdt_get_min_timeout() 167 msec = (u64)timeout->sec * MSEC_PER_SEC + timeout->msec; in dw_wdt_get_max_timeout_ms() 186 return dw_wdt->timeouts[idx].sec * dw_wdt->rmod; in dw_wdt_get_timeout() 323 unsigned int sec; in dw_wdt_get_timeleft() local 327 sec = val / dw_wdt->rate; in dw_wdt_get_timeleft() 332 sec in dw_wdt_get_timeleft() [all...] |
/kernel/linux/linux-6.6/drivers/ptp/ |
H A D | ptp_chardev.c | 217 if (perout->on.sec > perout->period.sec || in ptp_ioctl() 218 (perout->on.sec == perout->period.sec && in ptp_ioctl() 230 if (perout->phase.sec > perout->period.sec || in ptp_ioctl() 231 (perout->phase.sec == perout->period.sec && in ptp_ioctl() 249 enable = req.perout.period.sec || req.perout.period.nsec; in ptp_ioctl() 282 precise_offset.device.sec in ptp_ioctl() [all...] |
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | linux_hrtimer.c | 112 hrtimer->set_time_reload = (UINT32)((hrtimer->_softexpires.tv.sec * US_PER_SECOND + in HrtimerHandlerRunAddNode() 144 timer._softexpires.tv.sec = hrtimer->_softexpires.tv.sec; in HrtimerHandlerRun() 189 (curHandler->_softexpires.tv.sec == timer->_softexpires.tv.sec) && in GetHandlerNodePosition() 210 (curHandler->_softexpires.tv.sec == timer->_softexpires.tv.sec) && in GetHrtimerNodePosition() 229 hrtimer->set_time_reload = (UINT32)((time.tv.sec * US_PER_SECOND + time.tv.usec) * HRTIMER_PERUS); in HrtimerListNodeInit() 278 curNode->set_time_reload = (UINT32)((time.tv.sec * US_PER_SECOND + time.tv.usec) * HRTIMER_PERUS); in ChangeNodePosition() 293 (curHandler->_softexpires.tv.sec in CancelHandlerNode() [all...] |
/third_party/lwip/src/include/lwip/apps/ |
H A D | sntp_opts.h | 50 * Define SNTP_SET_SYSTEM_TIME_US(sec, us) to set the time in microseconds 52 * define SNTP_SET_SYSTEM_TIME_NTP(sec, frac) in order to work with native 56 #define SNTP_SET_SYSTEM_TIME(sec) LWIP_UNUSED_ARG(sec) 177 * Alternatively, define SNTP_GET_SYSTEM_TIME_NTP(sec, frac) in order to 181 #define SNTP_GET_SYSTEM_TIME(sec, us) do { (sec) = 0; (us) = 0; } while(0)
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | paging.c | 121 * non paged to CPU2 paging sec in iwl_fill_paging_mem() 126 if (image->sec[sec_idx].offset == PAGING_SEPARATOR_SECTION) { in iwl_fill_paging_mem() 143 IWL_DEBUG_FW(fwrt, "Paging: load paging CSS to FW, sec = %d\n", in iwl_fill_paging_mem() 146 if (image->sec[sec_idx].len > fwrt->fw_paging_db[0].fw_paging_size) { in iwl_fill_paging_mem() 153 image->sec[sec_idx].data, in iwl_fill_paging_mem() 154 image->sec[sec_idx].len); in iwl_fill_paging_mem() 155 fwrt->fw_paging_db[0].fw_offs = image->sec[sec_idx].offset; in iwl_fill_paging_mem() 174 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() 200 (const u8 *)image->sec[sec_idx].data + offset, len); in iwl_fill_paging_mem() 201 block->fw_offs = image->sec[sec_id in iwl_fill_paging_mem() [all...] |
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | CollationFastLatinBuilder.java | 414 int sec = 0; in encodeUniqueCEs() 463 sec = CollationFastLatin.COMMON_SEC; in encodeUniqueCEs() 470 if(sec == 0) { in encodeUniqueCEs() 471 sec = CollationFastLatin.MIN_SEC_HIGH; in encodeUniqueCEs() 472 } else if(sec < CollationFastLatin.MAX_SEC_HIGH) { in encodeUniqueCEs() 473 sec += CollationFastLatin.SEC_INC; in encodeUniqueCEs() 481 if(sec == CollationFastLatin.COMMON_SEC) { in encodeUniqueCEs() 482 sec = CollationFastLatin.MIN_SEC_BEFORE; in encodeUniqueCEs() 483 } else if(sec < CollationFastLatin.MAX_SEC_BEFORE) { in encodeUniqueCEs() 484 sec in encodeUniqueCEs() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
H A D | CollationFastLatinBuilder.java | 415 int sec = 0; in encodeUniqueCEs() 464 sec = CollationFastLatin.COMMON_SEC; in encodeUniqueCEs() 471 if(sec == 0) { in encodeUniqueCEs() 472 sec = CollationFastLatin.MIN_SEC_HIGH; in encodeUniqueCEs() 473 } else if(sec < CollationFastLatin.MAX_SEC_HIGH) { in encodeUniqueCEs() 474 sec += CollationFastLatin.SEC_INC; in encodeUniqueCEs() 482 if(sec == CollationFastLatin.COMMON_SEC) { in encodeUniqueCEs() 483 sec = CollationFastLatin.MIN_SEC_BEFORE; in encodeUniqueCEs() 484 } else if(sec < CollationFastLatin.MAX_SEC_BEFORE) { in encodeUniqueCEs() 485 sec in encodeUniqueCEs() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | collationfastlatinbuilder.cpp | 445 uint32_t sec = 0; in encodeUniqueCEs() local 494 sec = CollationFastLatin::COMMON_SEC; in encodeUniqueCEs() 501 if(sec == 0) { in encodeUniqueCEs() 502 sec = CollationFastLatin::MIN_SEC_HIGH; in encodeUniqueCEs() 503 } else if(sec < CollationFastLatin::MAX_SEC_HIGH) { in encodeUniqueCEs() 504 sec += CollationFastLatin::SEC_INC; in encodeUniqueCEs() 512 if(sec == CollationFastLatin::COMMON_SEC) { in encodeUniqueCEs() 513 sec = CollationFastLatin::MIN_SEC_BEFORE; in encodeUniqueCEs() 514 } else if(sec < CollationFastLatin::MAX_SEC_BEFORE) { in encodeUniqueCEs() 515 sec in encodeUniqueCEs() [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | collationfastlatinbuilder.cpp | 445 uint32_t sec = 0; in encodeUniqueCEs() local 494 sec = CollationFastLatin::COMMON_SEC; in encodeUniqueCEs() 501 if(sec == 0) { in encodeUniqueCEs() 502 sec = CollationFastLatin::MIN_SEC_HIGH; in encodeUniqueCEs() 503 } else if(sec < CollationFastLatin::MAX_SEC_HIGH) { in encodeUniqueCEs() 504 sec += CollationFastLatin::SEC_INC; in encodeUniqueCEs() 512 if(sec == CollationFastLatin::COMMON_SEC) { in encodeUniqueCEs() 513 sec = CollationFastLatin::MIN_SEC_BEFORE; in encodeUniqueCEs() 514 } else if(sec < CollationFastLatin::MAX_SEC_BEFORE) { in encodeUniqueCEs() 515 sec in encodeUniqueCEs() [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-date.cc | 72 // ES #sec-date-constructor 295 // ES6 section 20.3.4.22 Date.prototype.setHours(hour, min, sec, ms) 319 Handle<Object> sec = args.at(3); in BUILTIN() local 320 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, sec, in BUILTIN() 321 Object::ToNumber(isolate, sec)); in BUILTIN() 322 s = sec->Number(); in BUILTIN() 357 // ES6 section 20.3.4.24 Date.prototype.setMinutes ( min, sec, ms ) 376 Handle<Object> sec = args.at(2); in BUILTIN() local 377 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, sec, in BUILTIN() 378 Object::ToNumber(isolate, sec)); in BUILTIN() 426 Handle<Object> sec = args.atOrUndefined(isolate, 1); BUILTIN() local 538 Handle<Object> sec = args.at(3); BUILTIN() local 593 Handle<Object> sec = args.at(2); BUILTIN() local 642 Handle<Object> sec = args.atOrUndefined(isolate, 1); BUILTIN() local 686 int year, month, day, weekday, hour, min, sec, ms; BUILTIN() local 692 year, month + 1, day, hour, min, sec, ms); BUILTIN() local 695 -year, month + 1, day, hour, min, sec, ms); BUILTIN() local 698 year, month + 1, day, hour, min, sec, ms); BUILTIN() local [all...] |