/drivers/mtd/ |
H A D | sm_ftl.h | 25 struct kfifo free_sectors; /* queue of free sectors */ 61 int sectors; member in struct:sm_ftl
|
H A D | ssfdc.c | 26 unsigned char sectors; member in struct:ssfdcr_record 321 ssfdc->sectors = 32; 322 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); 324 ((long)ssfdc->sectors * (long)ssfdc->heads)); 327 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, 329 (long)ssfdc->sectors); 332 (long)ssfdc->sectors; 414 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); 417 geo->sectors = ssfdc->sectors; [all...] |
/drivers/ps3/ |
H A D | ps3stor_lib.c | 270 * @sectors: Number of sectors to read/write 277 u64 start_sector, u64 sectors, int write) 283 dev_dbg(&dev->sbd.core, "%s:%u: %s %llu sectors starting at %llu\n", 284 __func__, __LINE__, op, sectors, start_sector); 288 start_sector, sectors, 0, lpar, 291 start_sector, sectors, 0, lpar, 276 ps3stor_read_write_sectors(struct ps3_storage_device *dev, u64 lpar, u64 start_sector, u64 sectors, int write) argument
|
/drivers/scsi/ |
H A D | scsicam.c | 55 * scsicam_bios_param - Determine geometry of a disk in cylinders/heads/sectors. 57 * @capacity: size of the disk in sectors 58 * @ip: return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders 84 and at most 62 sectors per track - this works up to 112 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table 114 * @capacity: size of the disk in sectors 117 * @secs: put sectors here 225 * minimizes the number of sectors that will be unused at the end 234 unsigned long heads, sectors, cylinders, temp; local 237 sectors [all...] |
H A D | ps3rom.c | 173 u32 sectors) 177 dev_dbg(&dev->sbd.core, "%s:%u: read %u sectors starting at %u\n", 178 __func__, __LINE__, sectors, start_sector); 182 sectors, 0, dev->bounce_lpar, &dev->tag); 194 u32 sectors) 198 dev_dbg(&dev->sbd.core, "%s:%u: write %u sectors starting at %u\n", 199 __func__, __LINE__, sectors, start_sector); 205 sectors, 0, dev->bounce_lpar, &dev->tag); 171 ps3rom_read_request(struct ps3_storage_device *dev, struct scsi_cmnd *cmd, u32 start_sector, u32 sectors) argument 192 ps3rom_write_request(struct ps3_storage_device *dev, struct scsi_cmnd *cmd, u32 start_sector, u32 sectors) argument
|
H A D | ultrastor.c | 236 unsigned char sectors; member in struct:ultrastor_config 280 unsigned char sectors; member in struct:__anon6222 463 config.sectors = mapping_table[config_2.mapping_mode].sectors; 597 config.sectors = mapping_table[(config_2 >> 3) & 3].sectors; 1038 unsigned int s = config.heads * config.sectors; 1041 dkinfo[1] = config.sectors;
|
/drivers/block/ |
H A D | cpqarray.h | 52 unsigned sectors; member in struct:__anon296
|
/drivers/ide/ |
H A D | ide-floppy.c | 317 u8 heads, sectors; local 340 sectors = buf[8 + 5]; 342 capacity = cyls * heads * sectors * sector_size; 348 sectors, transfer_rate / 8, sector_size, rpm); 353 drive->bios_sect = sectors;
|
/drivers/md/bcache/ |
H A D | alloc.c | 84 void bch_rescale_priorities(struct cache_set *c, int sectors) argument 92 atomic_sub(sectors, &c->rescale); 161 * first: we also take into account the number of sectors of live data in that 566 * May allocate fewer sectors than @sectors, KEY_SIZE(k) indicates how many 567 * sectors were actually allocated. 571 bool bch_alloc_sectors(struct cache_set *c, struct bkey *k, unsigned sectors, argument 617 sectors = min(sectors, b->sectors_free); 619 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); [all...] |
H A D | extents.c | 314 int sectors) 318 offset, -sectors); 311 bch_subtract_dirty(struct bkey *k, struct cache_set *c, uint64_t offset, int sectors) argument
|
H A D | stats.c | 221 int sectors) 223 atomic_add(sectors, &dc->accounting.collector.sectors_bypassed); 224 atomic_add(sectors, &c->accounting.collector.sectors_bypassed); 220 bch_mark_sectors_bypassed(struct cache_set *c, struct cached_dev *dc, int sectors) argument
|
H A D | writeback.c | 40 /* Scale to sectors per second */ 90 static unsigned writeback_delay(struct cached_dev *dc, unsigned sectors) argument 96 return bch_next_delay(&dc->writeback_rate, sectors);
|
H A D | journal.c | 586 unsigned i, sectors = set_blocks(w->data, block_bytes(c)) * variable 622 atomic_long_add(sectors, &ca->meta_sectors_written); 628 bio->bi_iter.bi_size = sectors << 9; 637 SET_PTR_OFFSET(k, i, PTR_OFFSET(k, i) + sectors); 681 size_t sectors; local 692 sectors = __set_blocks(w->data, w->data->keys + nkeys, 695 if (sectors <= min_t(size_t,
|
/drivers/md/ |
H A D | faulty.c | 291 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 296 if (sectors == 0) 299 return sectors;
|
H A D | linear.c | 80 bvm->bi_sector -= dev0->end_sector - dev0->rdev->sectors; 121 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 128 WARN_ONCE(sectors || raid_disks, 154 sector_t sectors; local 164 sectors = rdev->sectors; 165 sector_div(sectors, mddev->chunk_sectors); 166 rdev->sectors = sectors * mddev->chunk_sectors; 172 conf->array_sectors += rdev->sectors; [all...] |
H A D | multipath.c | 379 static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 381 WARN_ONCE(sectors || raid_disks,
|
H A D | raid1.h | 127 int sectors; member in struct:r1bio
|
H A D | raid0.c | 83 sector_t curr_zone_end, sectors; local 101 sectors = rdev1->sectors; 102 sector_div(sectors, mddev->chunk_sectors); 103 rdev1->sectors = sectors * mddev->chunk_sectors; 110 (unsigned long long)rdev1->sectors, 112 (unsigned long long)rdev2->sectors); 118 if (rdev2->sectors == rdev1->sectors) { 410 raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument 528 unsigned sectors = chunk_sects - local [all...] |
H A D | raid10.h | 41 int chunk_shift; /* shift from chunks to sectors */ 97 int sectors; member in struct:r10bio
|
/drivers/usb/storage/ |
H A D | datafab.c | 68 unsigned long sectors; /* total sector count */ member in struct:datafab_info 146 u32 sectors) 161 if (sectors > 0x0FFFFFFF) 170 totallen = sectors * info->ssize; 229 u32 sectors) 245 if (sectors > 0x0FFFFFFF) 254 totallen = sectors * info->ssize; 429 info->sectors = ((u32)(reply[117]) << 24) | 585 info->ssize = 0x200; // hard coded 512 byte sectors as per ATA spec 590 usb_stor_dbg(us, "READ_CAPACITY: %ld sectors, 143 datafab_read_data(struct us_data *us, struct datafab_info *info, u32 sector, u32 sectors) argument 226 datafab_write_data(struct us_data *us, struct datafab_info *info, u32 sector, u32 sectors) argument [all...] |
H A D | jumpshot.c | 105 unsigned long sectors; /* total sector count */ member in struct:jumpshot_info 165 u32 sectors) 183 totallen = sectors * info->ssize; 242 u32 sectors) 260 totallen = sectors * info->ssize; 363 info->sectors = ((u32)(reply[117]) << 24) | 511 info->ssize = 0x200; // hard coded 512 byte sectors as per ATA spec 521 usb_stor_dbg(us, "READ_CAPACITY: %ld sectors, %ld bytes per sector\n", 522 info->sectors, info->ssize); 526 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors 162 jumpshot_read_data(struct us_data *us, struct jumpshot_info *info, u32 sector, u32 sectors) argument 239 jumpshot_write_data(struct us_data *us, struct jumpshot_info *info, u32 sector, u32 sectors) argument [all...] |
H A D | sddr55.c | 197 unsigned short sectors) { 216 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> 224 while (sectors>0) { 232 // Read as many sectors as possible in this block 234 pages = min((unsigned int) sectors << info->smallpageshift, 302 sectors -= pages >> info->smallpageshift; 316 unsigned short sectors) { 343 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> 351 while (sectors > 0) { 359 // Write as many sectors a 194 sddr55_read_data(struct us_data *us, unsigned int lba, unsigned int page, unsigned short sectors) argument 313 sddr55_write_data(struct us_data *us, unsigned int lba, unsigned int page, unsigned short sectors) argument [all...] |
/drivers/scsi/aic7xxx/ |
H A D | aiclib.h | 137 aic_sector_div(sector_t capacity, int heads, int sectors) argument 140 sector_div(capacity, (heads * sectors));
|
/drivers/scsi/dpt/ |
H A D | dpti_ioctl.h | 94 unsigned sectors; /* sectors for drives on cntlr. */ member in struct:__anon5305
|
H A D | sys_info.h | 84 uCHAR sectors; /* Up to 63 */ member in struct:driveParam_S::__anon5308
|