Lines Matching refs:bvec
146 static inline bool is_partial_io(struct bio_vec *bvec) in is_partial_io() argument
148 return bvec->bv_len != PAGE_SIZE; in is_partial_io()
152 static inline bool is_partial_io(struct bio_vec *bvec) in is_partial_io() argument
1389 static int zram_bvec_read_partial(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read_partial() argument
1399 memcpy_to_bvec(bvec, page_address(page) + offset); in zram_bvec_read_partial()
1404 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, in zram_bvec_read() argument
1407 if (is_partial_io(bvec)) in zram_bvec_read()
1408 return zram_bvec_read_partial(zram, bvec, index, offset); in zram_bvec_read()
1409 return zram_read_page(zram, bvec->bv_page, index, bio); in zram_bvec_read()
1541 static int zram_bvec_write_partial(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write_partial() argument
1552 memcpy_from_bvec(page_address(page) + offset, bvec); in zram_bvec_write_partial()
1559 static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, in zram_bvec_write() argument
1562 if (is_partial_io(bvec)) in zram_bvec_write()
1563 return zram_bvec_write_partial(zram, bvec, index, offset, bio); in zram_bvec_write()
1564 return zram_write_page(zram, bvec->bv_page, index); in zram_bvec_write()