Home
last modified time | relevance | path

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

/linux-4.4.14/include/uapi/linux/
Dtarget_core_user.h67 __u32 len_op; member
77 static inline enum tcmu_opcode tcmu_hdr_get_op(__u32 len_op) in tcmu_hdr_get_op() argument
79 return len_op & TCMU_OP_MASK; in tcmu_hdr_get_op()
82 static inline void tcmu_hdr_set_op(__u32 *len_op, enum tcmu_opcode op) in tcmu_hdr_set_op() argument
84 *len_op &= ~TCMU_OP_MASK; in tcmu_hdr_set_op()
85 *len_op |= (op & TCMU_OP_MASK); in tcmu_hdr_set_op()
88 static inline __u32 tcmu_hdr_get_len(__u32 len_op) in tcmu_hdr_get_len() argument
90 return len_op & ~TCMU_OP_MASK; in tcmu_hdr_get_len()
93 static inline void tcmu_hdr_set_len(__u32 *len_op, __u32 len) in tcmu_hdr_set_len() argument
95 *len_op &= TCMU_OP_MASK; in tcmu_hdr_set_len()
[all …]
/linux-4.4.14/drivers/target/
Dtarget_core_user.c444 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_PAD); in tcmu_queue_cmd_ring()
445 tcmu_hdr_set_len(&entry->hdr.len_op, pad_size); in tcmu_queue_cmd_ring()
458 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_CMD); in tcmu_queue_cmd_ring()
459 tcmu_hdr_set_len(&entry->hdr.len_op, command_size); in tcmu_queue_cmd_ring()
595 if (tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_PAD) { in tcmu_handle_completions()
597 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions()
601 WARN_ON(tcmu_hdr_get_op(entry->hdr.len_op) != TCMU_OP_CMD); in tcmu_handle_completions()
618 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions()
/linux-4.4.14/Documentation/target/
Dtcmu-design.txt141 containing "len_op", a 32-bit value that stores the length, as well as
326 if (tcmu_hdr_get_op(ent->hdr.len_op) == TCMU_OP_CMD) {
341 else if (tcmu_hdr_get_op(ent->hdr.len_op) != TCMU_OP_PAD) {