Searched refs:num_sectors (Results 1 – 7 of 7) sorted by relevance
207 int num_sectors = write_block_size_ / sector_size_; in GetUnusedBlock() local214 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()
277 loff_t num_sectors; member566 static int fsg_lun_open(struct fsg_lun *curlun, unsigned int num_sectors, in fsg_lun_open() argument575 curlun->file_length = num_sectors << 9; in fsg_lun_open()576 curlun->num_sectors = num_sectors; in fsg_lun_open()
710 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()
98 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()
261 u32 num_sectors; in altera_qspi_lock() local266 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()
23 unsigned int num_sectors; member
185 __le32 num_sectors; member