Home
last modified time | relevance | path

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

12

/block/
Dioctl.c21 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 …]
Dfops.c458 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 …]
Dblk-zoned.c373 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()
Dbfq-wf2q.c117 !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()
Dbadblocks.c399 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()
Dblk-map.c391 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()
Dbio-integrity.c199 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()
Dblk-merge.c172 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()
Dblk-settings.c619 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()
Dblk.h445 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,
Dblk-mq-debugfs.c73 .start = queue_requeue_list_start,
364 .start = hctx_dispatch_start,
569 .start = ctx_##name##_rq_list_start, \
Dblk-iolatency.c493 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()
Dblk-mq.h45 struct blk_mq_ctx *start);
Dblk-mq.c1744 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()
Dbfq-iosched.h155 u64 start, finish; member
Dsed-opal.c675 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()
Dmq-deadline.c1028 .start = deadline_##name##_fifo_start, \
1160 .start = deadline_dispatch##prio##_start, \
/block/partitions/
Dacorn.c55 __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 …]
Dcore.c212 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 …]
Dsgi.c41 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()
Dmsdos.c664 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()
Dldm.h142 u64 start; member
Dldm.c598 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()
Defi.c731 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()
Dibm.c325 geo->start = get_start_sect(bdev); in ibm_partition()

12