Home
last modified time | relevance | path

Searched refs:iov_count (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_sockmap.c142 int iov_count; member
473 int iov_count, int iov_length, in msg_alloc_iov() argument
480 iov = calloc(iov_count, sizeof(struct iovec)); in msg_alloc_iov()
484 for (i = 0; i < iov_count; i++) { in msg_alloc_iov()
488 fprintf(stderr, "iov_count %i/%i OOM\n", i, iov_count); in msg_alloc_iov()
503 msg->msg_iovlen = iov_count; in msg_alloc_iov()
551 static int msg_loop(int fd, int iov_count, int iov_length, int cnt, in msg_loop() argument
560 err = msg_alloc_iov(&msg, iov_count, iov_length, data, tx); in msg_loop()
564 err = msg_alloc_iov(&msg_peek, iov_count, iov_length, data, tx); in msg_loop()
609 total_bytes = (float)iov_count * (float)iov_length * (float)cnt; in msg_loop()
[all …]
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target.c577 u32 iov_count = 0, tx_size = 0; in iscsit_xmit_datain_pdu() local
581 iov[iov_count].iov_base = cmd->pdu; in iscsit_xmit_datain_pdu()
582 iov[iov_count++].iov_len = ISCSI_HDR_LEN; in iscsit_xmit_datain_pdu()
599 iov_ret = iscsit_map_iovec(cmd, &cmd->iov_data[iov_count], in iscsit_xmit_datain_pdu()
600 cmd->orig_iov_data_count - (iov_count + 2), in iscsit_xmit_datain_pdu()
605 iov_count += iov_ret; in iscsit_xmit_datain_pdu()
610 iov[iov_count].iov_base = cmd->pad_bytes; in iscsit_xmit_datain_pdu()
611 iov[iov_count++].iov_len = cmd->padding; in iscsit_xmit_datain_pdu()
624 iov[iov_count].iov_base = &cmd->data_crc; in iscsit_xmit_datain_pdu()
625 iov[iov_count++].iov_len = ISCSI_CRC_LEN; in iscsit_xmit_datain_pdu()
[all …]
Discsi_target_util.c1065 u32 iov_count; in iscsit_send_tx_data() local
1073 iov_count = cmd->iov_data_count; in iscsit_send_tx_data()
1076 iov_count = cmd->iov_misc_count; in iscsit_send_tx_data()
1079 tx_sent = tx_data(conn, &iov[0], iov_count, tx_size); in iscsit_send_tx_data()
1234 int iov_count, in rx_data() argument
1244 iov_iter_kvec(&msg.msg_iter, READ, iov, iov_count, data); in rx_data()
1264 int iov_count, in tx_data() argument
1280 iov_iter_kvec(&msg.msg_iter, WRITE, iov, iov_count, data); in tx_data()
/kernel/linux/linux-5.10/arch/um/drivers/
Dvector_kern.c340 int iov_count; in vector_enqueue() local
354 iov_count = prep_msg( in vector_enqueue()
359 if (iov_count < 1) in vector_enqueue()
361 mmsg_vector->msg_hdr.msg_iovlen = iov_count; in vector_enqueue()
918 int iov_count, pkt_len = 0; in writev_tx() local
921 iov_count = prep_msg(vp, skb, (struct iovec *) &iov); in writev_tx()
923 if (iov_count < 1) in writev_tx()
929 iov_count in writev_tx()
/kernel/linux/linux-5.10/drivers/vhost/
Dvhost.h188 struct iovec iov[], unsigned int iov_count,
Dvhost.c2137 unsigned iov_count = *in_num + *out_num; in get_indirect() local
2161 vhost32_to_cpu(vq, desc.len), iov + iov_count, in get_indirect()
2162 iov_size - iov_count, access); in get_indirect()
2265 unsigned iov_count = *in_num + *out_num; in vhost_get_vq_desc() local
2301 vhost32_to_cpu(vq, desc.len), iov + iov_count, in vhost_get_vq_desc()
2302 iov_size - iov_count, access); in vhost_get_vq_desc()
/kernel/linux/linux-5.10/drivers/scsi/
Dsg.c1725 unsigned int iov_count = hp->iovec_count; in sg_start_req() local
1775 dxfer_dir != SG_DXFER_UNKNOWN && !iov_count && in sg_start_req()
1814 if (iov_count) { in sg_start_req()
1818 res = import_iovec(rw, hp->dxferp, iov_count, 0, &iov, &i); in sg_start_req()