Home
last modified time | relevance | path

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

12

/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/
Dbitops.h14 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) argument
15 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64)) argument
16 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32)) argument
17 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE) argument
30 static inline void set_bit(int nr, unsigned long *addr) in set_bit() argument
32 addr[nr / BITS_PER_LONG] |= 1UL << (nr % BITS_PER_LONG); in set_bit()
35 static inline void clear_bit(int nr, unsigned long *addr) in clear_bit() argument
37 addr[nr / BITS_PER_LONG] &= ~(1UL << (nr % BITS_PER_LONG)); in clear_bit()
40 static __always_inline int test_bit(unsigned int nr, const unsigned long *addr) in test_bit() argument
42 return ((1UL << (nr % BITS_PER_LONG)) & in test_bit()
[all …]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/
Dbitops.h28 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) argument
29 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64)) argument
31 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32)) argument
32 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE) argument
36 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) argument
/system/core/toolbox/
Diftop.c104 int ret, nr, fd; in get_interfaces() local
140 for (nr = 0; nr < MAX_IF; nr++) { in get_interfaces()
172 nr++; in get_interfaces()
185 return nr; in get_interfaces()
196 static int print_interfaces(struct if_stats *old, struct if_stats *new, int nr) in print_interfaces() argument
200 while (nr--) { in print_interfaces()
265 int nr; in iftop_main() local
268 nr = get_interfaces(ifs[toggle]); in iftop_main()
269 if (header_interval && count + nr > header_interval) { in iftop_main()
273 count += print_interfaces(ifs[!toggle], ifs[toggle], nr); in iftop_main()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c80 ssize_t nr; in grep_refill() local
90 nr = gzread(gzbufdesc, buffer, MAXBUFSIZ); in grep_refill()
92 nr = BZ2_bzRead(&bzerr, bzbufdesc, buffer, MAXBUFSIZ); in grep_refill()
111 nr = read(f->fd, buffer, MAXBUFSIZ); in grep_refill()
115 nr = -1; in grep_refill()
119 nr = read(f->fd, buffer, MAXBUFSIZ); in grep_refill()
121 if (nr < 0) in grep_refill()
124 bufrem = nr; in grep_refill()
/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/toolbox/upstream-netbsd/bin/dd/
Dposition.c69 int bcnt, cnt, nr, warned; in pos_in() local
88 if ((nr = ddop_read(in, in.fd, in.db, bcnt)) > 0) { in pos_in()
90 if (!(bcnt -= nr)) { in pos_in()
99 if (nr == 0) { in pos_in()
/system/core/liblog/
Dfake_writer.c31 struct iovec *vec, size_t nr);
66 struct iovec *vec, size_t nr) in fakeWrite() argument
76 ret = TEMP_FAILURE_RETRY(fakeLogWritev(logFd, vec, nr)); in fakeWrite()
Dlogger_write.c40 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;
224 static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_daemon() argument
231 for (len = i = 0; i < nr; ++i) { in __write_to_log_daemon()
342 retval = (*node->write)(log_id, &ts, vec, nr); in __write_to_log_daemon()
351 (void)(*node->write)(log_id, &ts, vec, nr); in __write_to_log_daemon()
358 static int __write_to_log_init(log_id_t log_id, struct iovec *vec, size_t nr) in __write_to_log_init() argument
369 __write_to_log_daemon(log_id, vec, nr); in __write_to_log_init()
379 return write_to_log(log_id, vec, nr); in __write_to_log_init()
Dlogd_writer.c52 struct iovec *vec, size_t nr);
118 struct iovec *vec, size_t nr) in logdWrite() argument
122 struct iovec newVec[nr + headerLength]; in logdWrite()
211 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in logdWrite()
Dpmsg_writer.c44 struct iovec *vec, size_t nr);
118 struct iovec *vec, size_t nr) in pmsgWrite() argument
121 struct iovec newVec[nr + headerLength]; in pmsgWrite()
176 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in pmsgWrite()
Dpmsg_reader.c446 unsigned long long nr = 0; in __android_log_pmsg_file_read() local
449 nr = strtoull(cp, NULL, 10); in __android_log_pmsg_file_read()
451 if (nr != nl) { in __android_log_pmsg_file_read()
452 compare = (nl > nr) ? 1 : -1; in __android_log_pmsg_file_read()
Dlogger.h49 int (*write)(log_id_t logId, struct timespec *ts, struct iovec *vec, size_t nr);
/system/extras/simpleperf/
Drecord.cpp335 uint64_t nr; in SampleRecord() local
336 MoveFromBinaryFormat(nr, p); in SampleRecord()
337 callchain_data.ips.resize(nr); in SampleRecord()
338 MoveFromBinaryFormat(callchain_data.ips.data(), nr, p); in SampleRecord()
347 uint64_t nr; in SampleRecord() local
348 MoveFromBinaryFormat(nr, p); in SampleRecord()
349 branch_stack_data.stack.resize(nr); in SampleRecord()
350 MoveFromBinaryFormat(branch_stack_data.stack.data(), nr, p); in SampleRecord()
415 uint64_t nr = callchain_data.ips.size(); in BinaryFormat() local
416 MoveToBinaryFormat(nr, p); in BinaryFormat()
[all …]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/
Dperf.h140 u64 nr; member
157 u64 nr; member
/system/core/init/
Dueventd.cpp75 int nr = poll(&ufd, 1, -1); in ueventd_main() local
76 if (nr <= 0) { in ueventd_main()
Dproperty_service.cpp244 int nr; in handle_property_set_fd() local
260 nr = TEMP_FAILURE_RETRY(poll(ufds, 1, timeout_ms)); in handle_property_set_fd()
261 if (nr == 0) { in handle_property_set_fd()
265 } else if (nr < 0) { in handle_property_set_fd()
Ddevices.cpp773 ssize_t nr; in load_firmware() local
775 nr = read(fw_fd, buf, sizeof(buf)); in load_firmware()
776 if(!nr) in load_firmware()
778 if(nr < 0) { in load_firmware()
782 if (!android::base::WriteFully(data_fd, buf, nr)) { in load_firmware()
786 len_to_copy -= nr; in load_firmware()
Dinit.cpp740 int nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &ev, 1, timeout)); in main() local
741 if (nr == -1) { in main()
743 } else if (nr == 1) { in main()
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/
Dperf.h178 u64 nr; member
195 u64 nr; member
/system/extras/perfprofd/quipper/
Dperf_parser.cc313 if (callchain->nr == 0) in MapCallchain()
317 parsed_event->callchain.resize(callchain->nr); in MapCallchain()
319 for (unsigned int j = 0; j < callchain->nr; ++j) { in MapCallchain()
355 for (size_t i = 0; i < branch_stack->nr; ++i) { in MapBranchStack()
365 for (size_t i = trimmed_size; i < branch_stack->nr; ++i) { in MapBranchStack()
Dperf_reader.cc285 callchain->nr = callchain_size; in ReadCallchain()
337 branch_stack->nr = branch_stack_size; in ReadBranchStack()
584 *array++ = sample.callchain->nr; in WritePerfSampleToData()
585 for (size_t i = 0; i < sample.callchain->nr; ++i) in WritePerfSampleToData()
609 *array++ = sample.branch_stack->nr; in WritePerfSampleToData()
610 for (size_t i = 0; i < sample.branch_stack->nr; ++i) { in WritePerfSampleToData()
/system/core/liblog/tests/
Dliblog_benchmark.cpp138 static const unsigned nr = 1; in BM_pmsg_short() local
140 struct iovec newVec[nr + header_length]; in BM_pmsg_short()
162 writev(pstore_fd, newVec, nr); in BM_pmsg_short()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
Devent.h106 u64 nr; member
/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/media/audio_utils/
Dprimitives.c28 int32_t nr = r >> 12; in ditherAndClamp() local
30 r = clamp16(nr); in ditherAndClamp()

12