Searched refs:nsec (Results 1 - 20 of 20) sorted by relevance

/external/kernel-headers/original/linux/
H A Dktime.h51 s32 sec, nsec; member in struct:__anon7804::__anon7805
53 s32 nsec, sec;
130 * that the tv.sec field is negative and the tv.nsec field is greater
134 * tv.sec < 0 and 0 >= tv.nsec < NSEC_PER_SEC
137 /* Set a ktime_t variable to a value in sec/nsec representation: */
140 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } };
155 if (res.tv.nsec < 0)
156 res.tv.nsec += NSEC_PER_SEC;
178 * tv.nsec -= NSEC_PER_SEC
181 if (res.tv.nsec >
[all...]
H A Djiffies.h58 /* TICK_NSEC is the time between ticks in nsec assuming real ACTHZ */
66 /* TICK_USEC_TO_NSEC is the time between ticks in nsec assuming real ACTHZ and */
304 * nsec -= nsec % TICK_NSEC; is NOT a correct resolution rounding.
308 * The >> (NSEC_JIFFIE_SC - SEC_JIFFIE_SC) converts the scaled nsec
315 long nsec = value->tv_nsec + TICK_NSEC - 1; local
319 nsec = 0;
322 (((u64)nsec * NSEC_CONVERSION) >>
334 u64 nsec = (u64)jiffies * TICK_NSEC; local
335 value->tv_sec = div_long_long_rem(nsec, NSEC_PER_SE
372 u64 nsec = (u64)jiffies * TICK_NSEC; local
[all...]
H A Dtime.h71 extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
149 * @nsec: the nanoseconds value to be converted
151 * Returns the timespec representation of the nsec parameter.
153 extern struct timespec ns_to_timespec(const s64 nsec);
157 * @nsec: the nanoseconds value to be converted
159 * Returns the timeval representation of the nsec parameter.
161 extern struct timeval ns_to_timeval(const s64 nsec);
/external/linux-tools-perf/scripts/python/
H A Dnetdev-times.py55 # Calculate a time interval(msec) from src(nsec) to dst(nsec)
227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, vec):
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):
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):
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,
247 event_info = (name, context, cpu, nsecs(sec, nsec), pi
[all...]
/external/regex-re2/util/
H A Dbenchmark.cc27 static int64 nsec() { function
45 ns += nsec() - t0;
51 t0 = nsec();
70 t0 = nsec();
80 ns += nsec() - t0;
/external/libsepol/src/
H A Dmodule.c356 uint32_t *buf = NULL, nsec; local
380 nsec = *sections = le32_to_cpu(buf[2]);
382 if (nsec > MAXSECTIONS) {
384 nsec);
388 off = (size_t *) malloc((nsec + 1) * sizeof(size_t));
395 buf = malloc(sizeof(uint32_t) * nsec);
400 rc = next_entry(buf, file, sizeof(uint32_t) * nsec);
406 for (i = 0; i < nsec; i++) {
416 off[nsec] = policy_file_length(file);
417 if (nsec
444 uint32_t buf[1], nsec; local
630 uint32_t buf[5], len, nsec; local
855 uint32_t buf[5], offsets[5], len, nsec = 0; local
[all...]
/external/grub/stage2/
H A Dbios.c30 int nsec, int segment);
52 int sector, int nsec, int segment)
79 dap.blocks = nsec;
98 return biosdisk (read, drive, geometry, sector, nsec, segment);
120 nsec, segment);
49 biosdisk(int read, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument
H A Dshared.h810 int sector, int nsec, int segment);
/external/grub/grub/
H A Dasmstub.c929 int sector, int nsec, int segment)
968 if (sector == 0 && nsec > 1)
977 nsec--;
980 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
989 nsec, sector, drive, device_map[drive]);
990 hex_dump (buf, nsec * SECTOR_SIZE);
993 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)
928 biosdisk(int subfunc, int drive, struct geometry *geometry, int sector, int nsec, int segment) argument
/external/blktrace/btt/
H A Dtrace_complete.c24 __u64 sec, __u32 nsec, int indent)
31 type2c(type), (unsigned long long)sec, nsec);
23 __out(FILE *ofp, __u64 tm, enum iop_type type, __u64 sec, __u32 nsec, int indent) argument
/external/openssl/crypto/ocsp/
H A Docsp_cl.c307 * rejecting otherwise valid time we allow the times to be within 'nsec' of the current time.
312 int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, ASN1_GENERALIZEDTIME *nextupd, long nsec, long maxsec) argument
317 /* Check thisUpdate is valid and not more than nsec in the future */
325 t_tmp = t_now + nsec;
347 /* Check nextUpdate is valid and not more than nsec in the past */
355 t_tmp = t_now - nsec;
/external/blktrace/
H A Dblkparse_fmt.c89 unsigned long nsec; local
92 nsec = abs_start_time.tv_nsec + NANO_SECONDS(timestamp);
93 if (nsec >= 1000000000) {
94 nsec -= 1000000000;
104 nsec / 1000);
/external/openssl/apps/
H A Docsp.c104 STACK_OF(OCSP_CERTID) *ids, long nsec,
148 long nsec = MAX_VALIDITY_PERIOD, maxage = -1; local
361 nsec = atol(*args);
362 if (nsec < 0)
895 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage))
989 STACK_OF(OCSP_CERTID) *ids, long nsec,
1019 if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage))
987 print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, STACK_OF(OPENSSL_STRING) *names, STACK_OF(OCSP_CERTID) *ids, long nsec, long maxage) argument
/external/mdnsresponder/mDNSCore/
H A DDNSCommon.h160 #define RRAssertsNonexistence(R,T) ((R)->rrtype == kDNSType_NSEC && (T) < kDNSQType_ANY && !((R)->rdata->u.nsec.bitmap[(T)>>3] & (128 >> ((T)&7))))
H A DDNSCommon.c250 if (rd->nsec.bitmap[i>>3] & (128 >> (i&7)))
1441 for (i=sizeof(rdataNSEC); i>0; i--) if (rd->nsec.bitmap[i-1]) break;
1775 for (i=sizeof(rdataNSEC); i>0; i--) if (rdb->nsec.bitmap[i-1]) break;
1783 for (j=0; j<i; j++) *ptr++ = rdb->nsec.bitmap[j];
2355 mDNSPlatformMemZero(rdb->nsec.bitmap, sizeof(rdb->nsec.bitmap));
2361 for (j=0; j<i; j++) rdb->nsec.bitmap[j] = *ptr++;
H A DmDNSEmbeddedAPI.h844 rdataNSEC nsec; member in union:__anon10235
861 rdataNSEC nsec; member in union:__anon10236
H A DmDNS.c2363 AuthRecord nsec; local
2364 mDNS_SetupResourceRecord(&nsec, mDNSNULL, mDNSInterface_Any, kDNSType_NSEC, rr->resrec.rroriginalttl, kDNSRecordTypeUnique, AuthRecordAny, mDNSNULL, mDNSNULL);
2365 nsec.resrec.rrclass |= kDNSClass_UniqueRRSet;
2366 AssignDomainName(&nsec.namestorage, rr->resrec.name);
2367 mDNSPlatformMemZero(nsec.rdatastorage.u.nsec.bitmap, sizeof(nsec.rdatastorage.u.nsec.bitmap));
2372 else nsec.rdatastorage.u.nsec
[all...]
/external/blktrace/btreplay/doc/
H A Dbtreplay.tex252 [ -m <nsec> : --max-bunch-time=<nsec> ] Default: 10 msec
/external/elfutils/src/
H A Dldgeneric.c6273 Elf32_Word nsec = 0; local
6275 ld_state.allsections[nsec]->scnidx);
6315 if (ld_state.allsections[nsec]->name
6328 isect = first = ld_state.allsections[nsec]->last;
6341 ld_state.allsections[nsec]->addr = addr;
6402 if (++nsec >= ld_state.nallsections)
6406 ld_state.allsections[nsec]->scnidx);
/external/mdnsresponder/mDNSPosix/
H A DNetMonitor.c561 if (rd->nsec.bitmap[i>>3] & (128 >> (i&7)))

Completed in 4495 milliseconds