Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 9 of 9) sorted by relevance

/block/
Dblk-cgroup-rwstat.h36 unsigned int idx) in blkg_rwstat_read_counter() argument
38 return atomic64_read(&rwstat->aux_cnt[idx]) + in blkg_rwstat_read_counter()
39 percpu_counter_sum_positive(&rwstat->cpu_cnt[idx]); in blkg_rwstat_read_counter()
Dblk-zoned.c164 static int blk_zone_need_reset_cb(struct blk_zone *zone, unsigned int idx, in blk_zone_need_reset_cb() argument
178 set_bit(idx, (unsigned long *)data); in blk_zone_need_reset_cb()
323 static int blkdev_copy_zone_to_user(struct blk_zone *zone, unsigned int idx, in blkdev_copy_zone_to_user() argument
328 if (copy_to_user(&args->zones[idx], zone, sizeof(struct blk_zone))) in blkdev_copy_zone_to_user()
473 static int blk_revalidate_zone_cb(struct blk_zone *zone, unsigned int idx, in blk_revalidate_zone_cb() argument
536 set_bit(idx, args->conv_zones_bitmap); in blk_revalidate_zone_cb()
Dgenhd.c325 int idx; in blk_alloc_ext_minor() local
327 idx = ida_alloc_range(&ext_devt_ida, 0, NR_EXT_DEVT - 1, GFP_KERNEL); in blk_alloc_ext_minor()
328 if (idx == -ENOSPC) in blk_alloc_ext_minor()
330 return idx; in blk_alloc_ext_minor()
353 unsigned long idx; in disk_uevent() local
356 xa_for_each(&disk->part_tbl, idx, part) { in disk_uevent()
714 unsigned long idx; in printk_all_partitions() local
729 xa_for_each(&disk->part_tbl, idx, part) { in printk_all_partitions()
812 unsigned long idx; in show_partition() local
822 xa_for_each(&sgp->part_tbl, idx, part) { in show_partition()
[all …]
Dblk-mq-sched.c229 unsigned short idx = ctx->index_hw[hctx->type]; in blk_mq_next_ctx() local
231 if (++idx == hctx->nr_ctx) in blk_mq_next_ctx()
232 idx = 0; in blk_mq_next_ctx()
234 return hctx->ctxs[idx]; in blk_mq_next_ctx()
Dblk-iocost.c811 int idx = ioc->autop_idx; in ioc_autop_idx() local
812 const struct ioc_params *p = &autop[idx]; in ioc_autop_idx()
825 if (idx < AUTOP_SSD_DFL) in ioc_autop_idx()
830 return idx; in ioc_autop_idx()
840 return idx + 1; in ioc_autop_idx()
849 return idx - 1; in ioc_autop_idx()
854 return idx; in ioc_autop_idx()
913 int idx; in ioc_refresh_params() local
917 idx = ioc_autop_idx(ioc); in ioc_refresh_params()
918 p = &autop[idx]; in ioc_refresh_params()
[all …]
Dblk-core.c216 int idx = (__force int)status; in blk_status_to_errno() local
218 if (WARN_ON_ONCE(idx >= ARRAY_SIZE(blk_errors))) in blk_status_to_errno()
220 return blk_errors[idx].errno; in blk_status_to_errno()
227 int idx = (__force int)status; in print_req_error() local
229 if (WARN_ON_ONCE(idx >= ARRAY_SIZE(blk_errors))) in print_req_error()
235 caller, blk_errors[idx].name, in print_req_error()
Dblk-settings.c917 unsigned long idx; in disk_has_partitions() local
922 xa_for_each(&disk->part_tbl, idx, part) { in disk_has_partitions()
Dbfq-wf2q.c691 unsigned int idx = bfq_class_idx(entity); in bfq_entity_service_tree() local
693 return sched_data->service_tree + idx; in bfq_entity_service_tree()
/block/partitions/
Dcore.c438 unsigned long idx; in partition_overlaps() local
441 xa_for_each_start(&disk->part_tbl, idx, part, 1) { in partition_overlaps()
548 unsigned long idx; in blk_drop_partitions() local
552 xa_for_each_start(&disk->part_tbl, idx, part, 1) in blk_drop_partitions()