Lines Matching refs:front_crc
569 cpu_to_le32s(&con->v2.out_epil.front_crc); in encode_epilogue_plain()
581 static int decode_epilogue(void *p, u32 *front_crc, u32 *middle_crc, in decode_epilogue() argument
594 if (front_crc && middle_crc && data_crc) { in decode_epilogue()
595 *front_crc = ceph_decode_32(&p); in decode_epilogue()
658 static int verify_epilogue_crcs(struct ceph_connection *con, u32 front_crc, in verify_epilogue_crcs() argument
684 if (con->in_front_crc != front_crc) { in verify_epilogue_crcs()
686 con->in_front_crc, front_crc); in verify_epilogue_crcs()
1599 con->out_msg, aborted, con->v2.out_epil.front_crc, in prepare_epilogue_plain()
1627 con->v2.out_epil.front_crc = -1; in prepare_message_plain()
1634 con->v2.out_epil.front_crc = crc32c(-1, msg->front.iov_base, in prepare_message_plain()
1639 con->v2.out_epil.front_crc = -1; in prepare_message_plain()
3044 u32 front_crc, middle_crc, data_crc; in handle_epilogue() local
3062 ret = decode_epilogue(con->v2.in_buf, &front_crc, in handle_epilogue()
3069 ret = verify_epilogue_crcs(con, front_crc, middle_crc, in handle_epilogue()
3469 con->v2.out_epil.front_crc = in prepare_zero_front()
3471 con->v2.out_epil.front_crc = in prepare_zero_front()
3472 crc32c_zeros(con->v2.out_epil.front_crc, resid); in prepare_zero_front()
3474 con->v2.out_epil.front_crc = crc32c_zeros(-1, resid); in prepare_zero_front()