| /linux/block/ |
| H A D | badblocks.c | 554 sector_t sectors = bad->len; in front_merge() local 562 merged = min_t(sector_t, sectors, BB_END(p[prev]) - s); in front_merge() 564 merged = min_t(sector_t, sectors, BB_MAX_LEN - BB_LEN(p[prev])); in front_merge() 839 static bool _badblocks_set(struct badblocks *bb, sector_t s, sector_t sectors, in _badblocks_set() argument 852 if (sectors == 0) in _badblocks_set() 858 sector_t next = s + sectors; in _badblocks_set() 862 sectors = next - s; in _badblocks_set() 872 bad.len = sectors; in _badblocks_set() 923 BB_END(p[prev]) - s, sectors); in _badblocks_set() 954 sectors -= len; in _badblocks_set() [all …]
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-ebs.rst | 8 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 …]
|
| H A D | dm-integrity.rst | 68 dm-integrity won't read of write these sectors 77 not used and data sectors and integrity tags are written 96 data directly in the underlying device sectors. 111 The number of interleaved sectors. This values is rounded down to 120 The number of sectors in one metadata buffer. The value is rounded 183 512-byte sectors that corresponds to one bitmap bit. 202 copy sectors from one journal section to another journal section 206 key and also to disallow the attacker to move sectors from one 224 256 sectors of metadata per data area. With the default buffer_sectors of 231 2. provided data sectors - that is the number of sectors that the user [all …]
|
| H A D | dm-dust.rst | 4 This target emulates the behavior of bad sectors at arbitrary 11 drive with bad sectors). 23 sectors. 25 Normally, a drive that is encountering bad sectors will most likely 26 encounter more bad sectors, at an unknown time or location. 32 simulating a "failure" event where bad sectors start to appear. 53 First, find the size (in 512-byte sectors) of the device to be used:: 114 kernel: device-mapper: dust: enabling read failures on bad sectors 299 be bad sectors that occur on the device in the future, in a different,
|
| H A D | cache.rst | 69 sectors (32KB) and 2097152 sectors (1GB) and a multiple of 64 sectors (32KB). 127 For the time being, a message "migration_threshold <#sectors>" 128 can be used to set the maximum number of sectors being migrated, 129 the default being 2048 sectors (1MB). 189 block size cache unit size in sectors 248 sectors 252 in sectors
|
| /linux/drivers/target/ |
| H A D | target_core_sbc.c | 216 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/Documentation/block/ |
| H A D | stat.rst | 31 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/drivers/mtd/ |
| H A D | ssfdc.c | 22 unsigned char sectors; member 317 ssfdc->sectors = 32; in ssfdcr_add_mtd() 318 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd() 320 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd() 323 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd() 325 (long)ssfdc->sectors); in ssfdcr_add_mtd() 328 (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()
|
| H A D | inftlcore.c | 78 inftl->sectors = inftl->mbd.size / temp; in inftl_add_mtd() 80 inftl->sectors++; in inftl_add_mtd() 81 temp = inftl->cylinders * inftl->sectors; in inftl_add_mtd() 86 temp = inftl->heads * inftl->sectors; in inftl_add_mtd() 91 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd() 100 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd() 102 (long)inftl->sectors ); in inftl_add_mtd() 922 geo->sectors = inftl->sectors; in inftl_getgeo()
|
| /linux/Documentation/ABI/testing/ |
| H A D | procfs-diskstats | 15 6 sectors read 19 10 sectors written 32 17 sectors discarded
|
| /linux/include/linux/ |
| H A D | badblocks.h | 51 int badblocks_check(struct badblocks *bb, sector_t s, sector_t sectors, 53 bool badblocks_set(struct badblocks *bb, sector_t s, sector_t sectors, 55 bool badblocks_clear(struct badblocks *bb, sector_t s, sector_t sectors);
|
| /linux/drivers/scsi/ |
| H A D | ps3rom.c | 162 u32 sectors) in ps3rom_read_request() argument 167 __func__, __LINE__, sectors, start_sector); in ps3rom_read_request() 171 sectors, 0, dev->bounce_lpar, &dev->tag); in ps3rom_read_request() 183 u32 sectors) in ps3rom_write_request() argument 188 __func__, __LINE__, sectors, start_sector); in ps3rom_write_request() 194 sectors, 0, dev->bounce_lpar, &dev->tag); in ps3rom_write_request()
|
| /linux/drivers/usb/storage/ |
| H A D | sddr55.c | 190 unsigned short sectors) { in sddr55_read_data() argument 209 len = min_t(unsigned int, sectors, info->blocksize >> in sddr55_read_data() 217 while (sectors>0) { in sddr55_read_data() 227 pages = min_t(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_t(unsigned int, sectors, info->blocksize >> in sddr55_write_data() 344 while (sectors > 0) { in sddr55_write_data() 354 pages = min_t(unsigned int, sectors << info->smallpageshift, in sddr55_write_data() 509 sectors -= pages >> info->smallpageshift; in sddr55_write_data()
|
| /linux/drivers/mtd/nand/ |
| H A D | ecc-mtk.c | 66 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/drivers/mtd/spi-nor/ |
| H A D | Kconfig | 14 bool "Use small 4096 B erase sectors" 17 Many flash memories support erasing small (4096 B) sectors. Depending 21 small sectors. On the other hand erasing should be faster when using 22 64 KiB block instead of 16 × 4 KiB sectors.
|
| /linux/drivers/md/bcache/ |
| H A D | request.c | 117 unsigned int sectors = min(bio_sectors(bio), in bch_data_invalidate() local 123 bio->bi_iter.bi_sector += sectors; in bch_data_invalidate() 124 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate() 129 sectors)); in bch_data_invalidate() 367 unsigned int sectors, congested; in check_should_bypass() local 453 sectors = max(task->sequential_io, in check_should_bypass() 457 sectors >= dc->sequential_cutoff >> 9) { in check_should_bypass() 462 if (congested && sectors >= congested) { in check_should_bypass() 540 unsigned int sectors = KEY_INODE(k) == s->iop.inode in cache_lookup_fn() local 544 int ret = s->d->cache_miss(b, s, bio, sectors); in cache_lookup_fn() [all …]
|
| H A D | stats.c | 216 int sectors) in bch_mark_sectors_bypassed() argument 218 atomic_add(sectors, &dc->accounting.collector.sectors_bypassed); in bch_mark_sectors_bypassed() 219 atomic_add(sectors, &c->accounting.collector.sectors_bypassed); in bch_mark_sectors_bypassed()
|
| /linux/arch/x86/boot/ |
| H A D | mtools.conf.in | 11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter 15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
|
| /linux/drivers/md/ |
| H A D | dm-stats.c | 26 unsigned long long sectors[2]; member 602 p->sectors[idx] += len; in dm_stat_for_entry() 731 shared->tmp.sectors[READ] = 0; in __dm_stat_init_temporary_percpu_totals() 732 shared->tmp.sectors[WRITE] = 0; in __dm_stat_init_temporary_percpu_totals() 749 shared->tmp.sectors[READ] += READ_ONCE(p->sectors[READ]); in __dm_stat_init_temporary_percpu_totals() 750 shared->tmp.sectors[WRITE] += READ_ONCE(p->sectors[WRITE]); in __dm_stat_init_temporary_percpu_totals() 783 p->sectors[READ] -= shared->tmp.sectors[READ]; in __dm_stat_clear() 784 p->sectors[WRITE] -= shared->tmp.sectors[WRITE]; in __dm_stat_clear() 901 shared->tmp.sectors[READ], in dm_stats_print() 905 shared->tmp.sectors[WRITE], in dm_stats_print()
|
| /linux/Documentation/scsi/ |
| H A D | aha152x.rst | 125 SCSI uses block numbers to address blocks/sectors on a device. 130 The number of cylinders/heads/sectors is called geometry and is required 132 total capacity of disks in blocks (sectors). 146 namely the address space is limited to up to 255 heads, up to 63 sectors 150 to 64, the number of sectors to 32 and by calculating the number of 158 63 for sectors and then divides the capacity of the disk by 255*63
|
| /linux/drivers/ps3/ |
| H A D | ps3stor_lib.c | 266 u64 start_sector, u64 sectors, int write) in ps3stor_read_write_sectors() argument 273 __func__, __LINE__, op, sectors, start_sector); in ps3stor_read_write_sectors() 277 start_sector, sectors, 0, lpar, in ps3stor_read_write_sectors() 280 start_sector, sectors, 0, lpar, in ps3stor_read_write_sectors()
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aiclib.h | 122 aic_sector_div(sector_t capacity, int heads, int sectors) in aic_sector_div() argument 125 sector_div(capacity, (heads * sectors)); in aic_sector_div()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | mtk_nand.c | 729 u32 sectors) in mtk_nfc_read_fdm() argument 738 for (i = 0; i < sectors; i++) { in mtk_nfc_read_fdm() 915 u32 sectors) in mtk_nfc_update_ecc_stats() argument 926 memset(buf, 0xff, sectors * chip->ecc.size); in mtk_nfc_update_ecc_stats() 927 for (i = 0; i < sectors; i++) in mtk_nfc_update_ecc_stats() 932 mtk_ecc_get_stats(nfc->ecc, &stats, sectors); in mtk_nfc_update_ecc_stats() 946 u32 column, sectors, start, end, reg; in mtk_nfc_read_subpage() local 957 sectors = end - start; in mtk_nfc_read_subpage() 960 len = sectors * chip->ecc.size + (raw ? sectors * spare : 0); in mtk_nfc_read_subpage() 980 nfc->ecc_cfg.sectors = sectors; in mtk_nfc_read_subpage() [all …]
|
| /linux/Documentation/filesystems/ext4/ |
| H A D | blocks.rst | 7 sectors between 1KiB and 64KiB, and the number of sectors must be an
|
| /linux/drivers/scsi/aacraid/ |
| H A D | linit.c | 309 param->sectors = 63; in aac_biosparm() 312 param->sectors = 32; in aac_biosparm() 316 param->sectors = 32; in aac_biosparm() 319 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 343 param->sectors = 32; in aac_biosparm() 347 param->sectors = 32; in aac_biosparm() 351 param->sectors = 63; in aac_biosparm() 362 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 363 if (num < 4 && end_sec == param->sectors) { in aac_biosparm() 366 param->heads, param->sectors, num)); in aac_biosparm() [all …]
|