Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 16 of 16) sorted by relevance

/system/connectivity/wifilogd/
Draw_os.cpp46 ssize_t RawOs::Recv(int sockfd, void* buf, size_t buflen, int flags) { in Recv() argument
47 return recv(sockfd, buf, buflen, flags); in Recv()
50 ssize_t RawOs::Write(int fd, const void* buf, size_t buflen) { in Write() argument
51 return write(fd, buf, buflen); in Write()
Dos.cpp94 size_t buflen) { in ReceiveDatagram() argument
98 CHECK(buflen <= GetMaxVal<ssize_t>()); in ReceiveDatagram()
100 const ssize_t res = raw_os_->Recv(fd, buf, buflen, MSG_TRUNC); in ReceiveDatagram()
113 size_t buflen) { in Write() argument
117 CHECK(buflen <= GetMaxVal<ssize_t>()); in Write()
119 const ssize_t res = raw_os_->Write(fd, buf, buflen); in Write()
125 SAFELY_CLAMP(buflen, ssize_t, 0, in Write()
Draw_os.h49 virtual ssize_t Recv(int sockfd, void* buf, size_t buflen, int flags);
52 virtual ssize_t Write(int fd, const void* buf, size_t buflen);
Dmemory_reader.h35 MemoryReader(const void* buf, size_t buflen) in MemoryReader() argument
36 : head_(static_cast<const uint8_t*>(buf)), n_bytes_avail_(buflen) {} in MemoryReader()
Dos.h87 size_t buflen);
97 size_t buflen);
/system/extras/ioshark/
Dioshark_bench_mmap.c107 char **bufp, int *buflen, u_int64_t *op_counts, in mmap_do_io() argument
115 p = get_buf(bufp, buflen, len, 0); in mmap_do_io()
131 p = get_buf(bufp, buflen, len, 1); in mmap_do_io()
146 p = get_buf(bufp, buflen, len, 0); in mmap_do_io()
167 char **bufp, int *buflen, u_int64_t *op_counts, in ioshark_handle_mmap() argument
189 bufp, buflen, op_counts, in ioshark_handle_mmap()
198 mmap_do_io(db_node, prot, offset, len, bufp, buflen, in ioshark_handle_mmap()
Dioshark_bench.c217 char **bufp, int *buflen) in do_one_io() argument
241 p = get_buf(bufp, buflen, file_op->prw_len, 0); in do_one_io()
256 p = get_buf(bufp, buflen, file_op->prw_len, 1); in do_one_io()
271 p = get_buf(bufp, buflen, file_op->rw_len, 0); in do_one_io()
286 p = get_buf(bufp, buflen, file_op->rw_len, 1); in do_one_io()
303 bufp, buflen, op_counts, in do_one_io()
403 int buflen = 0; in do_io() local
477 op_counts, &rw_bytes, &buf, &buflen); in do_io()
Dioshark_bench.h140 char *get_buf(char **buf, int *buflen, int len, int do_fill);
146 char **bufp, int *buflen, u_int64_t *op_counts,
Dioshark_bench_subr.c239 get_buf(char **buf, int *buflen, int len, int do_fill __attribute__((unused))) in get_buf() argument
249 if (*buflen < len) { in get_buf()
250 *buflen = MAX(MINBUFLEN, len * 2); in get_buf()
253 *buf = malloc(*buflen); in get_buf()
259 count = *buflen / sizeof(u_int32_t); in get_buf()
275 int buflen = 0; in create_file() local
284 buf = get_buf(&buf, &buflen, n, 1); in create_file()
/system/connectivity/wifilogd/tests/
Dmock_raw_os.h38 MOCK_METHOD4(Recv, ssize_t(int sockfd, void* buf, size_t buflen, int flags));
39 MOCK_METHOD3(Write, ssize_t(int fd, const void* buf, size_t buflen));
Dmock_os.h41 std::tuple<size_t, Errno>(int fd, void* buf, size_t buflen));
43 size_t buflen));
Dcommand_processor_unittest.cpp73 [&accumulator](int /*fd*/, const void* write_buf, size_t buflen) { in CommandProcessorTest() argument
74 accumulator.append(static_cast<const char*>(write_buf), buflen); in CommandProcessorTest()
75 return std::tuple<size_t, Os::Errno>(buflen, 0); in CommandProcessorTest()
406 [&written_to_os](int /*fd*/, const void* write_buf, size_t buflen) { in TEST_F() argument
407 written_to_os.append(static_cast<const char*>(write_buf), buflen); in TEST_F()
408 return std::tuple<size_t, Os::Errno>{buflen / 2, EINTR}; in TEST_F()
/system/core/libkeyutils/
Dkeyutils.cpp67 long keyctl_get_security(key_serial_t id, char* buffer, size_t buflen) { in keyctl_get_security() argument
68 return syscall(__NR_keyctl, KEYCTL_GET_SECURITY, id, buffer, buflen); in keyctl_get_security()
/system/core/libkeyutils/include/
Dkeyutils.h56 long keyctl_get_security(key_serial_t key, char* buffer, size_t buflen);
/system/core/logcat/tests/
Dlogcat_test.cpp218 static char* fgetLongTime(char* buffer, size_t buflen, FILE* fp) { in fgetLongTime() argument
219 while (fgets(buffer, buflen, fp)) { in fgetLongTime()
/system/netd/tests/
Dbinder_test.cpp707 int netmaskToPrefixLength(const uint8_t *buf, size_t buflen) { in netmaskToPrefixLength() argument
712 for (unsigned int i = 0; i < buflen; i++) { in netmaskToPrefixLength()