/openbmc/qemu/hw/net/ |
H A D | net_tx_pkt.c | 74 p->vec[NET_TX_PKT_VHDR_FRAG].iov_base = &p->virt_hdr; in net_tx_pkt_init() 76 p->vec[NET_TX_PKT_L2HDR_FRAG].iov_base = &p->l2_hdr; in net_tx_pkt_init() 77 p->vec[NET_TX_PKT_L3HDR_FRAG].iov_base = &p->l3_hdr; in net_tx_pkt_init() 111 void *ip_hdr = pkt->vec[NET_TX_PKT_L3HDR_FRAG].iov_base; in net_tx_pkt_update_ip_checksums() 178 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, 0, l2_hdr->iov_base, in net_tx_pkt_parse_headers() 186 switch (be16_to_cpu(PKT_GET_ETH_HDR(l2_hdr->iov_base)->h_proto)) { in net_tx_pkt_parse_headers() 202 l2_hdr->iov_len = eth_get_l2_hdr_length(l2_hdr->iov_base); in net_tx_pkt_parse_headers() 203 pkt->packet_type = get_eth_packet_type(l2_hdr->iov_base); in net_tx_pkt_parse_headers() 211 l3_hdr->iov_base, sizeof(struct ip_header)); in net_tx_pkt_parse_headers() 218 l3_hdr->iov_len = IP_HDR_GET_LEN(l3_hdr->iov_base); in net_tx_pkt_parse_headers() [all …]
|
/openbmc/qemu/util/ |
H A D | iov.c | 33 memcpy(iov[i].iov_base + offset, buf + done, len); in iov_from_buf_full() 52 memcpy(buf + done, iov[i].iov_base + offset, len); in iov_to_buf_full() 71 memset(iov[i].iov_base + offset, fillc, len); in iov_memset() 119 ? send(sockfd, iov[i].iov_base + off, iov[i].iov_len - off, flags) in do_send_recv() 120 : recv(sockfd, iov[i].iov_base + off, iov[i].iov_len - off, flags); in do_send_recv() 190 iov[0].iov_base += offset; in iov_send_recv_with_flags() 213 iov[0].iov_base -= offset; in iov_send_recv_with_flags() 274 dst_iov[j].iov_base = iov[i].iov_base + offset; in iov_copy() 314 qiov->iov[qiov->niov].iov_base = base; in qemu_iovec_add() 344 qemu_iovec_add(dst, src_iov[i].iov_base + soffset, len); in qemu_iovec_concat_iov() [all …]
|
/openbmc/linux/fs/smb/client/ |
H A D | smb2transport.c | 263 struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base; in smb2_calc_signature() 313 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature() 375 rc = crypto_shash_update(server->secmech.hmacsha256, label.iov_base, label.iov_len); in generate_key() 387 rc = crypto_shash_update(server->secmech.hmacsha256, context.iov_base, context.iov_len); in generate_key() 535 d->label.iov_base = "SMB2AESCMAC"; in generate_smb30signingkey() 537 d->context.iov_base = "SmbSign"; in generate_smb30signingkey() 541 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey() 543 d->context.iov_base = "ServerIn "; in generate_smb30signingkey() 547 d->label.iov_base = "SMB2AESCCM"; in generate_smb30signingkey() 549 d->context.iov_base = "ServerOut"; in generate_smb30signingkey() [all …]
|
H A D | smb2inode.c | 44 struct smb2_ioctl_rsp *io = iov->iov_base; in reparse_buf_ptr() 63 struct smb2_query_info_rsp *qi = rsp_iov->iov_base; in parse_posix_sids() 106 struct smb2_query_info_rsp *rsp = rsp_iov->iov_base; in check_wsl_eas() 118 ea = (void *)((u8 *)rsp_iov->iov_base + in check_wsl_eas() 120 end = (u8 *)rsp_iov->iov_base + rsp_iov->iov_len; in check_wsl_eas() 373 data[0] = in_iov[i].iov_base; in smb2_compound_op() 408 data[0] = in_iov[i].iov_base; in smb2_compound_op() 449 data[1] = in_iov[i].iov_base; in smb2_compound_op() 488 data[1] = in_iov[i].iov_base; in smb2_compound_op() 510 in_iov[i].iov_base, in smb2_compound_op() [all …]
|
H A D | smb2pdu.c | 1017 iov[num].iov_base = create_posix_buf(mode); in add_posix_context() 1020 if (iov[num].iov_base == NULL) in add_posix_context() 1124 iov[0].iov_base = (char *)req; in SMB2_negotiate() 1134 rsp = (struct smb2_negotiate_rsp *)rsp_iov.iov_base; in SMB2_negotiate() 1523 sess_data->iov[0].iov_base = (char *)req; in SMB2_sess_alloc_buffer() 1541 if (sess_data->buf0_type != CIFS_NO_BUFFER && iov[0].iov_base) in SMB2_sess_free_buffer() 1542 memzero_explicit(iov[0].iov_base, iov[0].iov_len); in SMB2_sess_free_buffer() 1544 free_rsp_buf(sess_data->buf0_type, iov[0].iov_base); in SMB2_sess_free_buffer() 1553 struct smb2_sess_setup_req *req = sess_data->iov[0].iov_base; in SMB2_sess_sendreceive() 1571 cifs_small_buf_release(sess_data->iov[0].iov_base); in SMB2_sess_sendreceive() [all …]
|
H A D | sess.c | 1360 sess_data->iov[0].iov_base = (char *)smb_buf; in sess_alloc_buffer() 1369 sess_data->iov[2].iov_base = kmalloc(2000, GFP_KERNEL); in sess_alloc_buffer() 1370 if (!sess_data->iov[2].iov_base) { in sess_alloc_buffer() 1379 sess_data->iov[0].iov_base = NULL; in sess_alloc_buffer() 1394 if (sess_data->buf0_type != CIFS_NO_BUFFER && iov[0].iov_base) in sess_free_buffer() 1395 memzero_explicit(iov[0].iov_base, iov[0].iov_len); in sess_free_buffer() 1397 free_rsp_buf(sess_data->buf0_type, iov[0].iov_base); in sess_free_buffer() 1399 kfree_sensitive(iov[2].iov_base); in sess_free_buffer() 1434 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() 1446 cifs_small_buf_release(sess_data->iov[0].iov_base); in sess_sendreceive() [all …]
|
H A D | transport.c | 326 .iov_base = &rfc1002_marker, in __smb_send_rqst() 346 dump_smb(iov[i].iov_base, iov[i].iov_len); in __smb_send_rqst() 452 iov->iov_base = &vars->tr_hdr; in smb_send_rqst() 477 iov[0].iov_base = smb_buffer; in smb_send() 479 iov[1].iov_base = (char *)smb_buffer + 4; in smb_send() 754 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request() 758 rqst->rq_iov[0].iov_base + 4 != rqst->rq_iov[1].iov_base) in cifs_setup_async_request() 876 iov[0].iov_base = in_buf; in SendReceiveNoRsp() 948 iov[0].iov_base = mid->resp_buf; in cifs_check_receive() 950 iov[1].iov_base = (char *)mid->resp_buf + 4; in cifs_check_receive() [all …]
|
H A D | cifsencrypt.c | 87 ret = crypto_shash_update(shash, kv[i].iov_base + start, len); in cifs_shash_kvec() 194 if (iov[i].iov_base == NULL) { in __cifs_calc_signature() 200 iov[i].iov_base, iov[i].iov_len); in __cifs_calc_signature() 260 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst() 263 rqst->rq_iov[0].iov_base + 4 != rqst->rq_iov[1].iov_base) in cifs_sign_rqst() 313 iov[0].iov_base = cifs_pdu; in cifs_sign_smb() 315 iov[1].iov_base = (char *)cifs_pdu + 4; in cifs_sign_smb() 329 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature() 332 rqst->rq_iov[0].iov_base + 4 != rqst->rq_iov[1].iov_base) in cifs_verify_signature()
|
/openbmc/linux/net/sunrpc/ |
H A D | xdr.c | 183 bvec_set_virt(bvec++, head->iov_base, head->iov_len); in xdr_buf_to_bvec() 205 bvec_set_virt(bvec, tail->iov_base, tail->iov_len); in xdr_buf_to_bvec() 232 char *buf = (char *)head->iov_base; in xdr_inline_pages() 241 tail->iov_base = buf + offset; in xdr_inline_pages() 481 memset(iov->iov_base + base, 0, len); in xdr_buf_iov_zero() 595 memmove(tail->iov_base + to, tail->iov_base + base, len); in xdr_buf_tail_copy_right() 625 _copy_from_pages(tail->iov_base + tato, buf->pages, in xdr_buf_pages_copy_right() 667 memcpy(tail->iov_base + tato, head->iov_base + base, talen); in xdr_buf_head_copy_right() 671 _copy_to_pages(buf->pages, buf->page_base + pgto, head->iov_base + base, in xdr_buf_head_copy_right() 675 memmove(head->iov_base + to, head->iov_base + base, len); in xdr_buf_head_copy_right() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | buffer.c | 20 b->vec.iov_base = kvmalloc(len, gfp); in ceph_buffer_new() 21 if (!b->vec.iov_base) { in ceph_buffer_new() 39 kvfree(b->vec.iov_base); in ceph_buffer_release() 55 ceph_decode_copy(p, (*b)->vec.iov_base, len); in ceph_decode_buffer()
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 113 iov.iov_base = regs; in ptrace_read_regs() 133 iov.iov_base = regs; in ptrace_write_regs() 155 iov.iov_base = (u64 *) reg; in show_tar_registers() 202 iov.iov_base = (u64 *) reg; in write_tar_registers() 245 iov.iov_base = (u64 *) reg; in show_tm_checkpointed_state() 293 iov.iov_base = (u64 *) reg; in write_ckpt_tar_registers() 374 iov.iov_base = regs; in show_ckpt_fpr() 398 iov.iov_base = regs; in write_ckpt_fpr() 548 iov.iov_base = (u64 *) regs; in show_ckpt_gpr() 576 iov.iov_base = (u64 *) regs; in write_ckpt_gpr() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-nsm.c | 104 len = cbor_serialize(root, response->iov_base, response->iov_len); in error_response() 161 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_get_random() 264 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_describe_nsm() 381 type = get_nsm_describe_pcr_req(request->iov_base, request->iov_len, in handle_describe_pcr() 415 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_describe_pcr() 561 type = get_nsm_extend_pcr_req(request->iov_base, request->iov_len, in handle_extend_pcr() 607 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_extend_pcr() 712 type = get_nsm_lock_pcr_req(request->iov_base, request->iov_len, &nsm_req); in handle_lock_pcr() 742 len = cbor_serialize(root, response->iov_base, response->iov_len); in handle_lock_pcr() 846 type = get_nsm_lock_pcrs_req(request->iov_base, request->iov_len, &nsm_req); in handle_lock_pcrs() [all …]
|
/openbmc/linux/fs/smb/server/ |
H A D | auth.c | 603 iov[i].iov_base, in ksmbd_sign_smb2_pdu() 654 iov[i].iov_base, in ksmbd_sign_smb3_pdu() 717 label.iov_base, in generate_key() 731 context.iov_base, in generate_key() 802 d.label.iov_base = "SMB2AESCMAC"; in ksmbd_gen_smb30_signingkey() 804 d.context.iov_base = "SmbSign"; in ksmbd_gen_smb30_signingkey() 816 d.label.iov_base = "SMBSigningKey"; in ksmbd_gen_smb311_signingkey() 824 d.context.iov_base = preauth_sess->Preauth_HashValue; in ksmbd_gen_smb311_signingkey() 826 d.context.iov_base = sess->Preauth_HashValue; in ksmbd_gen_smb311_signingkey() 884 d->label.iov_base = "SMB2AESCCM"; in ksmbd_gen_smb30_encryptionkey() [all …]
|
H A D | ksmbd_work.c | 104 work->iov[++work->iov_idx].iov_base = ib; in __ksmbd_iov_pin() 139 work->iov[work->iov_idx].iov_base = work->response_buf; in __ksmbd_iov_pin_rsp() 140 *(__be32 *)work->iov[0].iov_base = 0; in __ksmbd_iov_pin_rsp() 146 inc_rfc1001_len(work->iov[0].iov_base, len); in __ksmbd_iov_pin_rsp() 150 inc_rfc1001_len(work->iov[0].iov_base, aux_size); in __ksmbd_iov_pin_rsp()
|
/openbmc/qemu/tests/unit/ |
H A D | test-iov.c | 13 iov[i].iov_base = g_malloc(iov[i].iov_len); in iov_random() 23 g_free(iov[i].iov_base); in iov_free() 44 b = iov[i].iov_base; in test_iov_bytes() 307 old_base = iov->iov_base; in test_discard_front() 313 g_assert(iov_tmp->iov_base == old_base + size); in test_discard_front() 314 iov_tmp->iov_base = old_base; /* undo before g_free() */ in test_discard_front() 331 old_base = iov[1].iov_base; in test_discard_front() 337 g_assert(iov_tmp->iov_base == old_base + (size - iov->iov_len)); in test_discard_front() 338 iov_tmp->iov_base = old_base; /* undo before g_free() */ in test_discard_front() 461 old_base = iov[iov_cnt - 1].iov_base; in test_discard_back() [all …]
|
H A D | test-crypto-hash.c | 180 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hash_iov() 181 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hash_iov() 182 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hash_iov() 269 { .iov_base = (char *)INPUT_TEXT1, .iov_len = strlen(INPUT_TEXT1) }, in test_hash_accumulate() 270 { .iov_base = (char *)INPUT_TEXT2, .iov_len = strlen(INPUT_TEXT2) }, in test_hash_accumulate() 271 { .iov_base = (char *)INPUT_TEXT3, .iov_len = strlen(INPUT_TEXT3) }, in test_hash_accumulate()
|
/openbmc/linux/tools/testing/selftests/user_events/ |
H A D | ftrace_test.c | 313 io[0].iov_base = ®.write_index; in TEST_F() 315 io[1].iov_base = &field1; in TEST_F() 317 io[2].iov_base = &field2; in TEST_F() 326 io[0].iov_base = &field2; in TEST_F() 330 io[0].iov_base = ®.write_index; in TEST_F() 367 io[0].iov_base = ®.write_index; in TEST_F() 404 io[0].iov_base = ®.write_index; in TEST_F() 406 io[1].iov_base = anon; in TEST_F() 444 io[0].iov_base = ®.write_index; in TEST_F() 446 io[1].iov_base = &loc; in TEST_F() [all …]
|
/openbmc/qemu/net/ |
H A D | vhost-vdpa.c | 674 out_cursor->iov_base = s->cvq_cmd_out_buffer; in vhost_vdpa_net_load_cursor_reset() 678 in_cursor->iov_base = s->status; in vhost_vdpa_net_load_cursor_reset() 735 r = vhost_vdpa_net_svq_flush(s, in_cursor->iov_base - in vhost_vdpa_net_load_cmd() 748 out_cursor->iov_base + sizeof(ctrl), data_size); in vhost_vdpa_net_load_cmd() 776 .iov_base = (void *)n->mac, in vhost_vdpa_net_load_mac() 816 .iov_base = &uni, in vhost_vdpa_net_load_mac() 819 .iov_base = n->mac_table.macs, in vhost_vdpa_net_load_mac() 822 .iov_base = &mul, in vhost_vdpa_net_load_mac() 825 .iov_base = &n->mac_table.macs[uni_macs_size], in vhost_vdpa_net_load_mac() 908 .iov_base = &cfg, in vhost_vdpa_net_load_rss() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | test-filter-redirector.c | 102 .iov_base = &size, in test_redirector_tx() 105 .iov_base = send_buf, in test_redirector_tx() 166 .iov_base = &size, in test_redirector_rx() 169 .iov_base = send_buf, in test_redirector_rx()
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_crypto.c | 581 p = buf->head[0].iov_base + base; in xdr_extend_head() 807 krb5_make_confounder(buf->head[0].iov_base + offset, conflen); in gss_krb5_aes_encrypt() 810 if (buf->tail[0].iov_base != NULL) { in gss_krb5_aes_encrypt() 811 ecptr = buf->tail[0].iov_base + buf->tail[0].iov_len; in gss_krb5_aes_encrypt() 813 buf->tail[0].iov_base = buf->head[0].iov_base in gss_krb5_aes_encrypt() 816 ecptr = buf->tail[0].iov_base; in gss_krb5_aes_encrypt() 820 memcpy(ecptr, buf->head[0].iov_base + offset, GSS_KRB5_TOK_HDR_LEN); in gss_krb5_aes_encrypt() 825 hmac.data = buf->tail[0].iov_base + buf->tail[0].iov_len; in gss_krb5_aes_encrypt() 1036 krb5_make_confounder(buf->head[0].iov_base + offset, conflen); in krb5_etm_encrypt() 1039 if (buf->tail[0].iov_base) { in krb5_etm_encrypt() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | aspeed_hace.c | 111 *total_msg_len = (uint32_t)(ldq_be_p(iov->iov_base + req_len - 8) / 8); in has_padding() 126 uint8_t *padding = iov->iov_base; in has_padding() 141 s->iov_cache[s->iov_count].iov_base = iov[id].iov_base; in reconstruct_iov() 146 iov[i].iov_base = s->iov_cache[i].iov_base; in reconstruct_iov() 207 iov[i].iov_base = haddr; in do_hash_operation() 232 iov[0].iov_base = haddr; in do_hash_operation() 290 address_space_unmap(&s->dram_as, iov[i - 1].iov_base, in do_hash_operation()
|
/openbmc/linux/drivers/usb/usbip/ |
H A D | stub_tx.c | 217 iov[iovnum].iov_base = &pdu_header; in stub_send_ret_submit() 230 iov[iovnum].iov_base = in stub_send_ret_submit() 253 iov[iovnum].iov_base = sg_virt(sg); in stub_send_ret_submit() 260 iov[iovnum].iov_base = urb->transfer_buffer; in stub_send_ret_submit() 278 iov[iovnum].iov_base = urb->transfer_buffer + in stub_send_ret_submit() 310 iov[iovnum].iov_base = iso_buffer; in stub_send_ret_submit() 387 iov[0].iov_base = &pdu_header; in stub_send_ret_unlink()
|
H A D | vhci_tx.c | 99 iov[iovnum].iov_base = &pdu_header; in vhci_send_cmd_submit() 109 iov[iovnum].iov_base = sg_virt(sg); in vhci_send_cmd_submit() 114 iov[iovnum].iov_base = urb->transfer_buffer; in vhci_send_cmd_submit() 133 iov[iovnum].iov_base = iso_buffer; in vhci_send_cmd_submit() 215 iov.iov_base = &pdu_header; in vhci_send_cmd_unlink()
|
H A D | vudc_tx.c | 56 iov[0].iov_base = &pdu_header; in v_send_ret_unlink() 114 iov[iovnum].iov_base = &pdu_header; in v_send_ret_submit() 122 iov[iovnum].iov_base = urb->transfer_buffer; in v_send_ret_submit() 132 iov[iovnum].iov_base = urb->transfer_buffer + in v_send_ret_submit() 160 iov[iovnum].iov_base = iso_buffer; in v_send_ret_submit()
|
/openbmc/linux/arch/x86/um/os-Linux/ |
H A D | registers.c | 35 iov.iov_base = fp_regs; in save_fp_registers() 57 iov.iov_base = fp_regs; in restore_fp_registers() 136 iov.iov_base = fp_regs; in arch_init_registers()
|