Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 231) sorted by relevance

12345678910

/Linux-v4.19/drivers/target/
Dtarget_core_sbc.c229 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) in sbc_get_size() argument
231 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
299 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same() local
308 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
310 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
316 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
317 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
319 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
347 ret = sbc_check_prot(dev, cmd, &cmd->t_task_cdb[0], sectors, true); in sbc_setup_write_same()
706 u32 sectors, bool is_write) in sbc_check_prot() argument
[all …]
/Linux-v4.19/block/
Dbadblocks.c61 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument
68 sector_t target = s + sectors; in badblocks_check()
76 sectors = target - s; in badblocks_check()
171 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() argument
185 sector_t next = s + sectors; in badblocks_set()
190 sectors = next - s; in badblocks_set()
221 if (s == a && s + sectors >= e) in badblocks_set()
227 if (e < s + sectors) in badblocks_set()
228 e = s + sectors; in badblocks_set()
240 sectors = e - s; in badblocks_set()
[all …]
/Linux-v4.19/drivers/md/
Draid0.c87 sector_t curr_zone_end, sectors; in create_strip_zones() local
106 sectors = rdev1->sectors; in create_strip_zones()
107 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
108 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
118 (unsigned long long)rdev1->sectors, in create_strip_zones()
120 (unsigned long long)rdev2->sectors); in create_strip_zones()
126 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
216 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
226 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
239 zone->dev_start = smallest->sectors; in create_strip_zones()
[all …]
Dmd-linear.c79 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
85 WARN_ONCE(sectors || raid_disks, in linear_size()
110 sector_t sectors; in linear_conf() local
120 sectors = rdev->sectors; in linear_conf()
121 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
122 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
128 conf->array_sectors += rdev->sectors; in linear_conf()
148 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
153 conf->disks[i].rdev->sectors; in linear_conf()
261 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
[all …]
Draid1.c306 r1_bio->sector + (r1_bio->sectors); in update_head_pos()
389 r1_bio->sectors, in close_write()
479 if (is_badblock(rdev, r1_bio->sector, r1_bio->sectors, in raid1_end_write_request()
524 sector_t sectors) in align_to_barrier_unit_end() argument
528 WARN_ON(sectors == 0); in align_to_barrier_unit_end()
536 if (len > sectors) in align_to_barrier_unit_end()
537 len = sectors; in align_to_barrier_unit_end()
559 int sectors; in read_balance() local
577 sectors = r1_bio->sectors; in read_balance()
588 if ((conf->mddev->recovery_cp < this_sector + sectors) || in read_balance()
[all …]
Draid10.c356 r10_bio->devs[slot].addr + (r10_bio->sectors); in update_head_pos()
444 r10_bio->sectors, in close_write()
548 r10_bio->sectors, in raid10_end_write_request()
745 int sectors = r10_bio->sectors; in read_balance() local
768 && (this_sector + sectors >= conf->next_resync)) || in read_balance()
771 this_sector + sectors))) in read_balance()
784 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
790 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
794 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
805 if (!do_balance && sectors > bad_sectors) in read_balance()
[all …]
/Linux-v4.19/Documentation/block/
Dstat.txt25 read sectors sectors number of sectors read
29 write sectors sectors number of sectors written
36 discard sectors sectors number of sectors discarded
50 read sectors, write sectors, discard_sectors
53 These values count the number of sectors read from, written to, or
54 discarded from this block device. The "sectors" in question are the
55 standard UNIX 512-byte sectors, not any device- or filesystem-specific
/Linux-v4.19/drivers/scsi/
Dscsicam.c235 unsigned long heads, sectors, cylinders, temp; in setsize() local
238 sectors = 62L; /* Maximize sectors per track */ in setsize()
240 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
245 sectors = capacity / temp; /* Compute value for sectors per in setsize()
248 sectors++; /* Else, increment number of sectors */ in setsize()
249 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
257 *secs = (unsigned int) sectors; in setsize()
Dps3rom.c173 u32 sectors) in ps3rom_read_request() argument
178 __func__, __LINE__, sectors, start_sector); in ps3rom_read_request()
182 sectors, 0, dev->bounce_lpar, &dev->tag); in ps3rom_read_request()
194 u32 sectors) in ps3rom_write_request() argument
199 __func__, __LINE__, sectors, start_sector); in ps3rom_write_request()
205 sectors, 0, dev->bounce_lpar, &dev->tag); in ps3rom_write_request()
/Linux-v4.19/drivers/mtd/
Dssfdc.c26 unsigned char sectors; member
321 ssfdc->sectors = 32; in ssfdcr_add_mtd()
322 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
324 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
327 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
329 (long)ssfdc->sectors); in ssfdcr_add_mtd()
332 (long)ssfdc->sectors; in ssfdcr_add_mtd()
414 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
417 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo()
Dnftlcore.c84 nftl->sectors = nftl->mbd.size / temp; in nftl_add_mtd()
86 nftl->sectors++; in nftl_add_mtd()
87 temp = nftl->cylinders * nftl->sectors; in nftl_add_mtd()
92 temp = nftl->heads * nftl->sectors; in nftl_add_mtd()
97 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd()
106 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd()
108 (long)nftl->sectors ); in nftl_add_mtd()
785 geo->sectors = nftl->sectors; in nftl_getgeo()
/Linux-v4.19/Documentation/ABI/testing/
Dprocfs-diskstats14 6 - sectors read
18 10 - sectors written
29 17 - sectors discarded
/Linux-v4.19/include/linux/
Dbadblocks.h44 int badblocks_check(struct badblocks *bb, sector_t s, int sectors,
46 int badblocks_set(struct badblocks *bb, sector_t s, int sectors,
48 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors);
/Linux-v4.19/drivers/usb/storage/
Ddatafab.c59 unsigned long sectors; /* total sector count */ member
137 u32 sectors) in datafab_read_data() argument
152 if (sectors > 0x0FFFFFFF) in datafab_read_data()
161 totallen = sectors * info->ssize; in datafab_read_data()
220 u32 sectors) in datafab_write_data() argument
236 if (sectors > 0x0FFFFFFF) in datafab_write_data()
245 totallen = sectors * info->ssize; in datafab_write_data()
420 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device()
582 info->sectors, info->ssize); in datafab_transport()
586 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in datafab_transport()
Djumpshot.c95 unsigned long sectors; /* total sector count */ member
155 u32 sectors) in jumpshot_read_data() argument
173 totallen = sectors * info->ssize; in jumpshot_read_data()
232 u32 sectors) in jumpshot_write_data() argument
250 totallen = sectors * info->ssize; in jumpshot_write_data()
353 info->sectors = ((u32)(reply[117]) << 24) | in jumpshot_id_device()
512 info->sectors, info->ssize); in jumpshot_transport()
516 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in jumpshot_transport()
Dsddr55.c189 unsigned short sectors) { in sddr55_read_data() argument
208 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data()
216 while (sectors>0) { in sddr55_read_data()
226 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_read_data()
294 sectors -= pages >> info->smallpageshift; in sddr55_read_data()
308 unsigned short sectors) { in sddr55_write_data() argument
335 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data()
343 while (sectors > 0) { in sddr55_write_data()
353 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_write_data()
502 sectors -= pages >> info->smallpageshift; in sddr55_write_data()
/Linux-v4.19/Documentation/device-mapper/
Ddm-integrity.txt47 dm-integrity won't read of write these sectors
54 not used and data sectors and integrity tags are written
78 The number of interleaved sectors. This values is rounded down to
83 The number of sectors in one buffer. The value is rounded down to
157 * reserved sectors (they are not used by this target, they can be used for
163 * log2(interleave sectors)
166 * provided data sectors - the number of sectors that this target
169 bios that access data beyond the "provided data sectors" limit.
180 * mac (8-bytes), all the macs in 8 metadata sectors form a
194 commit id matches on all sectors in a journal section, then it is
[all …]
/Linux-v4.19/fs/hfsplus/
Dbtree.c76 u64 sectors, int file_id) in hfsplus_calc_btree_clump_size() argument
100 if (sectors < 0x200000) { in hfsplus_calc_btree_clump_size()
101 clump_size = sectors << 2; /* 0.8 % */ in hfsplus_calc_btree_clump_size()
106 for (i = 0, sectors = sectors >> 22; in hfsplus_calc_btree_clump_size()
107 sectors && (i < CLUMP_ENTRIES - 1); in hfsplus_calc_btree_clump_size()
108 ++i, sectors = sectors >> 1) { in hfsplus_calc_btree_clump_size()
/Linux-v4.19/block/partitions/
Dibm.c41 return cyl * geo->heads * geo->sectors + in cchh2blk()
42 head * geo->sectors; in cchh2blk()
59 return cyl * geo->heads * geo->sectors + in cchhb2blk()
60 head * geo->sectors + in cchhb2blk()
177 offset + geo->sectors; in find_vol1_partitions()
222 * geo->sectors * secperblk; in find_lnx1_partitions()
/Linux-v4.19/drivers/md/bcache/
Dalloc.c86 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities() argument
94 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()
602 unsigned int sectors, in bch_alloc_sectors() argument
650 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
652 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()
653 SET_KEY_SIZE(k, sectors); in bch_alloc_sectors()
664 b->sectors_free -= sectors; in bch_alloc_sectors()
667 SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); in bch_alloc_sectors()
669 atomic_long_add(sectors, in bch_alloc_sectors()
Drequest.c129 unsigned int sectors = min(bio_sectors(bio), in bch_data_invalidate() local
135 bio->bi_iter.bi_sector += sectors; in bch_data_invalidate()
136 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate()
141 sectors)); in bch_data_invalidate()
379 unsigned int sectors, congested = bch_get_congested(c); in check_should_bypass() local
442 sectors = max(task->sequential_io, in check_should_bypass()
446 sectors >= dc->sequential_cutoff >> 9) { in check_should_bypass()
451 if (congested && sectors >= congested) { in check_should_bypass()
528 unsigned int sectors = KEY_INODE(k) == s->iop.inode in cache_lookup_fn() local
532 int ret = s->d->cache_miss(b, s, bio, sectors); in cache_lookup_fn()
[all …]
/Linux-v4.19/arch/x86/boot/
Dmtools.conf.in11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter
15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
/Linux-v4.19/drivers/block/paride/
Dpd.c229 int sectors; member
343 s = (block % disk->sectors) + 1; in pd_ide_command()
344 h = (block /= disk->sectors) % disk->heads; in pd_ide_command()
612 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms()
694 disk->sectors = le16_to_cpu(*(__le16 *) (pd_scratch + 12)); in pd_identify()
700 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify()
716 disk->cylinders, disk->heads, disk->sectors, in pd_identify()
778 geo->sectors = PD_LOG_SECTS; in pd_getgeo()
779 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo()
782 geo->sectors = disk->sectors; in pd_getgeo()
/Linux-v4.19/drivers/mtd/nand/raw/
Dmtk_ecc.c70 u32 sectors; member
150 if (dec & ecc->sectors) { in mtk_ecc_irq()
156 ecc->sectors = 0; in mtk_ecc_irq()
213 if (config->sectors) in mtk_ecc_config()
214 ecc->sectors = 1 << (config->sectors - 1); in mtk_ecc_config()
221 int sectors) in mtk_ecc_get_stats() argument
229 for (i = 0; i < sectors; i++) { in mtk_ecc_get_stats()
/Linux-v4.19/Documentation/
Diostats.txt73 Field 3 -- # of sectors read
74 This is the total number of sectors read successfully.
86 Field 7 -- # of sectors written
87 This is the total number of sectors written successfully.
113 Field 14 -- # of sectors discarded
114 This is the total number of sectors discarded successfully.
147 Field 2 -- # of sectors read
148 This is the total number of sectors requested to be read from this
154 Field 4 -- # of sectors written
155 This is the total number of sectors requested to be written to

12345678910