Lines Matching refs:rnbd_opf
232 static inline blk_opf_t rnbd_to_bio_flags(u32 rnbd_opf) in rnbd_to_bio_flags() argument
236 switch (rnbd_op(rnbd_opf)) { in rnbd_to_bio_flags()
254 rnbd_op(rnbd_opf), rnbd_opf); in rnbd_to_bio_flags()
258 if (rnbd_opf & RNBD_F_SYNC) in rnbd_to_bio_flags()
261 if (rnbd_opf & RNBD_F_FUA) in rnbd_to_bio_flags()
269 u32 rnbd_opf; in rq_to_rnbd_flags() local
273 rnbd_opf = RNBD_OP_READ; in rq_to_rnbd_flags()
276 rnbd_opf = RNBD_OP_WRITE; in rq_to_rnbd_flags()
279 rnbd_opf = RNBD_OP_DISCARD; in rq_to_rnbd_flags()
282 rnbd_opf = RNBD_OP_SECURE_ERASE; in rq_to_rnbd_flags()
285 rnbd_opf = RNBD_OP_FLUSH; in rq_to_rnbd_flags()
291 rnbd_opf = 0; in rq_to_rnbd_flags()
295 rnbd_opf |= RNBD_F_SYNC; in rq_to_rnbd_flags()
298 rnbd_opf |= RNBD_F_FUA; in rq_to_rnbd_flags()
300 return rnbd_opf; in rq_to_rnbd_flags()