/kernel/linux/linux-5.10/block/partitions/ |
H A D | amiga.c | 42 u64 start_sect, nr_sects; in amiga_partition() local 154 start_sect = ((u64) lo_cyl * cylblk); in amiga_partition() 164 if ((start_sect + nr_sects) > UINT_MAX) { in amiga_partition() 167 start_sect, start_sect + nr_sects); in amiga_partition() 170 if (check_add_overflow(start_sect, nr_sects, &end_sect)) { in amiga_partition() 173 start_sect, end_sect); in amiga_partition() 179 put_partition(state,slot++,start_sect,nr_sects); in amiga_partition()
|
H A D | acorn.c | 119 __le32 start_sect; member 147 le32_to_cpu(linuxp->start_sect), in linux_partition() 252 unsigned long start_sect, nr_sects, sectscyl, heads; in adfspart_check_ADFS() local 271 start_sect = ((data[0x1fe] << 8) + data[0x1fd]) * sectscyl; in adfspart_check_ADFS() 278 nr_sects = (state->bdev->bd_inode->i_size >> 9) - start_sect; in adfspart_check_ADFS() 280 if (start_sect) { in adfspart_check_ADFS() 285 slot = riscix_partition(state, start_sect, slot, in adfspart_check_ADFS() 291 slot = linux_partition(state, start_sect, slot, in adfspart_check_ADFS()
|
H A D | msdos.c | 36 * the nr_sects and start_sect partition table entries are 46 static inline sector_t start_sect(struct msdos_partition *p) in start_sect() function 48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect() 180 offs = start_sect(p)*sector_size; in parse_extended() 214 this_sector = first_sector + start_sect(p) * sector_size; in parse_extended() 441 __le32 start_sect; /* starting sector */ member 512 le32_to_cpu(p->start_sect), in parse_unixware() 558 start_sect(p), nr_sects(p)); in parse_minix() 662 sector_t start = start_sect(p)*sector_size; in msdos_partition() 710 subtypes[n].parse(state, start_sect( in msdos_partition() [all...] |
H A D | core.c | 188 return sprintf(buf, "%llu\n",(unsigned long long)p->start_sect); in part_start_show() 205 p->start_sect)); in part_alignment_offset_show() 215 p->start_sect)); in part_discard_alignment_show() 297 part->start_sect = 0; in hd_struct_free_work() 421 p->start_sect = start; in add_partition() 514 start >= part->start_sect + part->nr_sects || in partition_overlaps() 515 start + length <= part->start_sect) in partition_overlaps() 607 if (start != part->start_sect) in bdev_resize_partition()
|
/kernel/linux/linux-6.6/block/partitions/ |
H A D | amiga.c | 42 u64 start_sect, nr_sects; in amiga_partition() local 153 start_sect = ((u64) lo_cyl * cylblk); in amiga_partition() 163 if ((start_sect + nr_sects) > UINT_MAX) { in amiga_partition() 166 start_sect, start_sect + nr_sects); in amiga_partition() 169 if (check_add_overflow(start_sect, nr_sects, &end_sect)) { in amiga_partition() 172 start_sect, end_sect); in amiga_partition() 178 put_partition(state,slot++,start_sect,nr_sects); in amiga_partition()
|
H A D | acorn.c | 119 __le32 start_sect; member 147 le32_to_cpu(linuxp->start_sect), in linux_partition() 252 unsigned long start_sect, nr_sects, sectscyl, heads; in adfspart_check_ADFS() local 271 start_sect = ((data[0x1fe] << 8) + data[0x1fd]) * sectscyl; in adfspart_check_ADFS() 278 nr_sects = get_capacity(state->disk) - start_sect; in adfspart_check_ADFS() 280 if (start_sect) { in adfspart_check_ADFS() 285 riscix_partition(state, start_sect, slot, in adfspart_check_ADFS() 291 linux_partition(state, start_sect, slot, in adfspart_check_ADFS()
|
H A D | msdos.c | 36 * the nr_sects and start_sect partition table entries are 46 static inline sector_t start_sect(struct msdos_partition *p) in start_sect() function 48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect() 181 offs = start_sect(p)*sector_size; in parse_extended() 215 this_sector = first_sector + start_sect(p) * sector_size; in parse_extended() 442 __le32 start_sect; /* starting sector */ member 513 le32_to_cpu(p->start_sect), in parse_unixware() 559 start_sect(p), nr_sects(p)); in parse_minix() 664 sector_t start = start_sect(p)*sector_size; in msdos_partition() 712 subtypes[n].parse(state, start_sect( in msdos_partition() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | pstore_blk.h | 14 * @start_sect: start sector to block device 22 typedef int (*pstore_blk_panic_write_op)(const char *buf, sector_t start_sect, 36 * @start_sect: Starting sector on @devt. 46 sector_t start_sect; member
|
H A D | msdos_partition.h | 16 __le32 start_sect; /* starting sector counting from 0 */ member
|
H A D | genhd.h | 54 sector_t start_sect; member 327 return bdev->bd_part->start_sect; in get_start_sect()
|
H A D | blkdev.h | 1511 bdev->bd_part->start_sect); in bdev_alignment_offset() 1568 bdev->bd_part->start_sect); in bdev_discard_alignment()
|
/kernel/linux/linux-5.10/fs/pstore/ |
H A D | blk.c | 107 sector_t start_sect; member 268 info->start_sect = get_start_sect(bdev); in psblk_get_bdev() 406 info->start_sect = binfo.start_sect; in __register_pstore_blk()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | msdos_partition.h | 16 __le32 start_sect; /* starting sector counting from 0 */ member
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsicam.c | 107 logical_end = get_unaligned_le32(&largest->start_sect) in scsi_partsize()
|
H A D | scsi_debug.c | 5344 pp->start_sect = cpu_to_le32(start_sec); in sdebug_build_parts()
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsicam.c | 106 logical_end = get_unaligned_le32(&largest->start_sect) in scsi_partsize()
|
H A D | scsi_debug.c | 5446 pp->start_sect = cpu_to_le32(start_sec); in sdebug_build_parts()
|
/kernel/linux/linux-5.10/drivers/dax/ |
H A D | super.c | 49 sector_t start_sect = bdev ? get_start_sect(bdev) : 0; in bdev_dax_pgoff() local 50 phys_addr_t phys_off = (start_sect + sector) * 512; in bdev_dax_pgoff()
|
/kernel/linux/linux-6.6/drivers/nvme/target/ |
H A D | zns.c | 274 sector_t start_sect = nvmet_lba_to_sect(req->ns, req->cmd->zmr.slba); in nvmet_bdev_zone_zmgmt_recv_work() local 298 ret = blkdev_report_zones(req->ns->bdev, start_sect, req_slba_nr_zones, in nvmet_bdev_zone_zmgmt_recv_work()
|
/kernel/linux/linux-5.10/block/ |
H A D | blk-lib.c | 68 part_offset = bdev->bd_part->start_sect; in __blkdev_issue_discard()
|
H A D | blk-core.c | 757 bio->bi_iter.bi_sector += p->start_sect; in blk_partition_remap() 759 bio->bi_iter.bi_sector - p->start_sect); in blk_partition_remap()
|
H A D | genhd.c | 298 return part->start_sect <= sector && in sector_in_part() 299 sector < part->start_sect + part_nr_sects_read(part); in sector_in_part()
|
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | blktrace.c | 467 bt->start_lba = part->start_sect; in blk_trace_setup_lba() 468 bt->end_lba = part->start_sect + part->nr_sects; in blk_trace_setup_lba()
|