Lines Matching refs:data
258 static int bt_get(struct blk_mq_alloc_data *data, in bt_get() argument
271 if (!gfpflags_allow_blocking(data->gfp)) in bt_get()
299 blk_mq_put_ctx(data->ctx); in bt_get()
303 data->ctx = blk_mq_get_ctx(data->q); in bt_get()
304 data->hctx = data->q->mq_ops->map_queue(data->q, in bt_get()
305 data->ctx->cpu); in bt_get()
306 if (data->reserved) { in bt_get()
307 bt = &data->hctx->tags->breserved_tags; in bt_get()
309 last_tag = &data->ctx->last_tag; in bt_get()
310 hctx = data->hctx; in bt_get()
321 static unsigned int __blk_mq_get_tag(struct blk_mq_alloc_data *data) in __blk_mq_get_tag() argument
325 tag = bt_get(data, &data->hctx->tags->bitmap_tags, data->hctx, in __blk_mq_get_tag()
326 &data->ctx->last_tag, data->hctx->tags); in __blk_mq_get_tag()
328 return tag + data->hctx->tags->nr_reserved_tags; in __blk_mq_get_tag()
333 static unsigned int __blk_mq_get_reserved_tag(struct blk_mq_alloc_data *data) in __blk_mq_get_reserved_tag() argument
337 if (unlikely(!data->hctx->tags->nr_reserved_tags)) { in __blk_mq_get_reserved_tag()
342 tag = bt_get(data, &data->hctx->tags->breserved_tags, NULL, &zero, in __blk_mq_get_reserved_tag()
343 data->hctx->tags); in __blk_mq_get_reserved_tag()
350 unsigned int blk_mq_get_tag(struct blk_mq_alloc_data *data) in blk_mq_get_tag() argument
352 if (!data->reserved) in blk_mq_get_tag()
353 return __blk_mq_get_tag(data); in blk_mq_get_tag()
355 return __blk_mq_get_reserved_tag(data); in blk_mq_get_tag()
425 busy_iter_fn *fn, void *data, bool reserved) in bt_for_each() argument
438 fn(hctx, rq, data, reserved); in bt_for_each()
447 busy_tag_iter_fn *fn, void *data, bool reserved) in bt_tags_for_each() argument
461 fn(rq, data, reserved); in bt_tags_for_each()