Lines Matching refs:BDRV_SECTOR_SIZE
424 return sector * iscsilun->block_size / BDRV_SECTOR_SIZE; in sector_lun2qemu()
429 return sector * BDRV_SECTOR_SIZE / iscsilun->block_size; in sector_qemu2lun()
677 iscsi_allocmap_set_invalid(iscsilun, sector_num * BDRV_SECTOR_SIZE,
678 nb_sectors * BDRV_SECTOR_SIZE);
685 iscsi_allocmap_set_allocated(iscsilun, sector_num * BDRV_SECTOR_SIZE,
686 nb_sectors * BDRV_SECTOR_SIZE);
820 if (iscsi_allocmap_is_valid(iscsilun, sector_num * BDRV_SECTOR_SIZE, in iscsi_co_readv()
821 nb_sectors * BDRV_SECTOR_SIZE) && in iscsi_co_readv()
822 !iscsi_allocmap_is_allocated(iscsilun, sector_num * BDRV_SECTOR_SIZE, in iscsi_co_readv()
823 nb_sectors * BDRV_SECTOR_SIZE)) { in iscsi_co_readv()
829 !iscsi_allocmap_is_valid(iscsilun, sector_num * BDRV_SECTOR_SIZE, in iscsi_co_readv()
830 nb_sectors * BDRV_SECTOR_SIZE) && in iscsi_co_readv()
831 !iscsi_allocmap_is_allocated(iscsilun, sector_num * BDRV_SECTOR_SIZE, in iscsi_co_readv()
832 nb_sectors * BDRV_SECTOR_SIZE)) { in iscsi_co_readv()
840 head = (sector_num * BDRV_SECTOR_SIZE) % iscsilun->cluster_size; in iscsi_co_readv()
842 sector_num * BDRV_SECTOR_SIZE - head, in iscsi_co_readv()
850 pnum >= nb_sectors * BDRV_SECTOR_SIZE + head) { in iscsi_co_readv()
1491 iscsilun->block_size % BDRV_SECTOR_SIZE) { in iscsi_readcapacity_sync()
2074 unsigned int block_size = MAX(BDRV_SECTOR_SIZE, iscsilun->block_size); in iscsi_refresh_limits()
2076 assert(iscsilun->block_size >= BDRV_SECTOR_SIZE || bdrv_is_sg(bs)); in iscsi_refresh_limits()