Lines Matching refs:vec
56 static unsigned int rds_pages_in_vec(struct rds_iovec *vec) in rds_pages_in_vec() argument
58 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec()
59 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec()
62 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec()
63 (vec->addr >> PAGE_SHIFT); in rds_pages_in_vec()
197 nr_pages = rds_pages_in_vec(&args->vec); in __rds_rdma_map()
204 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map()
241 ret = rds_pin_pages(args->vec.addr, nr_pages, pages, 1); in __rds_rdma_map()
284 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK); in __rds_rdma_map()
346 new_args.vec = args.vec; in rds_get_mr_for_dest()
511 struct rds_iovec vec; in rds_rdma_extra_size() local
521 if (copy_from_user(&vec, &local_vec[i], in rds_rdma_extra_size()
525 nr_pages = rds_pages_in_vec(&vec); in rds_rdma_extra_size()