/kernel/linux/linux-5.10/drivers/pps/ |
H A D | kapi.c | 32 ts->sec++; in pps_add_offset() 36 ts->sec--; in pps_add_offset() 38 ts->sec += offset->sec; in pps_add_offset() 164 struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 }; in pps_event()
|
/kernel/linux/linux-6.6/drivers/pps/ |
H A D | kapi.c | 32 ts->sec++; in pps_add_offset() 36 ts->sec--; in pps_add_offset() 38 ts->sec += offset->sec; in pps_add_offset() 164 struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 }; in pps_event()
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | wintzimpl.cpp | 66 int32_t hour, min, sec, mil; in getSystemTimeInformation() local 80 sec = mil/1000; in getSystemTimeInformation() 85 standardDate.wSecond = static_cast<WORD>(sec); in getSystemTimeInformation() 101 sec = mil/1000; in getSystemTimeInformation() 106 daylightDate.wSecond = static_cast<WORD>(sec); in getSystemTimeInformation()
|
/third_party/icu/icu4c/source/i18n/ |
H A D | wintzimpl.cpp | 66 int32_t hour, min, sec, mil; in getSystemTimeInformation() local 80 sec = mil/1000; in getSystemTimeInformation() 85 standardDate.wSecond = static_cast<WORD>(sec); in getSystemTimeInformation() 101 sec = mil/1000; in getSystemTimeInformation() 106 daylightDate.wSecond = static_cast<WORD>(sec); in getSystemTimeInformation()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | wintzimpl.cpp | 66 int32_t hour, min, sec, mil; in getSystemTimeInformation() local 80 sec = mil/1000; in getSystemTimeInformation() 85 standardDate.wSecond = static_cast<WORD>(sec); in getSystemTimeInformation() 101 sec = mil/1000; in getSystemTimeInformation() 106 daylightDate.wSecond = static_cast<WORD>(sec); in getSystemTimeInformation()
|
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...] |
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_pending.c | 138 int64_t time = now.sec * USECTONSEC * USECTONSEC + now.usec + (int64_t)waitMillis * USECTONSEC; in ComputeWaitPendTime() 139 outtime->sec = time / USECTONSEC / USECTONSEC; in ComputeWaitPendTime() 161 if (now.sec > outtime.sec || (now.sec == outtime.sec && now.usec >= outtime.usec)) { in TransPendWaitTime()
|
/kernel/linux/linux-5.10/arch/mips/sibyte/swarm/ |
H A D | rtc_m41t81.c | 149 * When we write sec, 10th sec is clear. It is reasonable to in m41t81_set_time() 188 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local 192 * min is valid if two reads of sec are the same. in m41t81_get_time() 196 sec = m41t81_read(M41T81REG_SC); in m41t81_get_time() 198 if (sec == m41t81_read(M41T81REG_SC)) break; in m41t81_get_time() 207 sec = bcd2bin(sec); in m41t81_get_time() 216 return mktime64(year, mon, day, hour, min, sec); in m41t81_get_time()
|
/kernel/linux/linux-6.6/arch/mips/sibyte/swarm/ |
H A D | rtc_m41t81.c | 149 * When we write sec, 10th sec is clear. It is reasonable to in m41t81_set_time() 188 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local 192 * min is valid if two reads of sec are the same. in m41t81_get_time() 196 sec = m41t81_read(M41T81REG_SC); in m41t81_get_time() 198 if (sec == m41t81_read(M41T81REG_SC)) break; in m41t81_get_time() 207 sec = bcd2bin(sec); in m41t81_get_time() 216 return mktime64(year, mon, day, hour, min, sec); in m41t81_get_time()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | paging.c | 178 * non paged to CPU2 paging sec in iwl_fill_paging_mem() 183 if (image->sec[sec_idx].offset == PAGING_SEPARATOR_SECTION) { in iwl_fill_paging_mem() 200 IWL_DEBUG_FW(fwrt, "Paging: load paging CSS to FW, sec = %d\n", in iwl_fill_paging_mem() 203 if (image->sec[sec_idx].len > fwrt->fw_paging_db[0].fw_paging_size) { in iwl_fill_paging_mem() 210 image->sec[sec_idx].data, in iwl_fill_paging_mem() 211 image->sec[sec_idx].len); in iwl_fill_paging_mem() 230 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() 256 image->sec[sec_idx].data + offset, len); in iwl_fill_paging_mem()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | ctxt-info.c | 159 ret = iwl_pcie_ctxt_info_alloc_dma(trans, fw->sec[i].data, in iwl_pcie_init_fw_sec() 160 fw->sec[i].len, in iwl_pcie_init_fw_sec() 173 fw->sec[dram->fw_cnt + 1].data, in iwl_pcie_init_fw_sec() 174 fw->sec[dram->fw_cnt + 1].len, in iwl_pcie_init_fw_sec() 197 ret = iwl_pcie_ctxt_info_alloc_dma(trans, fw->sec[fw_idx].data, in iwl_pcie_init_fw_sec() 198 fw->sec[fw_idx].len, in iwl_pcie_init_fw_sec()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | uniphier_wdt.c | 35 #define SEC_TO_WDTTIMSET_PRD(sec) \ 36 (ilog2(sec) + WDTTIMSET_PERIOD_1_SEC) 76 static int __uniphier_watchdog_start(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_start() argument 89 SEC_TO_WDTTIMSET_PRD(sec)); in __uniphier_watchdog_start() 113 static int __uniphier_watchdog_restart(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_restart() argument 121 return __uniphier_watchdog_start(regmap, sec); in __uniphier_watchdog_restart() 223 dev_info(dev, "watchdog driver (timeout=%d sec, nowayout=%d)\n", in uniphier_wdt_probe()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | uniphier_wdt.c | 35 #define SEC_TO_WDTTIMSET_PRD(sec) \ 36 (ilog2(sec) + WDTTIMSET_PERIOD_1_SEC) 76 static int __uniphier_watchdog_start(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_start() argument 89 SEC_TO_WDTTIMSET_PRD(sec)); in __uniphier_watchdog_start() 113 static int __uniphier_watchdog_restart(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_restart() argument 121 return __uniphier_watchdog_start(regmap, sec); in __uniphier_watchdog_restart() 223 dev_info(dev, "watchdog driver (timeout=%d sec, nowayout=%d)\n", in uniphier_wdt_probe()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_hwtstamp.c | 105 static int init_systime(void __iomem *ioaddr, u32 sec, u32 nsec) in init_systime() argument 109 writel(sec, ioaddr + PTP_STSUR); in init_systime() 146 static int adjust_systime(void __iomem *ioaddr, u32 sec, u32 nsec, in adjust_systime() argument 153 /* If the new sec value needs to be subtracted with in adjust_systime() 158 sec = -sec; in adjust_systime() 167 writel(sec, ioaddr + PTP_STSUR); in adjust_systime()
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | ctxt-info.c | 111 ret = iwl_pcie_ctxt_info_alloc_dma(trans, fw->sec[i].data, in iwl_pcie_init_fw_sec() 112 fw->sec[i].len, in iwl_pcie_init_fw_sec() 125 fw->sec[dram->fw_cnt + 1].data, in iwl_pcie_init_fw_sec() 126 fw->sec[dram->fw_cnt + 1].len, in iwl_pcie_init_fw_sec() 149 ret = iwl_pcie_ctxt_info_alloc_dma(trans, fw->sec[fw_idx].data, in iwl_pcie_init_fw_sec() 150 fw->sec[fw_idx].len, in iwl_pcie_init_fw_sec()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
H A D | format.cc | 42 cctz::time_point<cctz::seconds> sec; member 58 const auto sec = unix_epoch() + cctz::seconds(rep_hi); in Split() local 60 return {sec, fem}; in Split() 66 const int64_t rep_hi = (parts.sec - unix_epoch()).count(); in Join() 79 return cctz::detail::format(std::string(format), parts.sec, parts.fem, in FormatTime() 134 cctz::time_zone(tz), &parts.sec, &parts.fem, &error); in ParseTime()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | bgscan_simple.c | 221 if (now.sec > data->last_bgscan.sec + 1 && in bgscan_simple_notify_signal_change() 230 else if (data->last_bgscan.sec + data->long_interval > in bgscan_simple_notify_signal_change() 231 now.sec + data->scan_interval) { in bgscan_simple_notify_signal_change() 255 if (now.sec > data->last_bgscan.sec + 10) in bgscan_simple_notify_signal_change()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | bgscan_simple.c | 221 if (now.sec > data->last_bgscan.sec + 1 && in bgscan_simple_notify_signal_change() 230 else if (data->last_bgscan.sec + data->long_interval > in bgscan_simple_notify_signal_change() 231 now.sec + data->scan_interval) { in bgscan_simple_notify_signal_change() 255 if (now.sec > data->last_bgscan.sec + 10) in bgscan_simple_notify_signal_change()
|
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec2/ |
H A D | sec_main.c | 18 #include "sec.h" 410 * uacce_mode = 0 means sec only register to crypto, 411 * uacce_mode = 1 means sec both register to crypto and uacce. 557 pci_err(qm->pdev, "fail to init sec mem\n"); in sec_engine_init() 618 /* sec_debug_regs_clear() - clear the sec debug regs */ 623 /* clear sec dfx regs */ in sec_debug_regs_clear() 839 struct sec_dev *sec = container_of(qm, struct sec_dev, qm); in sec_core_debug_init() local 841 struct sec_dfx *dfx = &sec->debug.dfx; in sec_core_debug_init() 875 struct sec_dev *sec = container_of(qm, struct sec_dev, qm); in sec_debug_init() local 880 spin_lock_init(&sec in sec_debug_init() 1059 sec_pf_probe_init(struct sec_dev *sec) sec_pf_probe_init() argument 1163 sec_probe_init(struct sec_dev *sec) sec_probe_init() argument 1188 sec_iommu_used_check(struct sec_dev *sec) sec_iommu_used_check() argument 1207 struct sec_dev *sec; sec_probe() local [all...] |
/third_party/python/Python/ |
H A D | pytime.c | 282 pytime_double_to_denominator(double d, time_t *sec, long *numerator, in pytime_double_to_denominator() argument 322 *sec = (time_t)intpart; in pytime_double_to_denominator() 330 pytime_object_to_denominator(PyObject *obj, time_t *sec, long *numerator, in pytime_object_to_denominator() argument 342 return pytime_double_to_denominator(d, sec, numerator, in pytime_object_to_denominator() 346 *sec = _PyLong_AsTime_t(obj); in pytime_object_to_denominator() 348 if (*sec == (time_t)-1 && PyErr_Occurred()) { in pytime_object_to_denominator() 357 _PyTime_ObjectToTime_t(PyObject *obj, time_t *sec, _PyTime_round_t round) in _PyTime_ObjectToTime_t() argument 378 *sec = (time_t)intpart; in _PyTime_ObjectToTime_t() 382 *sec = _PyLong_AsTime_t(obj); in _PyTime_ObjectToTime_t() 383 if (*sec in _PyTime_ObjectToTime_t() 392 _PyTime_ObjectToTimespec(PyObject *obj, time_t *sec, long *nsec, _PyTime_round_t round) _PyTime_ObjectToTimespec() argument 400 _PyTime_ObjectToTimeval(PyObject *obj, time_t *sec, long *usec, _PyTime_round_t round) _PyTime_ObjectToTimeval() argument 558 long long sec = PyLong_AsLongLong(obj); pytime_from_object() local [all...] |
/third_party/ltp/include/ |
H A D | tst_timer.h | 412 static inline void tst_ts_set_sec(struct tst_ts *ts, long long sec) in tst_ts_set_sec() argument 416 ts->ts.libc_ts.tv_sec = sec; in tst_ts_set_sec() 419 ts->ts.kern_old_ts.tv_sec = sec; in tst_ts_set_sec() 422 ts->ts.kern_ts.tv_sec = sec; in tst_ts_set_sec() 484 static inline void tst_its_set_interval_sec(struct tst_its *its, long long sec) in tst_its_set_interval_sec() argument 489 its->ts.kern_old_its.it_interval.tv_sec = sec; in tst_its_set_interval_sec() 492 its->ts.kern_its.it_interval.tv_sec = sec; in tst_its_set_interval_sec() 552 static inline void tst_its_set_value_sec(struct tst_its *its, long long sec) in tst_its_set_value_sec() argument 557 its->ts.kern_old_its.it_value.tv_sec = sec; in tst_its_set_value_sec() 560 its->ts.kern_its.it_value.tv_sec = sec; in tst_its_set_value_sec() 794 long long sec = tst_ts_get_sec(t); tst_ts_normalize() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | os_unix.c | 50 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument 53 const struct timespec req = { sec, usec * 1000 }; in os_sleep() 57 if (sec) in os_sleep() 58 sleep(sec); in os_sleep() 70 t->sec = tv.tv_sec; in os_get_time() 95 t->sec = ts.tv_sec; in os_get_reltime() 126 t->sec = nano / NSEC_PER_SEC; in os_get_reltime() 127 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime() 134 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument 142 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < in os_mktime() [all...] |
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | gen.c | 127 const struct btf_type *sec, in codegen_datasec_def() 130 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() 131 const struct btf_var_secinfo *sec_var = btf_var_secinfos(sec); in codegen_datasec_def() 132 int i, err, off = 0, pad_cnt = 0, vlen = btf_vlen(sec); in codegen_datasec_def() 250 const struct btf_type *sec; in codegen_datasecs() local 263 sec = find_type_for_map(btf, map_ident); in codegen_datasecs() 272 if (!sec) { in codegen_datasecs() 276 err = codegen_datasec_def(obj, btf, d, sec, obj_name); in codegen_datasecs() 299 const struct btf_type *sec, *var; in codegen_subskel_datasecs() local 316 sec in codegen_subskel_datasecs() 124 codegen_datasec_def(struct bpf_object *obj, struct btf *btf, struct btf_dump *d, const struct btf_type *sec, const char *obj_name) codegen_datasec_def() argument 473 const struct btf_type *sec; codegen_asserts() local 2043 const struct btf_ext_info_sec *sec; btfgen_record_obj() local [all...] |
/kernel/linux/linux-5.10/tools/objtool/arch/x86/ |
H A D | special.c | 102 text_reloc = find_reloc_by_dest_range(file->elf, insn->sec, in arch_find_switch_table() 105 !text_reloc->sym->sec->rodata) in arch_find_switch_table() 109 table_sec = text_reloc->sym->sec; in arch_find_switch_table()
|
/kernel/linux/linux-6.6/tools/objtool/arch/x86/ |
H A D | special.c | 96 text_reloc = find_reloc_by_dest_range(file->elf, insn->sec, in arch_find_switch_table() 99 !text_reloc->sym->sec->rodata) in arch_find_switch_table() 103 table_sec = text_reloc->sym->sec; in arch_find_switch_table()
|