/kernel/linux/linux-6.6/lib/vdso/ |
H A D | gettimeofday.c | 57 s64 sec; in do_hres_timens() local 80 sec = vdso_ts->sec; in do_hres_timens() 84 sec += offs->sec; in do_hres_timens() 91 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in do_hres_timens() 114 u64 cycles, last, sec, ns; in do_hres() local 151 sec = vdso_ts->sec; in do_hres() 158 ts->tv_sec = sec in do_hres() 172 s64 sec; do_coarse_timens() local [all...] |
/kernel/linux/linux-6.6/drivers/nvdimm/ |
H A D | dimm_devs.c | 362 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER); in security_show() 364 if (test_bit(NVDIMM_SECURITY_OVERWRITE, &nvdimm->sec.flags)) in security_show() 366 if (test_bit(NVDIMM_SECURITY_DISABLED, &nvdimm->sec.flags)) in security_show() 368 if (test_bit(NVDIMM_SECURITY_UNLOCKED, &nvdimm->sec.flags)) in security_show() 370 if (test_bit(NVDIMM_SECURITY_LOCKED, &nvdimm->sec.flags)) in security_show() 381 &nvdimm->sec.flags)); in frozen_show() 424 if (!nvdimm->sec.flags) in nvdimm_visible() 429 if (nvdimm->sec.ops->freeze || nvdimm->sec.ops->disable in nvdimm_visible() 430 || nvdimm->sec in nvdimm_visible() [all...] |
/third_party/toybox/toys/pending/ |
H A D | host.c | 71 i, j, ret, sec, count, rcode, qlen, alen, pllen = 0, in host_main() local 149 for (sec=0; sec<4; sec++) { in host_main() 150 count = 256*abuf[4+2*sec] + abuf[5+2*sec]; in host_main() 151 if (verbose && count>0 && sec>1) in host_main() 152 puts(sec==2 ? "For authoritative answers, see:" in host_main() 159 if (!sec) continue; in host_main() 212 if (!verbose && sec in host_main() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | lightnvm.h | 58 u64 sec : NVM_12_SEC_BITS; member 67 u64 sec : NVM_20_SEC_BITS; member 454 l.ppa |= ((u64)r.g.sec) << ppaf->sec_offset; in generic_to_dev_addr() 461 l.ppa |= ((u64)r.m.sec) << lbaf->sec_offset; in generic_to_dev_addr() 483 l.g.sec = (r.ppa & ppaf->sec_mask) >> ppaf->sec_offset; in dev_to_generic_addr() 490 l.m.sec = (r.ppa & lbaf->sec_mask) >> lbaf->sec_offset; in dev_to_generic_addr() 507 caddr |= (u64)p.g.sec << ppaf->sec_offset; in dev_to_chunk_addr() 509 caddr = p.m.sec; in dev_to_chunk_addr() 543 ppa64.g.sec = (ppa32 & ppaf->sec_mask) >> in nvm_ppa32_to_ppa64() 554 ppa64.m.sec in nvm_ppa32_to_ppa64() 604 int sec = ppa->g.sec; nvm_next_ppa_in_chk() local [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-tx4939.c | 90 unsigned long sec; in tx4939_rtc_read_time() local 105 sec = ((unsigned long)buf[5] << 24) | (buf[4] << 16) | in tx4939_rtc_read_time() 107 rtc_time64_to_tm(sec, tm); in tx4939_rtc_read_time() 116 unsigned long sec; in tx4939_rtc_set_alarm() local 119 sec = rtc_tm_to_time64(&alrm->time); in tx4939_rtc_set_alarm() 122 buf[2] = sec; in tx4939_rtc_set_alarm() 123 buf[3] = sec >> 8; in tx4939_rtc_set_alarm() 124 buf[4] = sec >> 16; in tx4939_rtc_set_alarm() 125 buf[5] = sec >> 24; in tx4939_rtc_set_alarm() 141 unsigned long sec; in tx4939_rtc_read_alarm() local [all...] |
H A D | rtc-ftrtc010.c | 68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local 71 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_read_time() 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 87 u32 sec, min, hour, day, offset; in ftrtc010_rtc_set_time() local 92 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_set_time() 97 offset = time - (day * 86400 + hour * 3600 + min * 60 + sec); in ftrtc010_rtc_set_time() 112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local 165 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_probe() 171 min * 60 + sec; in ftrtc010_rtc_probe()
|
H A D | rtc-m48t35.c | 26 u8 sec; member 34 u8 sec; member 69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() 100 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local 109 sec = tm->tm_sec; in m48t35_set_time() 124 sec = bin2bcd(sec); in m48t35_set_time() 139 writeb(sec, &priv->reg->sec); in m48t35_set_time()
|
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | dimm_devs.c | 378 if (test_bit(NVDIMM_SECURITY_OVERWRITE, &nvdimm->sec.flags)) in security_show() 380 if (test_bit(NVDIMM_SECURITY_DISABLED, &nvdimm->sec.flags)) in security_show() 382 if (test_bit(NVDIMM_SECURITY_UNLOCKED, &nvdimm->sec.flags)) in security_show() 384 if (test_bit(NVDIMM_SECURITY_LOCKED, &nvdimm->sec.flags)) in security_show() 395 &nvdimm->sec.flags)); in frozen_show() 438 if (!nvdimm->sec.flags) in nvdimm_visible() 443 if (nvdimm->sec.ops->freeze || nvdimm->sec.ops->disable in nvdimm_visible() 444 || nvdimm->sec.ops->change_key in nvdimm_visible() 445 || nvdimm->sec in nvdimm_visible() [all...] |
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | libbpf_internal.h | 169 #define for_each_btf_ext_sec(seg, sec) \ 170 for (sec = (seg)->info; \ 171 (void *)sec < (seg)->info + (seg)->len; \ 172 sec = (void *)sec + sizeof(struct btf_ext_info_sec) + \ 173 (seg)->rec_size * sec->num_info) 175 #define for_each_btf_ext_rec(seg, sec, i, rec) \ 176 for (i = 0, rec = (void *)&(sec)->data; \ 177 i < (sec)->num_info; \
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ftrtc010.c | 68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local 71 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_read_time() 77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time() 87 u32 sec, min, hour, day, offset; in ftrtc010_rtc_set_time() local 92 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_set_time() 97 offset = time - (day * 86400 + hour * 3600 + min * 60 + sec); in ftrtc010_rtc_set_time() 112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local 171 sec = readl(rtc->rtc_base + FTRTC010_RTC_SECOND); in ftrtc010_rtc_probe() 177 min * 60 + sec; in ftrtc010_rtc_probe()
|
H A D | rtc-m48t35.c | 26 u8 sec; member 34 u8 sec; member 69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() 100 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local 109 sec = tm->tm_sec; in m48t35_set_time() 124 sec = bin2bcd(sec); in m48t35_set_time() 139 writeb(sec, &priv->reg->sec); in m48t35_set_time()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | airtime_policy.c | 37 unsigned int *sec, in get_airtime_policy_update_timeout() 49 *sec = update_int / 1000; in get_airtime_policy_update_timeout() 64 sta->backlogged_until.sec++; in set_new_backlog_time() 137 unsigned int sec, usec; in update_airtime_weights() local 222 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights() 225 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights() 257 unsigned int sec, usec; in airtime_policy_update_init() local 262 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in airtime_policy_update_init() 265 eloop_register_timeout(sec, usec, update_airtime_weights, iface, NULL); in airtime_policy_update_init() 36 get_airtime_policy_update_timeout(struct hostapd_iface *iface, unsigned int *sec, unsigned int *usec) get_airtime_policy_update_timeout() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | airtime_policy.c | 37 unsigned int *sec, in get_airtime_policy_update_timeout() 49 *sec = update_int / 1000; in get_airtime_policy_update_timeout() 64 sta->backlogged_until.sec++; in set_new_backlog_time() 133 unsigned int sec, usec; in update_airtime_weights() local 218 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights() 221 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights() 253 unsigned int sec, usec; in airtime_policy_update_init() local 258 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in airtime_policy_update_init() 261 eloop_register_timeout(sec, usec, update_airtime_weights, iface, NULL); in airtime_policy_update_init() 36 get_airtime_policy_update_timeout(struct hostapd_iface *iface, unsigned int *sec, unsigned int *usec) get_airtime_policy_update_timeout() argument
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-drv.c | 153 const void *data; /* the sec data */ 169 iwl_free_fw_desc(drv, &img->sec[i]); in iwl_free_fw_img() 170 kfree(img->sec); in iwl_free_fw_img() 194 struct fw_sec *sec) in iwl_alloc_fw_desc() 200 if (!sec || !sec->size) in iwl_alloc_fw_desc() 203 data = vmalloc(sec->size); in iwl_alloc_fw_desc() 207 desc->len = sec->size; in iwl_alloc_fw_desc() 208 desc->offset = sec->offset; in iwl_alloc_fw_desc() 209 memcpy(data, sec in iwl_alloc_fw_desc() 193 iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc, struct fw_sec *sec) iwl_alloc_fw_desc() argument 270 struct fw_sec *sec; global() member 318 get_sec(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec) get_sec() argument 325 alloc_sec_data(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec) alloc_sec_data() argument 345 set_sec_data(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec, const void *data) set_sec_data() argument 355 set_sec_size(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec, size_t size) set_sec_size() argument 365 get_sec_size(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec) get_sec_size() argument 372 set_sec_offset(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec, u32 offset) set_sec_offset() argument 413 struct fw_sec *sec; iwl_store_ucode_sec() local 1238 struct fw_desc *sec; iwl_alloc_ucode() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-drv.c | 97 const void *data; /* the sec data */ 113 iwl_free_fw_desc(drv, &img->sec[i]); in iwl_free_fw_img() 114 kfree(img->sec); in iwl_free_fw_img() 141 struct fw_sec *sec) in iwl_alloc_fw_desc() 147 if (!sec || !sec->size) in iwl_alloc_fw_desc() 150 data = vmalloc(sec->size); in iwl_alloc_fw_desc() 154 desc->len = sec->size; in iwl_alloc_fw_desc() 155 desc->offset = sec->offset; in iwl_alloc_fw_desc() 156 memcpy(data, sec in iwl_alloc_fw_desc() 140 iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc, struct fw_sec *sec) iwl_alloc_fw_desc() argument 274 struct fw_sec *sec; global() member 322 get_sec(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec) get_sec() argument 329 alloc_sec_data(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec) alloc_sec_data() argument 349 set_sec_data(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec, const void *data) set_sec_data() argument 359 set_sec_size(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec, size_t size) set_sec_size() argument 369 get_sec_size(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec) get_sec_size() argument 376 set_sec_offset(struct iwl_firmware_pieces *pieces, enum iwl_ucode_type type, int sec, u32 offset) set_sec_offset() argument 394 struct fw_sec *sec; iwl_store_ucode_sec() local 1346 struct fw_desc *sec; iwl_alloc_ucode() local [all...] |
/foundation/ai/ai_engine/services/common/platform/time/source/ |
H A D | time.cpp | 28 std::chrono::seconds sec = std::chrono::duration_cast<std::chrono::seconds>(d); in GetCurTimeSec() local 29 return sec.count(); in GetCurTimeSec() 35 std::chrono::milliseconds sec = std::chrono::duration_cast<std::chrono::milliseconds>(d); in GetCurTimeMillSec() local 36 return sec.count(); in GetCurTimeMillSec()
|
/kernel/linux/linux-5.10/tools/testing/nvdimm/ |
H A D | dimm_devs.c | 21 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER); in security_show() 23 if (test_bit(NVDIMM_SECURITY_DISABLED, &nvdimm->sec.flags)) in security_show() 25 if (test_bit(NVDIMM_SECURITY_UNLOCKED, &nvdimm->sec.flags)) in security_show() 27 if (test_bit(NVDIMM_SECURITY_LOCKED, &nvdimm->sec.flags)) in security_show()
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | CollationRootElements.java | 250 int previousSec, sec; in getSecondaryBefore() 255 sec = (int)(elements[index] >> 16); in getSecondaryBefore() 259 sec = (int)getFirstSecTerForPrimary(index) >>> 16; in getSecondaryBefore() 261 assert(s >= sec); in getSecondaryBefore() 262 while(s > sec) { in getSecondaryBefore() 263 previousSec = sec; in getSecondaryBefore() 265 sec = (int)(elements[index++] >> 16); in getSecondaryBefore() 267 assert(sec == s); in getSecondaryBefore() 364 // If this is an explicit sec/ter unit, then it will be read once more. in getSecondaryAfter() 369 int sec in getSecondaryAfter() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
H A D | CollationRootElements.java | 252 int previousSec, sec; in getSecondaryBefore() 257 sec = (int)(elements[index] >> 16); in getSecondaryBefore() 261 sec = (int)getFirstSecTerForPrimary(index) >>> 16; in getSecondaryBefore() 263 assert(s >= sec); in getSecondaryBefore() 264 while(s > sec) { in getSecondaryBefore() 265 previousSec = sec; in getSecondaryBefore() 267 sec = (int)(elements[index++] >> 16); in getSecondaryBefore() 269 assert(sec == s); in getSecondaryBefore() 366 // If this is an explicit sec/ter unit, then it will be read once more. in getSecondaryAfter() 371 int sec in getSecondaryAfter() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | collationrootelements.cpp | 121 uint32_t previousSec, sec; in getSecondaryBefore() local 126 sec = elements[index] >> 16; in getSecondaryBefore() 130 sec = getFirstSecTerForPrimary(index) >> 16; in getSecondaryBefore() 132 U_ASSERT(s >= sec); in getSecondaryBefore() 133 while(s > sec) { in getSecondaryBefore() 134 previousSec = sec; in getSecondaryBefore() 136 sec = elements[index++] >> 16; in getSecondaryBefore() 138 U_ASSERT(sec == s); in getSecondaryBefore() 208 // If this is an explicit sec/ter unit, then it will be read once more. in getSecondaryAfter() 213 uint32_t sec in getSecondaryAfter() local [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | collationrootelements.cpp | 121 uint32_t previousSec, sec; in getSecondaryBefore() local 126 sec = elements[index] >> 16; in getSecondaryBefore() 130 sec = getFirstSecTerForPrimary(index) >> 16; in getSecondaryBefore() 132 U_ASSERT(s >= sec); in getSecondaryBefore() 133 while(s > sec) { in getSecondaryBefore() 134 previousSec = sec; in getSecondaryBefore() 136 sec = elements[index++] >> 16; in getSecondaryBefore() 138 U_ASSERT(sec == s); in getSecondaryBefore() 208 // If this is an explicit sec/ter unit, then it will be read once more. in getSecondaryAfter() 213 uint32_t sec in getSecondaryAfter() local [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | collationrootelements.cpp | 121 uint32_t previousSec, sec; in getSecondaryBefore() local 126 sec = elements[index] >> 16; in getSecondaryBefore() 130 sec = getFirstSecTerForPrimary(index) >> 16; in getSecondaryBefore() 132 U_ASSERT(s >= sec); in getSecondaryBefore() 133 while(s > sec) { in getSecondaryBefore() 134 previousSec = sec; in getSecondaryBefore() 136 sec = elements[index++] >> 16; in getSecondaryBefore() 138 U_ASSERT(sec == s); in getSecondaryBefore() 208 // If this is an explicit sec/ter unit, then it will be read once more. in getSecondaryAfter() 213 uint32_t sec in getSecondaryAfter() local [all...] |
/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()
|