Lines Matching refs:ublk_queue
52 struct ublk_queue;
132 int (*queue_io)(struct ublk_thread *, struct ublk_queue *, int tag);
133 void (*tgt_io_done)(struct ublk_thread *, struct ublk_queue *,
145 unsigned short (*buf_index)(const struct ublk_queue *, int tag);
160 struct ublk_queue {
190 struct ublk_queue q[UBLK_MAX_QUEUES];
252 static inline struct ublk_queue *ublk_io_to_queue(const struct ublk_io *io)
254 return container_of(io, struct ublk_queue, ios[io->tag]);
311 static inline void ublk_set_io_res(struct ublk_queue *q, int tag, int res)
316 static inline int ublk_get_io_res(const struct ublk_queue *q, unsigned tag)
327 static inline const struct ublksrv_io_desc *ublk_get_iod(const struct ublk_queue *q, int tag)
340 static inline struct ublk_io *ublk_get_io(struct ublk_queue *q, unsigned tag)
345 static inline int ublk_complete_io(struct ublk_thread *t, struct ublk_queue *q,
355 static inline void ublk_queued_tgt_io(struct ublk_thread *t, struct ublk_queue *q,
370 struct ublk_queue *q, unsigned tag)
379 static inline int ublk_queue_use_zc(const struct ublk_queue *q)
384 static inline int ublk_queue_use_auto_zc(const struct ublk_queue *q)
389 static inline int ublk_queue_auto_zc_fallback(const struct ublk_queue *q)
394 static inline int ublk_queue_no_buf(const struct ublk_queue *q)