/linux-4.1.27/drivers/target/ |
D | target_core_sbc.c | 186 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 …]
|
D | target_core_file.c | 644 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()
|
D | target_core_rd.c | 416 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()
|
D | target_core_iblock.c | 465 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()
|
D | target_core_alua.c | 491 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()
|
D | target_core_transport.c | 1752 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/ |
D | raid0.c | 79 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 …]
|
D | linear.c | 78 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 …]
|
D | raid1.c | 293 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 …]
|
D | raid10.c | 330 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 …]
|
D | md.h | 43 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);
|
D | md.c | 257 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 …]
|
D | dm-stats.c | 25 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()
|
D | bitmap.h | 252 unsigned long sectors, int behind); 254 unsigned long sectors, int success, int behind);
|
D | faulty.c | 291 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()
|
D | bitmap.c | 1357 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 …]
|
D | raid1.h | 127 int sectors; member
|
D | raid10.h | 97 int sectors; member
|
D | Kconfig | 134 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
|
D | multipath.c | 377 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()
|
D | raid5.c | 140 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 …]
|
D | dm-ioctl.c | 956 geometry.sectors = indata[2]; in dev_set_geometry()
|
/linux-4.1.27/Documentation/block/ |
D | stat.txt | 25 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
|
D | request.txt | 57 unsigned long nr_sectors DBI Total number of sectors in request 67 unsigned int current_nr_sectors DB Number of sectors in first segment
|
D | data-integrity.txt | 17 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
|
D | biodoc.txt | 137 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)
|
D | cfq-iosched.txt | 43 sectors that are backward in terms of distance.
|
/linux-4.1.27/drivers/scsi/ |
D | scsicam.c | 234 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()
|
D | ps3rom.c | 173 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()
|
D | ultrastor.c | 236 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()
|
D | BusLogic.c | 3399 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 …]
|
D | 3w-xxxx.c | 1333 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()
|
D | megaraid.c | 2838 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 …]
|
D | u14-34f.c | 605 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()
|
D | eata_generic.h | 373 __u32 sectors; /* number of sectors */ member
|
D | dpt_i2o.c | 487 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()
|
D | 3w-sas.c | 1413 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()
|
D | fdomain.c | 1598 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()
|
D | 3w-9xxx.c | 1698 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()
|
D | hptiop.h | 220 __le16 sectors; member
|
D | initio.h | 471 u8 sectors; member
|
D | mvumi.c | 2198 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()
|
D | stex.c | 1351 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()
|
D | ips.c | 1157 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 …]
|
D | atp870u.c | 3115 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()
|
D | qla1280.c | 1065 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()
|
D | BusLogic.h | 1094 int sectors; member
|
D | scsi_debug.c | 2476 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()
|
D | dc395x.c | 1166 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()
|
D | initio.c | 662 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/ |
D | ssfdc.c | 26 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()
|
D | nftlcore.c | 84 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()
|
D | inftlcore.c | 91 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()
|
D | sm_ftl.h | 61 int sectors; member
|
D | Kconfig | 54 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
|
D | sm_ftl.c | 653 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()
|
D | inftlmount.c | 503 s->EraseSize, s->heads, s->sectors, s->cylinders, in INFTL_dumptables()
|
D | rfd_ftl.c | 751 geo->sectors = SECTORS_PER_TRACK; in rfd_ftl_getgeo()
|
D | ftl.c | 990 geo->sectors = 8; in ftl_getgeo()
|
/linux-4.1.27/drivers/mtd/spi-nor/ |
D | Kconfig | 11 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/ |
D | datafab.c | 68 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()
|
D | jumpshot.c | 105 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()
|
D | sddr55.c | 197 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()
|
D | alauda.c | 914 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()
|
D | sddr09.c | 742 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()
|
D | shuttle_usbat.c | 143 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/ |
D | btree.c | 75 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()
|
D | hfsplus_fs.h | 392 u32 hfsplus_calc_btree_clump_size(u32 block_size, u32 node_size, u64 sectors,
|
/linux-4.1.27/drivers/md/bcache/ |
D | alloc.c | 84 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()
|
D | request.c | 124 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 …]
|
D | stats.c | 221 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()
|
D | journal.c | 586 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()
|
D | super.c | 433 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()
|
D | writeback.c | 90 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()
|
D | sysfs.c | 348 sysfs_hprint(size, u->sectors << 9); in SHOW() 372 u->sectors = v >> 9; in STORE() 374 set_capacity(d->disk, u->sectors); in STORE()
|
D | extents.c | 314 int sectors) in bch_subtract_dirty() argument 318 offset, -sectors); in bch_subtract_dirty()
|
/linux-4.1.27/arch/x86/boot/ |
D | mtools.conf.in | 11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter 15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
|
/linux-4.1.27/block/partitions/ |
D | ibm.c | 40 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/ |
D | pd.c | 229 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()
|
D | pf.c | 337 geo->sectors = PF_FD_SPT; in pf_getgeo() 341 geo->sectors = PF_HD_SPT; in pf_getgeo()
|
/linux-4.1.27/block/ |
D | bio-integrity.c | 198 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()
|
D | bio.c | 1707 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()
|
D | partition-generic.c | 127 (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()
|
D | genhd.c | 1174 part_stat_read(hd, sectors[READ]), in diskstats_show() 1178 part_stat_read(hd, sectors[WRITE]), in diskstats_show()
|
D | cfq-iosched.c | 188 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),
|
D | compat_ioctl.c | 46 unsigned char sectors; member
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | procfs-diskstats | 13 6 - sectors read 17 10 - sectors written
|
D | sysfs-block | 9 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/ |
D | simscsi.c | 171 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/ |
D | iostats.txt | 67 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
|
D | md.txt | 218 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 …]
|
D | ldm.txt | 59 hda: 102400 sectors w/32KiB Cache, CHS=50/64/32
|
D | bcache.txt | 271 Rate in sectors per second - if writeback_percent is nonzero, background
|
/linux-4.1.27/drivers/mmc/card/ |
D | mmc_test.c | 99 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 …]
|
D | block.c | 329 geo->sectors = 16; in mmc_blk_getgeo() 2218 size = card->ext_csd.sectors; in mmc_blk_alloc()
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
D | aiclib.h | 137 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()
|
D | aic7xxx_osm.c | 700 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()
|
D | aic79xx_osm.c | 728 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/ |
D | ps3stor_lib.c | 277 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/ |
D | aha152x.txt | 106 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
|
D | scsi_mid_low_api.txt | 377 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
|
D | ChangeLog.1992-1997 | 924 1024 byte sectors. 1333 of sectors. 1958 (heads & sectors turned around).
|
/linux-4.1.27/drivers/scsi/aacraid/ |
D | linit.c | 324 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 …]
|
D | aacraid.h | 103 int sectors; member
|
/linux-4.1.27/drivers/ide/ |
D | ide-floppy.c | 317 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()
|
D | pdc202xx_old.c | 258 #define DECLARE_PDC2026X_DEV(udma, sectors) \ argument 269 .max_sectors = sectors, \
|
D | ide-gd.c | 281 geo->sectors = drive->bios_sect;
|
/linux-4.1.27/include/linux/ |
D | bio.h | 358 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
|
D | genhd.h | 82 unsigned long sectors[2]; /* READs and WRITEs */ member
|
D | libata.h | 715 u16 sectors; /* Number of sectors per track */ member
|
/linux-4.1.27/drivers/block/rsxx/ |
D | dev.c | 96 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/ |
D | ps3disk.c | 127 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()
|
D | mg_disk.c | 123 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()
|
D | cpqarray.h | 52 unsigned sectors; member
|
D | xen-blkfront.c | 341 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", §ors); in blkfront_connect() 1787 sectors); in blkfront_connect() 1788 set_capacity(info->gd, sectors); in blkfront_connect() 1810 "sectors", "%llu", §ors, in blkfront_connect() 1879 err = xlvbd_alloc_gendisk(sectors, info, binfo, sector_size, in blkfront_connect()
|
D | virtio_blk.c | 289 geometry.sectors, &geo->sectors); in virtblk_getgeo() 293 geo->sectors = 1 << 5; in virtblk_getgeo()
|
D | cciss.h | 39 int sectors; member
|
D | sunvdc.c | 117 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()
|
D | cpqarray.c | 1129 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()
|
D | cciss.c | 1270 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()
|
D | umem.c | 778 geo->sectors = 32; in mm_getgeo() 779 geo->cylinders = size / (geo->heads * geo->sectors); in mm_getgeo()
|
D | floppy.c | 2632 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()
|
D | hd.c | 666 geo->sectors = disk->sect; in hd_getgeo()
|
D | swim.c | 735 geo->sectors = g->sect; in floppy_getgeo()
|
D | xsysace.c | 945 geo->sectors = cf_id[ATA_ID_SECTORS]; in ace_getgeo()
|
D | DAC960.c | 115 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()
|
D | sx8.c | 441 geo->sectors = (u8) port->dev_geom_sect; in carm_bdev_getgeo()
|
D | amiflop.c | 1458 geo->sectors = unit[drive].dtype->sects * unit[drive].type->sect_mult; in fd_getgeo()
|
/linux-4.1.27/drivers/ata/ |
D | libata-core.c | 100 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 …]
|
D | libata.h | 167 u8 page, void *buf, unsigned int sectors);
|
D | libata-eh.c | 1506 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()
|
D | libata-scsi.c | 1617 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/ |
D | sysfs-bus-xen-backend | 61 Number of sectors read by the frontend. 75 Number of sectors written by the frontend.
|
D | sysfs-driver-ib_srp | 25 512-byte sectors to be transferred via a single SCSI command.
|
/linux-4.1.27/Documentation/device-mapper/ |
D | statistics.txt | 42 "<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
|
D | snapshot.txt | 36 <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
|
D | cache.txt | 120 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
|
D | dm-raid.txt | 46 <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>]
|
D | thin-provisioning.txt | 102 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>
|
D | kcopyd.txt | 4 Kcopyd provides the ability to copy a range of sectors from one block-device
|
D | zero.txt | 23 TEN_TERABYTES=`expr 10 \* 1024 \* 1024 \* 1024 \* 2` # 10 TB in sectors
|
D | switch.txt | 77 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
|
D | era.txt | 53 sectors
|
D | dm-crypt.txt | 33 then sectors are encrypted according to their offsets (sector 0 uses key0;
|
/linux-4.1.27/Documentation/filesystems/ |
D | ntfs.txt | 252 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 …]
|
D | dax.txt | 30 (expressed in units of 512-byte sectors) to a page frame number (pfn)
|
D | exofs.txt | 10 array of sectors but as a container of objects, each having a length, quota,
|
D | hpfs.txt | 219 1.91 Fixed a bug that chk_sectors failed when sectors were at the end of disk
|
/linux-4.1.27/include/linux/mtd/ |
D | nftl.h | 41 unsigned char sectors; member
|
D | inftl.h | 34 unsigned char sectors; member
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | ps3stor.h | 66 u64 start_sector, u64 sectors,
|
/linux-4.1.27/include/uapi/linux/ |
D | virtio_blk.h | 67 __u8 sectors; member
|
D | hdreg.h | 325 unsigned char sectors; member 405 unsigned short sectors; /* Obsolete, "physical" sectors per track */ member
|
D | msdos_fs.h | 119 __u8 sectors[2]; /* number of sectors */ member
|
D | bcache.h | 326 __u64 sectors; member
|
/linux-4.1.27/drivers/staging/i2o/ |
D | i2o_block.c | 544 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/ |
D | dpti_ioctl.h | 94 unsigned sectors; /* sectors for drives on cntlr. */ member
|
D | sys_info.h | 84 uCHAR sectors; /* Up to 63 */ member
|
/linux-4.1.27/include/trace/events/ |
D | bcache.h | 410 __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/ |
D | mtip32xx.c | 596 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, §ors)) in mtip_dump_identify() [all …]
|
/linux-4.1.27/drivers/s390/block/ |
D | dasd.c | 754 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 …]
|
D | xpram.c | 242 geo->sectors = 16; in xpram_getgeo()
|
D | dasd_eckd.c | 2081 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()
|
D | dasd_diag.c | 481 geo->sectors = 128 >> block->s2b_shift; in dasd_diag_fill_geometry()
|
D | dasd_fba.c | 220 geo->sectors = 128 >> block->s2b_shift; in dasd_fba_fill_geometry()
|
/linux-4.1.27/arch/m68k/emu/ |
D | nfblock.c | 88 geo->sectors = 16; in nfhd_getgeo()
|
/linux-4.1.27/drivers/block/aoe/ |
D | aoeblk.c | 308 geo->sectors = d->geo.sectors; in aoeblk_getgeo()
|
D | aoecmd.c | 1012 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/ |
D | cfi_cmdset_0002.c | 2634 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/ |
D | orion5x-maxtor-shared-storage-2.dts | 64 * accidentally erasing critical flash sectors. We thus define
|
D | orion5x-lacie-ethernet-disk-mini-v2.dts | 85 * accidentally erasing critical flash sectors. We thus define
|
D | orion5x-lacie-d2-network.dts | 104 * accidentally erasing critical flash sectors. We thus define
|
/linux-4.1.27/fs/f2fs/ |
D | segment.h | 101 #define SECTOR_TO_BLOCK(sectors) \ argument 102 (sectors >> F2FS_LOG_SECTORS_PER_BLOCK)
|
/linux-4.1.27/Documentation/arm/ |
D | Setup | 104 Start address in sectors of the ramdisk image on a floppy disk.
|
/linux-4.1.27/drivers/mtd/onenand/ |
D | onenand_base.c | 250 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/ |
D | packet-writing.txt | 80 - Defect management (ie automatic remapping of bad sectors) has not
|
/linux-4.1.27/drivers/message/fusion/ |
D | mptscsih.c | 2094 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/ |
D | hdio.txt | 100 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/ |
D | blkio-controller.txt | 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.1.27/include/linux/mmc/ |
D | card.h | 72 unsigned int sectors; member
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 915 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/ |
D | block.c | 285 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()
|
/linux-4.1.27/Documentation/cris/ |
D | README | 106 block: queued sectors max/low 9109kB/3036kB, 64 slots per queue
|
/linux-4.1.27/drivers/scsi/arcmsr/ |
D | arcmsr_hba.c | 313 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/ |
D | edd.c | 566 static EDD_DEVICE_ATTR(sectors, 0444, edd_show_sectors, edd_has_edd_info);
|
/linux-4.1.27/drivers/mmc/core/ |
D | mmc.c | 375 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/ |
D | layout.h | 57 le16 sectors; /* zero */ member
|
/linux-4.1.27/drivers/scsi/megaraid/ |
D | megaraid_sas_base.c | 2551 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/ |
D | inode.c | 1331 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/ |
D | ChangeLog.ide-cd.1994-2004 | 19 * other than 2k and to move multiple sectors in a
|
D | ChangeLog.ide-tape.1995-2002 | 247 * sectors skipped, not the number of stages.
|
/linux-4.1.27/drivers/block/drbd/ |
D | drbd_worker.c | 1602 (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/ |
D | nand_ecc.txt | 18 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/ |
D | laptop-mode.txt | 147 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/ |
D | mpt2sas_scsih.c | 2146 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/ |
D | mpt3sas_scsih.c | 1813 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/ |
D | boot.txt | 154 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/ |
D | ubd_kern.c | 1336 geo->sectors = 32; in ubd_getgeo()
|
/linux-4.1.27/fs/ext4/ |
D | super.c | 2501 (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/ |
D | mspro_block.c | 240 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo()
|