Home
last modified time | relevance | path

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

12

/linux-4.1.27/drivers/target/
Dtarget_core_sbc.c186 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) in sbc_get_size() argument
188 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
268 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same() local
277 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
279 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
285 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
286 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
288 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
316 ret = sbc_check_prot(dev, cmd, &cmd->t_task_cdb[0], sectors, true); in sbc_setup_write_same()
665 u32 sectors, bool is_write) in sbc_check_prot() argument
[all …]
Dtarget_core_file.c644 u32 sectors = cmd->data_length / dev->dev_attrib.block_size; in fd_execute_rw() local
646 rc = sbc_dif_verify_read(cmd, cmd->t_task_lba, sectors, in fd_execute_rw()
660 u32 sectors = cmd->data_length / dev->dev_attrib.block_size; in fd_execute_rw() local
666 rc = sbc_dif_verify_write(cmd, cmd->t_task_lba, sectors, in fd_execute_rw()
Dtarget_core_rd.c416 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size; in rd_do_prot_rw() local
435 prot_npages = DIV_ROUND_UP(prot_offset + sectors * se_dev->prot_length, in rd_do_prot_rw()
469 rc = dif_verify(cmd, cmd->t_task_lba, sectors, 0, prot_sg, prot_offset); in rd_do_prot_rw()
Dtarget_core_iblock.c465 sector_t sectors = sbc_get_write_same_sectors(cmd); in iblock_execute_write_same() local
496 while (sectors) { in iblock_execute_write_same()
510 sectors -= 1; in iblock_execute_write_same()
Dtarget_core_alua.c491 u64 segment_size, segment_mult, sectors, lba; in core_alua_state_lba_dependent() local
500 sectors = cmd->data_length / dev->dev_attrib.block_size; in core_alua_state_lba_dependent()
503 while (lba < cmd->t_task_lba + sectors) { in core_alua_state_lba_dependent()
Dtarget_core_transport.c1752 u32 sectors; in target_write_prot_action() local
1767 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); in target_write_prot_action()
1769 sectors, 0, NULL, 0); in target_write_prot_action()
/linux-4.1.27/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()
209 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
219 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
232 zone->dev_start = smallest->sectors; in create_strip_zones()
[all …]
Dlinear.c78 bvm->bi_sector -= dev0->end_sector - dev0->rdev->sectors; in linear_mergeable_bvec()
112 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
118 WARN_ONCE(sectors || raid_disks, in linear_size()
143 sector_t sectors; in linear_conf() local
153 sectors = rdev->sectors; in linear_conf()
154 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
155 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
161 conf->array_sectors += rdev->sectors; in linear_conf()
181 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
186 conf->disks[i].rdev->sectors; in linear_conf()
[all …]
Draid1.c293 r1_bio->sector + (r1_bio->sectors); in update_head_pos()
378 r1_bio->sectors, in close_write()
452 r1_bio->sector, r1_bio->sectors, in raid1_end_write_request()
514 int sectors; in read_balance() local
532 sectors = r1_bio->sectors; in read_balance()
542 if ((conf->mddev->recovery_cp < this_sector + sectors) || in read_balance()
545 this_sector + sectors))) in read_balance()
564 rdev->recovery_offset < this_sector + sectors) in read_balance()
570 if (is_badblock(rdev, this_sector, sectors, in read_balance()
577 best_good_sectors = sectors; in read_balance()
[all …]
Draid10.c330 r10_bio->devs[slot].addr + (r10_bio->sectors); in update_head_pos()
420 r10_bio->sectors, in close_write()
505 r10_bio->sectors, in raid10_end_write_request()
787 int sectors = r10_bio->sectors; in read_balance() local
798 sectors = r10_bio->sectors; in read_balance()
811 && (this_sector + sectors >= conf->next_resync)) in read_balance()
825 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
832 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
836 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
847 if (!do_balance && sectors > bad_sectors) in read_balance()
[all …]
Dmd.h43 sector_t sectors; /* Device size (in 512bytes sectors) */ member
189 extern int md_is_badblock(struct badblocks *bb, sector_t s, int sectors,
191 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, in is_badblock() argument
196 sectors, in is_badblock()
204 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
206 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
510 int (*resize) (struct mddev *mddev, sector_t sectors);
511 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks);
Dmd.c257 unsigned int sectors; in md_make_request() local
291 sectors = bio_sectors(bio); in md_make_request()
298 part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], sectors); in md_make_request()
722 rdev->sectors = 0; in md_rdev_clear()
1041 rdev->sectors = rdev->sb_start; in super_90_load()
1046 if (rdev->sectors >= (2ULL << 32) && sb->level >= 1) in super_90_load()
1047 rdev->sectors = (2ULL << 32) - 2; in super_90_load()
1049 if (rdev->sectors < ((sector_t)sb->size) * 2 && sb->level >= 1) in super_90_load()
1381 static int md_set_badblocks(struct badblocks *bb, sector_t s, int sectors,
1388 sector_t sectors; in super_1_load() local
[all …]
Ddm-stats.c25 unsigned long long sectors[2]; member
482 p->sectors[idx] += len; in dm_stat_for_entry()
583 shared->tmp.sectors[READ] += ACCESS_ONCE(p->sectors[READ]); in __dm_stat_init_temporary_percpu_totals()
584 shared->tmp.sectors[WRITE] += ACCESS_ONCE(p->sectors[WRITE]); in __dm_stat_init_temporary_percpu_totals()
611 p->sectors[READ] -= shared->tmp.sectors[READ]; in __dm_stat_clear()
612 p->sectors[WRITE] -= shared->tmp.sectors[WRITE]; in __dm_stat_clear()
714 shared->tmp.sectors[READ], in dm_stats_print()
718 shared->tmp.sectors[WRITE], in dm_stats_print()
Dbitmap.h252 unsigned long sectors, int behind);
254 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.c1357 int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, int behind) in bitmap_startwrite() argument
1373 while (sectors) { in bitmap_startwrite()
1412 if (sectors > blocks) in bitmap_startwrite()
1413 sectors -= blocks; in bitmap_startwrite()
1415 sectors = 0; in bitmap_startwrite()
1421 void bitmap_endwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, in bitmap_endwrite() argument
1434 while (sectors) { in bitmap_endwrite()
1466 if (sectors > blocks) in bitmap_endwrite()
1467 sectors -= blocks; in bitmap_endwrite()
1469 sectors = 0; in bitmap_endwrite()
[all …]
Draid1.h127 int sectors; member
Draid10.h97 int sectors; member
DKconfig134 contain data sectors, and one drive contains the parity protection.
142 (row) number, (N - 2) drives contain data sectors, and two
204 people to specify mappings for ranges of logical sectors. Various
357 contain data sectors, and one drive contains the parity protection.
365 (row) number, (N - 2) drives contain data sectors, and two
Dmultipath.c377 static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) in multipath_size() argument
379 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()
5326 static sector_t raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks);
6250 raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid5_size() argument
6254 if (!sectors) in raid5_size()
6255 sectors = mddev->dev_sectors; in raid5_size()
6260 sectors &= ~((sector_t)mddev->chunk_sectors - 1); in raid5_size()
6261 sectors &= ~((sector_t)mddev->new_chunk_sectors - 1); in raid5_size()
6262 return sectors * (raid_disks - conf->max_degraded); in raid5_size()
7192 static int raid5_resize(struct mddev *mddev, sector_t sectors) in raid5_resize() argument
[all …]
Ddm-ioctl.c956 geometry.sectors = indata[2]; in dev_set_geometry()
/linux-4.1.27/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.1.27/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.c2838 int sectors; in megaraid_biosparam() local
2848 sectors = 32; in megaraid_biosparam()
2849 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2857 sectors = 63; in megaraid_biosparam()
2858 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2863 geom[1] = sectors; in megaraid_biosparam()
2883 sectors = 32; in megaraid_biosparam()
2884 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam()
2889 sectors = 63; in megaraid_biosparam()
2890 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.c1351 int heads = 255, sectors = 63; in stex_biosparam() local
1355 sectors = 32; in stex_biosparam()
1358 sector_div(capacity, heads * sectors); in stex_biosparam()
1361 geom[1] = sectors; in stex_biosparam()
Dips.c1157 int sectors; in DEF_SCSI_QCMD() local
1175 sectors = IPS_NORM_SECTORS; in DEF_SCSI_QCMD()
1178 sectors = IPS_COMP_SECTORS; in DEF_SCSI_QCMD()
1181 cylinders = (unsigned long) capacity / (heads * sectors); in DEF_SCSI_QCMD()
1184 heads, sectors, cylinders); in DEF_SCSI_QCMD()
1187 geom[1] = sectors; in DEF_SCSI_QCMD()
4110 uint16_t sectors; in ips_msense() local
4119 sectors = IPS_NORM_SECTORS; in ips_msense()
4122 sectors = IPS_COMP_SECTORS; in ips_msense()
4127 1) / (heads * sectors); in ips_msense()
[all …]
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()
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()
DBusLogic.h1094 int sectors; member
Dscsi_debug.c2476 unsigned int sectors, bool read) in dif_copy_prot() argument
2484 resid = sectors * sizeof(*dif_storep); in dif_copy_prot()
2519 unsigned int sectors, u32 ei_lba) in prot_verify_read() argument
2525 for (i = 0; i < sectors; i++, ei_lba++) { in prot_verify_read()
2541 dif_copy_prot(SCpnt, start_sec, sectors, true); in prot_verify_read()
2710 unsigned int sectors, u32 ei_lba) in prot_verify_write() argument
2769 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.1.27/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.1.27/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.1.27/drivers/usb/storage/
Ddatafab.c68 unsigned long sectors; /* total sector count */ member
146 u32 sectors) in datafab_read_data() argument
161 if (sectors > 0x0FFFFFFF) in datafab_read_data()
170 totallen = sectors * info->ssize; in datafab_read_data()
229 u32 sectors) in datafab_write_data() argument
245 if (sectors > 0x0FFFFFFF) in datafab_write_data()
254 totallen = sectors * info->ssize; in datafab_write_data()
429 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device()
591 info->sectors, info->ssize); in datafab_transport()
595 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in datafab_transport()
Djumpshot.c105 unsigned long sectors; /* total sector count */ member
165 u32 sectors) in jumpshot_read_data() argument
183 totallen = sectors * info->ssize; in jumpshot_read_data()
242 u32 sectors) in jumpshot_write_data() argument
260 totallen = sectors * info->ssize; in jumpshot_write_data()
363 info->sectors = ((u32)(reply[117]) << 24) | in jumpshot_id_device()
522 info->sectors, info->ssize); in jumpshot_transport()
526 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in jumpshot_transport()
Dsddr55.c197 unsigned short sectors) { in sddr55_read_data() argument
216 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data()
224 while (sectors>0) { in sddr55_read_data()
234 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_read_data()
302 sectors -= pages >> info->smallpageshift; in sddr55_read_data()
316 unsigned short sectors) { in sddr55_write_data() argument
343 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data()
351 while (sectors > 0) { in sddr55_write_data()
361 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_write_data()
510 sectors -= pages >> info->smallpageshift; in sddr55_write_data()
Dalauda.c914 unsigned int sectors) in alauda_read_data() argument
935 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data()
951 while (sectors > 0) { in alauda_read_data()
967 pages = min(sectors, blocksize - page); in alauda_read_data()
998 sectors -= pages; in alauda_read_data()
1009 unsigned int sectors) in alauda_write_data() argument
1027 len = min(sectors, blocksize) * pagesize; in alauda_write_data()
1054 while (sectors > 0) { in alauda_write_data()
1056 unsigned int pages = min(sectors, blocksize - page); in alauda_write_data()
1078 sectors -= pages; in alauda_write_data()
Dsddr09.c742 unsigned int sectors) { in sddr09_read_data() argument
763 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_read_data()
777 while (sectors > 0) { in sddr09_read_data()
780 pages = min(sectors, info->blocksize - page); in sddr09_read_data()
825 sectors -= pages; in sddr09_read_data()
968 unsigned int sectors) { in sddr09_write_data() argument
1004 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data()
1016 while (sectors > 0) { in sddr09_write_data()
1020 pages = min(sectors, info->blocksize - page); in sddr09_write_data()
1042 sectors -= pages; in sddr09_write_data()
Dshuttle_usbat.c143 unsigned long sectors; /* total sector count */ member
1099 info->sectors = ((u32)(reply[117]) << 24) | in usbat_flash_get_sector_count()
1117 u32 sectors) in usbat_flash_read_data() argument
1150 totallen = sectors * info->ssize; in usbat_flash_read_data()
1208 u32 sectors) in usbat_flash_write_data() argument
1241 totallen = sectors * info->ssize; in usbat_flash_write_data()
1715 info->sectors, info->ssize); in usbat_flash_transport()
1722 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in usbat_flash_transport()
/linux-4.1.27/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.1.27/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.c124 unsigned sectors = min(bio_sectors(bio), in bch_data_invalidate() local
130 bio->bi_iter.bi_sector += sectors; in bch_data_invalidate()
131 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate()
134 &KEY(op->inode, bio->bi_iter.bi_sector, sectors)); in bch_data_invalidate()
369 unsigned sectors, congested = bch_get_congested(c); in check_should_bypass() local
430 sectors = max(task->sequential_io, in check_should_bypass()
434 sectors >= dc->sequential_cutoff >> 9) { in check_should_bypass()
439 if (congested && sectors >= congested) { in check_should_bypass()
515 unsigned sectors = KEY_INODE(k) == s->iop.inode in cache_lookup_fn() local
520 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
622 atomic_long_add(sectors, &ca->meta_sectors_written); in journal_write_unlocked()
628 bio->bi_iter.bi_size = sectors << 9; in journal_write_unlocked()
637 SET_PTR_OFFSET(k, i, PTR_OFFSET(k, i) + sectors); in journal_write_unlocked()
681 size_t sectors; in journal_wait_for_write() local
692 sectors = __set_blocks(w->data, w->data->keys + nkeys, in journal_wait_for_write()
695 if (sectors <= min_t(size_t, in journal_wait_for_write()
Dsuper.c433 u1[i].sectors = 0; in uuid_read()
778 sector_t sectors) in bcache_device_init() argument
787 d->nr_stripes = DIV_ROUND_UP_ULL(sectors, d->stripe_size); in bcache_device_init()
821 set_capacity(d->disk, sectors); in bcache_device_init()
859 uint64_t sectors = 0; in calc_cached_dev_sectors() local
863 sectors += bdev_sectors(dc->bdev); in calc_cached_dev_sectors()
865 c->cached_dev_sectors = sectors; in calc_cached_dev_sectors()
1257 if (bcache_device_init(d, block_bytes(c), u->sectors)) in flash_dev_run()
1310 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.1.27/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.1.27/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.1.27/drivers/block/paride/
Dpd.c229 int sectors; member
341 s = (block % disk->sectors) + 1; in pd_ide_command()
342 h = (block /= disk->sectors) % disk->heads; in pd_ide_command()
590 pd_send_command(disk, disk->sectors, 0, disk->heads - 1, 0, 0, in pd_init_dev_parms()
672 disk->sectors = le16_to_cpu(*(__le16 *) (pd_scratch + 12)); in pd_identify()
678 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify()
694 disk->cylinders, disk->heads, disk->sectors, in pd_identify()
760 geo->sectors = PD_LOG_SECTS; in pd_getgeo()
761 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo()
764 geo->sectors = disk->sectors; in pd_getgeo()
Dpf.c337 geo->sectors = PF_FD_SPT; in pf_getgeo()
341 geo->sectors = PF_HD_SPT; in pf_getgeo()
/linux-4.1.27/block/
Dbio-integrity.c198 unsigned int sectors) in bio_integrity_intervals() argument
200 return sectors >> (ilog2(bi->interval) - 9); in bio_integrity_intervals()
204 unsigned int sectors) in bio_integrity_bytes() argument
206 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes()
432 unsigned int sectors) in bio_integrity_trim() argument
438 bip->bip_iter.bi_size = bio_integrity_bytes(bi, sectors); in bio_integrity_trim()
Dbio.c1707 void generic_start_io_acct(int rw, unsigned long sectors, in generic_start_io_acct() argument
1714 part_stat_add(cpu, part, sectors[rw], sectors); in generic_start_io_acct()
1824 struct bio *bio_split(struct bio *bio, int sectors, in bio_split() argument
1829 BUG_ON(sectors <= 0); in bio_split()
1830 BUG_ON(sectors >= bio_sectors(bio)); in bio_split()
1844 split->bi_iter.bi_size = sectors << 9; in bio_split()
1847 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.c1174 part_stat_read(hd, sectors[READ]), in diskstats_show()
1178 part_stat_read(hd, sectors[WRITE]), in diskstats_show()
Dcfq-iosched.c188 struct blkg_stat sectors; member
674 blkg_stat_add(&cfqg->stats.sectors, bytes >> 9); in cfqg_stats_update_dispatch()
1533 blkg_stat_init(&stats->sectors); in cfqg_stats_init()
1895 .private = offsetof(struct cfq_group, stats.sectors),
1937 .private = offsetof(struct cfq_group, stats.sectors),
Dcompat_ioctl.c46 unsigned char sectors; member
/linux-4.1.27/Documentation/ABI/testing/
Dprocfs-diskstats13 6 - sectors read
17 10 - sectors written
Dsysfs-block9 3 - sectors read
13 7 - sectors written
78 with 4KB physical sectors exposing 512-byte logical
89 with 4KB physical sectors exposing 512-byte logical
108 drives with 4KB sectors that expose a 512-byte logical
/linux-4.1.27/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.1.27/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
Dbcache.txt271 Rate in sectors per second - if writeback_percent is nonzero, background
/linux-4.1.27/drivers/mmc/card/
Dmmc_test.c99 unsigned int sectors; member
523 unsigned int count, unsigned int sectors, struct timespec ts, in mmc_test_save_transfer_result() argument
536 tr->sectors = sectors; in mmc_test_save_transfer_result()
550 unsigned int rate, iops, sectors = bytes >> 9; in mmc_test_print_rate() local
560 mmc_hostname(test->card->host), sectors, sectors >> 1, in mmc_test_print_rate()
561 (sectors & 1 ? ".5" : ""), (unsigned long)ts.tv_sec, in mmc_test_print_rate()
565 mmc_test_save_transfer_result(test, 1, sectors, ts, rate, iops); in mmc_test_print_rate()
575 unsigned int rate, iops, sectors = bytes >> 9; in mmc_test_print_avg_rate() local
587 mmc_hostname(test->card->host), count, sectors, count, in mmc_test_print_avg_rate()
588 sectors >> 1, (sectors & 1 ? ".5" : ""), in mmc_test_print_avg_rate()
[all …]
Dblock.c329 geo->sectors = 16; in mmc_blk_getgeo()
2218 size = card->ext_csd.sectors; in mmc_blk_alloc()
/linux-4.1.27/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.1.27/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.1.27/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
DChangeLog.1992-1997924 1024 byte sectors.
1333 of sectors.
1958 (heads & sectors turned around).
/linux-4.1.27/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 …]
Daacraid.h103 int sectors; member
/linux-4.1.27/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.1.27/include/linux/
Dbio.h358 extern struct bio *bio_split(struct bio *bio, int sectors,
371 static inline struct bio *bio_next_split(struct bio *bio, int sectors, in bio_next_split() argument
374 if (sectors >= bio_sectors(bio)) in bio_next_split()
377 return bio_split(bio, sectors, gfp, bs); in bio_next_split()
442 void generic_start_io_acct(int rw, unsigned long sectors,
757 unsigned int sectors) in bio_integrity_trim() argument
Dgenhd.h82 unsigned long sectors[2]; /* READs and WRITEs */ member
Dlibata.h715 u16 sectors; /* Number of sectors per track */ member
/linux-4.1.27/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.1.27/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.c341 hg->sectors = 0x3f; in blkif_getgeo()
342 sector_div(cylinders, hg->heads * hg->sectors); in blkif_getgeo()
344 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect) in blkif_getgeo()
1769 unsigned long long sectors; in blkfront_connect() local
1783 "sectors", "%Lu", &sectors); in blkfront_connect()
1787 sectors); in blkfront_connect()
1788 set_capacity(info->gd, sectors); in blkfront_connect()
1810 "sectors", "%llu", &sectors, in blkfront_connect()
1879 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.c1270 geo->sectors = drv->sectors; in cciss_getgeo()
2044 drvinfo->sectors == h->drv[drv_index]->sectors && in cciss_update_drive_info()
2085 h->drv[drv_index]->sectors = drvinfo->sectors; in cciss_update_drive_info()
2255 h->drv[drv_index]->sectors = 0; in cciss_add_controller_node()
2417 drive_info->sectors = 0; in cciss_clear_drive_info()
2860 drv->sectors = 32; /* Sectors per track */ in cciss_geometry_inquiry()
2865 drv->sectors = inq_buff->data_byte[7]; in cciss_geometry_inquiry()
2872 t = drv->heads * drv->sectors; in cciss_geometry_inquiry()
Dumem.c778 geo->sectors = 32; in mm_getgeo()
779 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()
Dsx8.c441 geo->sectors = (u8) port->dev_geom_sect; in carm_bdev_getgeo()
Damiflop.c1458 geo->sectors = unit[drive].dtype->sects * unit[drive].type->sect_mult; in fd_getgeo()
/linux-4.1.27/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
1528 tf.nsect = sectors; in ata_read_log_page()
1529 tf.hob_nsect = sectors >> 8; in ata_read_log_page()
1533 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.1.27/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.1.27/Documentation/device-mapper/
Dstatistics.txt42 "<start_sector>+<length>" - a range of <length> 512-byte sectors
47 <area_size> sectors.
118 3. the number of sectors read
122 7. the number of sectors written
Dsnapshot.txt36 <chunksize> sectors will be stored on the <COW device>. Writes will
133 During merging, the number of sectors allocated gets smaller and
134 smaller. Merging has finished when the number of sectors holding data
146 ^^^^ metadata sectors
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
226 sectors
230 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.
385 <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.1.27/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.txt30 (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.1.27/include/linux/mtd/
Dnftl.h41 unsigned char sectors; member
Dinftl.h34 unsigned char sectors; member
/linux-4.1.27/arch/powerpc/include/asm/
Dps3stor.h66 u64 start_sector, u64 sectors,
/linux-4.1.27/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.1.27/drivers/staging/i2o/
Di2o_block.c544 unsigned long heads, sectors, cylinders; in i2o_block_biosparam() local
546 sectors = 63L; /* Maximize sectors per track */ in i2o_block_biosparam()
558 cylinders = (unsigned long)capacity / (heads * sectors); in i2o_block_biosparam()
561 *secs = (unsigned char)sectors; in i2o_block_biosparam()
637 &geo->cylinders, &geo->heads, &geo->sectors); in i2o_block_getgeo()
/linux-4.1.27/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.1.27/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.1.27/drivers/block/mtip32xx/
Dmtip32xx.c596 dma_addr_t buffer_dma, unsigned int sectors);
1478 dma_addr_t buffer_dma, unsigned int sectors) in mtip_read_log_page() argument
1486 fis.sect_count = sectors & 0xFF; in mtip_read_log_page()
1487 fis.sect_cnt_ex = (sectors >> 8) & 0xFF; in mtip_read_log_page()
1492 memset(buffer, 0, sectors * ATA_SECT_SIZE); in mtip_read_log_page()
1498 sectors * ATA_SECT_SIZE, in mtip_read_log_page()
1681 static bool mtip_hw_get_capacity(struct driver_data *dd, sector_t *sectors) in mtip_hw_get_capacity() argument
1690 *sectors = total; in mtip_hw_get_capacity()
1704 sector_t sectors; in mtip_dump_identify() local
1726 if (mtip_hw_get_capacity(port->dd, &sectors)) in mtip_dump_identify()
[all …]
/linux-4.1.27/drivers/s390/block/
Ddasd.c754 long sectors, in dasd_profile_end_add_data() argument
769 data->dasd_io_sects += sectors; in dasd_profile_end_add_data()
785 data->dasd_read_sects += sectors; in dasd_profile_end_add_data()
803 long tottimeps, sectors; in dasd_profile_end() local
814 sectors = blk_rq_sectors(req); in dasd_profile_end()
817 !sectors) in dasd_profile_end()
824 tottimeps = tottime / sectors; in dasd_profile_end()
826 dasd_profile_counter(sectors, sectors_ind); in dasd_profile_end()
831 dasd_profile_counter(irqtime / sectors, irqtimeps_ind); in dasd_profile_end()
840 sectors, sectors_ind, tottime_ind, in dasd_profile_end()
[all …]
Dxpram.c242 geo->sectors = 16; in xpram_getgeo()
Ddasd_eckd.c2081 geo->sectors = recs_per_track(&private->rdc_data, in dasd_eckd_fill_geometry()
3321 sector_t first_trk, last_trk, sectors; in dasd_raw_build_cp() local
3410 for (sectors = 0; sectors < start_padding_sectors; sectors += 8) in dasd_raw_build_cp()
3433 for (sectors = 0; sectors < end_padding_sectors; sectors += 8) in dasd_raw_build_cp()
Ddasd_diag.c481 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.1.27/arch/m68k/emu/
Dnfblock.c88 geo->sectors = 16; in nfhd_getgeo()
/linux-4.1.27/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.1.27/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.1.27/arch/arm/boot/dts/
Dorion5x-maxtor-shared-storage-2.dts64 * accidentally erasing critical flash sectors. We thus define
Dorion5x-lacie-ethernet-disk-mini-v2.dts85 * accidentally erasing critical flash sectors. We thus define
Dorion5x-lacie-d2-network.dts104 * accidentally erasing critical flash sectors. We thus define
/linux-4.1.27/fs/f2fs/
Dsegment.h101 #define SECTOR_TO_BLOCK(sectors) \ argument
102 (sectors >> F2FS_LOG_SECTORS_PER_BLOCK)
/linux-4.1.27/Documentation/arm/
DSetup104 Start address in sectors of the ramdisk image on a floppy disk.
/linux-4.1.27/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.1.27/Documentation/cdrom/
Dpacket-writing.txt80 - Defect management (ie automatic remapping of bad sectors) has not
/linux-4.1.27/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.1.27/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.1.27/Documentation/cgroups/
Dblkio-controller.txt190 - 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.1.27/include/linux/mmc/
Dcard.h72 unsigned int sectors; member
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c915 u16 i, sectors; in i40e_get_eeprom() local
962 sectors = eeprom->len / I40E_NVM_SECTOR_SIZE; in i40e_get_eeprom()
963 sectors += (eeprom->len % I40E_NVM_SECTOR_SIZE) ? 1 : 0; in i40e_get_eeprom()
966 for (i = 0; i < sectors; i++) { in i40e_get_eeprom()
967 if (i == (sectors - 1)) { in i40e_get_eeprom()
/linux-4.1.27/drivers/mtd/ubi/
Dblock.c285 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()
/linux-4.1.27/Documentation/cris/
DREADME106 block: queued sectors max/low 9109kB/3036kB, 64 slots per queue
/linux-4.1.27/drivers/scsi/arcmsr/
Darcmsr_hba.c313 int ret, heads, sectors, cylinders, total_capacity; in arcmsr_bios_param() local
325 sectors = 32; in arcmsr_bios_param()
326 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
329 sectors = 63; in arcmsr_bios_param()
330 cylinders = total_capacity / (heads * sectors); in arcmsr_bios_param()
333 geom[1] = sectors; in arcmsr_bios_param()
/linux-4.1.27/drivers/firmware/
Dedd.c566 static EDD_DEVICE_ATTR(sectors, 0444, edd_show_sectors, edd_has_edd_info);
/linux-4.1.27/drivers/mmc/core/
Dmmc.c375 card->ext_csd.sectors = in mmc_decode_ext_csd()
382 if (card->ext_csd.sectors > (2u * 1024 * 1024 * 1024) / 512) in mmc_decode_ext_csd()
/linux-4.1.27/fs/ntfs/
Dlayout.h57 le16 sectors; /* zero */ member
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2551 int sectors; in megasas_bios_param() local
2556 sectors = 32; in megasas_bios_param()
2558 tmp = heads * sectors; in megasas_bios_param()
2569 sectors = 63; in megasas_bios_param()
2570 tmp = heads*sectors; in megasas_bios_param()
2576 geom[1] = sectors; in megasas_bios_param()
/linux-4.1.27/fs/fat/
Dinode.c1331 if (get_unaligned_le16(&b->sectors)) in fat_bpb_is_zero()
1356 bpb->fat_sectors = get_unaligned_le16(&b->sectors); in fat_read_bpb()
/linux-4.1.27/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.1.27/drivers/block/drbd/
Ddrbd_worker.c1602 (int)part_stat_read(&disk->part0, sectors[0]) + in drbd_rs_controller_reset()
1603 (int)part_stat_read(&disk->part0, sectors[1]); in drbd_rs_controller_reset()
/linux-4.1.27/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.1.27/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.1.27/drivers/scsi/mpt2sas/
Dmpt2sas_scsih.c2146 int sectors; in _scsih_bios_param() local
2151 sectors = 32; in _scsih_bios_param()
2153 dummy = heads * sectors; in _scsih_bios_param()
2163 sectors = 63; in _scsih_bios_param()
2164 dummy = heads * sectors; in _scsih_bios_param()
2171 params[1] = sectors; in _scsih_bios_param()
/linux-4.1.27/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c1813 int sectors; in _scsih_bios_param() local
1818 sectors = 32; in _scsih_bios_param()
1820 dummy = heads * sectors; in _scsih_bios_param()
1830 sectors = 63; in _scsih_bios_param()
1831 dummy = heads * sectors; in _scsih_bios_param()
1838 params[1] = sectors; in _scsih_bios_param()
/linux-4.1.27/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.1.27/arch/um/drivers/
Dubd_kern.c1336 geo->sectors = 32; in ubd_getgeo()
/linux-4.1.27/fs/ext4/
Dsuper.c2501 (part_stat_read(sb->s_bdev->bd_part, sectors[1]) - in session_write_kbytes_show()
2514 ((part_stat_read(sb->s_bdev->bd_part, sectors[1]) - in lifetime_write_kbytes_show()
3477 part_stat_read(sb->s_bdev->bd_part, sectors[1]); in ext4_fill_super()
4650 ((part_stat_read(sb->s_bdev->bd_part, sectors[1]) - in ext4_commit_super()
/linux-4.1.27/drivers/memstick/core/
Dmspro_block.c240 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo()

12