Lines Matching refs:nb_sectors
1476 vvfat_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) in vvfat_read() argument
1481 for(i=0;i<nb_sectors;i++,sector_num++) { in vvfat_read()
1488 (nb_sectors - i) * BDRV_SECTOR_SIZE, &n); in vvfat_read()
1545 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in vvfat_co_preadv() local
1557 ret = vvfat_read(bs, sector_num, buf, nb_sectors); in vvfat_co_preadv()
2979 const uint8_t *buf, int nb_sectors) in vvfat_write() argument
2994 if (sector_num == s->offset_to_bootsector && nb_sectors == 1) { in vvfat_write()
3031 last_cluster = sector2cluster(s, sector_num + nb_sectors - 1); in vvfat_write()
3058 if (end > sector_num + nb_sectors) in vvfat_write()
3059 end = sector_num + nb_sectors; in vvfat_write()
3087 DLOG(fprintf(stderr, "Write to qcow backend: %d + %d\n", (int)sector_num, nb_sectors)); in vvfat_write()
3089 nb_sectors * BDRV_SECTOR_SIZE, buf, 0); in vvfat_write()
3116 int nb_sectors = bytes >> BDRV_SECTOR_BITS; in vvfat_co_pwritev() local
3129 ret = vvfat_write(bs, sector_num, buf, nb_sectors); in vvfat_co_pwritev()