Lines Matching refs:msglen

561 			      uint16_t msglen, int (*cb)(struct midcomms_node *node))  in dlm_midcomms_recv_node_lookup()  argument
569 if (msglen < sizeof(struct dlm_rcom)) { in dlm_midcomms_recv_node_lookup()
571 msglen, nodeid); in dlm_midcomms_recv_node_lookup()
628 if (msglen < sizeof(struct dlm_opts)) { in dlm_midcomms_recv_node_lookup()
630 msglen, nodeid); in dlm_midcomms_recv_node_lookup()
672 static int dlm_opts_check_msglen(union dlm_packet *p, uint16_t msglen, int nodeid) in dlm_opts_check_msglen() argument
674 int len = msglen; in dlm_opts_check_msglen()
699 msglen, nodeid); in dlm_opts_check_msglen()
723 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2() local
729 node = dlm_midcomms_recv_node_lookup(nodeid, p, msglen, in dlm_midcomms_receive_buffer_3_2()
763 ret = dlm_opts_check_msglen(p, msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
766 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
774 msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2()
777 if (msglen < sizeof(struct dlm_rcom)) { in dlm_midcomms_receive_buffer_3_2()
779 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
785 if (msglen < sizeof(struct dlm_message)) { in dlm_midcomms_receive_buffer_3_2()
787 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
793 if (msglen < sizeof(struct dlm_header)) { in dlm_midcomms_receive_buffer_3_2()
795 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
802 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
843 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_1() local
848 node = dlm_midcomms_recv_node_lookup(nodeid, p, msglen, in dlm_midcomms_receive_buffer_3_1()
861 if (msglen < sizeof(struct dlm_message)) { in dlm_midcomms_receive_buffer_3_1()
863 msglen, nodeid); in dlm_midcomms_receive_buffer_3_1()
886 uint16_t msglen; in dlm_process_incoming_buffer() local
903 msglen = le16_to_cpu(hd->h_length); in dlm_process_incoming_buffer()
904 if (msglen > DLM_MAX_SOCKET_BUFSIZE || in dlm_process_incoming_buffer()
905 msglen < sizeof(struct dlm_header)) { in dlm_process_incoming_buffer()
907 msglen, nodeid); in dlm_process_incoming_buffer()
914 if (msglen > len) in dlm_process_incoming_buffer()
930 ret += msglen; in dlm_process_incoming_buffer()
931 len -= msglen; in dlm_process_incoming_buffer()
932 ptr += msglen; in dlm_process_incoming_buffer()