Lines Matching refs:bvec
142 unpin_user_page(imu->bvec[i].bv_page);
833 if (!PageCompound(imu->bvec[j].bv_page))
835 if (compound_head(imu->bvec[j].bv_page) == hpage)
935 /* If it's a huge page, try to coalesce them into a single bvec entry */
961 imu = kvmalloc(struct_size(imu, bvec, nr_pages), GFP_KERNEL);
981 bvec_set_page(&imu->bvec[0], pages[0], size, off);
988 bvec_set_page(&imu->bvec[i], pages[i], vec_len, off);
1079 iov_iter_bvec(iter, ddir, imu->bvec, imu->nr_bvecs, offset + len);
1090 * first and last bvec
1093 * If the offset is within the first bvec (or the whole first
1094 * bvec, just use iov_iter_advance(). This makes it easier
1098 const struct bio_vec *bvec = imu->bvec;
1100 if (offset < bvec->bv_len) {
1103 * bvec entry and should always go this way. The other
1106 iter->bvec = bvec;
1107 iter->nr_segs = bvec->bv_len;
1114 offset -= bvec->bv_len;
1117 iter->bvec = bvec + seg_skip;
1119 iter->count -= bvec->bv_len + offset;