Home
last modified time | relevance | path

Searched refs:len_op (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/include/uapi/linux/
Dtarget_core_user.h71 __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-v4.19/drivers/target/
Dtarget_core_user.c1031 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_PAD); in queue_cmd_ring()
1032 tcmu_hdr_set_len(&entry->hdr.len_op, pad_size); in queue_cmd_ring()
1047 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_CMD); in queue_cmd_ring()
1088 tcmu_hdr_set_len(&entry->hdr.len_op, command_size); in queue_cmd_ring()
1217 if (tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_PAD) { in tcmu_handle_completions()
1219 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions()
1223 WARN_ON(tcmu_hdr_get_op(entry->hdr.len_op) != TCMU_OP_CMD); in tcmu_handle_completions()
1236 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions()
/Linux-v4.19/Documentation/target/
Dtcmu-design.txt143 containing "len_op", a 32-bit value that stores the length, as well as
335 if (tcmu_hdr_get_op(ent->hdr.len_op) == TCMU_OP_CMD) {
350 else if (tcmu_hdr_get_op(ent->hdr.len_op) != TCMU_OP_PAD) {