Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 25 of 32) sorted by relevance

12

/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c76 ssize_t nr = -1; in grep_refill() local
84 nr = gzread(gzbufdesc, buffer, MAXBUFSIZ); in grep_refill()
85 if (nr == -1) in grep_refill()
91 nr = BZ2_bzRead(&bzerr, bzbufdesc, buffer, MAXBUFSIZ); in grep_refill()
110 nr = read(f->fd, buffer, MAXBUFSIZ); in grep_refill()
114 nr = -1; in grep_refill()
116 if (nr == -1) in grep_refill()
120 if (nr == -1) { in grep_refill()
121 nr = read(f->fd, buffer, MAXBUFSIZ); in grep_refill()
124 if (nr < 0) in grep_refill()
[all …]
/system/extras/simpleperf/nonlinux_support/include/linux/
Dioctl.h17 #define __IO(type, nr) argument
18 #define __IOR(type, nr, size) argument
19 #define __IOW(type, nr, size) argument
/system/core/liblog/
Dfake_writer.cpp30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec, size_t nr);
74 static int fakeWrite(log_id_t log_id, struct timespec*, struct iovec* vec, size_t nr) { in fakeWrite() argument
84 for (i = 0; i < nr; ++i) { in fakeWrite()
93 ret = TEMP_FAILURE_RETRY(fakeLogWritev(logFd, vec, nr)); in fakeWrite()
Dlogger_write.cpp40 static int __write_to_log_init(log_id_t, struct iovec* vec, size_t nr);
41 static int (*write_to_log)(log_id_t, struct iovec* vec, size_t nr) = __write_to_log_init;
239 static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_daemon() argument
245 for (len = i = 0; i < nr; ++i) { in __write_to_log_daemon()
362 retval = (*node->write)(log_id, &ts, vec, nr); in __write_to_log_daemon()
371 (void)(*node->write)(log_id, &ts, vec, nr); in __write_to_log_daemon()
379 static int __write_to_log_init(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_init() argument
389 __write_to_log_daemon(log_id, vec, nr); in __write_to_log_init()
400 ret = write_to_log(log_id, vec, nr); in __write_to_log_init()
629 static int __write_to_log_null(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_null() argument
[all …]
Dstderr_write.cpp48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
149 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in stderrWrite() argument
158 if (!vec || !nr) return -EINVAL; in stderrWrite()
173 for (i = 0; i < nr; ++i) { in stderrWrite()
Dpmsg_writer.cpp41 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
98 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in pmsgWrite() argument
100 struct iovec newVec[nr + headerLength]; in pmsgWrite()
155 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in pmsgWrite()
Dlogd_writer.cpp49 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
126 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in logdWrite() argument
130 struct iovec newVec[nr + headerLength]; in logdWrite()
221 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in logdWrite()
Dpmsg_reader.cpp452 unsigned long long nr = 0; in __android_log_pmsg_file_read() local
455 nr = strtoull(cp, NULL, 10); in __android_log_pmsg_file_read()
457 if (nr != nl) { in __android_log_pmsg_file_read()
458 compare = (nl > nr) ? 1 : -1; in __android_log_pmsg_file_read()
Dlogger.h50 size_t nr);
/system/core/libasyncio/
DAsyncIO.cpp23 int io_setup(unsigned nr, aio_context_t* ctxp) { in io_setup() argument
24 return syscall(__NR_io_setup, nr, ctxp); in io_setup()
31 int io_submit(aio_context_t ctx, long nr, iocb** iocbpp) { in io_submit() argument
32 return syscall(__NR_io_submit, ctx, nr, iocbpp); in io_submit()
/system/core/libstats/
Dstats_event_list.c43 static int __write_to_statsd_init(struct iovec* vec, size_t nr);
44 int (*write_to_statsd)(struct iovec* vec, size_t nr) = __write_to_statsd_init;
147 static int __write_to_stats_daemon(struct iovec* vec, size_t nr) { in __write_to_stats_daemon() argument
152 for (len = i = 0; i < nr; ++i) { in __write_to_stats_daemon()
169 int ret = (int)(*statsdLoggerWrite.write)(&ts, vec, nr); in __write_to_stats_daemon()
174 static int __write_to_statsd_init(struct iovec* vec, size_t nr) { in __write_to_statsd_init() argument
192 ret = write_to_statsd(vec, nr); in __write_to_statsd_init()
Dstatsd_writer.c82 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr);
175 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr) { in statsdWrite() argument
179 struct iovec newVec[nr + headerLength]; in statsdWrite()
245 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in statsdWrite()
Dstatsd_writer.h40 int (*write)(struct timespec* ts, struct iovec* vec, size_t nr);
/system/core/init/
Depoll.cpp78 auto nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_, &ev, 1, timeout_ms)); in Wait() local
79 if (nr == -1) { in Wait()
81 } else if (nr == 1) { in Wait()
Duevent_listener.cpp205 int nr = poll(&ufd, 1, timeout_ms); in Poll() local
206 if (nr == 0) return; in Poll()
207 if (nr < 0) { in Poll()
Dsubcontext.cpp172 int nr = TEMP_FAILURE_RETRY(poll(ufd, arraysize(ufd), -1)); in MainLoop() local
173 if (nr == 0) continue; in MainLoop()
174 if (nr < 0) { in MainLoop()
Dproperty_service.cpp352 int nr = poll(ufds, 1, *timeout_ms); in PollIn() local
359 if (nr > 0) { in PollIn()
363 if (nr == 0) { in PollIn()
368 if (nr < 0 && errno != EINTR) { in PollIn()
/system/core/libasyncio/include/asyncio/
DAsyncIO.h36 int io_setup(unsigned nr, aio_context_t* ctxp);
38 int io_submit(aio_context_t ctx, long nr, struct iocb** iocbpp);
/system/extras/tests/icachetest/
DProfiler.h84 uint64_t nr; variable
93 lhs.nr -= rhs.nr;
190 outCounters->nr = counters.nr; in readCounters()
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py41 for j in range(callchain.nr):
42 entry = callchain.entries[callchain.nr - j - 1]
/system/extras/simpleperf/scripts/
Dreport_sample.py53 for i in range(callchain.nr):
/system/extras/f2fs_utils/
Df2fs_sparseblock.c475 int f2fs_test_bit(unsigned int nr, const char *p) in f2fs_test_bit() argument
480 addr += (nr >> 3); in f2fs_test_bit()
481 mask = 1 << (7 - (nr & 0x07)); in f2fs_test_bit()
/system/core/libstats/include/
Dstats_event_list.h31 extern int (*write_to_statsd)(struct iovec* vec, size_t nr);
/system/core/libmeminfo/testdata1/
Dsmaps3277 VmFlags: mr mw me nr
3297 VmFlags: mr mw me nr
3317 VmFlags: rd wr mr mw me nr
3398 VmFlags: mr mw me nr
3418 VmFlags: mr mw me nr
3438 VmFlags: rd wr mr mw me nr
3480 VmFlags: mr mw me nr
3500 VmFlags: mr mw me nr
3520 VmFlags: rd wr mr mw me nr
3562 VmFlags: mr mw me nr
[all …]
/system/core/liblog/tests/
Dliblog_benchmark.cpp216 static const unsigned nr = 1; in BM_pmsg_short() local
218 struct iovec newVec[nr + header_length]; in BM_pmsg_short()
239 writev(pstore_fd, newVec, nr); in BM_pmsg_short()

12