Lines Matching refs:front_len
359 static int front_len(const struct ceph_msg *msg) in front_len() function
361 return le32_to_cpu(msg->hdr.front_len); in front_len()
412 static int __tail_onwire_len(int front_len, int middle_len, int data_len, in __tail_onwire_len() argument
415 BUG_ON(front_len < 0 || front_len > CEPH_MSG_MAX_FRONT_LEN || in __tail_onwire_len()
419 if (!front_len && !middle_len && !data_len) in __tail_onwire_len()
423 return front_len + middle_len + data_len + in __tail_onwire_len()
426 return padded_len(front_len) + padded_len(middle_len) + in __tail_onwire_len()
432 return __tail_onwire_len(front_len(msg), middle_len(msg), in tail_onwire_len()
605 int front_len, int middle_len, int data_len, in fill_header() argument
613 hdr->front_len = cpu_to_le32(front_len); in fill_header()
661 if (front_len(con->in_msg)) { in verify_epilogue_crcs()
663 front_len(con->in_msg)); in verify_epilogue_crcs()
1017 if (!front_len(msg) && !middle_len(msg) && !data_len(msg)) in setup_message_sgs()
1021 if (front_len(msg)) in setup_message_sgs()
1023 front_len(msg)); in setup_message_sgs()
1043 if (front_len(msg)) in setup_message_sgs()
1044 init_sgs(&cur_sg, msg->front.iov_base, front_len(msg), in setup_message_sgs()
1148 dpos = padded_len(front_len(con->in_msg) + padded_len(middle_len(con->in_msg))); in decrypt_tail()
1617 if (!front_len(msg) && !middle_len(msg)) { in prepare_message_plain()
1633 if (front_len(msg)) { in prepare_message_plain()
1635 front_len(msg)); in prepare_message_plain()
1636 add_out_kvec(con, msg->front.iov_base, front_len(msg)); in prepare_message_plain()
1734 front_len(con->out_msg), in prepare_message()
2051 if (!front_len(msg) && !middle_len(msg)) { in prepare_read_tail_plain()
2057 if (front_len(msg)) { in prepare_read_tail_plain()
2058 add_in_kvec(con, msg->front.iov_base, front_len(msg)); in prepare_read_tail_plain()
2059 WARN_ON(msg->front.iov_len != front_len(msg)); in prepare_read_tail_plain()
2938 if (front_len(msg)) { in __handle_control()
2939 WARN_ON(front_len(msg) > msg->front_alloc_len); in __handle_control()
2940 msg->front.iov_len = front_len(msg); in __handle_control()
2951 if (!front_len(msg) && !middle_len(msg) && !data_len(msg)) in __handle_control()
3461 WARN_ON(!resid || resid > front_len(con->out_msg)); in prepare_zero_front()
3462 sent = front_len(con->out_msg) - resid; in prepare_zero_front()
3515 boundary = front_len(con->out_msg) + middle_len(con->out_msg); in revoke_at_queue_data()
3520 if (front_len(con->out_msg)) in revoke_at_queue_data()
3521 prepare_zero_front(con, front_len(con->out_msg)); in revoke_at_queue_data()
3583 if (!front_len(con->out_msg) && !middle_len(con->out_msg) && in revoke_at_finish_message()
3591 boundary = front_len(con->out_msg) + middle_len(con->out_msg) + in revoke_at_finish_message()
3597 if (front_len(con->out_msg)) in revoke_at_finish_message()
3598 prepare_zero_front(con, front_len(con->out_msg)); in revoke_at_finish_message()