Home
last modified time | relevance | path

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

12345678910

/linux-6.6.21/Documentation/admin-guide/device-mapper/
Ddm-ebs.rst8 size. Its main purpose is to provide emulation of 512 byte sectors on
18 <dev path> <offset> <emulated sectors> [<underlying sectors>]
27 has to be a multiple of <emulated sectors>.
28 <emulated sectors>:
29 Number of sectors defining the logical block size to be emulated;
30 1, 2, 4, 8 sectors of 512 bytes supported.
34 <underlying sectors>:
35 Number of sectors defining the logical block size of <dev path>.
36 2^N supported, e.g. 8 = emulate 8 sectors of 512 bytes = 4KiB.
43 offset 1024 sectors with underlying devices block size automatically set:
[all …]
Ddm-integrity.rst68 dm-integrity won't read of write these sectors
77 not used and data sectors and integrity tags are written
106 The number of interleaved sectors. This values is rounded down to
115 The number of sectors in one metadata buffer. The value is rounded
178 512-byte sectors that corresponds to one bitmap bit.
197 copy sectors from one journal section to another journal section
201 key and also to disallow the attacker to move sectors from one
219 256 sectors of metadata per data area. With the default buffer_sectors of
226 2. provided data sectors - that is the number of sectors that the user
233 * reserved sectors
[all …]
/linux-6.6.21/drivers/target/
Dtarget_core_sbc.c216 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) in sbc_get_size() argument
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
279 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same() local
288 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
290 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
296 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
297 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
299 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
333 ret = sbc_check_prot(dev, cmd, flags >> 5, sectors, true); in sbc_setup_write_same()
668 u32 sectors, bool is_write) in sbc_check_prot() argument
[all …]
/linux-6.6.21/drivers/md/
Draid0.c66 sector_t curr_zone_end, sectors; in create_strip_zones() local
83 sectors = rdev1->sectors; in create_strip_zones()
84 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
85 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
95 (unsigned long long)rdev1->sectors, in create_strip_zones()
97 (unsigned long long)rdev2->sectors); in create_strip_zones()
103 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
194 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
204 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
217 zone->dev_start = smallest->sectors; in create_strip_zones()
[all …]
Dmd-linear.c49 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
55 WARN_ONCE(sectors || raid_disks, in linear_size()
78 sector_t sectors; in linear_conf() local
88 sectors = rdev->sectors; in linear_conf()
89 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
90 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
96 conf->array_sectors += rdev->sectors; in linear_conf()
108 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
113 conf->disks[i].rdev->sectors; in linear_conf()
218 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
[all …]
Draid1.c65 sector_t hi = lo + r1_bio->sectors; in check_and_add_serial()
342 r1_bio->sector + (r1_bio->sectors); in update_head_pos()
424 r1_bio->sectors, in close_write()
456 sector_t hi = r1_bio->sector + r1_bio->sectors; in raid1_end_write_request()
518 if (is_badblock(rdev, r1_bio->sector, r1_bio->sectors, in raid1_end_write_request()
566 sector_t sectors) in align_to_barrier_unit_end() argument
570 WARN_ON(sectors == 0); in align_to_barrier_unit_end()
578 if (len > sectors) in align_to_barrier_unit_end()
579 len = sectors; in align_to_barrier_unit_end()
601 int sectors; in read_balance() local
[all …]
Draid10.c346 r10_bio->devs[slot].addr + (r10_bio->sectors); in update_head_pos()
432 r10_bio->sectors, in close_write()
538 r10_bio->sectors, in raid10_end_write_request()
735 int sectors = r10_bio->sectors; in read_balance() local
762 && (this_sector + sectors >= conf->next_resync)) || in read_balance()
765 this_sector + sectors))) in read_balance()
780 r10_bio->devs[slot].addr + sectors > in read_balance()
794 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
798 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
809 if (!do_balance && sectors > bad_sectors) in read_balance()
[all …]
/linux-6.6.21/block/
Dbadblocks.c53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument
60 sector_t target = s + sectors; in badblocks_check()
162 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() argument
176 sector_t next = s + sectors; in badblocks_set()
181 sectors = next - s; in badblocks_set()
212 if (s == a && s + sectors >= e) in badblocks_set()
218 if (e < s + sectors) in badblocks_set()
219 e = s + sectors; in badblocks_set()
231 sectors = e - s; in badblocks_set()
234 if (sectors && hi < bb->count) { in badblocks_set()
[all …]
Dbounce.c210 int sectors; in __blk_queue_bounce() local
226 sectors = ALIGN_DOWN(bytes, queue_logical_block_size(q)) >> in __blk_queue_bounce()
228 if (sectors < bio_sectors(bio_orig)) { in __blk_queue_bounce()
229 bio = bio_split(bio_orig, sectors, GFP_NOIO, &bounce_bio_split); in __blk_queue_bounce()
/linux-6.6.21/Documentation/block/
Dstat.rst31 read sectors sectors number of sectors read
35 write sectors sectors number of sectors written
42 discard sectors sectors number of sectors discarded
67 read sectors, write sectors, discard_sectors
70 These values count the number of sectors read from, written to, or
71 discarded from this block device. The "sectors" in question are the
72 standard UNIX 512-byte sectors, not any device- or filesystem-specific
/linux-6.6.21/drivers/scsi/
Dscsicam.c179 unsigned long heads, sectors, cylinders, temp; in setsize() local
182 sectors = 62L; /* Maximize sectors per track */ in setsize()
184 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
189 sectors = capacity / temp; /* Compute value for sectors per in setsize()
192 sectors++; /* Else, increment number of sectors */ in setsize()
193 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
201 *secs = (unsigned int) sectors; in setsize()
Dps3rom.c161 u32 sectors) in ps3rom_read_request() argument
166 __func__, __LINE__, sectors, start_sector); in ps3rom_read_request()
170 sectors, 0, dev->bounce_lpar, &dev->tag); in ps3rom_read_request()
182 u32 sectors) in ps3rom_write_request() argument
187 __func__, __LINE__, sectors, start_sector); in ps3rom_write_request()
193 sectors, 0, dev->bounce_lpar, &dev->tag); in ps3rom_write_request()
/linux-6.6.21/include/linux/
Dblk-integrity.h91 unsigned int sectors) in bio_integrity_intervals() argument
93 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals()
97 unsigned int sectors) in bio_integrity_bytes() argument
99 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes()
164 unsigned int sectors) in bio_integrity_intervals() argument
170 unsigned int sectors) in bio_integrity_bytes() argument
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-6.6.21/drivers/mtd/
Dssfdc.c23 unsigned char sectors; member
318 ssfdc->sectors = 32; in ssfdcr_add_mtd()
319 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
321 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
324 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
326 (long)ssfdc->sectors); in ssfdcr_add_mtd()
329 (long)ssfdc->sectors; in ssfdcr_add_mtd()
411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
414 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo()
Dnftlcore.c71 nftl->sectors = nftl->mbd.size / temp; in nftl_add_mtd()
73 nftl->sectors++; in nftl_add_mtd()
74 temp = nftl->cylinders * nftl->sectors; in nftl_add_mtd()
79 temp = nftl->heads * nftl->sectors; in nftl_add_mtd()
84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd()
93 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd()
95 (long)nftl->sectors ); in nftl_add_mtd()
771 geo->sectors = nftl->sectors; in nftl_getgeo()
/linux-6.6.21/drivers/usb/storage/
Ddatafab.c60 unsigned long sectors; /* total sector count */ member
138 u32 sectors) in datafab_read_data() argument
153 if (sectors > 0x0FFFFFFF) in datafab_read_data()
162 totallen = sectors * info->ssize; in datafab_read_data()
221 u32 sectors) in datafab_write_data() argument
237 if (sectors > 0x0FFFFFFF) in datafab_write_data()
246 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.c96 unsigned long sectors; /* total sector count */ member
156 u32 sectors) in jumpshot_read_data() argument
174 totallen = sectors * info->ssize; in jumpshot_read_data()
233 u32 sectors) in jumpshot_write_data() argument
251 totallen = sectors * info->ssize; in jumpshot_write_data()
354 info->sectors = ((u32)(reply[117]) << 24) | in jumpshot_id_device()
513 info->sectors, info->ssize); in jumpshot_transport()
517 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in jumpshot_transport()
Dsddr55.c190 unsigned short sectors) { in sddr55_read_data() argument
209 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data()
217 while (sectors>0) { in sddr55_read_data()
227 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_read_data()
295 sectors -= pages >> info->smallpageshift; in sddr55_read_data()
309 unsigned short sectors) { in sddr55_write_data() argument
336 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data()
344 while (sectors > 0) { in sddr55_write_data()
354 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_write_data()
503 sectors -= pages >> info->smallpageshift; in sddr55_write_data()
/linux-6.6.21/Documentation/ABI/testing/
Dprocfs-diskstats15 6 sectors read
19 10 sectors written
32 17 sectors discarded
/linux-6.6.21/drivers/md/bcache/
Dalloc.c86 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities() argument
93 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()
608 unsigned int sectors, in bch_alloc_sectors() argument
656 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
658 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()
659 SET_KEY_SIZE(k, sectors); in bch_alloc_sectors()
670 b->sectors_free -= sectors; in bch_alloc_sectors()
673 SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); in bch_alloc_sectors()
675 atomic_long_add(sectors, in bch_alloc_sectors()
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/mtd/nand/
Decc-mtk.c66 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-6.6.21/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

12345678910