/linux-master/kernel/time/ |
H A D | ntp.c | 74 /* frequency offset (scaled nsecs/secs): */ 77 /* time at last adjustment (secs): */ 281 static inline s64 ntp_update_offset_fll(s64 offset64, long secs) argument 285 if (secs < MINSEC) 288 if (!(time_status & STA_FLL) && (secs <= MAXSEC)) 293 return div64_long(offset64 << (NTP_SCALE_SHIFT - SHIFT_FLL), secs); 300 long secs; local 321 secs = (long)(__ktime_get_real_seconds() - time_reftime); 323 secs = 0; 328 freq_adj = ntp_update_offset_fll(offset64, secs); 400 second_overflow(time64_t secs) argument [all...] |
/linux-master/kernel/trace/ |
H A D | trace_mmiotrace.c | 173 unsigned secs = (unsigned long)t; local 182 rw->width, secs, usec_rem, rw->map_id, 189 rw->width, secs, usec_rem, rw->map_id, 197 secs, usec_rem, rw->map_id, 218 unsigned secs = (unsigned long)t; local 227 secs, usec_rem, m->map_id, 234 secs, usec_rem, m->map_id, 0UL, 0); 252 unsigned secs = (unsigned long)t; local 255 trace_seq_printf(s, "MARK %u.%06lu %s", secs, usec_rem, msg);
|
/linux-master/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.py | 106 self.secs = common_secs 113 return (self.secs * (10 ** 9)) + self.nsecs 116 return "%d.%d" % (self.secs, int(self.nsecs / 1000))
|
/linux-master/arch/um/drivers/ |
H A D | rtc_kern.c | 54 unsigned long long secs; local 61 secs = uml_rtc_alarm_time - ktime_get_real_seconds(); 70 return uml_rtc_enable_alarm(secs); 76 secs * NSEC_PER_SEC);
|
/linux-master/drivers/rtc/ |
H A D | rtc-sc27xx.c | 167 time64_t *secs) 219 *secs = (((time64_t)(day * 24) + hour) * 60 + min) * 60 + sec; 224 time64_t secs) 231 day = div_s64_rem(secs, 86400, &rem); 305 time64_t secs = rtc_tm_to_time64(&alrm->time); local 314 ret = sprd_rtc_set_secs(rtc, SPRD_RTC_AUX_ALARM, secs); 335 time64_t secs; local 343 ret = sprd_rtc_get_secs(rtc, SPRD_RTC_TIME, &secs); 347 rtc_time64_to_tm(secs, tm); 354 time64_t secs local 166 sprd_rtc_get_secs(struct sprd_rtc *rtc, enum sprd_rtc_reg_types type, time64_t *secs) argument 223 sprd_rtc_set_secs(struct sprd_rtc *rtc, enum sprd_rtc_reg_types type, time64_t secs) argument 386 time64_t secs; local 417 time64_t secs = rtc_tm_to_time64(&alrm->time); local [all...] |
H A D | rtc-jz4740.c | 145 uint32_t secs, secs2; local 155 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC); 158 while (secs != secs2 && --timeout) { 159 secs = secs2; 166 rtc_time64_to_tm(secs, time); 186 uint32_t secs; local 189 secs = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SEC_ALARM); 196 rtc_time64_to_tm(secs, &alrm->time); 205 uint32_t secs = lower_32_bits(rtc_tm_to_time64(&alrm->time)); local 207 ret = jz4740_rtc_reg_write(rtc, JZ_REG_RTC_SEC_ALARM, secs); [all...] |
H A D | rtc-ds1347.c | 53 unsigned int status, century, secs; local 73 err = regmap_read(map, DS1347_SECONDS_REG, &secs); 76 } while (buf[0] != secs);
|
/linux-master/tools/testing/selftests/sgx/ |
H A D | main.h | 30 struct sgx_secs secs; member in struct:encl
|
/linux-master/drivers/watchdog/ |
H A D | booke_wdt.c | 77 * a parameter of 2 secs, then this procedure will return a value of 38. 79 static unsigned int sec_to_period(unsigned int secs) argument 83 if (period_to_sec(period) >= secs) 98 static unsigned int sec_to_period(unsigned int secs) argument 100 return secs;
|
/linux-master/arch/x86/kernel/cpu/sgx/ |
H A D | ioctl.c | 57 static int sgx_encl_create(struct sgx_encl *encl, struct sgx_secs *secs) argument 75 encl_size = secs->size + PAGE_SIZE; 86 secs_epc = sgx_alloc_epc_page(&encl->secs, true); 92 encl->secs.epc_page = secs_epc; 95 pginfo.contents = (unsigned long)secs; 97 pginfo.secs = 0; 106 if (secs->attributes & SGX_ATTR_DEBUG) 109 encl->secs.encl = encl; 110 encl->secs.type = SGX_PAGE_TYPE_SECS; 111 encl->base = secs 150 void *secs; local [all...] |
/linux-master/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Util.pm | 34 my ($secs, $nsecs) = @_; 36 return $secs * $NSECS_PER_SEC + $nsecs;
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 62 struct src_sec *secs; member in struct:src_obj 140 struct dst_sec *secs; member in struct:bpf_linker 201 struct dst_sec *sec = &linker->secs[i]; 211 free(linker->secs); 249 struct dst_sec *secs = linker->secs, *sec; local 252 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); 253 if (!secs) 518 struct src_sec *secs = obj->secs, *sec; local [all...] |
/linux-master/arch/mips/boot/tools/ |
H A D | relocs.c | 32 static struct section *secs; variable in typeref:struct:section 96 sec_strtab = secs[ehdr.e_shstrndx].strtab; 98 name = sec_strtab + secs[shndx].shdr.sh_name; 114 return &secs[i]; 265 secs = calloc(ehdr.e_shnum, sizeof(struct section)); 266 if (!secs) 273 struct section *sec = &secs[i]; 290 sec->link = &secs[sec->shdr.sh_link]; 299 struct section *sec = &secs[i]; 324 struct section *sec = &secs[ [all...] |
/linux-master/arch/x86/tools/ |
H A D | relocs.c | 46 static struct section *secs; variable in typeref:struct:section 257 sec_strtab = secs[shstrndx].strtab; 260 name = sec_strtab + secs[shndx].shdr.sh_name; 288 struct section *sec = &secs[i]; 351 Elf_Sym *symtab = secs[shsymtabndx].symtab; 352 Elf32_Word *xsymtab = secs[shxsymtabndx].xsymtab; 441 secs = calloc(shnum, sizeof(struct section)); 442 if (!secs) { 451 struct section *sec = &secs[i]; 466 sec->link = &secs[se [all...] |
/linux-master/arch/parisc/kernel/ |
H A D | time.c | 181 time64_t secs = rtc_tm_to_time64(tm); local 185 ret = pdc_tod_set(secs, 0); 187 pr_warn("pdc_tod_set(%lld) returned error %d\n", secs, ret);
|
/linux-master/arch/x86/include/asm/ |
H A D | sgx.h | 244 * @secs: address of the SECS page 250 u64 secs; member in struct:sgx_pageinfo 414 int sgx_virt_ecreate(struct sgx_pageinfo *pageinfo, void __user *secs, 417 void __user *secs, u64 *lepubkeyhash, int *trapnr);
|
/linux-master/include/linux/ |
H A D | ktime.h | 31 * @secs: seconds to set 36 static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs) argument 38 if (unlikely(secs >= KTIME_SEC_MAX)) 41 return secs * NSEC_PER_SEC + (s64)nsecs;
|
/linux-master/tools/testing/selftests/timers/ |
H A D | clocksource-switch.c | 106 int run_tests(int secs) argument 111 sprintf(buf, "./inconsistency-check -t %i", secs); 140 printf("Usage: %s [-s] [-t <secs>]\n", argv[0]);
|
/linux-master/tools/perf/scripts/python/ |
H A D | compaction-times.py | 96 def complete(self, secs, nsecs): 97 self.ns = ns(secs, nsecs) - self.ns 141 def complete_pending(cls, pid, secs, nsecs): 145 head.make_complete(secs, nsecs) 172 def mark_pending(self, secs, nsecs): 173 self.pending = cnode(ns(secs, nsecs)) 178 def make_complete(self, secs, nsecs): 179 self.pending.complete(secs, nsecs)
|
/linux-master/arch/s390/tools/ |
H A D | relocs.c | 60 static struct section *secs; variable in typeref:struct:section 187 secs = calloc(shnum, sizeof(struct section)); 188 if (!secs) 195 struct section *sec = &secs[i]; 214 sec->link = &secs[sec->shdr.sh_link]; 224 struct section *sec = &secs[i]; 301 struct section *sec = &secs[i]; 306 sec_applies = &secs[sec->shdr.sh_info];
|
/linux-master/crypto/ |
H A D | tcrypt.c | 176 int blen, int secs, u32 num_mb) 187 for (start = jiffies, end = start + secs * HZ, bcount = 0; 195 bcount * num_mb, secs, (u64)bcount * blen * num_mb); 243 static void test_mb_aead_speed(const char *algo, int enc, int secs, argument 414 if (secs) { 416 secs, num_mb); 454 int blen, int secs) 460 for (start = jiffies, end = start + secs * HZ, bcount = 0; 472 bcount, secs, (u64)bcount * blen); 518 static void test_aead_speed(const char *algo, int enc, unsigned int secs, argument 175 test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc, int blen, int secs, u32 num_mb) argument 453 test_aead_jiffies(struct aead_request *req, int enc, int blen, int secs) argument 719 test_ahash_jiffies_digest(struct ahash_request *req, int blen, char *out, int secs) argument 739 test_ahash_jiffies(struct ahash_request *req, int blen, int plen, char *out, int secs) argument 866 test_ahash_speed_common(const char *algo, unsigned int secs, struct hash_speed *speed, unsigned mask) argument 947 test_ahash_speed(const char *algo, unsigned int secs, struct hash_speed *speed) argument 953 test_hash_speed(const char *algo, unsigned int secs, struct hash_speed *speed) argument 992 test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc, int blen, int secs, u32 num_mb) argument 1060 test_mb_skcipher_speed(const char *algo, int enc, int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize, u32 num_mb) argument 1221 test_acipher_jiffies(struct skcipher_request *req, int enc, int blen, int secs) argument 1293 test_skcipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize, bool async) argument 1423 test_acipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize) argument 1431 test_cipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize) argument [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp.h | 74 int nfp_resource_wait(struct nfp_cpp *cpp, const char *name, unsigned int secs);
|
/linux-master/tools/perf/util/ |
H A D | debug.c | 114 u64 secs, usecs, nsecs = t; local 116 secs = nsecs / NSEC_PER_SEC; 117 nsecs -= secs * NSEC_PER_SEC; 120 ret = fprintf(debug_file(), "[%13" PRIu64 ".%06" PRIu64 "] ", secs, usecs);
|
/linux-master/crypto/asymmetric_keys/ |
H A D | verify_pefile.c | 113 ctx->secs = pebuf + cursor; 280 if (pefile_compare_shdrs(&ctx->secs[canon[i]], 281 &ctx->secs[loop]) > 0) { 293 if (ctx->secs[i].raw_data_size == 0) 296 pebuf + ctx->secs[i].data_addr, 297 ctx->secs[i].raw_data_size); 302 hashed_bytes += ctx->secs[i].raw_data_size;
|
/linux-master/fs/smb/server/ |
H A D | transport_tcp.c | 59 static inline void ksmbd_tcp_rcv_timeout(struct socket *sock, s64 secs) argument 62 if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1) 63 sock->sk->sk_rcvtimeo = secs * HZ; 69 static inline void ksmbd_tcp_snd_timeout(struct socket *sock, s64 secs) argument 71 sock_set_sndtimeo(sock->sk, secs);
|