Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 200 of 223) sorted by relevance

12

/linux-4.4.14/drivers/md/
Draid0.c79 sector_t curr_zone_end, sectors; in create_strip_zones() local
97 sectors = rdev1->sectors; in create_strip_zones()
98 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
99 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
109 (unsigned long long)rdev1->sectors, in create_strip_zones()
111 (unsigned long long)rdev2->sectors); in create_strip_zones()
117 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
206 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
216 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
229 zone->dev_start = smallest->sectors; in create_strip_zones()
[all …]
Dlinear.c70 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
76 WARN_ONCE(sectors || raid_disks, in linear_size()
101 sector_t sectors; in linear_conf() local
111 sectors = rdev->sectors; in linear_conf()
112 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
113 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
119 conf->array_sectors += rdev->sectors; in linear_conf()
139 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
144 conf->disks[i].rdev->sectors; in linear_conf()
231 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
[all …]
Draid1.c296 r1_bio->sector + (r1_bio->sectors); in update_head_pos()
381 r1_bio->sectors, in close_write()
454 r1_bio->sector, r1_bio->sectors, in raid1_end_write_request()
516 int sectors; in read_balance() local
534 sectors = r1_bio->sectors; in read_balance()
544 if ((conf->mddev->recovery_cp < this_sector + sectors) || in read_balance()
547 this_sector + sectors))) in read_balance()
565 rdev->recovery_offset < this_sector + sectors) in read_balance()
571 if (is_badblock(rdev, this_sector, sectors, in read_balance()
578 best_good_sectors = sectors; in read_balance()
[all …]
Draid10.c331 r10_bio->devs[slot].addr + (r10_bio->sectors); in update_head_pos()
421 r10_bio->sectors, in close_write()
505 r10_bio->sectors, in raid10_end_write_request()
700 int sectors = r10_bio->sectors; in read_balance() local
711 sectors = r10_bio->sectors; in read_balance()
724 && (this_sector + sectors >= conf->next_resync)) in read_balance()
737 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
743 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
747 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
758 if (!do_balance && sectors > bad_sectors) in read_balance()
[all …]
Dmd.h44 sector_t sectors; /* Device size (in 512bytes sectors) */ member
197 extern int md_is_badblock(struct badblocks *bb, sector_t s, int sectors,
199 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock() argument
204 sectors, in is_badblock()
212 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
214 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
516 int (*resize) (struct mddev *mddev, sector_t sectors);
517 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks);
Dmd.c257 unsigned int sectors; in md_make_request() local
295 sectors = bio_sectors(bio); in md_make_request()
302 part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], sectors); in md_make_request()
709 rdev->sectors = 0; in md_rdev_clear()
1026 rdev->sectors = rdev->sb_start; in super_90_load()
1031 if (rdev->sectors >= (2ULL << 32) && sb->level >= 1) in super_90_load()
1032 rdev->sectors = (2ULL << 32) - 2; in super_90_load()
1034 if (rdev->sectors < ((sector_t)sb->size) * 2 && sb->level >= 1) in super_90_load()
1366 static int md_set_badblocks(struct badblocks *bb, sector_t s, int sectors,
1373 sector_t sectors; in super_1_load() local
[all …]
Ddm-stats.c25 unsigned long long sectors[2]; member
555 p->sectors[idx] += len; in dm_stat_for_entry()
683 shared->tmp.sectors[READ] = 0; in __dm_stat_init_temporary_percpu_totals()
684 shared->tmp.sectors[WRITE] = 0; in __dm_stat_init_temporary_percpu_totals()
701 shared->tmp.sectors[READ] += ACCESS_ONCE(p->sectors[READ]); in __dm_stat_init_temporary_percpu_totals()
702 shared->tmp.sectors[WRITE] += ACCESS_ONCE(p->sectors[WRITE]); in __dm_stat_init_temporary_percpu_totals()
734 p->sectors[READ] -= shared->tmp.sectors[READ]; in __dm_stat_clear()
735 p->sectors[WRITE] -= shared->tmp.sectors[WRITE]; in __dm_stat_clear()
850 shared->tmp.sectors[READ], in dm_stats_print()
854 shared->tmp.sectors[WRITE], in dm_stats_print()
Dbitmap.h254 unsigned long sectors, int behind);
256 unsigned long sectors, int success, int behind);
Dfaulty.c291 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) in faulty_size() argument
296 if (sectors == 0) in faulty_size()
299 return sectors; in faulty_size()
Dbitmap.c1356 int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, int behind) in bitmap_startwrite() argument
1372 while (sectors) { in bitmap_startwrite()
1411 if (sectors > blocks) in bitmap_startwrite()
1412 sectors -= blocks; in bitmap_startwrite()
1414 sectors = 0; in bitmap_startwrite()
1420 void bitmap_endwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, in bitmap_endwrite() argument
1433 while (sectors) { in bitmap_endwrite()
1465 if (sectors > blocks) in bitmap_endwrite()
1466 sectors -= blocks; in bitmap_endwrite()
1468 sectors = 0; in bitmap_endwrite()
[all …]
Draid1.h139 int sectors; member
Draid10.h103 int sectors; member
DKconfig135 contain data sectors, and one drive contains the parity protection.
143 (row) number, (N - 2) drives contain data sectors, and two
205 people to specify mappings for ranges of logical sectors. Various
370 contain data sectors, and one drive contains the parity protection.
378 (row) number, (N - 2) drives contain data sectors, and two
Dmultipath.c367 static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) in multipath_size() argument
369 WARN_ONCE(sectors || raid_disks, in multipath_size()
Draid5.c140 int sectors = bio_sectors(bio); in r5_next_bio() local
141 if (bio->bi_iter.bi_sector + sectors < sector + STRIPE_SECTORS) in r5_next_bio()
4873 unsigned sectors = chunk_sects - (sector & (chunk_sects-1)); in chunk_aligned_read() local
4875 if (sectors < bio_sectors(raid_bio)) { in chunk_aligned_read()
4876 split = bio_split(raid_bio, sectors, GFP_NOIO, fs_bio_set); in chunk_aligned_read()
5330 static sector_t raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks);
6286 raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid5_size() argument
6290 if (!sectors) in raid5_size()
6291 sectors = mddev->dev_sectors; in raid5_size()
6296 sectors &= ~((sector_t)conf->chunk_sectors - 1); in raid5_size()
[all …]
Draid5-cache.c1079 if (cp >= rdev->sectors || round_down(cp, BLOCK_SECTORS) != cp) in r5l_load_log()
1120 log->device_size = round_down(rdev->sectors, BLOCK_SECTORS); in r5l_load_log()
Ddm-raid.c1087 rdev->sectors = to_sector(i_size_read(rdev->bdev->bd_inode)); in analyse_superblocks()
/linux-4.4.14/drivers/target/
Dtarget_core_sbc.c236 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) in sbc_get_size() argument
238 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
318 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same() local
327 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
329 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
335 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
336 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
338 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
366 ret = sbc_check_prot(dev, cmd, &cmd->t_task_cdb[0], sectors, true); in sbc_setup_write_same()
718 u32 sectors, bool is_write) in sbc_check_prot() argument
[all …]
Dtarget_core_rd.c408 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw() local
426 rc = sbc_dif_verify(cmd, cmd->t_task_lba, sectors, 0, in rd_do_prot_rw()
429 rc = sbc_dif_verify(cmd, cmd->t_task_lba, sectors, 0, in rd_do_prot_rw()
433 sbc_dif_copy_prot(cmd, sectors, is_read, prot_sg, prot_offset); in rd_do_prot_rw()
Dtarget_core_file.c547 u32 sectors = cmd->data_length >> in fd_execute_rw() local
550 rc = sbc_dif_verify(cmd, cmd->t_task_lba, sectors, in fd_execute_rw()
557 u32 sectors = cmd->data_length >> in fd_execute_rw() local
560 rc = sbc_dif_verify(cmd, cmd->t_task_lba, sectors, in fd_execute_rw()
Dtarget_core_iblock.c424 sector_t sectors = target_to_linux_sector(dev, in iblock_execute_write_same() local
456 while (sectors) { in iblock_execute_write_same()
470 sectors -= 1; in iblock_execute_write_same()
Dtarget_core_transport.c1119 u32 sectors = (mtl / dev->dev_attrib.block_size); in target_check_max_data_sg_nents() local
1120 cmd->prot_length = dev->prot_length * sectors; in target_check_max_data_sg_nents()
1770 u32 sectors; in target_write_prot_action() local
1785 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action()
1787 sectors, 0, cmd->t_prot_sg, 0); in target_write_prot_action()
2009 u32 sectors = cmd->data_length >> in target_read_prot_action() local
2013 sectors, 0, cmd->t_prot_sg, in target_read_prot_action()
Dtarget_core_alua.c477 u64 segment_size, segment_mult, sectors, lba; in core_alua_state_lba_dependent() local
486 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
489 while (lba < cmd->t_task_lba + sectors) { in core_alua_state_lba_dependent()
/linux-4.4.14/Documentation/block/
Dstat.txt25 read sectors sectors number of sectors read
29 write sectors sectors number of sectors written
46 read sectors, write sectors
49 These values count the number of sectors read from or written to this
50 block device. The "sectors" in question are the standard UNIX 512-byte
51 sectors, not any device- or filesystem-specific block size. The
Drequest.txt57 unsigned long nr_sectors DBI Total number of sectors in request
67 unsigned int current_nr_sectors DB Number of sectors in first segment
Ddata-integrity.txt17 ensures the individual sectors are written in the right order. And
43 in 520 byte sectors on disk. Data + IMD are interleaved when
48 520 (and 4104) byte sectors, we approached several HBA vendors and
116 this extra space to tag sectors as they see fit. Because the tag
Dbiodoc.txt137 units of 512 byte sectors, and could be dynamically varied
142 in units of 512 byte sectors.
522 preparation for 64 bit sectors */
539 unsigned long nr_sectors; /* no. of sectors left: driver modifiable */
541 unsigned int current_nr_sectors; /* no. of sectors left in the
561 to the numbers of sectors in the current segment being processed which could
563 The nr_sectors value refers to the total number of sectors in the whole
695 the number of sectors completed.
1108 it will loop and handle as many sectors (on a bio-segment granularity)
Dcfq-iosched.txt43 sectors that are backward in terms of distance.
/linux-4.4.14/drivers/scsi/
Dscsicam.c234 unsigned long heads, sectors, cylinders, temp; in setsize() local
237 sectors = 62L; /* Maximize sectors per track */ in setsize()
239 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
244 sectors = capacity / temp; /* Compute value for sectors per in setsize()
247 sectors++; /* Else, increment number of sectors */ in setsize()
248 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
256 *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()
Dultrastor.c236 unsigned char sectors; member
280 unsigned char sectors; member
463 config.sectors = mapping_table[config_2.mapping_mode].sectors; in ultrastor_14f_detect()
597 config.sectors = mapping_table[(config_2 >> 3) & 3].sectors; in ultrastor_24f_detect()
1038 unsigned int s = config.heads * config.sectors; in ultrastor_biosparam()
1041 dkinfo[1] = config.sectors; in ultrastor_biosparam()
DBusLogic.c3399 diskparam->sectors = 63; in blogic_diskparam()
3402 diskparam->sectors = 32; in blogic_diskparam()
3406 diskparam->sectors = 32; in blogic_diskparam()
3408 diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); in blogic_diskparam()
3428 diskparam->sectors = 32; in blogic_diskparam()
3432 diskparam->sectors = 32; in blogic_diskparam()
3436 diskparam->sectors = 63; in blogic_diskparam()
3445 diskparam->cylinders = (unsigned long) capacity / (diskparam->heads * diskparam->sectors); in blogic_diskparam()
3446 if (part_no < 4 && part_end_sector == diskparam->sectors) { in blogic_diskparam()
3448 …n("Adopting Geometry %d/%d from Partition Table\n", adapter, diskparam->heads, diskparam->sectors); in blogic_diskparam()
[all …]
D3w-xxxx.c1333 int heads, sectors, cylinders; in tw_scsi_biosparam() local
1340 sectors = 32; in tw_scsi_biosparam()
1341 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
1345 sectors = 63; in tw_scsi_biosparam()
1346 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam()
1349 …xxxx: tw_scsi_biosparam(): heads = %d, sectors = %d, cylinders = %d\n", heads, sectors, cylinders); in tw_scsi_biosparam()
1351 geom[1] = sectors; in tw_scsi_biosparam()
Dmegaraid.c2835 int sectors; in megaraid_biosparam() local
2845 sectors = 32; in megaraid_biosparam()
2846 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2854 sectors = 63; in megaraid_biosparam()
2855 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2860 geom[1] = sectors; in megaraid_biosparam()
2880 sectors = 32; in megaraid_biosparam()
2881 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2886 sectors = 63; in megaraid_biosparam()
2887 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
[all …]
Du14-34f.c605 unsigned char sectors; member
819 unsigned char sectors; in port_detect() member
927 HD(j)->sectors = mapping_table[config_2.mapping_mode].sectors; in port_detect()
1536 dkinfo[1] = HD(j)->sectors; in u14_34f_bios_param()
1537 dkinfo[2] = size / (HD(j)->heads * HD(j)->sectors); in u14_34f_bios_param()
Deata_generic.h373 __u32 sectors; /* number of sectors */ member
Ddpt_i2o.c487 int sectors=-1; in DEF_SCSI_QCMD() local
495 sectors = 2; in DEF_SCSI_QCMD()
500 sectors = 32; in DEF_SCSI_QCMD()
505 sectors = 63; in DEF_SCSI_QCMD()
510 sectors = 63; in DEF_SCSI_QCMD()
515 sectors = 63; in DEF_SCSI_QCMD()
517 cylinders = sector_div(capacity, heads * sectors); in DEF_SCSI_QCMD()
522 sectors = 63; in DEF_SCSI_QCMD()
527 geom[1] = sectors; in DEF_SCSI_QCMD()
D3w-sas.c1413 int heads, sectors; in twl_scsi_biosparam() local
1420 sectors = 63; in twl_scsi_biosparam()
1423 sectors = 32; in twl_scsi_biosparam()
1427 geom[1] = sectors; in twl_scsi_biosparam()
1428 geom[2] = sector_div(capacity, heads * sectors); /* cylinders */ in twl_scsi_biosparam()
Dfdomain.c1598 unsigned char sectors; in fdomain_16x0_biosparam() member
1669 info_array[1] = i.sectors; in fdomain_16x0_biosparam()
1677 info_array[1] = i.sectors; in fdomain_16x0_biosparam()
D3w-9xxx.c1698 int heads, sectors, cylinders; in twa_scsi_biosparam() local
1705 sectors = 63; in twa_scsi_biosparam()
1706 cylinders = sector_div(capacity, heads * sectors); in twa_scsi_biosparam()
1709 sectors = 32; in twa_scsi_biosparam()
1710 cylinders = sector_div(capacity, heads * sectors); in twa_scsi_biosparam()
1714 geom[1] = sectors; in twa_scsi_biosparam()
Dhptiop.h220 __le16 sectors; member
Dinitio.h471 u8 sectors; member
Dmvumi.c2198 int heads, sectors; in mvumi_bios_param() local
2203 sectors = 32; in mvumi_bios_param()
2204 tmp = heads * sectors; in mvumi_bios_param()
2210 sectors = 63; in mvumi_bios_param()
2211 tmp = heads * sectors; in mvumi_bios_param()
2216 geom[1] = sectors; in mvumi_bios_param()
Dstex.c1344 int heads = 255, sectors = 63; in stex_biosparam() local
1348 sectors = 32; in stex_biosparam()
1351 sector_div(capacity, heads * sectors); in stex_biosparam()
1354 geom[1] = sectors; in stex_biosparam()
Dips.c1153 int sectors; in DEF_SCSI_QCMD() local
1171 sectors = IPS_NORM_SECTORS; in DEF_SCSI_QCMD()
1174 sectors = IPS_COMP_SECTORS; in DEF_SCSI_QCMD()
1177 cylinders = (unsigned long) capacity / (heads * sectors); in DEF_SCSI_QCMD()
1180 heads, sectors, cylinders); in DEF_SCSI_QCMD()
1183 geom[1] = sectors; in DEF_SCSI_QCMD()
4106 uint16_t sectors; in ips_msense() local
4115 sectors = IPS_NORM_SECTORS; in ips_msense()
4118 sectors = IPS_COMP_SECTORS; in ips_msense()
4123 1) / (heads * sectors); in ips_msense()
[all …]
Dqla1280.c1065 int heads, sectors, cylinders; in qla1280_biosparam() local
1068 sectors = 32; in qla1280_biosparam()
1069 cylinders = (unsigned long)capacity / (heads * sectors); in qla1280_biosparam()
1072 sectors = 63; in qla1280_biosparam()
1073 cylinders = (unsigned long)capacity / (heads * sectors); in qla1280_biosparam()
1079 geom[1] = sectors; in qla1280_biosparam()
Datp870u.c3115 int heads, sectors, cylinders; in atp870u_biosparam() local
3118 sectors = 32; in atp870u_biosparam()
3119 cylinders = (unsigned long)capacity / (heads * sectors); in atp870u_biosparam()
3122 sectors = 63; in atp870u_biosparam()
3123 cylinders = (unsigned long)capacity / (heads * sectors); in atp870u_biosparam()
3126 ip[1] = sectors; in atp870u_biosparam()
DBusLogic.h1094 int sectors; member
Dscsi_debug.c2473 unsigned int sectors, bool read) in dif_copy_prot() argument
2481 resid = sectors * sizeof(*dif_storep); in dif_copy_prot()
2516 unsigned int sectors, u32 ei_lba) in prot_verify_read() argument
2522 for (i = 0; i < sectors; i++, ei_lba++) { in prot_verify_read()
2538 dif_copy_prot(SCpnt, start_sec, sectors, true); in prot_verify_read()
2707 unsigned int sectors, u32 ei_lba) in prot_verify_write() argument
2766 dif_copy_prot(SCpnt, start_sec, sectors, false); in prot_verify_write()
Ddc395x.c1166 int heads, sectors, cylinders; in DEF_SCSI_QCMD() local
1173 sectors = 32; in DEF_SCSI_QCMD()
1174 cylinders = size / (heads * sectors); in DEF_SCSI_QCMD()
1178 sectors = 63; in DEF_SCSI_QCMD()
1179 cylinders = size / (heads * sectors); in DEF_SCSI_QCMD()
1182 geom[1] = sectors; in DEF_SCSI_QCMD()
Dinitio.c662 host->targets[i].sectors = *heads++; in initio_init()
2705 info_array[1] = tc->sectors; in i91u_biosparam()
2706 info_array[2] = (unsigned long)capacity / tc->heads / tc->sectors; in i91u_biosparam()
/linux-4.4.14/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()
Dinftlcore.c91 inftl->sectors = inftl->mbd.size / temp; in inftl_add_mtd()
93 inftl->sectors++; in inftl_add_mtd()
94 temp = inftl->cylinders * inftl->sectors; in inftl_add_mtd()
99 temp = inftl->heads * inftl->sectors; in inftl_add_mtd()
104 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd()
113 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd()
115 (long)inftl->sectors ); in inftl_add_mtd()
934 geo->sectors = inftl->sectors; in inftl_getgeo()
Dsm_ftl.h61 int sectors; member
DKconfig54 The option specifies which Flash sectors holds the RedBoot
57 sectors before the end of the device.
209 512-byte sectors, on top of which you put a 'normal' file system.
226 512-byte sectors, on top of which you put a 'normal' file system.
250 a block device with 512-byte sectors, on top of which you put
Dsm_ftl.c653 ftl->sectors = chs_table[i].sec; in sm_get_media_info()
661 ftl->sectors = 63; in sm_get_media_info()
1123 geo->sectors = ftl->sectors; in sm_getgeo()
Dinftlmount.c503 s->EraseSize, s->heads, s->sectors, s->cylinders, in INFTL_dumptables()
Drfd_ftl.c751 geo->sectors = SECTORS_PER_TRACK; in rfd_ftl_getgeo()
Dftl.c990 geo->sectors = 8; in ftl_getgeo()
/linux-4.4.14/drivers/mtd/spi-nor/
DKconfig11 bool "Use small 4096 B erase sectors"
14 Many flash memories support erasing small (4096 B) sectors. Depending
18 small sectors. On the other hand erasing should be faster when using
19 64 KiB block instead of 16 × 4 KiB sectors.
/linux-4.4.14/drivers/usb/storage/
Ddatafab.c71 unsigned long sectors; /* total sector count */ member
149 u32 sectors) in datafab_read_data() argument
164 if (sectors > 0x0FFFFFFF) in datafab_read_data()
173 totallen = sectors * info->ssize; in datafab_read_data()
232 u32 sectors) in datafab_write_data() argument
248 if (sectors > 0x0FFFFFFF) in datafab_write_data()
257 totallen = sectors * info->ssize; in datafab_write_data()
432 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device()
594 info->sectors, info->ssize); in datafab_transport()
598 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in datafab_transport()
Djumpshot.c107 unsigned long sectors; /* total sector count */ member
167 u32 sectors) in jumpshot_read_data() argument
185 totallen = sectors * info->ssize; in jumpshot_read_data()
244 u32 sectors) in jumpshot_write_data() argument
262 totallen = sectors * info->ssize; in jumpshot_write_data()
365 info->sectors = ((u32)(reply[117]) << 24) | in jumpshot_id_device()
524 info->sectors, info->ssize); in jumpshot_transport()
528 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in jumpshot_transport()
Dsddr55.c200 unsigned short sectors) { in sddr55_read_data() argument
219 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data()
227 while (sectors>0) { in sddr55_read_data()
237 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_read_data()
305 sectors -= pages >> info->smallpageshift; in sddr55_read_data()
319 unsigned short sectors) { in sddr55_write_data() argument
346 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data()
354 while (sectors > 0) { in sddr55_write_data()
364 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_write_data()
513 sectors -= pages >> info->smallpageshift; in sddr55_write_data()
Dalauda.c917 unsigned int sectors) in alauda_read_data() argument
938 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data()
954 while (sectors > 0) { in alauda_read_data()
970 pages = min(sectors, blocksize - page); in alauda_read_data()
1001 sectors -= pages; in alauda_read_data()
1012 unsigned int sectors) in alauda_write_data() argument
1030 len = min(sectors, blocksize) * pagesize; in alauda_write_data()
1057 while (sectors > 0) { in alauda_write_data()
1059 unsigned int pages = min(sectors, blocksize - page); in alauda_write_data()
1081 sectors -= pages; in alauda_write_data()
Dsddr09.c745 unsigned int sectors) { in sddr09_read_data() argument
766 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_read_data()
780 while (sectors > 0) { in sddr09_read_data()
783 pages = min(sectors, info->blocksize - page); in sddr09_read_data()
828 sectors -= pages; in sddr09_read_data()
971 unsigned int sectors) { in sddr09_write_data() argument
1007 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data()
1019 while (sectors > 0) { in sddr09_write_data()
1023 pages = min(sectors, info->blocksize - page); in sddr09_write_data()
1045 sectors -= pages; in sddr09_write_data()
Dshuttle_usbat.c146 unsigned long sectors; /* total sector count */ member
1102 info->sectors = ((u32)(reply[117]) << 24) | in usbat_flash_get_sector_count()
1120 u32 sectors) in usbat_flash_read_data() argument
1153 totallen = sectors * info->ssize; in usbat_flash_read_data()
1211 u32 sectors) in usbat_flash_write_data() argument
1244 totallen = sectors * info->ssize; in usbat_flash_write_data()
1718 info->sectors, info->ssize); in usbat_flash_transport()
1725 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in usbat_flash_transport()
/linux-4.4.14/block/
Dblk-merge.c74 unsigned sectors = blk_max_size_offset(q, bio->bi_iter.bi_sector); in get_max_io_size() local
78 sectors &= ~(mask >> 9); in get_max_io_size()
80 return sectors; in get_max_io_size()
90 unsigned seg_size = 0, nsegs = 0, sectors = 0; in blk_bio_segment_split() local
104 if (sectors + (bv.bv_len >> 9) > max_sectors) { in blk_bio_segment_split()
110 sectors < max_sectors) { in blk_bio_segment_split()
112 sectors = max_sectors; in blk_bio_segment_split()
114 if (sectors) in blk_bio_segment_split()
130 sectors += bv.bv_len >> 9; in blk_bio_segment_split()
144 sectors += bv.bv_len >> 9; in blk_bio_segment_split()
[all …]
Dbio-integrity.c208 unsigned int sectors) in bio_integrity_intervals() argument
210 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals()
214 unsigned int sectors) in bio_integrity_bytes() argument
216 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes()
441 unsigned int sectors) in bio_integrity_trim() argument
447 bip->bip_iter.bi_size = bio_integrity_bytes(bi, sectors); in bio_integrity_trim()
Dbio.c1675 void generic_start_io_acct(int rw, unsigned long sectors, in generic_start_io_acct() argument
1682 part_stat_add(cpu, part, sectors[rw], sectors); in generic_start_io_acct()
1785 struct bio *bio_split(struct bio *bio, int sectors, in bio_split() argument
1790 BUG_ON(sectors <= 0); in bio_split()
1791 BUG_ON(sectors >= bio_sectors(bio)); in bio_split()
1805 split->bi_iter.bi_size = sectors << 9; in bio_split()
1808 bio_integrity_trim(split, 0, sectors); in bio_split()
Dpartition-generic.c127 (unsigned long long)part_stat_read(p, sectors[READ]), in part_stat_show()
131 (unsigned long long)part_stat_read(p, sectors[WRITE]), in part_stat_show()
Dgenhd.c1176 part_stat_read(hd, sectors[READ]), in diskstats_show()
1180 part_stat_read(hd, sectors[WRITE]), in diskstats_show()
Dcompat_ioctl.c46 unsigned char sectors; member
/linux-4.4.14/fs/hfsplus/
Dbtree.c75 u64 sectors, int file_id) in hfsplus_calc_btree_clump_size() argument
99 if (sectors < 0x200000) { in hfsplus_calc_btree_clump_size()
100 clump_size = sectors << 2; /* 0.8 % */ in hfsplus_calc_btree_clump_size()
105 for (i = 0, sectors = sectors >> 22; in hfsplus_calc_btree_clump_size()
106 sectors && (i < CLUMP_ENTRIES - 1); in hfsplus_calc_btree_clump_size()
107 ++i, sectors = sectors >> 1) { in hfsplus_calc_btree_clump_size()
Dhfsplus_fs.h392 u32 hfsplus_calc_btree_clump_size(u32 block_size, u32 node_size, u64 sectors,
/linux-4.4.14/drivers/md/bcache/
Dalloc.c84 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities() argument
92 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()
571 bool bch_alloc_sectors(struct cache_set *c, struct bkey *k, unsigned sectors, in bch_alloc_sectors() argument
617 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
619 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()
620 SET_KEY_SIZE(k, sectors); in bch_alloc_sectors()
631 b->sectors_free -= sectors; in bch_alloc_sectors()
634 SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); in bch_alloc_sectors()
636 atomic_long_add(sectors, in bch_alloc_sectors()
Drequest.c127 unsigned sectors = min(bio_sectors(bio), in bch_data_invalidate() local
133 bio->bi_iter.bi_sector += sectors; in bch_data_invalidate()
134 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate()
137 &KEY(op->inode, bio->bi_iter.bi_sector, sectors)); in bch_data_invalidate()
375 unsigned sectors, congested = bch_get_congested(c); in check_should_bypass() local
436 sectors = max(task->sequential_io, in check_should_bypass()
440 sectors >= dc->sequential_cutoff >> 9) { in check_should_bypass()
445 if (congested && sectors >= congested) { in check_should_bypass()
521 unsigned sectors = KEY_INODE(k) == s->iop.inode in cache_lookup_fn() local
526 int ret = s->d->cache_miss(b, s, bio, sectors); in cache_lookup_fn()
[all …]
Dstats.c221 int sectors) in bch_mark_sectors_bypassed() argument
223 atomic_add(sectors, &dc->accounting.collector.sectors_bypassed); in bch_mark_sectors_bypassed()
224 atomic_add(sectors, &c->accounting.collector.sectors_bypassed); in bch_mark_sectors_bypassed()
Djournal.c586 unsigned i, sectors = set_blocks(w->data, block_bytes(c)) * in journal_write_unlocked() local
624 atomic_long_add(sectors, &ca->meta_sectors_written); in journal_write_unlocked()
630 bio->bi_iter.bi_size = sectors << 9; in journal_write_unlocked()
639 SET_PTR_OFFSET(k, i, PTR_OFFSET(k, i) + sectors); in journal_write_unlocked()
683 size_t sectors; in journal_wait_for_write() local
694 sectors = __set_blocks(w->data, w->data->keys + nkeys, in journal_wait_for_write()
697 if (sectors <= min_t(size_t, in journal_wait_for_write()
Dsuper.c410 u1[i].sectors = 0; in uuid_read()
748 sector_t sectors) in bcache_device_init() argument
757 d->nr_stripes = DIV_ROUND_UP_ULL(sectors, d->stripe_size); in bcache_device_init()
790 set_capacity(d->disk, sectors); in bcache_device_init()
828 uint64_t sectors = 0; in calc_cached_dev_sectors() local
832 sectors += bdev_sectors(dc->bdev); in calc_cached_dev_sectors()
834 c->cached_dev_sectors = sectors; in calc_cached_dev_sectors()
1226 if (bcache_device_init(d, block_bytes(c), u->sectors)) in flash_dev_run()
1279 u->sectors = size >> 9; in bch_flash_dev_create()
Dwriteback.c90 static unsigned writeback_delay(struct cached_dev *dc, unsigned sectors) in writeback_delay() argument
96 return bch_next_delay(&dc->writeback_rate, sectors); in writeback_delay()
Dsysfs.c348 sysfs_hprint(size, u->sectors << 9); in SHOW()
372 u->sectors = v >> 9; in STORE()
374 set_capacity(d->disk, u->sectors); in STORE()
Dextents.c314 int sectors) in bch_subtract_dirty() argument
318 offset, -sectors); in bch_subtract_dirty()
/linux-4.4.14/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-4.4.14/block/partitions/
Dibm.c40 return cyl * geo->heads * geo->sectors + in cchh2blk()
41 head * geo->sectors; in cchh2blk()
58 return cyl * geo->heads * geo->sectors + in cchhb2blk()
59 head * geo->sectors + in cchhb2blk()
176 offset + geo->sectors; in find_vol1_partitions()
221 * geo->sectors * secperblk; in find_lnx1_partitions()
/linux-4.4.14/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()
592 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms()
674 disk->sectors = le16_to_cpu(*(__le16 *) (pd_scratch + 12)); in pd_identify()
680 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify()
696 disk->cylinders, disk->heads, disk->sectors, in pd_identify()
762 geo->sectors = PD_LOG_SECTS; in pd_getgeo()
763 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo()
766 geo->sectors = disk->sectors; in pd_getgeo()
Dpf.c338 geo->sectors = PF_FD_SPT; in pf_getgeo()
342 geo->sectors = PF_HD_SPT; in pf_getgeo()
/linux-4.4.14/Documentation/ABI/testing/
Dprocfs-diskstats13 6 - sectors read
17 10 - sectors written
Dsysfs-block9 3 - sectors read
13 7 - sectors written
85 with 4KB physical sectors exposing 512-byte logical
96 with 4KB physical sectors exposing 512-byte logical
115 drives with 4KB sectors that expose a 512-byte logical
/linux-4.4.14/arch/ia64/hp/sim/
Dsimscsi.c171 size_t bit, sectors = 0; in simscsi_get_disk_size() local
183 ia64_ssc(fd, 1, __pa(&req), ((sectors | bit) - 1)*512, SSC_READ); in simscsi_get_disk_size()
187 sectors |= bit; in simscsi_get_disk_size()
189 return sectors - 1; /* return last valid sector number */ in simscsi_get_disk_size()
/linux-4.4.14/Documentation/
Diostats.txt67 Field 3 -- # of sectors read
68 This is the total number of sectors read successfully.
76 Field 7 -- # of sectors written
77 This is the total number of sectors written successfully.
120 Field 2 -- # of sectors read
121 This is the total number of sectors requested to be read from this
125 Field 4 -- # of sectors written
126 This is the total number of sectors requested to be written to
Dmd.txt218 part or the geometry of the array. It is measured in sectors
304 "[+-]N" means that many sectors from the start of the metadata.
427 This gives the location in the device (in sectors from the
441 sectors from the start of the device which are known to be
457 start address and length (in sectors respectively). If output
533 found. The count in 'mismatch_cnt' is the number of sectors
536 than sectors, this may be larger than the number of actual errors
537 by a factor of the number of sectors in a page.
560 This shows the number of sectors that have been completed of
562 sectors in total that could need to be processed. The two
[all …]
Dldm.txt59 hda: 102400 sectors w/32KiB Cache, CHS=50/64/32
/linux-4.4.14/drivers/mmc/card/
Dmmc_test.c99 unsigned int sectors; member
517 unsigned int count, unsigned int sectors, struct timespec ts, in mmc_test_save_transfer_result() argument
530 tr->sectors = sectors; in mmc_test_save_transfer_result()
544 unsigned int rate, iops, sectors = bytes >> 9; in mmc_test_print_rate() local
554 mmc_hostname(test->card->host), sectors, sectors >> 1, in mmc_test_print_rate()
555 (sectors & 1 ? ".5" : ""), (unsigned long)ts.tv_sec, in mmc_test_print_rate()
559 mmc_test_save_transfer_result(test, 1, sectors, ts, rate, iops); in mmc_test_print_rate()
569 unsigned int rate, iops, sectors = bytes >> 9; in mmc_test_print_avg_rate() local
581 mmc_hostname(test->card->host), count, sectors, count, in mmc_test_print_avg_rate()
582 sectors >> 1, (sectors & 1 ? ".5" : ""), in mmc_test_print_avg_rate()
[all …]
Dblock.c331 geo->sectors = 16; in mmc_blk_getgeo()
2323 size = card->ext_csd.sectors; in mmc_blk_alloc()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daiclib.h137 aic_sector_div(sector_t capacity, int heads, int sectors) in aic_sector_div() argument
140 sector_div(capacity, (heads * sectors)); in aic_sector_div()
Daic7xxx_osm.c700 int sectors; in ahc_linux_biosparam() local
719 sectors = 32; in ahc_linux_biosparam()
720 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam()
730 sectors = 63; in ahc_linux_biosparam()
731 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam()
734 geom[1] = sectors; in ahc_linux_biosparam()
Daic79xx_osm.c728 int sectors; in ahd_linux_biosparam() local
745 sectors = 32; in ahd_linux_biosparam()
746 cylinders = aic_sector_div(capacity, heads, sectors); in ahd_linux_biosparam()
754 sectors = 63; in ahd_linux_biosparam()
755 cylinders = aic_sector_div(capacity, heads, sectors); in ahd_linux_biosparam()
758 geom[1] = sectors; in ahd_linux_biosparam()
/linux-4.4.14/drivers/ps3/
Dps3stor_lib.c277 u64 start_sector, u64 sectors, int write) in ps3stor_read_write_sectors() argument
284 __func__, __LINE__, op, sectors, start_sector); in ps3stor_read_write_sectors()
288 start_sector, sectors, 0, lpar, in ps3stor_read_write_sectors()
291 start_sector, sectors, 0, lpar, in ps3stor_read_write_sectors()
/linux-4.4.14/Documentation/scsi/
Daha152x.txt106 SCSI uses block numbers to address blocks/sectors on a device.
111 The number of cylinders/heads/sectors is called geometry and is required
113 total capacity of disks in blocks (sectors).
127 namely the address space is limited to up to 255 heads, up to 63 sectors
131 to 64, the number of sectors to 32 and by calculating the number of
139 63 for sectors and then divides the capacity of the disk by 255*63
Dscsi_mid_low_api.txt377 scsi_partsize - parse partition table into cylinders, heads + sectors
551 * scsi_partsize - parse partition table into cylinders, heads + sectors
553 * @capacity: size of (total) disk in 512 byte sectors
556 * @secs: outputs number of sectors calculated via this pointer
764 * @capacity: device size (in 512 byte sectors)
767 * params[1] number of sectors (max 63)
1208 max_sectors - maximum number of sectors (usually 512 bytes) allowed
/linux-4.4.14/drivers/ide/
Dide-floppy.c317 u8 heads, sectors; in ide_floppy_get_flexible_disk_page() local
340 sectors = buf[8 + 5]; in ide_floppy_get_flexible_disk_page()
342 capacity = cyls * heads * sectors * sector_size; in ide_floppy_get_flexible_disk_page()
348 sectors, transfer_rate / 8, sector_size, rpm); in ide_floppy_get_flexible_disk_page()
353 drive->bios_sect = sectors; in ide_floppy_get_flexible_disk_page()
Dpdc202xx_old.c258 #define DECLARE_PDC2026X_DEV(udma, sectors) \ argument
269 .max_sectors = sectors, \
Dide-gd.c281 geo->sectors = drive->bios_sect;
/linux-4.4.14/drivers/scsi/aacraid/
Dlinit.c324 param->sectors = 63; in aac_biosparm()
327 param->sectors = 32; in aac_biosparm()
331 param->sectors = 32; in aac_biosparm()
334 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm()
358 param->sectors = 32; in aac_biosparm()
362 param->sectors = 32; in aac_biosparm()
366 param->sectors = 63; in aac_biosparm()
377 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm()
378 if (num < 4 && end_sec == param->sectors) { in aac_biosparm()
381 param->heads, param->sectors, num)); in aac_biosparm()
[all …]
/linux-4.4.14/include/linux/
Dbio.h408 extern struct bio *bio_split(struct bio *bio, int sectors,
421 static inline struct bio *bio_next_split(struct bio *bio, int sectors, in bio_next_split() argument
424 if (sectors >= bio_sectors(bio)) in bio_next_split()
427 return bio_split(bio, sectors, gfp, bs); in bio_next_split()
497 void generic_start_io_acct(int rw, unsigned long sectors,
815 unsigned int sectors) in bio_integrity_trim() argument
Dgenhd.h83 unsigned long sectors[2]; /* READs and WRITEs */ member
/linux-4.4.14/drivers/block/rsxx/
Ddev.c96 geo->sectors = 16; in rsxx_getgeo()
97 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo()
101 geo->sectors = 0; in rsxx_getgeo()
/linux-4.4.14/drivers/block/
Dps3disk.c127 u64 start_sector, sectors; in ps3disk_submit_request_sg() local
143 sectors = blk_rq_sectors(req) * priv->blocking_factor; in ps3disk_submit_request_sg()
145 __func__, __LINE__, op, sectors, start_sector); in ps3disk_submit_request_sg()
151 start_sector, sectors, 0, in ps3disk_submit_request_sg()
155 start_sector, sectors, 0, in ps3disk_submit_request_sg()
Dmg_disk.c123 u16 sectors; member
376 host->sectors = id[ATA_ID_SECTORS]; in mg_get_disk_id()
378 if (MG_RES_SEC && host->heads && host->sectors) { in mg_get_disk_id()
381 host->heads / host->sectors; in mg_get_disk_id()
383 host->heads * host->sectors; in mg_get_disk_id()
775 geo->sectors = (unsigned char)host->sectors; in mg_getgeo()
Dcpqarray.h52 unsigned sectors; member
Dxen-blkfront.c418 hg->sectors = 0x3f; in blkif_getgeo()
419 sector_div(cylinders, hg->heads * hg->sectors); in blkif_getgeo()
421 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect) in blkif_getgeo()
1995 unsigned long long sectors; in blkfront_connect() local
2008 "sectors", "%Lu", &sectors); in blkfront_connect()
2012 sectors); in blkfront_connect()
2013 set_capacity(info->gd, sectors); in blkfront_connect()
2035 "sectors", "%llu", &sectors, in blkfront_connect()
2063 err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size, in blkfront_connect()
Dvirtio_blk.c289 geometry.sectors, &geo->sectors); in virtblk_getgeo()
293 geo->sectors = 1 << 5; in virtblk_getgeo()
Dcciss.h39 int sectors; member
Dsunvdc.c117 geo->sectors = 0x3f; in vdc_getgeo()
118 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo()
120 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo()
Dcpqarray.c1129 geo->sectors = drv->sectors; in ida_getgeo()
1133 geo->sectors = 0x3f; in ida_getgeo()
1761 drv->sectors = id_ldrive->drv.sect_per_track; in getgeometry()
Dcciss.c1286 geo->sectors = drv->sectors; in cciss_getgeo()
2060 drvinfo->sectors == h->drv[drv_index]->sectors && in cciss_update_drive_info()
2101 h->drv[drv_index]->sectors = drvinfo->sectors; in cciss_update_drive_info()
2271 h->drv[drv_index]->sectors = 0; in cciss_add_controller_node()
2433 drive_info->sectors = 0; in cciss_clear_drive_info()
2876 drv->sectors = 32; /* Sectors per track */ in cciss_geometry_inquiry()
2881 drv->sectors = inq_buff->data_byte[7]; in cciss_geometry_inquiry()
2888 t = drv->heads * drv->sectors; in cciss_geometry_inquiry()
Dumem.c780 geo->sectors = 32; in mm_getgeo()
781 geo->cylinders = size / (geo->heads * geo->sectors); in mm_getgeo()
Dfloppy.c2632 unsigned int sectors; in make_raw_rw_request() local
2634 sectors = fsector_t + blk_rq_sectors(current_req); in make_raw_rw_request()
2635 if (sectors > ssize && sectors < ssize + ssize) in make_raw_rw_request()
3376 geo->sectors = g->sect; in fd_getgeo()
Dhd.c666 geo->sectors = disk->sect; in hd_getgeo()
Dswim.c735 geo->sectors = g->sect; in floppy_getgeo()
Dxsysace.c945 geo->sectors = cf_id[ATA_ID_SECTORS]; in ace_getgeo()
DDAC960.c115 geo->sectors = p->V1.GeometryTranslationSectors; in DAC960_getgeo()
117 LogicalDriveSize / (geo->heads * geo->sectors); in DAC960_getgeo()
124 geo->sectors = 32; in DAC960_getgeo()
128 geo->sectors = 63; in DAC960_getgeo()
137 (geo->heads * geo->sectors); in DAC960_getgeo()
/linux-4.4.14/drivers/ata/
Dlibata-core.c100 u16 heads, u16 sectors);
725 block = (cyl * dev->heads + head) * dev->sectors + sect - 1; in ata_tf_read_block()
829 track = (u32)block / dev->sectors; in ata_build_rw_tf()
832 sect = (u32)block % dev->sectors + 1; in ata_build_rw_tf()
1186 u64 sectors = 0; in ata_tf_to_lba48() local
1188 sectors |= ((u64)(tf->hob_lbah & 0xff)) << 40; in ata_tf_to_lba48()
1189 sectors |= ((u64)(tf->hob_lbam & 0xff)) << 32; in ata_tf_to_lba48()
1190 sectors |= ((u64)(tf->hob_lbal & 0xff)) << 24; in ata_tf_to_lba48()
1191 sectors |= (tf->lbah & 0xff) << 16; in ata_tf_to_lba48()
1192 sectors |= (tf->lbam & 0xff) << 8; in ata_tf_to_lba48()
[all …]
Dlibata.h167 u8 page, void *buf, unsigned int sectors);
Dlibata-eh.c1506 u8 page, void *buf, unsigned int sectors) in ata_read_log_page() argument
1536 tf.nsect = sectors; in ata_read_log_page()
1537 tf.hob_nsect = sectors >> 8; in ata_read_log_page()
1541 buf, sectors * ATA_SECT_SIZE, 0); in ata_read_log_page()
Dlibata-scsi.c1617 track = (u32)block / dev->sectors; in ata_scsi_verify_xlat()
1620 sect = (u32)block % dev->sectors + 1; in ata_scsi_verify_xlat()
/linux-4.4.14/Documentation/ABI/stable/
Dsysfs-bus-xen-backend61 Number of sectors read by the frontend.
75 Number of sectors written by the frontend.
Dsysfs-driver-ib_srp25 512-byte sectors to be transferred via a single SCSI command.
/linux-4.4.14/arch/arm/boot/dts/
Dbcm963138dvt.dts40 brcm,nand-oob-sectors-size = <16>;
Dorion5x-lacie-ethernet-disk-mini-v2.dts85 * accidentally erasing critical flash sectors. We thus define
Dorion5x-maxtor-shared-storage-2.dts64 * accidentally erasing critical flash sectors. We thus define
Dorion5x-lacie-d2-network.dts104 * accidentally erasing critical flash sectors. We thus define
/linux-4.4.14/Documentation/filesystems/
Dntfs.txt252 components and their sizes in sectors, i.e. multiples of 512-byte blocks.
260 255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
261 Units = sectors of 1 * 512 = 512 bytes
269 33559785 sectors.
308 512-byte sectors):
323 512-byte sectors):
336 this (note all values are in 512-byte sectors):
441 an odd number of sectors. This is especially important for linear raid as all
442 data after the first partition with an odd number of sectors will be offset by
443 one or more sectors so if you mount such a partition with write support you
[all …]
Ddax.txt32 (expressed in units of 512-byte sectors) to a page frame number (pfn)
Dexofs.txt10 array of sectors but as a container of objects, each having a length, quota,
Dhpfs.txt219 1.91 Fixed a bug that chk_sectors failed when sectors were at the end of disk
/linux-4.4.14/arch/powerpc/include/asm/
Dps3stor.h66 u64 start_sector, u64 sectors,
/linux-4.4.14/include/linux/mtd/
Dnftl.h41 unsigned char sectors; member
Dinftl.h34 unsigned char sectors; member
/linux-4.4.14/include/uapi/linux/
Dvirtio_blk.h67 __u8 sectors; member
Dhdreg.h325 unsigned char sectors; member
405 unsigned short sectors; /* Obsolete, "physical" sectors per track */ member
Dmsdos_fs.h119 __u8 sectors[2]; /* number of sectors */ member
Dbcache.h326 __u64 sectors; member
/linux-4.4.14/Documentation/device-mapper/
Dsnapshot.txt36 <chunksize> sectors will be stored on the <COW device>. Writes will
137 During merging, the number of sectors allocated gets smaller and
138 smaller. Merging has finished when the number of sectors holding data
150 ^^^^ metadata sectors
Ddelay.txt11 Offsets are specified in sectors.
Dstatistics.txt49 "<start_sector>+<length>" - a range of <length> 512-byte sectors
54 <area_size> sectors.
155 3. the number of sectors read
159 7. the number of sectors written
Dcache.txt120 For the time being, a message "migration_threshold <#sectors>"
121 can be used to set the maximum number of sectors being migrated,
122 the default being 204800 sectors (or 100MB).
184 block size : cache unit size in sectors
227 sectors
231 in sectors
Ddm-raid.txt46 <chunk_size>: Chunk size in sectors. This parameter is often known as
63 [max_write_behind <sectors>] See '--write-behind=' (man mdadm)
64 [stripe_cache <sectors>] Stripe cache size (RAID 4/5/6 only)
65 [region_size <sectors>]
Dthin-provisioning.txt102 allocated at a time expressed in units of 512-byte sectors.
252 thin-pool <metadata dev> <data dev> <data block size (sectors)> \
269 Data block size must be between 64KB (128 sectors) and 1GB
270 (2097152 sectors) inclusive.
392 <nr mapped sectors> <highest mapped sector>
Dkcopyd.txt4 Kcopyd provides the ability to copy a range of sectors from one block-device
Dzero.txt23 TEN_TERABYTES=`expr 10 \* 1024 \* 1024 \* 1024 \* 2` # 10 TB in sectors
Dswitch.txt77 The number of 512-byte sectors in a region. Each region can be redirected
89 of 512-byte sectors). This number is added to the sector number when
Dera.txt53 sectors
Ddm-crypt.txt33 then sectors are encrypted according to their offsets (sector 0 uses key0;
/linux-4.4.14/drivers/scsi/dpt/
Ddpti_ioctl.h94 unsigned sectors; /* sectors for drives on cntlr. */ member
Dsys_info.h84 uCHAR sectors; /* Up to 63 */ member
/linux-4.4.14/include/trace/events/
Dbcache.h410 __field(unsigned, sectors )
418 __entry->sectors = GC_SECTORS_USED(&ca->buckets[bucket]);
422 __entry->sectors, MAJOR(__entry->dev),
/linux-4.4.14/fs/ext4/
Dsysfs.c58 (part_stat_read(sb->s_bdev->bd_part, sectors[1]) - in session_write_kbytes_show()
71 ((part_stat_read(sb->s_bdev->bd_part, sectors[1]) - in lifetime_write_kbytes_show()
/linux-4.4.14/drivers/s390/block/
Ddasd.c756 long sectors, in dasd_profile_end_add_data() argument
771 data->dasd_io_sects += sectors; in dasd_profile_end_add_data()
787 data->dasd_read_sects += sectors; in dasd_profile_end_add_data()
805 long tottimeps, sectors; in dasd_profile_end() local
816 sectors = blk_rq_sectors(req); in dasd_profile_end()
819 !sectors) in dasd_profile_end()
826 tottimeps = tottime / sectors; in dasd_profile_end()
828 dasd_profile_counter(sectors, sectors_ind); in dasd_profile_end()
833 dasd_profile_counter(irqtime / sectors, irqtimeps_ind); in dasd_profile_end()
842 sectors, sectors_ind, tottime_ind, in dasd_profile_end()
[all …]
Dxpram.c244 geo->sectors = 16; in xpram_getgeo()
Ddasd_eckd.c2119 geo->sectors = recs_per_track(&private->rdc_data, in dasd_eckd_fill_geometry()
3359 sector_t first_trk, last_trk, sectors; in dasd_raw_build_cp() local
3448 for (sectors = 0; sectors < start_padding_sectors; sectors += 8) in dasd_raw_build_cp()
3471 for (sectors = 0; sectors < end_padding_sectors; sectors += 8) in dasd_raw_build_cp()
Ddasd_diag.c488 geo->sectors = 128 >> block->s2b_shift; in dasd_diag_fill_geometry()
Ddasd_fba.c220 geo->sectors = 128 >> block->s2b_shift; in dasd_fba_fill_geometry()
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.c595 dma_addr_t buffer_dma, unsigned int sectors);
1481 dma_addr_t buffer_dma, unsigned int sectors) in mtip_read_log_page() argument
1489 fis.sect_count = sectors & 0xFF; in mtip_read_log_page()
1490 fis.sect_cnt_ex = (sectors >> 8) & 0xFF; in mtip_read_log_page()
1495 memset(buffer, 0, sectors * ATA_SECT_SIZE); in mtip_read_log_page()
1501 sectors * ATA_SECT_SIZE, in mtip_read_log_page()
1684 static bool mtip_hw_get_capacity(struct driver_data *dd, sector_t *sectors) in mtip_hw_get_capacity() argument
1693 *sectors = total; in mtip_hw_get_capacity()
1707 sector_t sectors; in mtip_dump_identify() local
1729 if (mtip_hw_get_capacity(port->dd, &sectors)) in mtip_dump_identify()
[all …]
/linux-4.4.14/arch/m68k/emu/
Dnfblock.c89 geo->sectors = 16; in nfhd_getgeo()
/linux-4.4.14/drivers/block/aoe/
Daoeblk.c308 geo->sectors = d->geo.sectors; in aoeblk_getgeo()
Daoecmd.c1012 d->geo.sectors = 63; in ataid_complete()
1022 d->geo.sectors = get_unaligned_le16(&id[56 << 1]); in ataid_complete()
/linux-4.4.14/drivers/mtd/chips/
Dcfi_cmdset_0002.c2634 int sectors; in cfi_ppb_unlock() local
2654 sectors = 0; in cfi_ppb_unlock()
2667 sect[sectors].chip = &cfi->chips[chipnum]; in cfi_ppb_unlock()
2668 sect[sectors].offset = offset; in cfi_ppb_unlock()
2669 sect[sectors].locked = do_ppb_xxlock( in cfi_ppb_unlock()
2689 sectors++; in cfi_ppb_unlock()
2690 if (sectors >= MAX_SECTORS) { in cfi_ppb_unlock()
2710 for (i = 0; i < sectors; i++) { in cfi_ppb_unlock()
/linux-4.4.14/fs/f2fs/
Dsegment.h102 #define SECTOR_TO_BLOCK(sectors) \ argument
103 (sectors >> F2FS_LOG_SECTORS_PER_BLOCK)
/linux-4.4.14/Documentation/arm/
DSetup104 Start address in sectors of the ramdisk image on a floppy disk.
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c250 static int onenand_buffer_address(int dataram1, int sectors, int count) in onenand_buffer_address() argument
255 bsa = sectors & ONENAND_BSA_MASK; in onenand_buffer_address()
453 int sectors = 0, count = 0; in onenand_command() local
475 value = onenand_page_address(page, sectors); in onenand_command()
479 value = onenand_buffer_address(dataram, sectors, count); in onenand_command()
2861 int sectors = 4, count = 4; in onenand_otp_command() local
2873 value = onenand_page_address(page, sectors); in onenand_otp_command()
2878 value = onenand_buffer_address(dataram, sectors, count); in onenand_otp_command()
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db657 API-blk-queue-max-hw-sectors
658 API-blk-queue-chunk-sectors
659 API-blk-queue-max-discard-sectors
660 API-blk-queue-max-write-same-sectors
Dlibata.xml.db70 API-ata-set-max-sectors
/linux-4.4.14/Documentation/cgroups/
Dblkio-controller.txt62 much disk time (in milliseconds), each group got and how many sectors each
190 - blkio.sectors
191 - number of sectors transferred to/from disk by the group. First
193 third field specifies the number of sectors transferred by the
/linux-4.4.14/drivers/mtd/nand/brcmnand/
Dbrcmnand.c792 int sectors; in brcmnand_create_layout() local
800 sectors = cfg->page_size / (512 << cfg->sector_size_1k); in brcmnand_create_layout()
805 for (i = 0, idx1 = 0, idx2 = 0; i < sectors; i++) { in brcmnand_create_layout()
846 layout->eccbytes = req * sectors; in brcmnand_create_layout()
847 for (i = 0, idx1 = 0, idx2 = 0; i < sectors; i++) { in brcmnand_create_layout()
/linux-4.4.14/Documentation/cdrom/
Dpacket-writing.txt80 - Defect management (ie automatic remapping of bad sectors) has not
/linux-4.4.14/drivers/message/fusion/
Dmptscsih.c2094 int sectors; in mptscsih_bios_param() local
2099 sectors = 32; in mptscsih_bios_param()
2101 dummy = heads * sectors; in mptscsih_bios_param()
2111 sectors = 63; in mptscsih_bios_param()
2112 dummy = heads * sectors; in mptscsih_bios_param()
2119 geom[1] = sectors; in mptscsih_bios_param()
/linux-4.4.14/Documentation/ioctl/
Dhdio.txt100 sectors number of sectors/track
177 controls how many sectors the drive will transfer per
191 sectors the drive will transfer per interrupt.
/linux-4.4.14/drivers/nvdimm/
Dcore.c226 part_stat_add(cpu, &disk->part0, sectors[rw], bio_sectors(bio)); in __nd_iostat_start()
Dbtt.c1219 geo->sectors = 1 << 5; in btt_getgeo()
/linux-4.4.14/include/linux/mmc/
Dcard.h72 unsigned int sectors; member
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c986 u16 i, sectors; in i40e_get_eeprom() local
1031 sectors = eeprom->len / I40E_NVM_SECTOR_SIZE; in i40e_get_eeprom()
1032 sectors += (eeprom->len % I40E_NVM_SECTOR_SIZE) ? 1 : 0; in i40e_get_eeprom()
1035 for (i = 0; i < sectors; i++) { in i40e_get_eeprom()
1036 if (i == (sectors - 1)) { in i40e_get_eeprom()
/linux-4.4.14/Documentation/cris/
DREADME106 block: queued sectors max/low 9109kB/3036kB, 64 slots per queue
/linux-4.4.14/drivers/mtd/ubi/
Dblock.c286 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_hba.c310 int ret, heads, sectors, cylinders, total_capacity; in arcmsr_bios_param() local
322 sectors = 32; in arcmsr_bios_param()
323 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
326 sectors = 63; in arcmsr_bios_param()
327 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
330 geom[1] = sectors; in arcmsr_bios_param()
/linux-4.4.14/drivers/firmware/
Dedd.c566 static EDD_DEVICE_ATTR(sectors, 0444, edd_show_sectors, edd_has_edd_info);
/linux-4.4.14/fs/ntfs/
Dlayout.h57 le16 sectors; /* zero */ member
/linux-4.4.14/drivers/mmc/core/
Dmmc.c378 card->ext_csd.sectors = in mmc_decode_ext_csd()
385 if (card->ext_csd.sectors > (2u * 1024 * 1024 * 1024) / 512) in mmc_decode_ext_csd()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2640 int sectors; in megasas_bios_param() local
2646 sectors = 32; in megasas_bios_param()
2648 tmp = heads * sectors; in megasas_bios_param()
2659 sectors = 63; in megasas_bios_param()
2660 tmp = heads*sectors; in megasas_bios_param()
2666 geom[1] = sectors; in megasas_bios_param()
/linux-4.4.14/fs/fat/
Dinode.c1332 if (get_unaligned_le16(&b->sectors)) in fat_bpb_is_zero()
1357 bpb->fat_sectors = get_unaligned_le16(&b->sectors); in fat_read_bpb()
/linux-4.4.14/Documentation/ide/
DChangeLog.ide-cd.1994-200419 * other than 2k and to move multiple sectors in a
DChangeLog.ide-tape.1995-2002247 * sectors skipped, not the number of stages.
/linux-4.4.14/drivers/block/drbd/
Ddrbd_worker.c1580 (int)part_stat_read(&disk->part0, sectors[0]) + in drbd_rs_controller_reset()
1581 (int)part_stat_read(&disk->part0, sectors[1]); in drbd_rs_controller_reset()
/linux-4.4.14/Documentation/nvdimm/
Dbtt.txt12 Traditional SSDs typically provide protection against torn sectors in hardware,
/linux-4.4.14/Documentation/mtd/
Dnand_ecc.txt18 NAND flash (at least SLC one) typically has sectors of 256 bytes.
27 As I said before the ecc calculation is performed on sectors of 256
/linux-4.4.14/Documentation/laptops/
Dlaptop-mode.txt147 Disk readahead, in 512-byte sectors, while laptop mode is active. A large
246 # Read-ahead, in 512-byte sectors. You can spin down the disk while playing MP3/OGG
/linux-4.4.14/Documentation/x86/
Dboot.txt154 sectors (1K) and then examine the bootup sector size.
161 01F1/1 ALL(1 setup_sects The size of the setup in sectors
243 The size of the setup code in 512-byte sectors. If this field is
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c1999 int sectors; in scsih_bios_param() local
2004 sectors = 32; in scsih_bios_param()
2006 dummy = heads * sectors; in scsih_bios_param()
2016 sectors = 63; in scsih_bios_param()
2017 dummy = heads * sectors; in scsih_bios_param()
2024 params[1] = sectors; in scsih_bios_param()
/linux-4.4.14/arch/um/drivers/
Dubd_kern.c1336 geo->sectors = 32; in ubd_getgeo()

12