/linux-6.1.9/drivers/scsi/ |
D | scsicam.c | 62 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 …]
|
D | BusLogic.c | 3281 part_end_sector = part_entry->end_sector & 0x3F; in blogic_diskparam() 3299 part_end_sector = part1_entry->end_sector & 0x3F; in blogic_diskparam()
|
D | scsi_debug.c | 5532 pp->end_sector = (end_sec % sdebug_sectors_per) + 1; in sdebug_build_parts()
|
/linux-6.1.9/drivers/md/ |
D | md-linear.c | 40 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() 231 if (unlikely(bio_end_sector(bio) > end_sector)) { in linear_make_request() 233 struct bio *split = bio_split(bio, end_sector - bio_sector, in linear_make_request()
|
D | dm-stats.c | 616 sector_t bi_sector, sector_t end_sector, in __dm_stat_bio() argument 623 if (end_sector <= s->start || bi_sector >= s->end) in __dm_stat_bio() 627 todo = end_sector - s->start; in __dm_stat_bio() 630 todo = end_sector - bi_sector; in __dm_stat_bio() 632 if (unlikely(end_sector > s->end)) in __dm_stat_bio() 633 todo -= (end_sector - s->end); in __dm_stat_bio() 659 sector_t end_sector; in dm_stats_account_io() local 667 end_sector = bi_sector + bi_sectors; in dm_stats_account_io() 680 WRITE_ONCE(last->last_sector, end_sector); in dm_stats_account_io() 695 __dm_stat_bio(s, bi_rw, bi_sector, end_sector, end, duration_jiffies, stats_aux); in dm_stats_account_io()
|
D | md-linear.h | 7 sector_t end_sector; member
|
D | dm-log-writes.c | 111 sector_t end_sector; member 457 if (!lc->end_sector) in log_writes_kthread() 458 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread() 459 if (lc->end_sector && in log_writes_kthread() 460 lc->next_sector >= lc->end_sector) { in log_writes_kthread() 567 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr()
|
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()
|
D | raid5.c | 5507 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local 5519 end_sector = bio_end_sector(raid_bio); in raid5_read_one_chunk() 5527 rdev->recovery_offset < end_sector) { in raid5_read_one_chunk() 5533 rdev->recovery_offset >= end_sector)) in raid5_read_one_chunk()
|
/linux-6.1.9/drivers/nvdimm/ |
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-6.1.9/block/ |
D | blk-zoned.c | 262 sector_t end_sector = sector + nr_sectors; in blkdev_zone_mgmt() local 275 if (end_sector <= sector || end_sector > capacity) in blkdev_zone_mgmt() 283 if ((nr_sectors & (zone_sectors - 1)) && end_sector != capacity) in blkdev_zone_mgmt() 298 while (sector < end_sector) { in blkdev_zone_mgmt()
|
/linux-6.1.9/include/linux/ |
D | msdos_partition.h | 14 u8 end_sector; /* end sector */ member
|
/linux-6.1.9/block/partitions/ |
D | efi.h | 100 u8 end_sector; /* unused by EFI, pt end in CHS */ member
|
/linux-6.1.9/include/uapi/linux/ |
D | cdrom.h | 561 __u32 end_sector; member
|
/linux-6.1.9/drivers/block/ |
D | floppy.c | 2510 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()
|
/linux-6.1.9/drivers/memstick/core/ |
D | mspro_block.c | 108 unsigned char end_sector; member 385 x_mbr->end_sector); in mspro_block_attr_show_mbr()
|
/linux-6.1.9/drivers/scsi/aacraid/ |
D | linit.c | 340 end_sec = entry->end_sector & 0x3f; in aac_biosparm() 360 end_sec = first->end_sector & 0x3f; in aac_biosparm()
|
/linux-6.1.9/drivers/cdrom/ |
D | cdrom.c | 1824 layer->end_sector = base[9] << 16 | base[10] << 8 | base[11]; in dvd_read_physical()
|