Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 6 of 6) sorted by relevance

/block/
Dkyber-iosched.c542 int nr; in rq_clear_domain_token() local
544 nr = rq_get_domain_token(rq); in rq_clear_domain_token()
545 if (nr != -1) { in rq_clear_domain_token()
547 sbitmap_queue_clear(&kqd->domain_tokens[sched_domain], nr, in rq_clear_domain_token()
710 int nr; in kyber_get_domain_token() local
712 nr = __sbitmap_queue_get(domain_tokens); in kyber_get_domain_token()
719 if (nr < 0 && list_empty_careful(&wait->wait.entry)) { in kyber_get_domain_token()
729 nr = __sbitmap_queue_get(domain_tokens); in kyber_get_domain_token()
739 if (nr >= 0 && !list_empty_careful(&wait->wait.entry)) { in kyber_get_domain_token()
746 return nr; in kyber_get_domain_token()
[all …]
Dblk-sysfs.c68 unsigned long nr; in queue_requests_store() local
74 ret = queue_var_store(&nr, page, count); in queue_requests_store()
78 if (nr < BLKDEV_MIN_RQ) in queue_requests_store()
79 nr = BLKDEV_MIN_RQ; in queue_requests_store()
81 err = blk_mq_update_nr_requests(q, nr); in queue_requests_store()
Dblk-mq.h41 int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr);
Dblk-mq.c3142 int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr) in blk_mq_update_nr_requests() argument
3151 if (q->nr_requests == nr) in blk_mq_update_nr_requests()
3166 ret = blk_mq_tag_update_depth(hctx, &hctx->tags, nr, in blk_mq_update_nr_requests()
3170 nr, true); in blk_mq_update_nr_requests()
3179 q->nr_requests = nr; in blk_mq_update_nr_requests()
Dbio.c170 struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx, in bvec_alloc() argument
178 switch (nr) { in bvec_alloc()
/block/partitions/
Dcheck.c118 int nr; in allocate_partitions() local
124 nr = disk_max_parts(hd); in allocate_partitions()
125 state->parts = vzalloc(array_size(nr, sizeof(state->parts[0]))); in allocate_partitions()
131 state->limit = nr; in allocate_partitions()