Searched refs:len_op (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/include/uapi/linux/ |
| D | target_core_user.h | 71 __u32 len_op; member 82 static inline enum tcmu_opcode tcmu_hdr_get_op(__u32 len_op) in tcmu_hdr_get_op() argument 84 return len_op & TCMU_OP_MASK; in tcmu_hdr_get_op() 87 static inline void tcmu_hdr_set_op(__u32 *len_op, enum tcmu_opcode op) in tcmu_hdr_set_op() argument 89 *len_op &= ~TCMU_OP_MASK; in tcmu_hdr_set_op() 90 *len_op |= (op & TCMU_OP_MASK); in tcmu_hdr_set_op() 93 static inline __u32 tcmu_hdr_get_len(__u32 len_op) in tcmu_hdr_get_len() argument 95 return len_op & ~TCMU_OP_MASK; in tcmu_hdr_get_len() 98 static inline void tcmu_hdr_set_len(__u32 *len_op, __u32 len) in tcmu_hdr_set_len() argument 100 *len_op &= TCMU_OP_MASK; in tcmu_hdr_set_len() [all …]
|
| /Linux-v5.4/drivers/target/ |
| D | target_core_user.c | 1024 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_PAD); in queue_cmd_ring() 1025 tcmu_hdr_set_len(&entry->hdr.len_op, pad_size); in queue_cmd_ring() 1040 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_CMD); in queue_cmd_ring() 1081 tcmu_hdr_set_len(&entry->hdr.len_op, command_size); in queue_cmd_ring() 1237 if (tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_PAD) { in tcmu_handle_completions() 1239 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions() 1243 WARN_ON(tcmu_hdr_get_op(entry->hdr.len_op) != TCMU_OP_CMD); in tcmu_handle_completions() 1256 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions()
|
| /Linux-v5.4/Documentation/target/ |
| D | tcmu-design.rst | 163 containing "len_op", a 32-bit value that stores the length, as well as 359 if (tcmu_hdr_get_op(ent->hdr.len_op) == TCMU_OP_CMD) { 374 else if (tcmu_hdr_get_op(ent->hdr.len_op) != TCMU_OP_PAD) {
|