Lines Matching defs:offset
64 u32 index, int offset, struct bio *bio);
130 static void update_position(u32 *index, int *offset, struct bio_vec *bvec)
132 *index += (*offset + bvec->bv_len) / PAGE_SIZE;
133 *offset = (*offset + bvec->bv_len) % PAGE_SIZE;
1316 u32 index, int offset, struct bio *bio)
1337 memcpy(dst + bvec->bv_offset, src + offset, bvec->bv_len);
1468 u32 index, int offset, struct bio *bio)
1492 memcpy(dst + offset, src + bvec->bv_offset, bvec->bv_len);
1511 * @offset: byte offset within physical block
1514 int offset, struct bio *bio)
1521 * could get a discard request pointing to a specific offset within a
1528 if (offset) {
1529 if (n <= (PAGE_SIZE - offset))
1532 n -= (PAGE_SIZE - offset);
1552 int offset, unsigned int op, struct bio *bio)
1558 ret = zram_bvec_read(zram, bvec, index, offset, bio);
1562 ret = zram_bvec_write(zram, bvec, index, offset, bio);
1581 int offset;
1588 offset = (bio->bi_iter.bi_sector &
1594 zram_bio_discard(zram, index, offset, bio);
1607 bv.bv_len = min_t(unsigned int, PAGE_SIZE - offset,
1609 if (zram_bvec_rw(zram, &bv, index, offset,
1618 update_position(&index, &offset, &bv);
1666 int offset, ret;
1683 offset = (sector & (SECTORS_PER_PAGE - 1)) << SECTOR_SHIFT;
1690 ret = zram_bvec_rw(zram, &bv, index, offset, op, NULL);