Lines Matching refs:rq

255 	struct request *rq;
259 rq = tags->rqs[bitnr];
260 if (!rq || rq->tag != bitnr || !req_ref_inc_not_zero(rq))
261 rq = NULL;
263 return rq;
273 struct request *rq;
284 * We can hit rq == NULL here, because the tagging functions
287 rq = blk_mq_find_and_get_req(tags, bitnr);
288 if (!rq)
291 if (rq->q == q && (!hctx || rq->mq_hctx == hctx))
292 ret = iter_data->fn(rq, iter_data->data);
293 blk_mq_put_rq_ref(rq);
305 * @fn will be called as follows: @fn(@hctx, rq, @data, @reserved)
306 * where rq is a pointer to a request. Return true to continue
342 struct request *rq;
350 * We can hit rq == NULL here, because the tagging functions
354 rq = tags->static_rqs[bitnr];
356 rq = blk_mq_find_and_get_req(tags, bitnr);
357 if (!rq)
361 blk_mq_request_started(rq))
362 ret = iter_data->fn(rq, iter_data->data);
364 blk_mq_put_rq_ref(rq);
374 * request. @fn will be called as follows: @fn(rq, @data,
375 * @reserved) where rq is a pointer to a request. Return true
409 * request. @fn will be called as follows: @fn(rq, @priv,
410 * reserved) where rq is a pointer to a request. 'reserved'
411 * indicates whether or not @rq is a reserved request. Return
427 * request. @fn will be called as follows: @fn(rq, @priv,
428 * reserved) where rq is a pointer to a request. 'reserved'
429 * indicates whether or not @rq is a reserved request. Return
452 static bool blk_mq_tagset_count_completed_rqs(struct request *rq, void *data)
456 if (blk_mq_request_completed(rq))
486 * on @q. @fn will be called as follows: @fn(hctx, rq, @priv,
487 * reserved) where rq is a pointer to a request and hctx points
489 * indicates whether or not @rq is a reserved request.
668 * @rq: request for which to compute a unique tag
678 u32 blk_mq_unique_tag(struct request *rq)
680 return (rq->mq_hctx->queue_num << BLK_MQ_UNIQUE_TAG_BITS) |
681 (rq->tag & BLK_MQ_UNIQUE_TAG_MASK);