Home
last modified time | relevance | path

Searched refs:iov_base (Results 1 – 25 of 202) sorted by relevance

123456789

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dprocess_vm.c33 struct iovec local = {.iov_base = dst, .iov_len = sizeof(dst)}; in process_vm_writev_0100()
34 struct iovec remote = {.iov_base = src, .iov_len = sizeof(src)}; in process_vm_writev_0100()
53 {.iov_base = dst1, .iov_len = sizeof(dst1)}, in process_vm_writev_0200()
54 {.iov_base = dst2, .iov_len = sizeof(dst2)}, in process_vm_writev_0200()
57 {.iov_base = src1, .iov_len = sizeof(src1)}, in process_vm_writev_0200()
58 {.iov_base = src2, .iov_len = sizeof(src2)}, in process_vm_writev_0200()
65 EXPECT_STREQ("process_vm_writev_0200", local[i].iov_base, remote[i].iov_base); in process_vm_writev_0200()
78 .iov_base = NULL, in process_vm_writev_0300()
81 struct iovec remote = {.iov_base = src, .iov_len = sizeof(src)}; in process_vm_writev_0300()
97 remote.iov_base = src; in process_vm_readv_0100()
[all …]
/third_party/musl/porting/uniproton/kernel/src/stdio/
D__stdio_write.c7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write()
8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write()
15 cnt = write(f->fd, iov[0].iov_base, iov[0].iov_len); in __stdio_write()
16 if (0 != iov[1].iov_len) cnt += write(f->fd, iov[1].iov_base, iov[1].iov_len); in __stdio_write()
32 iov[0].iov_base = (char *)iov[0].iov_base + cnt; in __stdio_write()
D__stdio_read.c8 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read()
9 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read()
13 cnt = read(f->fd, iov[0].iov_base, iov[0].iov_len); in __stdio_read()
14 …if (iov[1].iov_len > iov[0].iov_len) cnt += read(f->fd, iov[1].iov_base, iov[1].iov_len - iov[0].i… in __stdio_read()
/third_party/musl/porting/liteos_m/kernel/src/stdio/
D__stdio_write.c7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write()
8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write()
15 cnt = write(f->fd, iov[0].iov_base, iov[0].iov_len); in __stdio_write()
16 if (0 != iov[1].iov_len) cnt += write(f->fd, iov[1].iov_base, iov[1].iov_len); in __stdio_write()
32 iov[0].iov_base = (char *)iov[0].iov_base + cnt; in __stdio_write()
D__stdio_read.c8 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read()
9 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read()
13 cnt = read(f->fd, iov[0].iov_base, iov[0].iov_len); in __stdio_read()
14 …if (iov[1].iov_len > iov[0].iov_len) cnt += read(f->fd, iov[1].iov_base, iov[1].iov_len - iov[0].i… in __stdio_read()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dpwritev.c32 iov[0].iov_base = buf1; in pwritev_0100()
34 iov[1].iov_base = buf2; in pwritev_0100()
61 iov[0].iov_base = buf1; in pwritev_0200()
63 iov[1].iov_base = buf2; in pwritev_0200()
94 iov[0].iov_base = buf1; in pwritev_0300()
96 iov[1].iov_base = buf2; in pwritev_0300()
Dwritev.c34 iov[0].iov_base = str0; in writev_0100()
36 iov[1].iov_base = str1; in writev_0100()
56 iov[0].iov_base = str0; in writev_0200()
58 iov[1].iov_base = str1; in writev_0200()
Dpreadv.c38 iov[0].iov_base = buf1; in preadv_0100()
40 iov[1].iov_base = buf2; in preadv_0100()
78 iov[0].iov_base = buf1; in preadv_0200()
80 iov[1].iov_base = buf2; in preadv_0200()
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg01.c32 memset(rcv1->iov_base, 0, rcv1->iov_len); in run()
33 memset(rcv2->iov_base, 0, rcv2->iov_len); in run()
51 if (memcmp(rcv1->iov_base, "onetwo", 6)) in run()
56 if (memcmp(rcv2->iov_base, "three", 5)) in run()
77 memcpy(snd1[0].iov_base, "one", snd1[0].iov_len); in setup()
78 memcpy(snd1[1].iov_base, "two", snd1[1].iov_len); in setup()
79 memcpy(snd2->iov_base, "three3", snd2->iov_len); in setup()
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstelements_private.c121 gpointer iov_base; member
180 memcpy (p, iov[i].iov_base, iov[i].iov_len); in gst_writev()
196 ret = write (fd, iov[i].iov_base, iov[i].iov_len); in gst_writev()
384 vecs[i].iov_base = maps[i].data; in gst_writev_buffer()
388 vecs[i].iov_base = (void *) ""; in gst_writev_buffer()
429 vecs[0].iov_base = ((guint8 *) vecs[0].iov_base) + bytes_written_local; in gst_writev_buffer()
454 vec.iov_base = (guint8 *) data; in gst_writev_mem()
483 vec.iov_base = ((guint8 *) vec.iov_base) + bytes_written_local; in gst_writev_mem()
528 vecs[num_vecs].iov_base = maps[num_vecs].data; in gst_writev_buffer_list()
532 vecs[num_vecs].iov_base = (void *) ""; in gst_writev_buffer_list()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/stdio/
D__stdio_write.c7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write()
8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write()
31 iov[0].iov_base = (char *)iov[0].iov_base + cnt; in __stdio_write()
D__stdio_read.c8 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read()
9 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read()
14 : read(f->fd, iov[1].iov_base, iov[1].iov_len); in __stdio_read()
/third_party/musl/src/stdio/
D__stdio_write.c7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write()
8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write()
31 iov[0].iov_base = (char *)iov[0].iov_base + cnt; in __stdio_write()
/third_party/ltp/utils/sctp/func_tests/
Dtest_timetolive.c214 outmessage.msg_iov->iov_base = message; in main()
221 iov.iov_base = big_buffer; in main()
234 sac = (struct sctp_assoc_change *)iov.iov_base; in main()
244 sac = (struct sctp_assoc_change *)iov.iov_base; in main()
290 outmessage.msg_iov->iov_base = fillmsg; in main()
302 outmessage.msg_iov->iov_base = ttlmsg; in main()
315 outmessage.msg_iov->iov_base = nottlmsg; in main()
330 outmessage.msg_iov->iov_base = ttlfrag; in main()
355 if (0 != strncmp(iov.iov_base, nottlmsg, strlen(nottlmsg)+1)) in main()
369 ssf = (struct sctp_send_failed *)iov.iov_base; in main()
[all …]
/third_party/grpc/src/core/tsi/alts/crypt/
Daes_gcm.cc299 const uint8_t* aad = static_cast<uint8_t*>(aad_vec[i].iov_base); in gsec_aes_gcm_aead_crypter_encrypt_iovec()
318 uint8_t* ciphertext = static_cast<uint8_t*>(ciphertext_vec.iov_base); in gsec_aes_gcm_aead_crypter_encrypt_iovec()
326 const uint8_t* plaintext = static_cast<uint8_t*>(plaintext_vec[i].iov_base); in gsec_aes_gcm_aead_crypter_encrypt_iovec()
449 const uint8_t* aad = static_cast<uint8_t*>(aad_vec[i].iov_base); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
469 uint8_t* plaintext = static_cast<uint8_t*>(plaintext_vec.iov_base); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
482 ciphertext = static_cast<uint8_t*>(ciphertext_vec[i].iov_base); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
489 memset(plaintext_vec.iov_base, 0x00, plaintext_vec.iov_len); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
508 memset(plaintext_vec.iov_base, 0x00, plaintext_vec.iov_len); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
513 memset(plaintext_vec.iov_base, 0x00, plaintext_vec.iov_len); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
526 memset(plaintext_vec.iov_base, 0x00, plaintext_vec.iov_len); in gsec_aes_gcm_aead_crypter_decrypt_iovec()
[all …]
/third_party/ltp/testcases/kernel/fs/ftest/
Dftest08.c254 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { in dotest()
266 if ((val0_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
276 if ((val_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
318 memset(val0_iovec[i].iov_base, val0, in dotest()
320 memset(val_iovec[i].iov_base, val, in dotest()
361 (r_iovec[i].iov_base, in dotest()
362 val0_iovec[i].iov_base, in dotest()
392 (r_iovec[i].iov_base, in dotest()
393 val_iovec[i].iov_base, in dotest()
Dftest04.c243 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { in dotest()
255 if ((val0_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
265 if ((val_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
307 memset(val0_iovec[i].iov_base, val0, in dotest()
309 memset(val_iovec[i].iov_base, val, in dotest()
348 (r_iovec[i].iov_base, in dotest()
349 val0_iovec[i].iov_base, in dotest()
377 (r_iovec[i].iov_base, in dotest()
378 val_iovec[i].iov_base, in dotest()
Dftest03.c311 if ((r_iovec[i].iov_base = calloc(r_ioveclen, 1)) == 0) { in dotest()
324 if ((val_iovec[i].iov_base = calloc(w_ioveclen, 1)) == 0) { in dotest()
334 if ((zero_iovec[i].iov_base = calloc(w_ioveclen, 1)) == 0) { in dotest()
382 memset(val_iovec[i].iov_base, val, in dotest()
384 memset(zero_iovec[i].iov_base, 0, in dotest()
426 (r_iovec[i].iov_base, in dotest()
427 zero_iovec[i].iov_base, in dotest()
464 (r_iovec[i].iov_base, in dotest()
465 val_iovec[i].iov_base, in dotest()
Dftest07.c313 if ((r_iovec[i].iov_base = calloc(r_ioveclen, 1)) == NULL) { in dotest()
326 if ((val_iovec[i].iov_base = calloc(w_ioveclen, 1)) == NULL) { in dotest()
335 if ((zero_iovec[i].iov_base = calloc(w_ioveclen, 1)) == NULL) { in dotest()
379 memset(val_iovec[i].iov_base, val, in dotest()
381 memset(zero_iovec[i].iov_base, 0, in dotest()
421 (r_iovec[i].iov_base, in dotest()
422 zero_iovec[i].iov_base, in dotest()
459 (r_iovec[i].iov_base, in dotest()
460 val_iovec[i].iov_base, in dotest()
/third_party/selinux/libselinux/src/
Dsetrans_client.c100 iov[0].iov_base = &function; in send_request()
102 iov[1].iov_base = &data1_size; in send_request()
104 iov[2].iov_base = &data2_size; in send_request()
106 iov[3].iov_base = (char *)data1; in send_request()
108 iov[4].iov_base = (char *)data2; in send_request()
140 resp_hdr[0].iov_base = &func; in receive_response()
142 resp_hdr[1].iov_base = &data_size; in receive_response()
144 resp_hdr[2].iov_base = ret_val; in receive_response()
162 resp_data.iov_base = data; in receive_response()
/third_party/pulseaudio/src/modules/rtp/
Dsap.c100 iov[0].iov_base = &header; in pa_sap_send()
104 iov[1].iov_base = (void*) &((struct sockaddr_in*) sa)->sin_addr; in pa_sap_send()
108 iov[1].iov_base = (void*) &((struct sockaddr_in6*) sa)->sin6_addr; in pa_sap_send()
113 iov[2].iov_base = (char*) MIME_TYPE; in pa_sap_send()
116 iov[3].iov_base = c->sdp_data; in pa_sap_send()
162 iov.iov_base = buf; in pa_sap_recv()
/third_party/lwip/src/core/distributed_net/
Dudp_transmit.c72 iov[0].iov_base = (void *)&data; in udp_transmit_sendto()
74 iov[1].iov_base = (void *)buf; in udp_transmit_sendto()
116 iov[0].iov_base = (void *)&data; in udp_transmit_sendmsg()
119 iov[i + 1].iov_base = hdr->msg_iov[i].iov_base; in udp_transmit_sendmsg()
/third_party/lwip/test/unit/api/
Dtest_sockets.c274 msg->msg_iov[0].iov_base = ((u8_t *)msg->msg_iov[0].iov_base + bytes); in test_sockets_msgapi_update_iovs()
354 siovs[i].iov_base = snd_buf; in test_sockets_msgapi_tcp()
363 riovs[i].iov_base = &rcv_buf[i*(BUF_SZ/4)]; in test_sockets_msgapi_tcp()
369 riovs[5].iov_base = &rcv_buf[4*(BUF_SZ/4)]; in test_sockets_msgapi_tcp()
460 fail_unless(*((u8_t*)rmsg->msg_iov[0].iov_base) == 0xDE); in test_sockets_msgapi_udp_send_recv_loop()
461 fail_unless(*((u8_t*)rmsg->msg_iov[1].iov_base) == 0xAD); in test_sockets_msgapi_udp_send_recv_loop()
462 fail_unless(*((u8_t*)rmsg->msg_iov[2].iov_base) == 0xBE); in test_sockets_msgapi_udp_send_recv_loop()
463 fail_unless(*((u8_t*)rmsg->msg_iov[3].iov_base) == 0xEF); in test_sockets_msgapi_udp_send_recv_loop()
466 *((u8_t*)rmsg->msg_iov[0].iov_base) = 0x00; in test_sockets_msgapi_udp_send_recv_loop()
467 *((u8_t*)rmsg->msg_iov[1].iov_base) = 0x00; in test_sockets_msgapi_udp_send_recv_loop()
[all …]
/third_party/grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_iovec_record_protocol.cc80 if (header.iov_base == nullptr) { in ensure_header_and_tag_length()
88 if (tag.iov_base == nullptr) { in ensure_header_and_tag_length()
219 static_cast<unsigned char*>(header.iov_base), in alts_iovec_record_protocol_integrity_only_protect()
271 static_cast<unsigned char*>(header.iov_base), in alts_iovec_record_protocol_integrity_only_unprotect()
316 if (protected_frame.iov_base == nullptr) { in alts_iovec_record_protocol_privacy_integrity_protect()
329 static_cast<unsigned char*>(protected_frame.iov_base), error_details); in alts_iovec_record_protocol_privacy_integrity_protect()
335 static_cast<unsigned char*>(protected_frame.iov_base) + in alts_iovec_record_protocol_privacy_integrity_protect()
388 if (header.iov_base == nullptr) { in alts_iovec_record_protocol_privacy_integrity_unprotect()
403 protected_data_length, static_cast<unsigned char*>(header.iov_base), in alts_iovec_record_protocol_privacy_integrity_unprotect()
/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest_routines.c70 fillbuf(iv->iov_base, iv->iov_len, (char)value); in vfillbuf()
98 if (bufcmp(iv1->iov_base, iv2->iov_base, iv1->iov_len) < 0) { in vbufcmp()
100 i, (char *)iv1->iov_base, in vbufcmp()
101 (char *)iv2->iov_base); in vbufcmp()

123456789