Lines Matching refs:iov
529 static int rds_rdma_pages(struct rds_iovec iov[], int nr_iovecs) in rds_rdma_pages() argument
537 nr_pages = rds_pages_in_vec(&iov[i]); in rds_rdma_pages()
555 struct rds_iov_vector *iov) in rds_rdma_extra_size() argument
571 iov->iov = kcalloc(args->nr_local, in rds_rdma_extra_size()
574 if (!iov->iov) in rds_rdma_extra_size()
577 vec = &iov->iov[0]; in rds_rdma_extra_size()
582 iov->len = args->nr_local; in rds_rdma_extra_size()
646 iovs = vec->iov; in rds_cmsg_rdma_args()
708 struct rds_iovec *iov = &iovs[i]; in rds_cmsg_rdma_args() local
710 unsigned int nr = rds_pages_in_vec(iov); in rds_cmsg_rdma_args()
712 rs->rs_user_addr = iov->addr; in rds_cmsg_rdma_args()
713 rs->rs_user_bytes = iov->bytes; in rds_cmsg_rdma_args()
718 ret = rds_pin_pages(iov->addr, nr, pages, !op->op_write); in rds_cmsg_rdma_args()
743 iov->addr, iov->bytes, ODP_VIRTUAL); in rds_cmsg_rdma_args()
755 op->op_odp_addr = iov->addr; in rds_cmsg_rdma_args()
759 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
761 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
764 unsigned int offset = iov->addr & ~PAGE_MASK; in rds_cmsg_rdma_args()
769 min_t(unsigned int, iov->bytes, PAGE_SIZE - offset), in rds_cmsg_rdma_args()
774 sg->offset, sg->length, iov->addr, iov->bytes); in rds_cmsg_rdma_args()
776 iov->addr += sg->length; in rds_cmsg_rdma_args()
777 iov->bytes -= sg->length; in rds_cmsg_rdma_args()