Searched refs:len_op (Results 1 – 3 of 3) sorted by relevance
/linux/include/uapi/linux/ |
H A D | target_core_user.h | 74 __u32 len_op; member 86 static inline enum tcmu_opcode tcmu_hdr_get_op(__u32 len_op) in tcmu_hdr_get_op() argument 88 return len_op & TCMU_OP_MASK; in tcmu_hdr_get_op() 91 static inline void tcmu_hdr_set_op(__u32 *len_op, enum tcmu_opcode op) in tcmu_hdr_set_op() argument 93 *len_op &= ~TCMU_OP_MASK; in tcmu_hdr_set_op() 94 *len_op |= (op & TCMU_OP_MASK); in tcmu_hdr_set_op() 97 static inline __u32 tcmu_hdr_get_len(__u32 len_op) in tcmu_hdr_get_len() argument 99 return len_op & ~TCMU_OP_MASK; in tcmu_hdr_get_len() 102 static inline void tcmu_hdr_set_len(__u32 *len_op, __u32 len) in tcmu_hdr_set_len() argument 104 *len_op &= TCMU_OP_MASK; in tcmu_hdr_set_len() [all …]
|
/linux/drivers/target/ |
H A D | target_core_user.c | 966 tcmu_hdr_set_op(&hdr->len_op, TCMU_OP_PAD); in ring_insert_padding() 967 tcmu_hdr_set_len(&hdr->len_op, pad_size); in ring_insert_padding() 1092 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_CMD); in queue_cmd_ring() 1117 tcmu_hdr_set_len(&entry->hdr.len_op, command_size); in queue_cmd_ring() 1184 tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_TMR); in queue_tmr_ring() 1185 tcmu_hdr_set_len(&entry->hdr.len_op, cmd_size); in queue_tmr_ring() 1473 if (tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_PAD || in tcmu_handle_completions() 1474 tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_TMR) { in tcmu_handle_completions() 1476 tcmu_hdr_get_len(entry->hdr.len_op), in tcmu_handle_completions() 1480 WARN_ON(tcmu_hdr_get_op(entry->hdr.len_op) != TCMU_OP_CMD); in tcmu_handle_completions() [all …]
|
/linux/Documentation/target/ |
H A 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) {
|