| 137 | } |
| 138 | |
| 139 | static inline __u64 build_user_data(unsigned tag, unsigned op, |
| 140 | unsigned tgt_data, unsigned is_target_io) |
| 141 | { |
| 142 | assert(!(tag >> 16) && !(op >> 8) && !(tgt_data >> 16)); |
| 143 | |
| 144 | return tag | (op << 16) | (tgt_data << 24) | (__u64)is_target_io << 63; |
| 145 | } |
| 146 | |
| 147 | static inline unsigned int user_data_to_tag(__u64 user_data) |
| 148 | { |