Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/
H A Dscsicam.c62 int cyl, ext_cyl, end_head, end_cyl, end_sector; in scsi_partsize() local
90 end_cyl = largest->end_cyl + ((largest->end_sector & 0xc0) << 2); in scsi_partsize()
92 end_sector = largest->end_sector & 0x3f; in scsi_partsize()
94 if (end_head + 1 == 0 || end_sector == 0) in scsi_partsize()
99 end_head, end_cyl, end_sector); in scsi_partsize()
102 physical_end = end_cyl * (end_head + 1) * end_sector + in scsi_partsize()
103 end_head * end_sector + end_sector; in scsi_partsize()
110 ext_cyl = (logical_end - (end_head * end_sector + end_sector)) in scsi_partsize()
111 / (end_head + 1) / end_sector; in scsi_partsize()
112 ext_physical_end = ext_cyl * (end_head + 1) * end_sector + in scsi_partsize()
[all …]
H A DBusLogic.c3279 part_end_sector = part_entry->end_sector & 0x3F; in blogic_diskparam()
3297 part_end_sector = part1_entry->end_sector & 0x3F; in blogic_diskparam()
H A Dscsi_debug.c5444 pp->end_sector = (end_sec % sdebug_sectors_per) + 1; in sdebug_build_parts()
/openbmc/linux/drivers/md/
H A Dmd-linear.c40 if (sector < conf->disks[mid].end_sector) in which_dev()
108 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
111 conf->disks[i].end_sector = in linear_conf()
112 conf->disks[i-1].end_sector + in linear_conf()
210 sector_t start_sector, end_sector, data_offset; in linear_make_request() local
218 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
219 end_sector = tmp_dev->end_sector; in linear_make_request()
222 if (unlikely(bio_sector >= end_sector || in linear_make_request()
232 if (unlikely(bio_end_sector(bio) > end_sector)) { in linear_make_request()
234 struct bio *split = bio_split(bio, end_sector - bio_sector, in linear_make_request()
H A Ddm-stats.c626 sector_t bi_sector, sector_t end_sector, in __dm_stat_bio() argument
633 if (end_sector <= s->start || bi_sector >= s->end) in __dm_stat_bio()
637 todo = end_sector - s->start; in __dm_stat_bio()
640 todo = end_sector - bi_sector; in __dm_stat_bio()
642 if (unlikely(end_sector > s->end)) in __dm_stat_bio()
643 todo -= (end_sector - s->end); in __dm_stat_bio()
669 sector_t end_sector; in dm_stats_account_io() local
677 end_sector = bi_sector + bi_sectors; in dm_stats_account_io()
690 WRITE_ONCE(last->last_sector, end_sector); in dm_stats_account_io()
705 __dm_stat_bio(s, bi_rw, bi_sector, end_sector, end, duration_jiffies, stats_aux); in dm_stats_account_io()
H A Dmd-linear.h7 sector_t end_sector; member
H A Ddm-log-writes.c112 sector_t end_sector; member
458 if (!lc->end_sector) in log_writes_kthread()
459 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread()
460 if (lc->end_sector && in log_writes_kthread()
461 lc->next_sector >= lc->end_sector) { in log_writes_kthread()
568 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr()
H A Ddm-ebs-target.c50 sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio); in __nr_blocks() local
52 return __sector_to_block(ec, end_sector) + (__block_mod(end_sector, ec->u_bs) ? 1 : 0); in __nr_blocks()
H A Draid5.c5504 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local
5515 end_sector = sector + bio_sectors(raid_bio); in raid5_read_one_chunk()
5523 rdev->recovery_offset < end_sector) { in raid5_read_one_chunk()
5529 rdev->recovery_offset >= end_sector)) in raid5_read_one_chunk()
/openbmc/linux/drivers/nvdimm/
H A Dbadrange.c188 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()
/openbmc/linux/block/
H A Dblk-zoned.c256 sector_t end_sector = sector + nr_sectors; in blkdev_zone_mgmt() local
269 if (end_sector <= sector || end_sector > capacity) in blkdev_zone_mgmt()
277 if (!bdev_is_zone_start(bdev, nr_sectors) && end_sector != capacity) in blkdev_zone_mgmt()
292 while (sector < end_sector) { in blkdev_zone_mgmt()
/openbmc/qemu/hw/block/
H A Dhd-geometry.c47 uint8_t end_sector; /* end sector */ member
80 sectors = p->end_sector & 63; in guess_disk_lchs()
/openbmc/u-boot/disk/
H A Dpart_dos.h26 unsigned char end_sector; /* end sector */ member
/openbmc/linux/include/linux/
H A Dmsdos_partition.h14 u8 end_sector; /* end sector */ member
/openbmc/linux/block/partitions/
H A Defi.h100 u8 end_sector; /* unused by EFI, pt end in CHS */ member
/openbmc/u-boot/include/
H A Dpart_efi.h69 u8 end_sector; /* end sector */ member
/openbmc/qemu/block/
H A Dquorum.c199 int64_t end_sector = DIV_ROUND_UP(offset + bytes, BDRV_SECTOR_SIZE); in quorum_report_bad() local
206 end_sector - start_sector); in quorum_report_bad()
213 int64_t end_sector = DIV_ROUND_UP(acb->offset + acb->bytes, in quorum_report_failure() local
217 end_sector - start_sector); in quorum_report_failure()
H A Dvmdk.c147 int64_t end_sector; member
588 extent->end_sector = (*(extent - 1)).end_sector + extent->sectors; in vmdk_add_extent()
590 extent->end_sector = extent->sectors; in vmdk_add_extent()
592 bs->total_sectors = extent->end_sector; in vmdk_add_extent()
1605 offset -= (extent->end_sector - extent->sectors) * SECTOR_SIZE; in get_cluster_offset()
1759 if (sector_num < extent->end_sector) { in find_extent()
1774 (extent->end_sector - extent->sectors) * BDRV_SECTOR_SIZE; in vmdk_find_offset_in_cluster()
1849 offset + n_bytes != extent->end_sector * SECTOR_SIZE)) in vmdk_write_extent()
H A Dio.c2018 int64_t end_sector = DIV_ROUND_UP(offset + bytes, BDRV_SECTOR_SIZE); in bdrv_co_write_req_finish() local
2034 end_sector > bs->total_sectors) && in bdrv_co_write_req_finish()
2036 bs->total_sectors = end_sector; in bdrv_co_write_req_finish()
2038 bdrv_dirty_bitmap_truncate(bs, end_sector << BDRV_SECTOR_BITS); in bdrv_co_write_req_finish()
/openbmc/qemu/tests/qtest/
H A Dhd-geo-test.c412 uint32_t end_sector; member
453 g_assert(mbr[i].end_sector < 64); in create_qcow2_with_mbr()
456 sector = mbr[i].end_sector + ((mbr[i].end_cyl & 0x300) >> 2); in create_qcow2_with_mbr()
/openbmc/linux/include/uapi/linux/
H A Dcdrom.h561 __u32 end_sector; member
/openbmc/linux/drivers/memstick/core/
H A Dmspro_block.c108 unsigned char end_sector; member
360 rc += sysfs_emit_at(buffer, rc, "end sector: %x\n", x_mbr->end_sector); in mspro_block_attr_show_mbr()
/openbmc/linux/drivers/block/
H A Dfloppy.c2510 int end_sector; in virtualdmabug_workaround() local
2516 end_sector = raw_cmd->cmd[SECTOR] + hard_sectors - 1; in virtualdmabug_workaround()
2517 if (end_sector > raw_cmd->cmd[SECT_PER_TRACK]) { in virtualdmabug_workaround()
2519 end_sector, raw_cmd->cmd[SECT_PER_TRACK]); in virtualdmabug_workaround()
2522 raw_cmd->cmd[SECT_PER_TRACK] = end_sector; in virtualdmabug_workaround()
/openbmc/linux/drivers/scsi/aacraid/
H A Dlinit.c339 end_sec = entry->end_sector & 0x3f; in aac_biosparm()
359 end_sec = first->end_sector & 0x3f; in aac_biosparm()
/openbmc/linux/drivers/cdrom/
H A Dcdrom.c1807 layer->end_sector = base[9] << 16 | base[10] << 8 | base[11]; in dvd_read_physical()