Home
last modified time | relevance | path

Searched refs:end_sector (Results 1 – 13 of 13) sorted by relevance

/drivers/scsi/
Dscsicam.c130 int cyl, ext_cyl, end_head, end_cyl, end_sector; in scsi_partsize() local
150 end_cyl = largest->end_cyl + ((largest->end_sector & 0xc0) << 2); in scsi_partsize()
152 end_sector = largest->end_sector & 0x3f; in scsi_partsize()
154 if (end_head + 1 == 0 || end_sector == 0) in scsi_partsize()
159 end_head, end_cyl, end_sector); in scsi_partsize()
162 physical_end = end_cyl * (end_head + 1) * end_sector + in scsi_partsize()
163 end_head * end_sector + end_sector; in scsi_partsize()
170 ext_cyl = (logical_end - (end_head * end_sector + end_sector)) in scsi_partsize()
171 / (end_head + 1) / end_sector; in scsi_partsize()
172 ext_physical_end = ext_cyl * (end_head + 1) * end_sector + in scsi_partsize()
[all …]
DBusLogic.c3425 part_end_sector = part_entry->end_sector & 0x3F; in blogic_diskparam()
3443 part_end_sector = part1_entry->end_sector & 0x3F; in blogic_diskparam()
Dscsi_debug.c3942 pp->end_sector = (end_sec % sdebug_sectors_per) + 1; in sdebug_build_parts()
/drivers/md/
Dlinear.c46 if (sector < conf->disks[mid].end_sector) in which_dev()
147 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
150 conf->disks[i].end_sector = in linear_conf()
151 conf->disks[i-1].end_sector + in linear_conf()
252 sector_t start_sector, end_sector, data_offset; in linear_make_request() local
261 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
262 end_sector = tmp_dev->end_sector; in linear_make_request()
266 if (unlikely(bio->bi_iter.bi_sector >= end_sector || in linear_make_request()
270 if (unlikely(bio_end_sector(bio) > end_sector)) { in linear_make_request()
274 split = bio_split(bio, end_sector - in linear_make_request()
Ddm-stats.c588 sector_t bi_sector, sector_t end_sector, in __dm_stat_bio() argument
595 if (end_sector <= s->start || bi_sector >= s->end) in __dm_stat_bio()
599 todo = end_sector - s->start; in __dm_stat_bio()
602 todo = end_sector - bi_sector; in __dm_stat_bio()
604 if (unlikely(end_sector > s->end)) in __dm_stat_bio()
605 todo -= (end_sector - s->end); in __dm_stat_bio()
631 sector_t end_sector; in dm_stats_account_io() local
638 end_sector = bi_sector + bi_sectors; in dm_stats_account_io()
651 ACCESS_ONCE(last->last_sector) = end_sector; in dm_stats_account_io()
666 __dm_stat_bio(s, bi_rw, bi_sector, end_sector, end, duration_jiffies, stats_aux); in dm_stats_account_io()
Ddm-log-writes.c106 sector_t end_sector; member
366 if (!lc->end_sector) in log_writes_kthread()
367 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread()
368 if (lc->end_sector && in log_writes_kthread()
369 lc->next_sector >= lc->end_sector) { in log_writes_kthread()
470 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr()
Dlinear.h6 sector_t end_sector; member
Draid5.c4829 sector_t end_sector; in raid5_read_one_chunk() local
4854 end_sector = bio_end_sector(align_bi); in raid5_read_one_chunk()
4858 rdev->recovery_offset < end_sector) { in raid5_read_one_chunk()
4863 rdev->recovery_offset >= end_sector))) in raid5_read_one_chunk()
/drivers/nvdimm/
Dcore.c453 sector_t start_sector, end_sector; in __add_badblock_range() local
458 end_sector = div_u64_rem(ns_offset + len, sector_size, &rem); in __add_badblock_range()
460 end_sector++; in __add_badblock_range()
461 num_sectors = end_sector - start_sector; in __add_badblock_range()
/drivers/block/
Dfloppy.c2491 int end_sector; in virtualdmabug_workaround() local
2497 end_sector = SECTOR + hard_sectors - 1; in virtualdmabug_workaround()
2498 if (end_sector > SECT_PER_TRACK) { in virtualdmabug_workaround()
2500 end_sector, SECT_PER_TRACK); in virtualdmabug_workaround()
2503 SECT_PER_TRACK = end_sector; in virtualdmabug_workaround()
/drivers/scsi/aacraid/
Dlinit.c353 end_sec = entry->end_sector & 0x3f; in aac_biosparm()
373 end_sec = first->end_sector & 0x3f; in aac_biosparm()
/drivers/memstick/core/
Dmspro_block.c112 unsigned char end_sector; member
428 x_mbr->end_sector); in mspro_block_attr_show_mbr()
/drivers/cdrom/
Dcdrom.c1833 layer->end_sector = base[9] << 16 | base[10] << 8 | base[11]; in dvd_read_physical()