Lines Matching refs:nb_sectors

116     int64_t nb_sectors_lba28 = s->nb_sectors;  in ide_identify_size()
122 put_le16(p + 100, s->nb_sectors); in ide_identify_size()
123 put_le16(p + 101, s->nb_sectors >> 16); in ide_identify_size()
124 put_le16(p + 102, s->nb_sectors >> 32); in ide_identify_size()
125 put_le16(p + 103, s->nb_sectors >> 48); in ide_identify_size()
314 put_le16(p + 7, s->nb_sectors >> 16); /* Sectors per card */ in ide_cfata_identify_size()
315 put_le16(p + 8, s->nb_sectors); /* Sectors per card */ in ide_cfata_identify_size()
316 put_le16(p + 60, s->nb_sectors); /* Total LBA sectors */ in ide_cfata_identify_size()
317 put_le16(p + 61, s->nb_sectors >> 16); /* Total LBA sectors */ in ide_cfata_identify_size()
406 uint64_t sector, uint64_t nb_sectors) in ide_sect_range_ok() argument
411 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in ide_sect_range_ok()
694 QEMUIOVector *iov, int nb_sectors, in ide_buffered_readv() argument
1196 uint64_t nb_sectors; in ide_cd_change_cb() local
1199 blk_get_geometry(s->blk, &nb_sectors); in ide_cd_change_cb()
1200 s->nb_sectors = nb_sectors; in ide_cd_change_cb()
1624 if (s->nb_sectors == 0) { in cmd_read_native_max()
1639 ide_set_sector(s, s->nb_sectors - 1); in cmd_read_native_max()
2575 uint64_t nb_sectors; in ide_resize_cb() local
2581 blk_get_geometry(s->blk, &nb_sectors); in ide_resize_cb()
2582 s->nb_sectors = nb_sectors; in ide_resize_cb()
2607 uint64_t nb_sectors; in ide_init_drive() local
2612 blk_get_geometry(s->blk, &nb_sectors); in ide_init_drive()
2618 s->nb_sectors = nb_sectors; in ide_init_drive()