Home
last modified time | relevance | path

Searched refs:sector_count (Results 1 – 5 of 5) sorted by relevance

/external/qemu/hw/
Dscsi-disk.c54 uint32_t sector_count; member
95 r->sector_count = 0; in scsi_new_request()
194 if (r->sector_count == (uint32_t)-1) { in scsi_read_data()
196 r->sector_count = 0; in scsi_read_data()
200 DPRINTF("Read sector_count=%d\n", r->sector_count); in scsi_read_data()
201 if (r->sector_count == 0) { in scsi_read_data()
206 n = r->sector_count; in scsi_read_data()
217 r->sector_count -= n; in scsi_read_data()
255 r->sector_count -= n; in scsi_write_complete()
256 if (r->sector_count == 0) { in scsi_write_complete()
[all …]
Dgoldfish_mmc.c232 int64_t sector_count = 0; in goldfish_mmc_do_command() local
237 bdrv_get_geometry(s->bs, (uint64_t*)&sector_count); in goldfish_mmc_do_command()
238 capacity = sector_count * 512; in goldfish_mmc_do_command()
278 capacity = sector_count * 512; in goldfish_mmc_do_command()
/external/qemu/block/
Dvvfat.c334 uint32_t sector_count; /* total number of sectors of the partition */ member
394 lba|= sector2CHS(s->bs, &partition->end_CHS, s->sector_count); in init_mbr()
398 partition->length_sector_long=cpu_to_le32(s->sector_count - s->first_sectors_number+1); in init_mbr()
862 s->sectors_per_fat=(s->sector_count+i)/i; /* round up */ in init_directories()
878 s->cluster_count=sector2cluster(s, s->sector_count); in init_directories()
932 s->fat_type == 12 ? s->sector_count == 2880 ? "1.44 MB" in init_directories()
967 bootsector->total_sectors16=s->sector_count>0xffff?0:cpu_to_le16(s->sector_count); in init_directories()
968 …bootsector->media_type=(s->fat_type!=12?0xf8:s->sector_count==5760?0xf9:0xf8); /* media descriptor… in init_directories()
974 bootsector->total_sectors=cpu_to_le32(s->sector_count>0xffff?s->sector_count:0); in init_directories()
1040 s->sector_count=bs->cyls*bs->heads*bs->secs; in vvfat_open()
[all …]
/external/grub/stage2/
Ddisk_io.c366 devwrite (int sector, int sector_count, char *buf) in devwrite() argument
377 sector, sector_count, buf); in devwrite()
384 for (i = 0; i < sector_count; i++) in devwrite()
Dbuiltins.c3285 int sector_count = 0; in savedefault_func() local
3294 if (sector_count < 2) in savedefault_func()
3296 saved_sectors[sector_count] = sector; in savedefault_func()
3297 saved_offsets[sector_count] = offset; in savedefault_func()
3298 saved_lengths[sector_count] = length; in savedefault_func()
3300 sector_count++; in savedefault_func()
3364 if (sector_count > 2) in savedefault_func()