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 { struct
190 struct ublk_queue q[UBLK_MAX_QUEUES]; argument
252 static inline struct ublk_queue *ublk_io_to_queue(const struct ublk_io *io) in ublk_io_to_queue()
254 return container_of(io, struct ublk_queue, ios[io->tag]); in ublk_io_to_queue()
311 static inline void ublk_set_io_res(struct ublk_queue *q, int tag, int res) in ublk_set_io_res()
316 static inline int ublk_get_io_res(const struct ublk_queue *q, unsigned tag) in ublk_get_io_res()
327 static inline const struct ublksrv_io_desc *ublk_get_iod(const struct ublk_queue *q, int tag) in ublk_get_iod()
340 static inline struct ublk_io *ublk_get_io(struct ublk_queue *q, unsigned tag) in ublk_get_io()
345 static inline int ublk_complete_io(struct ublk_thread *t, struct ublk_queue *q, in ublk_complete_io()
355 static inline void ublk_queued_tgt_io(struct ublk_thread *t, struct ublk_queue *q, in ublk_queued_tgt_io()
370 struct ublk_queue *q, unsigned tag) in ublk_completed_tgt_io()
379 static inline int ublk_queue_use_zc(const struct ublk_queue *q) in ublk_queue_use_zc()
384 static inline int ublk_queue_use_auto_zc(const struct ublk_queue *q) in ublk_queue_use_auto_zc()
389 static inline int ublk_queue_auto_zc_fallback(const struct ublk_queue *q) in ublk_queue_auto_zc_fallback()
394 static inline int ublk_queue_no_buf(const struct ublk_queue *q) in ublk_queue_no_buf()