| /linux/include/trace/events/ |
| A D | rtc.h | 12 TP_PROTO(time64_t secs, int err), 14 TP_ARGS(secs, err), 17 __field(time64_t, secs) 22 __entry->secs = secs; 27 __entry->secs, __entry->err 33 TP_PROTO(time64_t secs, int err), 35 TP_ARGS(secs, err) 40 TP_PROTO(time64_t secs, int err), 42 TP_ARGS(secs, err) 49 TP_ARGS(secs, err) [all …]
|
| /linux/drivers/rtc/ |
| A D | rtc-pcap.c | 44 unsigned long secs; in pcap_rtc_read_alarm() local 49 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_alarm() 54 rtc_time64_to_tm(secs, tm); in pcap_rtc_read_alarm() 65 tod = secs % SEC_PER_DAY; in pcap_rtc_set_alarm() 68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm() 77 unsigned long secs; in pcap_rtc_read_time() local 81 secs = tod & PCAP_RTC_TOD_MASK; in pcap_rtc_read_time() 86 rtc_time64_to_tm(secs, tm); in pcap_rtc_read_time() 94 unsigned long secs = rtc_tm_to_time64(tm); in pcap_rtc_set_time() local 97 tod = secs % SEC_PER_DAY; in pcap_rtc_set_time() [all …]
|
| A D | rtc-ab8500.c | 65 unsigned long mins, secs; in ab8500_rtc_read_time() local 99 secs = (buf[3] << 8) | buf[4]; in ab8500_rtc_read_time() 100 secs = secs / COUNTS_PER_SEC; in ab8500_rtc_read_time() 101 secs = secs + (mins * 60); in ab8500_rtc_read_time() 103 rtc_time64_to_tm(secs, tm); in ab8500_rtc_read_time() 113 secs = rtc_tm_to_time64(tm); in ab8500_rtc_set_time() 115 no_mins = secs / 60; in ab8500_rtc_set_time() 117 no_secs = secs % 60; in ab8500_rtc_set_time() 145 unsigned long secs, mins; in ab8500_rtc_read_alarm() local 169 secs = mins * 60; in ab8500_rtc_read_alarm() [all …]
|
| A D | rtc-at91sam9.c | 106 u32 secs, secs2; in at91_rtc_readtime() local 115 secs = rtt_readl(rtc, VR); in at91_rtc_readtime() 117 if (secs != secs2) in at91_rtc_readtime() 118 secs = rtt_readl(rtc, VR); in at91_rtc_readtime() 134 unsigned long secs; in at91_rtc_settime() local 149 secs += 1; in at91_rtc_settime() 150 gpbr_writel(rtc, secs); in at91_rtc_settime() 155 if (offset > secs) { in at91_rtc_settime() 157 alarm += (offset - secs); in at91_rtc_settime() 203 unsigned long secs; in at91_rtc_setalarm() local [all …]
|
| A D | lib_test.c | 48 time64_t secs; in rtc_time64_to_tm_test_date_range() local 51 for (secs = 0; secs <= total_secs; secs += 86400) { in rtc_time64_to_tm_test_date_range() 53 rtc_time64_to_tm(secs, &result); in rtc_time64_to_tm_test_date_range() 55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range()
|
| A D | rtc-pm8xxx.c | 79 unsigned long secs, irq_flags; in pm8xxx_rtc_set_time() local 88 secs = rtc_tm_to_time64(tm); in pm8xxx_rtc_set_time() 93 value[i] = secs & 0xFF; in pm8xxx_rtc_set_time() 94 secs >>= 8; in pm8xxx_rtc_set_time() 179 unsigned long secs; in pm8xxx_rtc_read_time() local 212 rtc_time64_to_tm(secs, tm); in pm8xxx_rtc_read_time() 224 unsigned long secs, irq_flags; in pm8xxx_rtc_set_alarm() local 231 value[i] = secs & 0xFF; in pm8xxx_rtc_set_alarm() 232 secs >>= 8; in pm8xxx_rtc_set_alarm() 271 unsigned long secs; in pm8xxx_rtc_read_alarm() local [all …]
|
| A D | rtc-sc27xx.c | 167 time64_t *secs) in sprd_rtc_get_secs() argument 224 time64_t secs) in sprd_rtc_set_secs() argument 231 day = div_s64_rem(secs, 86400, &rem); in sprd_rtc_set_secs() 305 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_aux_alarm() local 335 time64_t secs; in sprd_rtc_read_time() local 347 rtc_time64_to_tm(secs, tm); in sprd_rtc_read_time() 354 time64_t secs = rtc_tm_to_time64(tm); in sprd_rtc_set_time() local 357 ret = sprd_rtc_set_secs(rtc, SPRD_RTC_TIME, secs); in sprd_rtc_set_time() 386 time64_t secs; in sprd_rtc_read_alarm() local 398 rtc_time64_to_tm(secs, &alrm->time); in sprd_rtc_read_alarm() [all …]
|
| A D | lib.c | 54 unsigned int secs; in rtc_time64_to_tm() local 63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm() 135 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 136 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm() 137 tm->tm_min = secs / 60; in rtc_time64_to_tm() 138 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
|
| A D | rtc-jz4740.c | 143 uint32_t secs, secs2; in jz4740_rtc_read_time() local 153 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC); in jz4740_rtc_read_time() 156 while (secs != secs2 && --timeout) { in jz4740_rtc_read_time() 157 secs = secs2; in jz4740_rtc_read_time() 164 rtc_time64_to_tm(secs, time); in jz4740_rtc_read_time() 184 uint32_t secs; in jz4740_rtc_read_alarm() local 187 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC_ALARM); in jz4740_rtc_read_alarm() 194 rtc_time64_to_tm(secs, &alrm->time); in jz4740_rtc_read_alarm() 203 uint32_t secs = lower_32_bits(rtc_tm_to_time64(&alrm->time)); in jz4740_rtc_set_alarm() local 205 ret = jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC_ALARM, secs); in jz4740_rtc_set_alarm()
|
| A D | rtc-ds1672.c | 86 unsigned long secs = rtc_tm_to_time64(tm); in ds1672_set_time() local 89 buf[1] = secs & 0x000000FF; in ds1672_set_time() 90 buf[2] = (secs & 0x0000FF00) >> 8; in ds1672_set_time() 91 buf[3] = (secs & 0x00FF0000) >> 16; in ds1672_set_time() 92 buf[4] = (secs & 0xFF000000) >> 24; in ds1672_set_time()
|
| /linux/arch/x86/kernel/cpu/sgx/ |
| A D | ioctl.c | 75 encl_size = secs->size + PAGE_SIZE; in sgx_encl_create() 92 encl->secs.epc_page = secs_epc; in sgx_encl_create() 97 pginfo.secs = 0; in sgx_encl_create() 109 encl->secs.encl = encl; in sgx_encl_create() 110 encl->base = secs->base; in sgx_encl_create() 111 encl->size = secs->size; in sgx_encl_create() 122 encl->secs.epc_page = NULL; in sgx_encl_create() 149 void *secs; in sgx_ioc_enclave_create() local 159 if (!secs) in sgx_ioc_enclave_create() 167 kfree(secs); in sgx_ioc_enclave_create() [all …]
|
| A D | virt.c | 331 int sgx_virt_ecreate(struct sgx_pageinfo *pageinfo, void __user *secs, in sgx_virt_ecreate() argument 347 if (WARN_ON_ONCE(!access_ok(secs, PAGE_SIZE))) in sgx_virt_ecreate() 351 ret = __ecreate(pageinfo, (void *)secs); in sgx_virt_ecreate() 366 void __user *secs) in __sgx_virt_einit() argument 378 !access_ok(secs, PAGE_SIZE))) in __sgx_virt_einit() 382 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit() 406 void __user *secs, u64 *lepubkeyhash, int *trapnr) in sgx_virt_einit() argument 411 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit() 417 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
|
| A D | encls.h | 165 static inline int __ecreate(struct sgx_pageinfo *pginfo, void *secs) in __ecreate() argument 167 return __encls_2(ECREATE, pginfo, secs); in __ecreate() 170 static inline int __eextend(void *secs, void *addr) in __eextend() argument 172 return __encls_2(EEXTEND, secs, addr); in __eextend() 180 static inline int __einit(void *sigstruct, void *token, void *secs) in __einit() argument 182 return __encls_ret_3(EINIT, sigstruct, secs, token); in __einit()
|
| /linux/tools/testing/selftests/rtc/ |
| A D | rtctest.c | 117 time_t secs, new; in TEST_F() local 124 gmtime_r(&secs, (struct tm *)&tm); in TEST_F() 162 ASSERT_EQ(new, secs); in TEST_F() 171 time_t secs, new; in TEST_F() local 178 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F() 211 ASSERT_EQ(new, secs); in TEST_F() 219 time_t secs, new; variable 226 gmtime_r(&secs, (struct tm *)&tm); 264 ASSERT_EQ(new, secs); 273 time_t secs, new; variable [all …]
|
| /linux/kernel/time/ |
| A D | time_test.c | 67 time64_t secs; in time64_to_tm_test_date_range() local 70 for (secs = -total_secs; secs <= total_secs; secs += 86400) { in time64_to_tm_test_date_range() 72 time64_to_tm(secs, 0, &result); in time64_to_tm_test_date_range() 74 days = div_s64(secs, 86400); in time64_to_tm_test_date_range()
|
| A D | ntp.c | 285 if (secs < MINSEC) in ntp_update_offset_fll() 300 long secs; in ntp_update_offset() local 323 secs = 0; in ntp_update_offset() 336 secs = 1 << (SHIFT_PLL + 1 + time_constant); in ntp_update_offset() 338 freq_adj += (offset64 * secs) << in ntp_update_offset() 400 int second_overflow(time64_t secs) in second_overflow() argument 415 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow() 416 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow() 419 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow() 427 } else if (secs == ntp_next_leap_sec) { in second_overflow() [all …]
|
| /linux/tools/testing/selftests/sgx/ |
| A D | load.c | 77 struct sgx_secs *secs = &encl->secs; in encl_ioc_create() local 83 memset(secs, 0, sizeof(*secs)); in encl_ioc_create() 84 secs->ssa_frame_size = 1; in encl_ioc_create() 85 secs->attributes = SGX_ATTR_MODE64BIT; in encl_ioc_create() 86 secs->xfrm = 3; in encl_ioc_create() 87 secs->base = encl->encl_base; in encl_ioc_create() 88 secs->size = encl->encl_size; in encl_ioc_create() 90 ioc.src = (unsigned long)secs; in encl_ioc_create() 94 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create()
|
| /linux/tools/lib/bpf/ |
| A D | linker.c | 62 struct src_sec *secs; member 211 free(linker->secs); in bpf_linker__free() 248 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() local 251 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec() 252 if (!secs) in add_dst_sec() 258 linker->secs = secs; in add_dst_sec() 462 free(obj.secs); in bpf_linker__add_file() 517 struct src_sec *secs = obj->secs, *sec; in add_src_sec() local 520 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_src_sec() 521 if (!secs) in add_src_sec() [all …]
|
| /linux/arch/mips/mti-malta/ |
| A D | malta-time.c | 66 int secs; in estimate_frequencies() local 106 secs = secs2 - secs1; in estimate_frequencies() 107 if (secs < 1) in estimate_frequencies() 108 secs += 60; in estimate_frequencies() 111 count /= secs; in estimate_frequencies() 115 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
|
| /linux/crypto/ |
| A D | tcrypt.c | 422 if (secs) { in test_mb_aead_speed() 462 int blen, int secs) in test_aead_jiffies() argument 675 if (secs) { in test_aead_speed() 677 secs); in test_aead_speed() 893 if (secs) { in test_mb_ahash_speed() 936 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies_digest() 968 bcount / secs, ((long)bcount * blen) / secs); in test_ahash_jiffies() 1125 if (secs) { in test_ahash_speed_common() 1392 if (secs) { in test_mb_skcipher_speed() 1609 if (secs) { in test_skcipher_speed() [all …]
|
| /linux/crypto/asymmetric_keys/ |
| A D | verify_pefile.c | 31 const struct section_header *secs, *sec; in pefile_parse_binary() local 113 ctx->secs = secs = pebuf + cursor; in pefile_parse_binary() 276 if (pefile_compare_shdrs(&ctx->secs[canon[i]], in pefile_digest_pe_contents() 277 &ctx->secs[loop]) > 0) { in pefile_digest_pe_contents() 289 if (ctx->secs[i].raw_data_size == 0) in pefile_digest_pe_contents() 292 pebuf + ctx->secs[i].data_addr, in pefile_digest_pe_contents() 293 ctx->secs[i].raw_data_size); in pefile_digest_pe_contents() 298 hashed_bytes += ctx->secs[i].raw_data_size; in pefile_digest_pe_contents()
|
| /linux/kernel/trace/ |
| A D | trace_mmiotrace.c | 173 unsigned secs = (unsigned long)t; in mmio_print_rw() local 182 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw() 189 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw() 197 secs, usec_rem, rw->map_id, in mmio_print_rw() 218 unsigned secs = (unsigned long)t; in mmio_print_map() local 227 secs, usec_rem, m->map_id, in mmio_print_map() 234 secs, usec_rem, m->map_id, 0UL, 0); in mmio_print_map() 252 unsigned secs = (unsigned long)t; in mmio_print_mark() local 255 trace_seq_printf(s, "MARK %u.%06lu %s", secs, usec_rem, msg); in mmio_print_mark()
|
| /linux/arch/x86/tools/ |
| A D | relocs.c | 46 static struct section *secs; variable 256 sec_strtab = secs[shstrndx].strtab; in sec_name() 287 struct section *sec = &secs[i]; in sym_lookup() 441 if (!secs) { in read_shdrs() 450 struct section *sec = &secs[i]; in read_shdrs() 474 struct section *sec = &secs[i]; in read_strtabs() 500 struct section *sec = &secs[i]; in read_symtabs() 561 struct section *sec = &secs[i]; in read_relocs() 604 struct section *sec = &secs[i]; in print_absolute_symbols() 642 struct section *sec = &secs[i]; in print_absolute_relocs() [all …]
|
| /linux/arch/mips/boot/tools/ |
| A D | relocs.c | 32 static struct section *secs; variable 96 sec_strtab = secs[ehdr.e_shstrndx].strtab; in sec_name() 114 return &secs[i]; in sec_lookup() 266 if (!secs) in read_shdrs() 273 struct section *sec = &secs[i]; in read_shdrs() 290 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs() 299 struct section *sec = &secs[i]; in read_strtabs() 324 struct section *sec = &secs[i]; in read_symtabs() 367 struct section *sec = &secs[i]; in read_relocs() 413 struct section *sec = &secs[i]; in remove_relocs() [all …]
|
| /linux/samples/bpf/ |
| A D | sampleip_user.c | 141 int opt, freq = DEFAULT_FREQ, secs = DEFAULT_SECS, error = 1; in main() local 160 secs = atoi(argv[optind]); in main() 161 if (freq == 0 || secs == 0) { in main() 211 freq, secs); in main() 215 sleep(secs); in main()
|