Searched refs:len_op (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/include/uapi/linux/ |
D | target_core_user.h | 71 __u32 len_op; member 81 static inline enum tcmu_opcode tcmu_hdr_get_op(__u32 len_op) in tcmu_hdr_get_op() argument 83 return len_op & TCMU_OP_MASK; in tcmu_hdr_get_op() 86 static inline void tcmu_hdr_set_op(__u32 *len_op, enum tcmu_opcode op) in tcmu_hdr_set_op() argument 88 *len_op &= ~TCMU_OP_MASK; in tcmu_hdr_set_op() 89 *len_op |= (op & TCMU_OP_MASK); in tcmu_hdr_set_op() 92 static inline __u32 tcmu_hdr_get_len(__u32 len_op) in tcmu_hdr_get_len() argument 94 return len_op & ~TCMU_OP_MASK; in tcmu_hdr_get_len() 97 static inline void tcmu_hdr_set_len(__u32 *len_op, __u32 len) in tcmu_hdr_set_len() argument 99 *len_op &= TCMU_OP_MASK; in tcmu_hdr_set_len() [all …]
|
/linux-4.1.27/drivers/target/ |
D | target_core_user.c | 339 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_PAD); in tcmu_queue_cmd_ring() 340 tcmu_hdr_set_len(&entry->hdr.len_op, pad_size); in tcmu_queue_cmd_ring() 353 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_CMD); in tcmu_queue_cmd_ring() 354 tcmu_hdr_set_len(&entry->hdr.len_op, command_size); in tcmu_queue_cmd_ring() 555 if (tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_PAD) { in tcmu_handle_completions() 557 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions() 561 WARN_ON(tcmu_hdr_get_op(entry->hdr.len_op) != TCMU_OP_CMD); in tcmu_handle_completions() 578 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions()
|
/linux-4.1.27/Documentation/target/ |
D | tcmu-design.txt | 141 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) {
|