Lines Matching refs:msglen

609 static int dlm_opts_check_msglen(const union dlm_packet *p, uint16_t msglen,  in dlm_opts_check_msglen()  argument
612 int len = msglen; in dlm_opts_check_msglen()
637 msglen, nodeid); in dlm_opts_check_msglen()
661 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2() local
728 ret = dlm_opts_check_msglen(p, msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
731 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
739 msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2()
742 if (msglen < sizeof(struct dlm_rcom)) { in dlm_midcomms_receive_buffer_3_2()
744 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
750 if (msglen < sizeof(struct dlm_message)) { in dlm_midcomms_receive_buffer_3_2()
752 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
758 if (msglen < sizeof(struct dlm_header)) { in dlm_midcomms_receive_buffer_3_2()
760 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
767 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
789 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_1() local
822 if (msglen < sizeof(struct dlm_message)) { in dlm_midcomms_receive_buffer_3_1()
824 msglen, nodeid); in dlm_midcomms_receive_buffer_3_1()
842 uint16_t msglen; in dlm_validate_incoming_buffer() local
859 msglen = le16_to_cpu(hd->h_length); in dlm_validate_incoming_buffer()
860 if (msglen > DLM_MAX_SOCKET_BUFSIZE || in dlm_validate_incoming_buffer()
861 msglen < sizeof(struct dlm_header)) { in dlm_validate_incoming_buffer()
863 msglen, nodeid); in dlm_validate_incoming_buffer()
870 if (msglen > len) in dlm_validate_incoming_buffer()
873 ret += msglen; in dlm_validate_incoming_buffer()
874 len -= msglen; in dlm_validate_incoming_buffer()
875 ptr += msglen; in dlm_validate_incoming_buffer()
889 uint16_t msglen; in dlm_process_incoming_buffer() local
895 msglen = le16_to_cpu(hd->h_length); in dlm_process_incoming_buffer()
896 if (msglen > len) in dlm_process_incoming_buffer()
912 ret += msglen; in dlm_process_incoming_buffer()
913 len -= msglen; in dlm_process_incoming_buffer()
914 ptr += msglen; in dlm_process_incoming_buffer()