Home
last modified time | relevance | path

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

/external/stressapptest/src/
Ddisk_blocks.cc207 int num_sectors = write_block_size_ / sector_size_; in GetUnusedBlock() local
214 device_sectors_ / num_sectors); in GetUnusedBlock()
215 sector *= num_sectors; in GetUnusedBlock()
218 segment_size_ / num_sectors); in GetUnusedBlock()
219 sector *= num_sectors; in GetUnusedBlock()
222 if (sector + num_sectors > (segment + 1) * segment_size_) { in GetUnusedBlock()
228 if (sector + num_sectors > device_sectors_) { in GetUnusedBlock()
/external/u-boot/drivers/usb/gadget/
Dstorage_common.c277 loff_t num_sectors; member
566 static int fsg_lun_open(struct fsg_lun *curlun, unsigned int num_sectors, in fsg_lun_open() argument
575 curlun->file_length = num_sectors << 9; in fsg_lun_open()
576 curlun->num_sectors = num_sectors; in fsg_lun_open()
Df_mass_storage.c710 if (lba >= curlun->num_sectors) { in do_read()
844 if (lba >= curlun->num_sectors) { in do_write()
1007 if (lba >= curlun->num_sectors) { in do_verify()
1172 put_unaligned_be32(curlun->num_sectors - 1, &buf[0]); in do_read_capacity()
1189 if (lba >= curlun->num_sectors) { in do_read_header()
1224 store_cdrom_address(&buf[16], msf, curlun->num_sectors); in do_read_toc()
1357 put_unaligned_be32(curlun->num_sectors, &buf[0]); in do_read_format_capacities()
2486 rc = fsg_lun_open(&common->luns[i], ums[i].num_sectors, ""); in fsg_common_init()
/external/u-boot/cmd/
Dusb_mass_storage.c98 ums[ums_count].num_sectors = block_dev->lba; in ums_init()
101 ums[ums_count].num_sectors = info.size; in ums_init()
118 ums[ums_count].num_sectors); in ums_init()
/external/u-boot/drivers/mtd/
Daltera_qspi.c261 u32 num_sectors; in altera_qspi_lock() local
266 num_sectors = mtd->size / mtd->erasesize; in altera_qspi_lock()
270 if (sector_start >= num_sectors / 2) { in altera_qspi_lock()
271 sr_bp = fls(num_sectors - 1 - sector_start) + 1; in altera_qspi_lock()
273 } else if (sector_end < num_sectors / 2) { in altera_qspi_lock()
/external/u-boot/include/
Dusb_mass_storage.h23 unsigned int num_sectors; member
/external/kernel-headers/original/uapi/linux/
Dvirtio_blk.h185 __le32 num_sectors; member