Home
last modified time | relevance | path

Searched refs:iovec (Results 1 – 25 of 26) sorted by relevance

12

/drivers/infiniband/hw/hfi1/
Duser_sdma.c175 struct iovec iov;
285 static int num_user_pages(const struct iovec *);
535 int hfi1_user_sdma_process_request(struct file *fp, struct iovec *iovec, in hfi1_user_sdma_process_request() argument
553 if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) { in hfi1_user_sdma_process_request()
558 iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr)); in hfi1_user_sdma_process_request()
561 ret = copy_from_user(&info, iovec[idx].iov_base, sizeof(info)); in hfi1_user_sdma_process_request()
637 ret = copy_from_user(&req->hdr, iovec[idx].iov_base + sizeof(info), in hfi1_user_sdma_process_request()
704 memcpy(&req->iovs[i].iov, iovec + idx++, sizeof(struct iovec)); in hfi1_user_sdma_process_request()
725 u16 ntids = iovec[idx].iov_len / sizeof(*req->tids); in hfi1_user_sdma_process_request()
742 ret = copy_from_user(req->tids, iovec[idx].iov_base, in hfi1_user_sdma_process_request()
[all …]
Duser_sdma.h83 int hfi1_user_sdma_process_request(struct file *, struct iovec *, unsigned long,
Dfile_ops.c432 kiocb->ki_filp, (struct iovec *)(from->iov + done), in hfi1_write_iter()
/drivers/xen/xenbus/
Dxenbus_xs.c263 const struct kvec *iovec, in xs_talkv() argument
277 msg.len += iovec[i].iov_len; in xs_talkv()
288 err = xb_write(iovec[i].iov_base, iovec[i].iov_len); in xs_talkv()
323 struct kvec iovec; in xs_single() local
325 iovec.iov_base = (void *)string; in xs_single()
326 iovec.iov_len = strlen(string) + 1; in xs_single()
327 return xs_talkv(t, type, &iovec, 1, len); in xs_single()
446 struct kvec iovec[2]; in xenbus_write() local
453 iovec[0].iov_base = (void *)path; in xenbus_write()
454 iovec[0].iov_len = strlen(path) + 1; in xenbus_write()
[all …]
/drivers/vhost/
Dvhost.h123 struct iovec iov[UIO_MAXIOV];
124 struct iovec iotlb_iov[64];
125 struct iovec *indirect;
183 struct iovec iov[], unsigned int iov_count,
Dvringh.c191 new = krealloc(iov->iov, new_num * sizeof(struct iovec), gfp); in resize_iovec()
193 new = kmalloc(new_num * sizeof(struct iovec), gfp); in resize_iovec()
196 iov->max_num * sizeof(struct iovec)); in resize_iovec()
676 BUILD_BUG_ON(sizeof(struct iovec) != sizeof(struct kvec)); in vringh_getdesc_user()
677 BUILD_BUG_ON(offsetof(struct iovec, iov_base) != in vringh_getdesc_user()
679 BUILD_BUG_ON(offsetof(struct iovec, iov_len) != in vringh_getdesc_user()
681 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_base) in vringh_getdesc_user()
683 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_len) in vringh_getdesc_user()
Dvhost.c719 struct iovec iov[], int iov_size, int access);
1745 struct iovec iov[], int iov_size, int access) in translate_desc()
1750 struct iovec *_iov; in translate_desc()
1812 struct iovec iov[], unsigned int iov_size, in get_indirect()
1919 struct iovec iov[], unsigned int iov_size, in vhost_get_vq_desc()
Dnet.c333 struct iovec iov[], unsigned int iov_size, in vhost_net_tx_get_vq_desc()
Dscsi.c91 struct iovec tvc_resp_iov;
/drivers/target/
Dtarget_core_user.c230 static inline void new_iov(struct iovec **iov, int *iov_cnt, in new_iov()
233 struct iovec *iovec; in new_iov() local
239 iovec = *iov; in new_iov()
240 memset(iovec, 0, sizeof(struct iovec)); in new_iov()
253 static inline size_t iov_tail(struct tcmu_dev *udev, struct iovec *iov) in iov_tail()
260 struct iovec **iov, int *iov_cnt, bool copy_data) in alloc_and_scatter_data_area()
447 struct iovec *iov; in tcmu_queue_cmd_ring()
/drivers/atm/
Dhe.c1621 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; in __alloc_tpd()
1622 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; in __alloc_tpd()
1623 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; in __alloc_tpd()
1847 if (tpd->iovec[slot].addr) in he_service_tbrq()
1849 tpd->iovec[slot].addr, in he_service_tbrq()
1850 tpd->iovec[slot].len & TPD_LEN_MASK, in he_service_tbrq()
1852 if (tpd->iovec[slot].len & TPD_LST) in he_service_tbrq()
2088 if (tpd->iovec[slot].addr) in __enqueue_tpd()
2090 tpd->iovec[slot].addr, in __enqueue_tpd()
2091 tpd->iovec[slot].len & TPD_LEN_MASK, in __enqueue_tpd()
[all …]
Dhe.h126 } iovec[TPD_MAXIOV]; member
128 #define address0 iovec[0].addr
129 #define length0 iovec[0].len
Dnicstar.c139 static void recycle_iovec_rx_bufs(ns_dev * card, struct iovec *iov, int count);
1451 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, in ns_close()
1970 struct iovec *iov; in dequeue_rx()
2095 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, in dequeue_rx()
2102 iov = &((struct iovec *)iovb->data)[NS_PRV_IOVCNT(iovb)++]; in dequeue_rx()
2128 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, in dequeue_rx()
2151 recycle_iovec_rx_bufs(card, (struct iovec *)iovb->data, in dequeue_rx()
2231 (struct iovec *) in dequeue_rx()
2270 iov = (struct iovec *)iovb->data; in dequeue_rx()
2334 static void recycle_iovec_rx_bufs(ns_dev * card, struct iovec *iov, int count) in recycle_iovec_rx_bufs()
Dhorizon.h419 struct iovec * tx_iovec; // remaining regions
Dnicstar.h108 #define NS_IOVBUFSIZE (NS_MAX_IOVECS * (sizeof(struct iovec)))
Dzatm.c690 *put++ = ((struct iovec *) skb->data)[i].iov_len; in do_tx()
691 *put++ = virt_to_bus(((struct iovec *) in do_tx()
/drivers/infiniband/hw/qib/
Dqib_user_sdma.h42 const struct iovec *iov,
Dqib_user_sdma.c564 const struct iovec *iov, in qib_user_sdma_coalesce()
609 static int qib_user_sdma_num_pages(const struct iovec *iov) in qib_user_sdma_num_pages()
722 const struct iovec *iov, in qib_user_sdma_pin_pkt()
764 const struct iovec *iov, in qib_user_sdma_init_payload()
809 const struct iovec *iov, in qib_user_sdma_queue_pkts()
1378 const struct iovec *iov, in qib_user_sdma_writev()
/drivers/staging/lustre/include/linux/lnet/
Dtypes.h504 typedef struct iovec lnet_md_iovec_t;
/drivers/misc/mic/vop/
Dvop_vringh.c751 struct iovec iov; in _vop_virtio_copy()
752 struct iovec __user *u_iov = copy->iov; in _vop_virtio_copy()
/drivers/staging/lustre/lustre/llite/
Dvvp_io.c377 struct iovec iov; in vvp_mmap_locks()
/drivers/scsi/megaraid/
Dmegaraid_sas.h2290 struct iovec sgl[MAX_IOCTL_SGE];
/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_cb.c1113 niov < sizeof(conn->ksnc_rx_iov_space) / sizeof(struct iovec)); in ksocknal_new_packet()
/drivers/net/ppp/
Dppp_generic.c431 struct iovec iov; in ppp_read()
/drivers/scsi/
Dsg.c1776 struct iovec *iov = NULL; in sg_start_req()

12