Lines Matching defs: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)
938 /* If it's a huge page, try to coalesce them into a single bvec entry */
964 imu = kvmalloc(struct_size(imu, bvec, nr_pages), GFP_KERNEL);
984 bvec_set_page(&imu->bvec[0], pages[0], size, off);
991 bvec_set_page(&imu->bvec[i], pages[i], vec_len, off);
1082 iov_iter_bvec(iter, ddir, imu->bvec, imu->nr_bvecs, offset + len);
1093 * first and last bvec
1096 * If the offset is within the first bvec (or the whole first
1097 * bvec, just use iov_iter_advance(). This makes it easier
1101 const struct bio_vec *bvec = imu->bvec;
1103 if (offset < bvec->bv_len) {
1106 * bvec entry and should always go this way. The other
1109 iter->bvec = bvec;
1110 iter->nr_segs = bvec->bv_len;
1117 offset -= bvec->bv_len;
1120 iter->bvec = bvec + seg_skip;
1122 iter->count -= bvec->bv_len + offset;