Home
last modified time | relevance | path

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

/block/partitions/
Dcheck.c117 int nr; in allocate_partitions() local
123 nr = disk_max_parts(hd); in allocate_partitions()
124 state->parts = vzalloc(nr * sizeof(state->parts[0])); in allocate_partitions()
130 state->limit = nr; in allocate_partitions()
/block/
Dblk-sysfs.c52 unsigned long nr; in queue_requests_store() local
58 ret = queue_var_store(&nr, page, count); in queue_requests_store()
62 if (nr < BLKDEV_MIN_RQ) in queue_requests_store()
63 nr = BLKDEV_MIN_RQ; in queue_requests_store()
66 err = blk_update_nr_requests(q, nr); in queue_requests_store()
68 err = blk_mq_update_nr_requests(q, nr); in queue_requests_store()
Dblk-mq.h29 int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr);
Dblk-core.c95 int nr; in blk_queue_congestion_threshold() local
97 nr = q->nr_requests - (q->nr_requests / 8) + 1; in blk_queue_congestion_threshold()
98 if (nr > q->nr_requests) in blk_queue_congestion_threshold()
99 nr = q->nr_requests; in blk_queue_congestion_threshold()
100 q->nr_congestion_on = nr; in blk_queue_congestion_threshold()
102 nr = q->nr_requests - (q->nr_requests / 8) - (q->nr_requests / 16) - 1; in blk_queue_congestion_threshold()
103 if (nr < 1) in blk_queue_congestion_threshold()
104 nr = 1; in blk_queue_congestion_threshold()
105 q->nr_congestion_off = nr; in blk_queue_congestion_threshold()
984 int blk_update_nr_requests(struct request_queue *q, unsigned int nr) in blk_update_nr_requests() argument
[all …]
Dblk-mq.c2299 int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr) in blk_mq_update_nr_requests() argument
2305 if (!set || nr > set->queue_depth) in blk_mq_update_nr_requests()
2312 ret = blk_mq_tag_update_depth(hctx->tags, nr); in blk_mq_update_nr_requests()
2318 q->nr_requests = nr; in blk_mq_update_nr_requests()
Dbio.c178 struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx, in bvec_alloc() argument
186 switch (nr) { in bvec_alloc()