/block/ |
D | ioctl.c | 21 sector_t start, length; in blkpg_do_ioctl() local 36 if (p.start < 0 || p.length <= 0 || p.start + p.length < 0) in blkpg_do_ioctl() 39 if (!IS_ALIGNED(p.start | p.length, bdev_logical_block_size(bdev))) in blkpg_do_ioctl() 42 start = p.start >> SECTOR_SHIFT; in blkpg_do_ioctl() 47 return bdev_add_partition(disk, p.pno, start, length); in blkpg_do_ioctl() 49 return bdev_resize_partition(disk, p.pno, start, length); in blkpg_do_ioctl() 92 uint64_t start, len; in blk_ioctl_discard() local 105 start = range[0]; in blk_ioctl_discard() 108 if (start & 511) in blk_ioctl_discard() 113 if (start + len > bdev_nr_bytes(bdev)) in blk_ioctl_discard() [all …]
|
D | fops.c | 458 static int blkdev_fsync(struct file *filp, loff_t start, loff_t end, in blkdev_fsync() argument 464 error = file_write_and_wait_range(filp, start, end); in blkdev_fsync() 625 static long blkdev_fallocate(struct file *file, int mode, loff_t start, in blkdev_fallocate() argument 630 loff_t end = start + len - 1; in blkdev_fallocate() 640 if (start >= isize) in blkdev_fallocate() 644 len = isize - start; in blkdev_fallocate() 645 end = start + len - 1; in blkdev_fallocate() 653 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate() 665 error = truncate_bdev_range(bdev, file->f_mode, start, end); in blkdev_fallocate() 669 error = blkdev_issue_zeroout(bdev, start >> SECTOR_SHIFT, in blkdev_fallocate() [all …]
|
D | blk-zoned.c | 373 loff_t start, end; in blkdev_truncate_zone_range() local 380 start = zrange->sector << SECTOR_SHIFT; in blkdev_truncate_zone_range() 383 return truncate_bdev_range(bdev, mode, start, end); in blkdev_truncate_zone_range() 480 if (zone->start == 0) { in blk_revalidate_zone_cb() 489 } else if (zone->start + args->zone_sectors < capacity) { in blk_revalidate_zone_cb() 504 if (zone->start != args->sector) { in blk_revalidate_zone_cb() 506 disk->disk_name, args->sector, zone->start); in blk_revalidate_zone_cb() 532 disk->disk_name, (int)zone->type, zone->start); in blk_revalidate_zone_cb()
|
D | bfq-wf2q.c | 117 !bfq_gt(new_entity->start, st->vtime) in bfq_update_next_in_service() 274 entity->finish = entity->start + in bfq_calc_finish() 283 entity->start, entity->finish, in bfq_calc_finish() 408 entity->min_start = entity->start; in bfq_update_active_node() 790 entity->start = new_st->vtime; in __bfq_entity_update_weight_prio() 927 entity->start += delta; in bfq_update_fin_time_enqueue() 966 entity->start = bfq_gt(min_vstart, entity->finish) ? in __bfq_activate_entity() 974 entity->start = min_vstart; in __bfq_activate_entity() 1047 entity->start = entity->finish; in __bfq_requeue_entity() 1341 if (!bfq_gt(entry->start, vtime)) in bfq_first_active_entity()
|
D | badblocks.c | 399 sector_t start = BB_OFFSET(p[lo]); in badblocks_clear() local 401 p[lo] = BB_MAKE(start, s - start, ack); in badblocks_clear() 444 sector_t start = BB_OFFSET(p[i]); in ack_all_badblocks() local 447 p[i] = BB_MAKE(start, len, 1); in ack_all_badblocks()
|
D | blk-map.c | 391 unsigned long start = kaddr >> PAGE_SHIFT; in bio_map_kern() local 392 const int nr_pages = end - start; in bio_map_kern() 476 unsigned long start = kaddr >> PAGE_SHIFT; in bio_copy_kern() local 484 if (end < start) in bio_copy_kern() 487 nr_pages = end - start; in bio_copy_kern()
|
D | bio-integrity.c | 199 unsigned long start, end; in bio_integrity_prep() local 239 start = ((unsigned long) buf) >> PAGE_SHIFT; in bio_integrity_prep() 240 nr_pages = end - start; in bio_integrity_prep()
|
D | blk-merge.c | 172 unsigned max_sectors = lim->max_sectors, start, end; in get_max_io_size() local 180 start = bio->bi_iter.bi_sector & (pbs - 1); in get_max_io_size() 181 end = (start + max_sectors) & ~(pbs - 1); in get_max_io_size() 182 if (end > start) in get_max_io_size() 183 return end - start; in get_max_io_size()
|
D | blk-settings.c | 619 sector_t start) in blk_stack_limits() argument 648 alignment = queue_limit_alignment_offset(b, start); in blk_stack_limits() 728 alignment = queue_limit_discard_alignment(b, start); in blk_stack_limits()
|
D | blk.h | 445 int bdev_add_partition(struct gendisk *disk, int partno, sector_t start, 448 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start,
|
D | blk-mq-debugfs.c | 73 .start = queue_requeue_list_start, 364 .start = hctx_dispatch_start, 569 .start = ctx_##name##_rq_list_start, \
|
D | blk-iolatency.c | 493 u64 start = bio_issue_time(issue); in iolatency_record_time() local 502 if (now <= start) in iolatency_record_time() 505 req_time = now - start; in iolatency_record_time()
|
D | blk-mq.h | 45 struct blk_mq_ctx *start);
|
D | blk-mq.c | 1744 struct blk_mq_ctx *start) in blk_mq_dequeue_from_ctx() argument 1746 unsigned off = start ? start->index_hw[hctx->type] : 0; in blk_mq_dequeue_from_ctx() 3230 unsigned long start = (unsigned long)page_address(page); in blk_mq_clear_rq_mapping() local 3231 unsigned long end = start + order_to_size(page->private); in blk_mq_clear_rq_mapping() 3238 if (rq_addr >= start && rq_addr < end) { in blk_mq_clear_rq_mapping() 3312 unsigned int start = set->map[i].queue_offset; in hctx_idx_to_type() local 3313 unsigned int end = start + set->map[i].nr_queues; in hctx_idx_to_type() 3315 if (hctx_idx >= start && hctx_idx < end) in hctx_idx_to_type()
|
D | bfq-iosched.h | 155 u64 start, finish; member
|
D | sed-opal.c | 675 u8 *start; in add_token_bytestring() local 677 start = add_bytestring_header(err, cmd, len); in add_token_bytestring() 678 if (!start) in add_token_bytestring() 680 memcpy(start, bytestring, len); in add_token_bytestring()
|
D | mq-deadline.c | 1028 .start = deadline_##name##_fifo_start, \ 1160 .start = deadline_dispatch##prio##_start, \
|
/block/partitions/ |
D | acorn.c | 55 __le32 start; member 95 le32_to_cpu(rr->part[part].start), in riscix_partition() 304 __le32 start; member 372 u32 start = le32_to_cpu(p->start); in adfspart_check_ICS() local 392 if (size > 1 && adfspart_check_ICSLinux(state, start)) { in adfspart_check_ICS() 393 start += 1; in adfspart_check_ICS() 399 put_partition(state, slot++, start, size); in adfspart_check_ICS() 412 __le32 start; member 466 u32 start = le32_to_cpu(p->start); in adfspart_check_POWERTEC() local 470 put_partition(state, slot++, start, size); in adfspart_check_POWERTEC() [all …]
|
D | core.c | 212 static DEVICE_ATTR(start, 0444, part_start_show, NULL); 306 sector_t start, sector_t len, int flags, in add_partition() argument 350 bdev->bd_start_sect = start; in add_partition() 423 static bool partition_overlaps(struct gendisk *disk, sector_t start, in partition_overlaps() argument 433 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps() 434 start + length > part->bd_start_sect) { in partition_overlaps() 444 int bdev_add_partition(struct gendisk *disk, int partno, sector_t start, in bdev_add_partition() argument 461 if (partition_overlaps(disk, start, length, -1)) { in bdev_add_partition() 466 part = add_partition(disk, partno, start, length, in bdev_add_partition() 495 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start, in bdev_resize_partition() argument [all …]
|
D | sgi.c | 41 unsigned int start, blocks; in sgi_partition() local 76 start = be32_to_cpu(p->first_block); in sgi_partition() 78 put_partition(state, slot, start, blocks); in sgi_partition()
|
D | msdos.c | 664 sector_t start = start_sect(p)*sector_size; in msdos_partition() local 679 put_partition(state, slot, start, n); in msdos_partition() 682 parse_extended(state, start, size, disksig); in msdos_partition() 686 put_partition(state, slot, start, size); in msdos_partition()
|
D | ldm.h | 142 u64 start; member
|
D | ldm.c | 598 part->start, part->size); in ldm_create_data_partitions() 972 part->start = get_unaligned_be64(buffer + 0x24 + r_name); in ldm_parse_prt3() 1195 (v->vblk.part.start > vb->vblk.part.start)) { in ldm_ldmdb_add()
|
D | efi.c | 731 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition() local 738 put_partition(state, i+1, start * ssz, size * ssz); in efi_partition()
|
D | ibm.c | 325 geo->start = get_start_sect(bdev); in ibm_partition()
|