Home | History | Annotate | Download | only in hw

Lines Matching full:nb_sectors

351     uint64_t nb_sectors;
753 bdrv_get_geometry(s->bdrv, &nb_sectors);
754 nb_sectors /= s->cluster_size;
756 if (nb_sectors) {
757 nb_sectors--;
759 s->max_lba = nb_sectors;
761 if (nb_sectors > UINT32_MAX)
762 nb_sectors = UINT32_MAX;
763 outbuf[0] = (nb_sectors >> 24) & 0xff;
764 outbuf[1] = (nb_sectors >> 16) & 0xff;
765 outbuf[2] = (nb_sectors >> 8) & 0xff;
766 outbuf[3] = nb_sectors & 0xff;
808 bdrv_get_geometry(s->bdrv, &nb_sectors);
810 nb_sectors /= s->cluster_size;
813 toclen = cdrom_read_toc(nb_sectors, outbuf, msf, start_track);
824 toclen = cdrom_read_toc_raw(nb_sectors, outbuf, msf, start_track);
862 bdrv_get_geometry(s->bdrv, &nb_sectors);
863 nb_sectors /= s->cluster_size;
865 if (nb_sectors) {
866 nb_sectors--;
868 s->max_lba = nb_sectors;
869 outbuf[0] = (nb_sectors >> 56) & 0xff;
870 outbuf[1] = (nb_sectors >> 48) & 0xff;
871 outbuf[2] = (nb_sectors >> 40) & 0xff;
872 outbuf[3] = (nb_sectors >> 32) & 0xff;
873 outbuf[4] = (nb_sectors >> 24) & 0xff;
874 outbuf[5] = (nb_sectors >> 16) & 0xff;
875 outbuf[6] = (nb_sectors >> 8) & 0xff;
876 outbuf[7] = nb_sectors & 0xff;
935 uint64_t nb_sectors;
947 bdrv_get_geometry(s->bdrv, &nb_sectors);
948 nb_sectors /= s->cluster_size;
949 if (nb_sectors)
950 nb_sectors--;
951 s->max_lba = nb_sectors;