/linux/drivers/scsi/ |
A D | scsicam.c | 64 int cyl, ext_cyl, end_head, end_cyl, end_sector; in scsi_partsize() local 94 end_sector = largest->end_sector & 0x3f; in scsi_partsize() 96 if (end_head + 1 == 0 || end_sector == 0) in scsi_partsize() 101 end_head, end_cyl, end_sector); in scsi_partsize() 104 physical_end = end_cyl * (end_head + 1) * end_sector + in scsi_partsize() 105 end_head * end_sector + end_sector; in scsi_partsize() 112 ext_cyl = (logical_end - (end_head * end_sector + end_sector)) in scsi_partsize() 113 / (end_head + 1) / end_sector; in scsi_partsize() 115 end_head * end_sector + end_sector; in scsi_partsize() 125 geom[1] = end_sector; in scsi_partsize() [all …]
|
A D | BusLogic.c | 3270 part_end_sector = part_entry->end_sector & 0x3F; in blogic_diskparam() 3288 part_end_sector = part1_entry->end_sector & 0x3F; in blogic_diskparam()
|
A D | scsi_debug.c | 5338 pp->end_sector = (end_sec % sdebug_sectors_per) + 1; in sdebug_build_parts()
|
/linux/drivers/md/ |
A D | md-linear.c | 40 if (sector < conf->disks[mid].end_sector) in which_dev() 117 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf() 120 conf->disks[i].end_sector = in linear_conf() 121 conf->disks[i-1].end_sector + in linear_conf() 220 sector_t start_sector, end_sector, data_offset; in linear_make_request() local 228 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request() 229 end_sector = tmp_dev->end_sector; in linear_make_request() 232 if (unlikely(bio_sector >= end_sector || in linear_make_request() 241 if (unlikely(bio_end_sector(bio) > end_sector)) { in linear_make_request() 243 struct bio *split = bio_split(bio, end_sector - bio_sector, in linear_make_request()
|
A D | dm-stats.c | 585 sector_t bi_sector, sector_t end_sector, in __dm_stat_bio() argument 592 if (end_sector <= s->start || bi_sector >= s->end) in __dm_stat_bio() 596 todo = end_sector - s->start; in __dm_stat_bio() 599 todo = end_sector - bi_sector; in __dm_stat_bio() 601 if (unlikely(end_sector > s->end)) in __dm_stat_bio() 602 todo -= (end_sector - s->end); in __dm_stat_bio() 628 sector_t end_sector; in dm_stats_account_io() local 635 end_sector = bi_sector + bi_sectors; in dm_stats_account_io() 648 WRITE_ONCE(last->last_sector, end_sector); in dm_stats_account_io() 663 __dm_stat_bio(s, bi_rw, bi_sector, end_sector, end, duration_jiffies, stats_aux); in dm_stats_account_io()
|
A D | md-linear.h | 7 sector_t end_sector; member
|
A D | dm-log-writes.c | 111 sector_t end_sector; member 480 if (!lc->end_sector) in log_writes_kthread() 481 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread() 482 if (lc->end_sector && in log_writes_kthread() 483 lc->next_sector >= lc->end_sector) { in log_writes_kthread() 590 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr()
|
A D | dm-ebs-target.c | 49 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks() local 51 return __sector_to_block(ec, end_sector) + (__block_mod(end_sector, ec->u_bs) ? 1 : 0); in __nr_blocks()
|
A D | raid5.c | 5401 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local 5413 end_sector = bio_end_sector(raid_bio); in raid5_read_one_chunk() 5421 rdev->recovery_offset < end_sector) { in raid5_read_one_chunk() 5427 rdev->recovery_offset >= end_sector)) in raid5_read_one_chunk()
|
/linux/drivers/nvdimm/ |
A D | badrange.c | 188 sector_t start_sector, end_sector; in __add_badblock_range() local 193 end_sector = div_u64_rem(ns_offset + len, sector_size, &rem); in __add_badblock_range() 195 end_sector++; in __add_badblock_range() 196 num_sectors = end_sector - start_sector; in __add_badblock_range()
|
/linux/block/ |
A D | blk-zoned.c | 272 sector_t end_sector = sector + nr_sectors; in blkdev_zone_mgmt() local 285 if (end_sector <= sector || end_sector > capacity) in blkdev_zone_mgmt() 293 if ((nr_sectors & (zone_sectors - 1)) && end_sector != capacity) in blkdev_zone_mgmt() 308 while (sector < end_sector) { in blkdev_zone_mgmt()
|
/linux/include/linux/ |
A D | msdos_partition.h | 14 u8 end_sector; /* end sector */ member
|
/linux/block/partitions/ |
A D | efi.h | 101 u8 end_sector; /* unused by EFI, pt end in CHS */ member
|
/linux/include/uapi/linux/ |
A D | cdrom.h | 561 __u32 end_sector; member
|
/linux/drivers/block/ |
A D | floppy.c | 2514 int end_sector; in virtualdmabug_workaround() local 2520 end_sector = raw_cmd->cmd[SECTOR] + hard_sectors - 1; in virtualdmabug_workaround() 2521 if (end_sector > raw_cmd->cmd[SECT_PER_TRACK]) { in virtualdmabug_workaround() 2523 end_sector, raw_cmd->cmd[SECT_PER_TRACK]); in virtualdmabug_workaround() 2526 raw_cmd->cmd[SECT_PER_TRACK] = end_sector; in virtualdmabug_workaround()
|
/linux/drivers/memstick/core/ |
A D | mspro_block.c | 108 unsigned char end_sector; member 424 x_mbr->end_sector); in mspro_block_attr_show_mbr()
|
/linux/drivers/scsi/aacraid/ |
A D | linit.c | 341 end_sec = entry->end_sector & 0x3f; in aac_biosparm() 361 end_sec = first->end_sector & 0x3f; in aac_biosparm()
|
/linux/drivers/cdrom/ |
A D | cdrom.c | 1828 layer->end_sector = base[9] << 16 | base[10] << 8 | base[11]; in dvd_read_physical()
|