Lines Matching full:vec
51 * Returns 0 if the vec is invalid. It is invalid if the number of bytes
55 static unsigned int rds_pages_in_vec(struct rds_iovec *vec) in rds_pages_in_vec() argument
57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec()
58 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec()
61 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec()
62 (vec->addr >> PAGE_SHIFT); in rds_pages_in_vec()
201 if (((args->vec.addr + args->vec.bytes) < args->vec.addr) || in __rds_rdma_map()
202 PAGE_ALIGN(args->vec.addr + args->vec.bytes) < in __rds_rdma_map()
203 (args->vec.addr + args->vec.bytes)) { in __rds_rdma_map()
213 nr_pages = rds_pages_in_vec(&args->vec); in __rds_rdma_map()
228 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map()
265 ret = rds_pin_pages(args->vec.addr, nr_pages, pages, 1); in __rds_rdma_map()
292 args->vec.addr, args->vec.bytes, in __rds_rdma_map()
323 args->vec.addr & ~PAGE_MASK); in __rds_rdma_map()
389 new_args.vec = args.vec; in rds_get_mr_for_dest()
560 struct rds_iovec *vec; in rds_rdma_extra_size() local
580 vec = &iov->iov[0]; in rds_rdma_extra_size()
582 if (copy_from_user(vec, local_vec, args->nr_local * in rds_rdma_extra_size()
588 for (i = 0; i < args->nr_local; i++, vec++) { in rds_rdma_extra_size()
590 nr_pages = rds_pages_in_vec(vec); in rds_rdma_extra_size()
613 struct rds_iov_vector *vec) in rds_cmsg_rdma_args() argument
641 if (vec->len != args->nr_local) { in rds_cmsg_rdma_args()
649 iovs = vec->iov; in rds_cmsg_rdma_args()