Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 25 of 26) sorted by relevance

12

/external/kernel-headers/original/linux/
Dktime.h51 s32 sec, nsec; member
53 s32 nsec, sec;
140 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } }; in ktime_set()
155 if (res.tv.nsec < 0) in ktime_sub()
156 res.tv.nsec += NSEC_PER_SEC; in ktime_sub()
181 if (res.tv.nsec >= NSEC_PER_SEC) in ktime_add()
194 extern ktime_t ktime_add_ns(const ktime_t kt, u64 nsec);
205 .nsec = (s32)ts.tv_nsec } }; in timespec_to_ktime()
217 .nsec = (s32)tv.tv_usec * 1000 } }; in timeval_to_ktime()
229 .tv_nsec = (long) kt.tv.nsec }; in ktime_to_timespec()
[all …]
Djiffies.h315 long nsec = value->tv_nsec + TICK_NSEC - 1; in timespec_to_jiffies() local
319 nsec = 0; in timespec_to_jiffies()
322 (((u64)nsec * NSEC_CONVERSION) >> in timespec_to_jiffies()
334 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_timespec() local
335 value->tv_sec = div_long_long_rem(nsec, NSEC_PER_SEC, &value->tv_nsec); in jiffies_to_timespec()
372 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_timeval() local
375 value->tv_sec = div_long_long_rem(nsec, NSEC_PER_SEC, &tv_usec); in jiffies_to_timeval()
Dtime.h71 extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
153 extern struct timespec ns_to_timespec(const s64 nsec);
161 extern struct timeval ns_to_timeval(const s64 nsec);
/external/linux-tools-perf/scripts/python/
Dnetdev-times.py227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, vec): argument
230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
233 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, vec): argument
236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
239 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, vec): argument
242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
245 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
251 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, irq, ret): argument
252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
[all …]
/external/libsepol/src/
Dmodule.c376 uint32_t *buf = NULL, nsec; in module_package_read_offsets() local
400 nsec = *sections = le32_to_cpu(buf[2]); in module_package_read_offsets()
402 if (nsec > MAXSECTIONS) { in module_package_read_offsets()
404 nsec); in module_package_read_offsets()
408 off = (size_t *) malloc((nsec + 1) * sizeof(size_t)); in module_package_read_offsets()
415 buf = malloc(sizeof(uint32_t) * nsec); in module_package_read_offsets()
420 rc = next_entry(buf, file, sizeof(uint32_t) * nsec); in module_package_read_offsets()
426 for (i = 0; i < nsec; i++) { in module_package_read_offsets()
436 rc = policy_file_length(file, &off[nsec]); in module_package_read_offsets()
440 if (nsec && off[nsec] < off[nsec-1]) { in module_package_read_offsets()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xvmc/tests/
Dtestlib.c126 int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; in timeval_subtract() local
127 y->tv_usec -= 1000000 * nsec; in timeval_subtract()
128 y->tv_sec += nsec; in timeval_subtract()
132 int nsec = (x->tv_usec - y->tv_usec) / 1000000; in timeval_subtract() local
133 y->tv_usec += 1000000 * nsec; in timeval_subtract()
134 y->tv_sec -= nsec; in timeval_subtract()
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
Dtestlib.c126 int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; in timeval_subtract() local
127 y->tv_usec -= 1000000 * nsec; in timeval_subtract()
128 y->tv_sec += nsec; in timeval_subtract()
132 int nsec = (x->tv_usec - y->tv_usec) / 1000000; in timeval_subtract() local
133 y->tv_usec += 1000000 * nsec; in timeval_subtract()
134 y->tv_sec -= nsec; in timeval_subtract()
/external/chromium_org/third_party/re2/util/
Dbenchmark.cc27 static int64 nsec() { in nsec() function
45 ns += nsec() - t0; in StopBenchmarkTiming()
51 t0 = nsec(); in StartBenchmarkTiming()
70 t0 = nsec(); in runN()
80 ns += nsec() - t0; in runN()
/external/regex-re2/util/
Dbenchmark.cc27 static int64 nsec() { in nsec() function
45 ns += nsec() - t0; in StopBenchmarkTiming()
51 t0 = nsec(); in StartBenchmarkTiming()
70 t0 = nsec(); in runN()
80 ns += nsec() - t0; in runN()
/external/grub/stage2/
Dbios.c29 int nsec, int segment);
50 int sector, int nsec, int segment) in biosdisk() argument
77 dap.blocks = nsec; in biosdisk()
96 return biosdisk (read, drive, geometry, sector, nsec, segment); in biosdisk()
118 nsec, segment); in biosdisk()
Dshared.h810 int sector, int nsec, int segment);
/external/grub/grub/
Dasmstub.c929 int sector, int nsec, int segment) in biosdisk() argument
968 if (sector == 0 && nsec > 1) in biosdisk()
977 nsec--; in biosdisk()
980 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
989 nsec, sector, drive, device_map[drive]); in biosdisk()
990 hex_dump (buf, nsec * SECTOR_SIZE); in biosdisk()
993 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
/external/chromium_org/net/disk_cache/simple/
Dsimple_util.cc120 long nsec; in GetMTime() local
121 if (GetNanoSecsFromStat(file_stat, &sec, &nsec)) { in GetMTime()
122 int64 usec = (nsec / base::Time::kNanosecondsPerMicrosecond); in GetMTime()
/external/blktrace/
Dblkparse_fmt.c89 unsigned long nsec; in print_time() local
92 nsec = abs_start_time.tv_nsec + NANO_SECONDS(timestamp); in print_time()
93 if (nsec >= 1000000000) { in print_time()
94 nsec -= 1000000000; in print_time()
104 nsec / 1000); in print_time()
/external/openssl/crypto/ocsp/
Docsp_cl.c312 int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, ASN1_GENERALIZEDTIME *nextupd, long nsec, lo… in OCSP_check_validity() argument
325 t_tmp = t_now + nsec; in OCSP_check_validity()
355 t_tmp = t_now - nsec; in OCSP_check_validity()
/external/chromium_org/third_party/openssl/openssl/crypto/ocsp/
Docsp_cl.c312 int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, ASN1_GENERALIZEDTIME *nextupd, long nsec, lo… in OCSP_check_validity() argument
325 t_tmp = t_now + nsec; in OCSP_check_validity()
355 t_tmp = t_now - nsec; in OCSP_check_validity()
/external/blktrace/btt/
Dtrace_complete.c24 __u64 sec, __u32 nsec, int indent) in __out() argument
31 type2c(type), (unsigned long long)sec, nsec); in __out()
/external/openssl/apps/
Docsp.c104 STACK_OF(OCSP_CERTID) *ids, long nsec,
148 long nsec = MAX_VALIDITY_PERIOD, maxage = -1; in MAIN() local
361 nsec = atol(*args); in MAIN()
362 if (nsec < 0) in MAIN()
895 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in MAIN()
989 STACK_OF(OCSP_CERTID) *ids, long nsec, in print_ocsp_summary() argument
1019 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) in print_ocsp_summary()
/external/chromium_org/third_party/openssl/openssl/apps/
Docsp.c104 STACK_OF(OCSP_CERTID) *ids, long nsec,
148 long nsec = MAX_VALIDITY_PERIOD, maxage = -1; in MAIN() local
361 nsec = atol(*args); in MAIN()
362 if (nsec < 0) in MAIN()
895 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in MAIN()
989 STACK_OF(OCSP_CERTID) *ids, long nsec, in print_ocsp_summary() argument
1019 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) in print_ocsp_summary()
/external/mdnsresponder/mDNSCore/
DDNSCommon.h160 …) ((R)->rrtype == kDNSType_NSEC && (T) < kDNSQType_ANY && !((R)->rdata->u.nsec.bitmap[(T)>>3] & (1…
DDNSCommon.c250 if (rd->nsec.bitmap[i>>3] & (128 >> (i&7))) in GetRRDisplayString_rdb()
1441 for (i=sizeof(rdataNSEC); i>0; i--) if (rd->nsec.bitmap[i-1]) break; in GetRDLength()
1775 for (i=sizeof(rdataNSEC); i>0; i--) if (rdb->nsec.bitmap[i-1]) break; in putRData()
1783 for (j=0; j<i; j++) *ptr++ = rdb->nsec.bitmap[j]; in putRData()
2355 mDNSPlatformMemZero(rdb->nsec.bitmap, sizeof(rdb->nsec.bitmap)); in GetLargeResourceRecord()
2361 for (j=0; j<i; j++) rdb->nsec.bitmap[j] = *ptr++; in GetLargeResourceRecord()
DmDNSEmbeddedAPI.h844 rdataNSEC nsec; member
861 rdataNSEC nsec; member
DmDNS.c2363 AuthRecord nsec; in SendResponses() local
2364 …mDNS_SetupResourceRecord(&nsec, mDNSNULL, mDNSInterface_Any, kDNSType_NSEC, rr->resrec.rroriginalt… in SendResponses()
2365 nsec.resrec.rrclass |= kDNSClass_UniqueRRSet; in SendResponses()
2366 AssignDomainName(&nsec.namestorage, rr->resrec.name); in SendResponses()
2367 mDNSPlatformMemZero(nsec.rdatastorage.u.nsec.bitmap, sizeof(nsec.rdatastorage.u.nsec.bitmap)); in SendResponses()
2372 … else nsec.rdatastorage.u.nsec.bitmap[r2->resrec.rrtype >> 3] |= 128 >> (r2->resrec.rrtype & 7); in SendResponses()
2377 newptr = PutRR_OS(responseptr, &m->omsg.h.numAdditionals, &nsec.resrec); in SendResponses()
/external/elfutils/src/
Dldgeneric.c6273 Elf32_Word nsec = 0; in ld_generic_create_outfile() local
6275 ld_state.allsections[nsec]->scnidx); in ld_generic_create_outfile()
6315 if (ld_state.allsections[nsec]->name in ld_generic_create_outfile()
6328 isect = first = ld_state.allsections[nsec]->last; in ld_generic_create_outfile()
6341 ld_state.allsections[nsec]->addr = addr; in ld_generic_create_outfile()
6402 if (++nsec >= ld_state.nallsections) in ld_generic_create_outfile()
6406 ld_state.allsections[nsec]->scnidx); in ld_generic_create_outfile()
/external/blktrace/btreplay/doc/
Dbtreplay.tex252 [ -m <nsec> : --max-bunch-time=<nsec> ] Default: 10 msec

12