Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 25 of 351) sorted by relevance

12345678910>>...15

/external/ipsec-tools/src/racoon/
Dprivsep.c292 char *bufs[PRIVSEP_NBUF_MAX]; in privsep_init() local
308 bufs[i] = (char *)data; in privsep_init()
309 data += combuf->bufs.buflen[i]; in privsep_init()
310 totallen += combuf->bufs.buflen[i]; in privsep_init()
345 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
347 if (unsafe_path(bufs[0], LC_PATHTYPE_CERT) != 0) { in privsep_init()
350 "unsafe cert \"%s\"\n", bufs[0]); in privsep_init()
354 "eay_get_pkcs1privkey(\"%s\")\n", bufs[0]); in privsep_init()
356 if ((privkey = eay_get_pkcs1privkey(bufs[0])) == NULL){ in privsep_init()
361 reply->bufs.buflen[0] = privkey->l; in privsep_init()
[all …]
/external/fastrpc/src/
Dlistener_android.c151 struct invoke_bufs* bufs = 0; in listener() local
166 VERIFYC(NULL != (bufs = rpcmem_realloc(heapid, flags, 0, 0, sizeof(*bufs))), AEE_ENORPCMEMORY); in listener()
167 memset(bufs, 0, sizeof(*bufs)); in listener()
178 ctx, result, bufs->outbufs, numOutBufs, &ctx, in listener()
179 &handle, &sc, bufs->inbufs, inBufsAllocated, in listener()
180 bufs->inbufLenReqs, MAX_BUFS, bufs->outbufLenReqs, MAX_BUFS); in listener()
185 &handle, &sc, bufs->inbufs, inBufsAllocated, in listener()
186 bufs->inbufLenReqs, MAX_BUFS, bufs->outbufLenReqs, MAX_BUFS))); in listener()
194 if(bufs->inbufs[ii].dataLen < bufs->inbufLenReqs[ii]) { in listener()
195 if(0 != bufs->inbufLenReqs[ii]) { in listener()
[all …]
/external/deqp-deps/amber/src/vkscript/
Dparser_test.cc134 const auto& bufs = script->GetBuffers(); in TEST_F() local
135 ASSERT_EQ(1U, bufs.size()); in TEST_F()
137 bufs[0]->GetFormat()->GetFormatType()); in TEST_F()
149 const auto& bufs = script->GetBuffers(); in TEST_F() local
150 ASSERT_EQ(2U, bufs.size()); in TEST_F()
152 bufs[1]->GetFormat()->GetFormatType()); in TEST_F()
232 const auto& bufs = script->GetBuffers(); in TEST_F() local
233 ASSERT_EQ(2U, bufs.size()); in TEST_F()
235 bufs[0]->GetFormat()->GetFormatType()); in TEST_F()
238 bufs[1]->GetFormat()->GetFormatType()); in TEST_F()
[all …]
/external/rust/crates/tokio-util/tests/
Dio_inspect.rs87 bufs: &[IoSlice<'_>], in poll_write_vectored()
92 if bufs.is_empty() { in poll_write_vectored()
95 let mut written_len = bufs[0].len(); in poll_write_vectored()
96 self.contents.extend_from_slice(&bufs[0]); in poll_write_vectored()
98 if bufs.len() > 1 { in poll_write_vectored()
99 let buf = bufs[1]; in poll_write_vectored()
134 mut bufs: Vec<Vec<u8>>, in write_all_vectored()
137 while !bufs.is_empty() { in write_all_vectored()
139 let bufs: Vec<IoSlice> = bufs.iter().map(|v| IoSlice::new(v)).collect(); in write_all_vectored() localVariable
140 Pin::new(&mut writer).poll_write_vectored(cx, &bufs) in write_all_vectored()
[all …]
/external/crosvm/base/src/
Dfile_traits.rs76 fn read_vectored_volatile(&mut self, bufs: &[VolatileSlice]) -> Result<usize> { in read_vectored_volatile()
77 bufs.iter() in read_vectored_volatile()
107 fn write_vectored_volatile(&mut self, bufs: &[VolatileSlice]) -> Result<usize> { in write_vectored_volatile()
108 bufs.iter() in write_vectored_volatile()
135 fn read_vectored_volatile(&mut self, bufs: &[VolatileSlice]) -> Result<usize> { in read_vectored_volatile()
136 (**self).read_vectored_volatile(bufs) in read_vectored_volatile()
147 fn write_vectored_volatile(&mut self, bufs: &[VolatileSlice]) -> Result<usize> { in write_vectored_volatile()
148 (**self).write_vectored_volatile(bufs) in write_vectored_volatile()
169 fn read_vectored_at_volatile(&mut self, bufs: &[VolatileSlice], offset: u64) -> Result<usize> { in read_vectored_at_volatile()
170 if let Some(&slice) = bufs.first() { in read_vectored_at_volatile()
[all …]
/external/crosvm/third_party/vmm_vhost/src/
Dconnection.rs71 bufs: &mut [IoSliceMut], in recv_into_bufs()
87 fn advance_slices(bufs: &mut &mut [&[u8]], mut count: usize) { in advance_slices()
91 for b in bufs.iter() { in advance_slices()
98 *bufs = &mut take(bufs)[idx..]; in advance_slices()
99 if !bufs.is_empty() { in advance_slices()
100 bufs[0] = &bufs[0][count..]; in advance_slices()
106 fn advance_slices_mut(bufs: &mut &mut [&mut [u8]], mut count: usize) { in advance_slices_mut()
110 for b in bufs.iter() { in advance_slices_mut()
117 *bufs = &mut take(bufs)[idx..]; in advance_slices_mut()
118 if !bufs.is_empty() { in advance_slices_mut()
[all …]
/external/deqp-deps/amber/src/amberscript/
Dparser_bind_test.cc1391 const auto& bufs = pipeline->GetBuffers(); in TEST_F() local
1392 ASSERT_EQ(1U, bufs.size()); in TEST_F()
1393 EXPECT_EQ(BufferType::kUniform, bufs[0].type); in TEST_F()
1394 EXPECT_EQ(1U, bufs[0].descriptor_set); in TEST_F()
1395 EXPECT_EQ(2U, bufs[0].binding); in TEST_F()
1396 EXPECT_EQ(0U, bufs[0].descriptor_offset); in TEST_F()
1397 EXPECT_EQ(~0ULL, bufs[0].descriptor_range); in TEST_F()
1398 EXPECT_EQ(static_cast<uint32_t>(0), bufs[0].location); in TEST_F()
1400 bufs[0].buffer->GetFormat()->GetFormatType()); in TEST_F()
1429 const auto& bufs = pipeline->GetBuffers(); in TEST_F() local
[all …]
/external/rust/crates/futures-util/src/io/
Dwrite_all_vectored.rs15 bufs: &'a mut [IoSlice<'a>], field
21 pub(super) fn new(writer: &'a mut W, mut bufs: &'a mut [IoSlice<'a>]) -> Self { in new()
22 IoSlice::advance_slices(&mut bufs, 0); in new()
23 Self { writer, bufs } in new()
32 while !this.bufs.is_empty() { in poll()
33 let n = ready!(Pin::new(&mut this.writer).poll_write_vectored(cx, this.bufs))?; in poll()
37 IoSlice::advance_slices(&mut this.bufs, n); in poll()
81 bufs: &[IoSlice<'_>], in poll_write_vectored()
85 for buf in bufs.iter().take(self.n_bufs) { in poll_write_vectored()
129 let bufs = &[IoSlice::new(&[2, 2, 2])]; in test_writer_read_from_one_buf() localVariable
[all …]
/external/angle/src/tests/gl_tests/
DDrawBuffersTest.cpp273 const GLenum bufs[] = {GL_NONE, GL_COLOR_ATTACHMENT1}; in TEST_P() local
274 setDrawBuffers(2, bufs); in TEST_P()
300 const GLenum bufs[] = {GL_NONE, GL_COLOR_ATTACHMENT1}; in TEST_P() local
301 setDrawBuffers(2, bufs); in TEST_P()
337 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0, GL_NONE, GL_NONE, GL_COLOR_ATTACHMENT3}; in TEST_P() local
343 setDrawBuffers(4, bufs); in TEST_P()
374 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0, GL_NONE, GL_NONE, GL_COLOR_ATTACHMENT3}; in TEST_P() local
380 setDrawBuffers(4, bufs); in TEST_P()
419 const GLenum bufs[] = {GL_COLOR_ATTACHMENT0, GL_NONE, GL_NONE, GL_COLOR_ATTACHMENT3}; in TEST_P() local
425 setDrawBuffers(4, bufs); in TEST_P()
[all …]
/external/crosvm/base/src/sys/windows/
Dfile_traits.rs39 fn read_vectored_volatile(&mut self, bufs: &[VolatileSlice]) -> Result<usize> { in read_vectored_volatile()
40 if bufs.is_empty() { in read_vectored_volatile()
48 for buf in bufs.iter() { in read_vectored_volatile()
79 fn write_vectored_volatile(&mut self, bufs: &[VolatileSlice]) -> Result<usize> { in write_vectored_volatile()
80 if bufs.is_empty() { in write_vectored_volatile()
89 for buf in bufs.iter() { in write_vectored_volatile()
130 fn read_vectored_at_volatile(&mut self, bufs: &[VolatileSlice], offset: u64) -> Result<usize> { in read_vectored_at_volatile()
131 if bufs.is_empty() { in read_vectored_at_volatile()
139 for buf in bufs.iter() { in read_vectored_at_volatile()
178 fn write_vectored_at_volatile(&mut self, bufs: &[VolatileSlice], offset: u64) -> Result<usize> { in write_vectored_at_volatile()
[all …]
/external/rust/crates/tokio/src/io/
Dasync_write.rs161 bufs: &[IoSlice<'_>], in poll_write_vectored()
163 let buf = bufs in poll_write_vectored()
198 bufs: &[IoSlice<'_>],
200 Pin::new(&mut **self).poll_write_vectored(cx, bufs)
241 bufs: &[IoSlice<'_>], in poll_write_vectored()
243 self.get_mut().as_mut().poll_write_vectored(cx, bufs) in poll_write_vectored()
272 bufs: &[IoSlice<'_>], in poll_write_vectored()
274 Poll::Ready(io::Write::write_vectored(&mut *self, bufs)) in poll_write_vectored()
302 bufs: &[IoSlice<'_>], in poll_write_vectored()
304 Poll::Ready(io::Write::write_vectored(&mut *self, bufs)) in poll_write_vectored()
[all …]
/external/lzma/C/
DBcj2.c43 if (p->bufs[BCJ2_STREAM_RC] == p->lims[BCJ2_STREAM_RC]) in Bcj2Dec_Decode()
49 p->code = (p->code << 8) | *(p->bufs[BCJ2_STREAM_RC])++; in Bcj2Dec_Decode()
113 if (p->bufs[BCJ2_STREAM_RC] == p->lims[BCJ2_STREAM_RC]) in Bcj2Dec_Decode()
119 p->code = (p->code << 8) | *(p->bufs[BCJ2_STREAM_RC])++; in Bcj2Dec_Decode()
123 const Byte *src = p->bufs[BCJ2_STREAM_MAIN]; in Bcj2Dec_Decode()
171 num = src - p->bufs[BCJ2_STREAM_MAIN]; in Bcj2Dec_Decode()
176 p->bufs[BCJ2_STREAM_MAIN] = src; in Bcj2Dec_Decode()
180 p->bufs[BCJ2_STREAM_MAIN] == in Bcj2Dec_Decode()
194 p->bufs[BCJ2_STREAM_MAIN] = src + 1; in Bcj2Dec_Decode()
215 const Byte *cur = p->bufs[cj]; in Bcj2Dec_Decode()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
D1-1.c69 char *bufs; in main() local
92 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main()
94 if (bufs == NULL) { in main()
100 if (write(fd, bufs, NUM_AIOCBS * BUF_SIZE) != (NUM_AIOCBS * BUF_SIZE)) { in main()
102 free(bufs); in main()
116 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main()
143 free(bufs); in main()
156 free(bufs); in main()
169 free(bufs); in main()
184 free(bufs); in main()
[all …]
/external/rust/crates/futures-io/src/
Dlib.rs91 bufs: &mut [IoSliceMut<'_>], in poll_read_vectored()
93 for b in bufs { in poll_read_vectored()
161 bufs: &[IoSlice<'_>], in poll_write_vectored()
163 for b in bufs { in poll_write_vectored()
313 bufs: &mut [IoSliceMut<'_>],
315 Pin::new(&mut **self).poll_read_vectored(cx, bufs)
344 bufs: &mut [IoSliceMut<'_>], in poll_read_vectored()
346 self.get_mut().as_mut().poll_read_vectored(cx, bufs) in poll_read_vectored()
363 bufs: &mut [IoSliceMut<'_>],
365 Poll::Ready(io::Read::read_vectored(&mut *self, bufs))
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/
D18-1.c47 char *bufs; in main() local
65 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main()
67 if (bufs == NULL) { in main()
78 aiocbs[0]->aio_buf = bufs; in main()
91 free(bufs); in main()
102 free(bufs); in main()
108 free(bufs); in main()
D14-1.c64 char *bufs; in main() local
87 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main()
89 if (bufs == NULL) { in main()
102 free(bufs); in main()
113 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main()
148 free(bufs); in main()
162 free(bufs); in main()
184 free(bufs); in main()
D1-1.c57 char *bufs; in main() local
80 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main()
82 if (bufs == NULL) { in main()
98 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main()
123 free(bufs); in main()
133 free(bufs); in main()
153 free(bufs); in main()
D2-1.c55 char *bufs; in main() local
78 bufs = malloc(NUM_AIOCBS * BUF_SIZE); in main()
80 if (bufs == NULL) { in main()
94 aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE]; in main()
118 free(bufs); in main()
128 free(bufs); in main()
150 free(bufs); in main()
/external/strace/tests-m32/
Ds390_pci_mmio_read_write.c98 } bufs[] = { in main() local
124 for (j = 0; j < ARRAY_SIZE(bufs); j++) { in main()
127 bool valid = bufs[j].buf && in main()
128 bufs[j].size >= in main()
132 if (bufs[j].size && bools[l]) in main()
134 bufs[j].size, in main()
137 do_call(bools[l], addrs[i], bufs[j].buf, in main()
138 sizes[k], valid, bufs[j].str); in main()
/external/strace/tests/
Ds390_pci_mmio_read_write.c98 } bufs[] = { in main() local
124 for (j = 0; j < ARRAY_SIZE(bufs); j++) { in main()
127 bool valid = bufs[j].buf && in main()
128 bufs[j].size >= in main()
132 if (bufs[j].size && bools[l]) in main()
134 bufs[j].size, in main()
137 do_call(bools[l], addrs[i], bufs[j].buf, in main()
138 sizes[k], valid, bufs[j].str); in main()
/external/strace/tests-mx32/
Ds390_pci_mmio_read_write.c98 } bufs[] = { in main() local
124 for (j = 0; j < ARRAY_SIZE(bufs); j++) { in main()
127 bool valid = bufs[j].buf && in main()
128 bufs[j].size >= in main()
132 if (bufs[j].size && bools[l]) in main()
134 bufs[j].size, in main()
137 do_call(bools[l], addrs[i], bufs[j].buf, in main()
138 sizes[k], valid, bufs[j].str); in main()
/external/rust/crates/tokio/src/io/util/
Dbuf_writer.rs139 mut bufs: &[IoSlice<'_>], in poll_write_vectored()
142 let total_len = bufs in poll_write_vectored()
154 me.inner.poll_write_vectored(cx, bufs) in poll_write_vectored()
156 bufs.iter().for_each(|b| me.buf.extend_from_slice(b)); in poll_write_vectored()
161 while bufs.first().map(|buf| buf.len()) == Some(0) { in poll_write_vectored()
162 bufs = &bufs[1..]; in poll_write_vectored()
164 if bufs.is_empty() { in poll_write_vectored()
168 let first_len = bufs[0].len(); in poll_write_vectored()
178 return me.inner.poll_write(cx, &bufs[0]); in poll_write_vectored()
180 me.buf.extend_from_slice(&bufs[0]); in poll_write_vectored()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dsocket_ops.hpp117 ASIO_DECL signed_size_type recv(socket_type s, buf* bufs,
120 ASIO_DECL size_t sync_recv(socket_type s, state_type state, buf* bufs,
125 buf* bufs, size_t count, int flags, bool is_stream,
129 ASIO_DECL signed_size_type recvfrom(socket_type s, buf* bufs,
134 buf* bufs, size_t count, int flags, socket_addr_type* addr,
139 buf* bufs, size_t count, int flags,
144 ASIO_DECL signed_size_type recvmsg(socket_type s, buf* bufs,
149 buf* bufs, size_t count, int in_flags, int& out_flags,
154 buf* bufs, size_t count, int in_flags, int& out_flags,
158 ASIO_DECL signed_size_type send(socket_type s, const buf* bufs,
[all …]
/external/libaom/av1/encoder/
Dencoder_alloc.h150 struct aom_internal_error_info *error, CompoundTypeRdBuffers *const bufs) { in alloc_compound_type_rd_buffers() argument
152 error, bufs->pred0, in alloc_compound_type_rd_buffers()
153 (uint8_t *)aom_memalign(16, 2 * MAX_SB_SQUARE * sizeof(*bufs->pred0))); in alloc_compound_type_rd_buffers()
155 error, bufs->pred1, in alloc_compound_type_rd_buffers()
156 (uint8_t *)aom_memalign(16, 2 * MAX_SB_SQUARE * sizeof(*bufs->pred1))); in alloc_compound_type_rd_buffers()
158 error, bufs->residual1, in alloc_compound_type_rd_buffers()
159 (int16_t *)aom_memalign(32, MAX_SB_SQUARE * sizeof(*bufs->residual1))); in alloc_compound_type_rd_buffers()
161 error, bufs->diff10, in alloc_compound_type_rd_buffers()
162 (int16_t *)aom_memalign(32, MAX_SB_SQUARE * sizeof(*bufs->diff10))); in alloc_compound_type_rd_buffers()
163 AOM_CHECK_MEM_ERROR(error, bufs->tmp_best_mask_buf, in alloc_compound_type_rd_buffers()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/impl/
Dread.hpp273 boost::array<asio::mutable_buffer, 2> >::type bufs = {{ in operator ()() local
276 std::size_t buffer_size0 = asio::buffer_size(bufs[0]); in operator ()()
277 std::size_t buffer_size1 = asio::buffer_size(bufs[1]); in operator ()()
285 bufs[0] = asio::buffer(bufs[0] + total_transferred_, n); in operator ()()
286 bufs[1] = asio::buffer( in operator ()()
287 bufs[1] + (total_transferred_ < buffer_size0 in operator ()()
289 n - asio::buffer_size(bufs[0])); in operator ()()
290 stream_.async_read_some(bufs, ASIO_MOVE_CAST(read_op)(*this)); in operator ()()
355 std::array<asio::mutable_buffer, 2> >::type bufs = {{ in operator ()() local
358 std::size_t buffer_size0 = asio::buffer_size(bufs[0]); in operator ()()
[all …]

12345678910>>...15