Lines Matching refs:rnbd_opf
219 static inline blk_opf_t rnbd_to_bio_flags(u32 rnbd_opf) in rnbd_to_bio_flags() argument
223 switch (rnbd_op(rnbd_opf)) { in rnbd_to_bio_flags()
241 rnbd_op(rnbd_opf), rnbd_opf); in rnbd_to_bio_flags()
245 if (rnbd_opf & RNBD_F_SYNC) in rnbd_to_bio_flags()
248 if (rnbd_opf & RNBD_F_FUA) in rnbd_to_bio_flags()
256 u32 rnbd_opf; in rq_to_rnbd_flags() local
260 rnbd_opf = RNBD_OP_READ; in rq_to_rnbd_flags()
263 rnbd_opf = RNBD_OP_WRITE; in rq_to_rnbd_flags()
266 rnbd_opf = RNBD_OP_DISCARD; in rq_to_rnbd_flags()
269 rnbd_opf = RNBD_OP_SECURE_ERASE; in rq_to_rnbd_flags()
272 rnbd_opf = RNBD_OP_FLUSH; in rq_to_rnbd_flags()
278 rnbd_opf = 0; in rq_to_rnbd_flags()
282 rnbd_opf |= RNBD_F_SYNC; in rq_to_rnbd_flags()
285 rnbd_opf |= RNBD_F_FUA; in rq_to_rnbd_flags()
287 return rnbd_opf; in rq_to_rnbd_flags()