Searched refs:idx (Results 1 – 8 of 8) sorted by relevance
/block/ |
D | bio.c | 148 unsigned int bvec_nr_vecs(unsigned short idx) in bvec_nr_vecs() argument 150 return bvec_slabs[--idx].nr_vecs; in bvec_nr_vecs() 153 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned int idx) in bvec_free() argument 155 if (!idx) in bvec_free() 157 idx--; in bvec_free() 159 BIO_BUG_ON(idx >= BVEC_POOL_NR); in bvec_free() 161 if (idx == BVEC_POOL_MAX) { in bvec_free() 164 struct biovec_slab *bvs = bvec_slabs + idx; in bvec_free() 170 struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx, in bvec_alloc() argument 180 *idx = 0; in bvec_alloc() [all …]
|
D | blk-zoned.c | 220 static int blkdev_copy_zone_to_user(struct blk_zone *zone, unsigned int idx, in blkdev_copy_zone_to_user() argument 225 if (copy_to_user(&args->zones[idx], zone, sizeof(struct blk_zone))) in blkdev_copy_zone_to_user() 353 static int blk_revalidate_zone_cb(struct blk_zone *zone, unsigned int idx, in blk_revalidate_zone_cb() argument 404 set_bit(idx, args->conv_zones_bitmap); in blk_revalidate_zone_cb()
|
D | genhd.c | 171 piter->idx = ptbl->len - 1; in disk_part_iter_init() 173 piter->idx = 0; in disk_part_iter_init() 175 piter->idx = 1; in disk_part_iter_init() 219 for (; piter->idx != end; piter->idx += inc) { in disk_part_iter_next() 222 part = rcu_dereference(ptbl->part[piter->idx]); in disk_part_iter_next() 228 piter->idx == 0)) in disk_part_iter_next() 233 piter->idx += inc; in disk_part_iter_next() 491 int idx; in blk_alloc_devt() local 503 idx = idr_alloc(&ext_devt_idr, part, 0, NR_EXT_DEVT, GFP_NOWAIT); in blk_alloc_devt() 507 if (idx < 0) in blk_alloc_devt() [all …]
|
D | bio-integrity.c | 59 unsigned long idx = 0; in bio_integrity_alloc() local 61 bip->bip_vec = bvec_alloc(gfp_mask, nr_vecs, &idx, in bio_integrity_alloc() 65 bip->bip_max_vcnt = bvec_nr_vecs(idx); in bio_integrity_alloc() 66 bip->bip_slab = idx; in bio_integrity_alloc()
|
D | blk-iocost.c | 721 int idx = ioc->autop_idx; in ioc_autop_idx() local 722 const struct ioc_params *p = &autop[idx]; in ioc_autop_idx() 735 if (idx < AUTOP_SSD_DFL) in ioc_autop_idx() 740 return idx; in ioc_autop_idx() 751 return idx + 1; in ioc_autop_idx() 760 return idx - 1; in ioc_autop_idx() 765 return idx; in ioc_autop_idx() 819 int idx; in ioc_refresh_params() local 823 idx = ioc_autop_idx(ioc); in ioc_refresh_params() 824 p = &autop[idx]; in ioc_refresh_params() [all …]
|
D | blk-mq-sched.c | 121 unsigned short idx = ctx->index_hw[hctx->type]; in blk_mq_next_ctx() local 123 if (++idx == hctx->nr_ctx) in blk_mq_next_ctx() 124 idx = 0; in blk_mq_next_ctx() 126 return hctx->ctxs[idx]; in blk_mq_next_ctx()
|
D | blk-core.c | 206 int idx = (__force int)status; in blk_status_to_errno() local 208 if (WARN_ON_ONCE(idx >= ARRAY_SIZE(blk_errors))) in blk_status_to_errno() 210 return blk_errors[idx].errno; in blk_status_to_errno() 217 int idx = (__force int)status; in print_req_error() local 219 if (WARN_ON_ONCE(idx >= ARRAY_SIZE(blk_errors))) in print_req_error() 225 caller, blk_errors[idx].name, in print_req_error()
|
D | bfq-wf2q.c | 697 unsigned int idx = bfq_class_idx(entity); in bfq_entity_service_tree() local 699 return sched_data->service_tree + idx; in bfq_entity_service_tree()
|