Searched refs:sectors (Results 1 - 25 of 132) sorted by relevance

123456

/drivers/md/
H A Draid0.c83 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 Dlinear.c80 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 Draid1.c275 pr_debug("raid1: sync end %s on sectors %llu-%llu\n",
293 r1_bio->sector + (r1_bio->sectors);
378 r1_bio->sectors,
452 r1_bio->sector, r1_bio->sectors,
475 pr_debug("raid1: behind end write sectors"
514 int sectors; local
532 sectors = r1_bio->sectors;
542 choose_first = (conf->mddev->recovery_cp < this_sector + sectors);
558 rdev->recovery_offset < this_sector + sectors)
1805 r1_sync_page_io(struct md_rdev *rdev, sector_t sector, int sectors, struct page *page, int rw) argument
1841 int sectors = r1_bio->sectors; local
2097 fix_read_error(struct r1conf *conf, int read_disk, sector_t sect, int sectors) argument
2202 int sectors; local
2754 raid1_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument
3004 raid1_resize(struct mddev *mddev, sector_t sectors) argument
[all...]
H A Draid10.c330 r10_bio->devs[slot].addr + (r10_bio->sectors);
420 r10_bio->sectors,
505 r10_bio->sectors,
788 int sectors = r10_bio->sectors; local
799 sectors = r10_bio->sectors;
812 && (this_sector + sectors >= conf->next_resync))
826 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset)
833 r10_bio->devs[slot].addr + sectors > rde
1172 int sectors; local
2082 int sectors = r10_bio->sectors; local
2185 int sectors = r10_bio->sectors; local
2331 r10_sync_page_io(struct md_rdev *rdev, sector_t sector, int sectors, struct page *page, int rw) argument
2366 int sectors = r10_bio->sectors; local
2578 int sectors; local
3432 raid10_size(struct mddev *mddev, sector_t sectors, int raid_disks) argument
3851 raid10_resize(struct mddev *mddev, sector_t sectors) argument
4577 int sectors = r10_bio->sectors; local
[all...]
H A Dbitmap.h131 __le32 sectors_reserved; /* 64 number of 512-byte sectors that are
146 * (3)This is the number of sectors represented by the bitmap, and is the range that
250 unsigned long sectors, int behind);
252 unsigned long sectors, int success, int behind);
H A Dmd.h42 sector_t sectors; /* Device size (in 512bytes sectors) */ member in struct:md_rdev
59 sector_t sb_start; /* offset of the super block (in 512byte sectors) */
118 int shift; /* shift from sectors to block size
126 sector_t size; /* in sectors */
184 extern int md_is_badblock(struct badblocks *bb, sector_t s, int sectors,
186 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, argument
191 sectors,
199 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
201 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
[all...]
H A Draid1.h127 int sectors; member in struct:r1bio
H A Draid10.h41 int chunk_shift; /* shift from chunks to sectors */
97 int sectors; member in struct:r10bio
H A Dmd.c251 unsigned int sectors; local
281 * save the sectors now since our bio can
284 sectors = bio_sectors(bio);
289 part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], sectors);
672 /* return the offset of the super block in 512byte sectors */
697 rdev->sectors = 0;
943 * Calculate the position of the superblock (512byte sectors),
1016 rdev->sectors = rdev->sb_start;
1021 if (rdev->sectors >
1363 sector_t sectors; local
1462 int sectors = le16_to_cpu(sb->bblog_size); local
2756 strict_blocks_to_sectors(const char *buf, sector_t *sectors) argument
2780 sector_t sectors; local
3901 sector_t sectors; local
4440 sector_t sectors; local
6846 sector_t sectors; local
7353 sector_t sectors; local
7871 md_is_badblock(struct badblocks *bb, sector_t s, int sectors, sector_t *first_bad, int *bad_sectors) argument
7951 md_set_badblocks(struct badblocks *bb, sector_t s, int sectors, int acknowledged) argument
8093 rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors, int is_new) argument
8119 md_clear_badblocks(struct badblocks *bb, sector_t s, int sectors) argument
8208 rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors, int is_new) argument
[all...]
/drivers/scsi/
H A Dscsicam.c55 * 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 Dps3rom.c173 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
/drivers/target/
H A Dtarget_core_sbc.c174 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) argument
176 return cmd->se_dev->dev_attrib.block_size * sectors;
254 unsigned int sectors = sbc_get_write_same_sectors(cmd); local
262 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) {
263 pr_warn("WRITE_SAME sectors: %u exceeds max_write_same_len: %u\n",
264 sectors, cmd->se_dev->dev_attrib.max_write_same_len);
619 u32 sectors, bool is_write)
649 cmd->prot_length = dev->prot_length * sectors;
658 cmd->data_length = sectors * dev->dev_attrib.block_size;
674 u32 sectors local
618 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb, u32 sectors, bool is_write) argument
1159 sbc_dif_copy_prot(struct se_cmd *cmd, unsigned int sectors, bool read, struct scatterlist *sg, int sg_off) argument
1200 sbc_dif_verify_write(struct se_cmd *cmd, sector_t start, unsigned int sectors, unsigned int ei_lba, struct scatterlist *sg, int sg_off) argument
1255 __sbc_dif_verify_read(struct se_cmd *cmd, sector_t start, unsigned int sectors, unsigned int ei_lba, struct scatterlist *sg, int sg_off) argument
1317 u32 sectors = cmd->prot_length / dev->prot_length; local
1324 sbc_dif_verify_read(struct se_cmd *cmd, sector_t start, unsigned int sectors, unsigned int ei_lba, struct scatterlist *sg, int sg_off) argument
[all...]
/drivers/mtd/
H A Dssfdc.c26 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...]
H A Dsm_ftl.h25 struct kfifo free_sectors; /* queue of free sectors */
61 int sectors; member in struct:sm_ftl
H A Dnftlcore.c84 nftl->sectors = nftl->mbd.size / temp;
86 nftl->sectors++;
87 temp = nftl->cylinders * nftl->sectors;
92 temp = nftl->heads * nftl->sectors;
97 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) {
100 mbd.size == heads * cylinders * sectors
106 nftl->cylinders, nftl->heads , nftl->sectors,
108 (long)nftl->sectors );
785 geo->sectors = nftl->sectors;
[all...]
/drivers/scsi/aic7xxx/
H A Daiclib.h137 aic_sector_div(sector_t capacity, int heads, int sectors) argument
140 sector_div(capacity, (heads * sectors));
/drivers/block/
H A Dcpqarray.h52 unsigned sectors; member in struct:__anon296
/drivers/md/bcache/
H A Dalloc.c84 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 Drequest.c120 pr_debug("invalidating %i sectors from %llu",
124 unsigned sectors = min(bio_sectors(bio), local
130 bio->bi_iter.bi_sector += sectors;
131 bio->bi_iter.bi_size -= sectors << 9;
134 &KEY(op->inode, bio->bi_iter.bi_sector, sectors));
369 unsigned sectors, congested = bch_get_congested(c); local
430 sectors = max(task->sequential_io,
434 sectors >= dc->sequential_cutoff >> 9) {
439 if (congested && sectors >= congested) {
515 unsigned sectors local
781 cached_dev_cache_miss(struct btree *b, struct search *s, struct bio *bio, unsigned sectors) argument
1045 flash_dev_cache_miss(struct btree *b, struct search *s, struct bio *bio, unsigned sectors) argument
[all...]
H A Dstats.c221 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
/drivers/usb/storage/
H A Ddatafab.c68 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 Djumpshot.c105 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...]
/drivers/block/rsxx/
H A Ddev.c51 MODULE_PARM_DESC(blkdev_max_hw_sectors, "Max hw sectors for a single BIO");
96 geo->sectors = 16;
97 do_div(blocks, (geo->heads * geo->sectors));
101 geo->sectors = 0;
138 part_stat_add(cpu, part0, sectors[rw], bio_sectors(bio));
/drivers/ps3/
H A Dps3stor_lib.c270 * @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/dpt/
H A Ddpti_ioctl.h94 unsigned sectors; /* sectors for drives on cntlr. */ member in struct:__anon5305

Completed in 3401 milliseconds

123456