Lines Matching refs:hctx
1578 static int null_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob) in null_poll() argument
1580 struct nullb_queue *nq = hctx->driver_data; in null_poll()
1611 struct blk_mq_hw_ctx *hctx = rq->mq_hctx; in null_timeout_rq() local
1614 if (hctx->type == HCTX_TYPE_POLL) { in null_timeout_rq()
1615 struct nullb_queue *nq = hctx->driver_data; in null_timeout_rq()
1637 if (cmd->fake_timeout || hctx->type == HCTX_TYPE_POLL) in null_timeout_rq()
1642 static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx, in null_queue_rq() argument
1647 struct nullb_queue *nq = hctx->driver_data; in null_queue_rq()
1650 const bool is_poll = hctx->type == HCTX_TYPE_POLL; in null_queue_rq()
1652 might_sleep_if(hctx->flags & BLK_MQ_F_BLOCKING); in null_queue_rq()
1722 static int null_init_hctx(struct blk_mq_hw_ctx *hctx, void *driver_data, in null_init_hctx() argument
1725 struct nullb *nullb = hctx->queue->queuedata; in null_init_hctx()
1732 hctx->driver_data = nq; in null_init_hctx()