Home
last modified time | relevance | path

Searched refs:num_sectors (Results 1 – 6 of 6) sorted by relevance

/external/stressapptest/src/
Ddisk_blocks.cc186 int num_sectors; in GetUnusedBlock() local
199 num_sectors = write_block_size_ / sector_size_; in GetUnusedBlock()
209 device_sectors_ / num_sectors); in GetUnusedBlock()
210 sector *= num_sectors; in GetUnusedBlock()
213 segment_size_ / num_sectors); in GetUnusedBlock()
214 sector *= num_sectors; in GetUnusedBlock()
218 if (sector + num_sectors > (segment + 1) * segment_size_) { in GetUnusedBlock()
224 if (sector + num_sectors > device_sectors_) { in GetUnusedBlock()
/external/qemu/hw/
Dgoldfish_mmc.c176 int num_sectors) in goldfish_mmc_bdrv_read() argument
180 while (num_sectors > 0) { in goldfish_mmc_bdrv_read()
187 num_sectors -= 1; in goldfish_mmc_bdrv_read()
196 int num_sectors) in goldfish_mmc_bdrv_write() argument
200 while (num_sectors > 0) { in goldfish_mmc_bdrv_write()
208 num_sectors -= 1; in goldfish_mmc_bdrv_write()
/external/grub/stage2/
Dfsys_fat.c35 int num_sectors; member
92 FAT_SUPER->num_sectors = FAT_CVT_U16 (bpb.short_sectors) in fat_mount()
110 2 + ((FAT_SUPER->num_sectors - FAT_SUPER->data_offset) in fat_mount()
Dbuiltins.c142 int num_sectors = 0; in blocklist_func() local
152 if (num_sectors > 0) in blocklist_func()
154 if (start_sector + num_sectors == sector in blocklist_func()
157 num_sectors++; in blocklist_func()
165 start_sector - part_start, num_sectors); in blocklist_func()
166 else if (num_sectors > 1) in blocklist_func()
168 start_sector - part_start, num_sectors-1, in blocklist_func()
169 start_sector + num_sectors-1 - part_start, in blocklist_func()
175 num_sectors = 0; in blocklist_func()
188 num_sectors = 1; in blocklist_func()
[all …]
Dfsys_reiserfs.c1218 int num_sectors; in reiserfs_embed() local
1232 num_sectors = (REISERFS_DISK_OFFSET_IN_BYTES >> SECTOR_BITS) - 1; in reiserfs_embed()
1234 num_sectors = (REISERFS_OLD_DISK_OFFSET_IN_BYTES >> SECTOR_BITS) - 1; in reiserfs_embed()
1236 return (needed_sectors <= num_sectors); in reiserfs_embed()
/external/qemu-pc-bios/bochs/bios/
Drombios.c6305 Bit8u drive, num_sectors, sector, head, status, mod;
6373 num_sectors = GET_AL();
6408 if ( (num_sectors > 128) || (num_sectors == 0) )
6425 outb(0x01f2, num_sectors);
6491 num_sectors--;
6492 if (num_sectors == 0) {
6519 num_sectors = GET_AL();
6554 if ( (num_sectors > 128) || (num_sectors == 0) )
6565 outb(0x01f2, num_sectors);
6631 num_sectors--;
[all …]