Lines Matching refs:rem_len
784 UINT8 *bnep_process_control_packet (tBNEP_CONN *p_bcb, UINT8 *p, UINT16 *rem_len, BOOLEAN is_ext)
793 *rem_len = *rem_len - 1;
797 *rem_len = *rem_len - 1;
799 BNEP_TRACE_EVENT ("BNEP processing control packet rem_len %d, is_ext %d, ctrl_type %d", *rem_len, is_ext, control_type);
806 *rem_len = *rem_len - 1;
811 if (*rem_len < ((2 * len) + 1))
820 *rem_len = *rem_len - (2 * len) - 1;
827 *rem_len = *rem_len - 2;
832 if (*rem_len < (len + 2))
840 *rem_len = *rem_len - len - 2;
846 *rem_len = *rem_len - 2;
851 if (*rem_len < (len + 2))
859 *rem_len = *rem_len - len - 2;
865 *rem_len = *rem_len - 2;
874 *rem_len -= (ext_len - 1);
881 BNEP_TRACE_ERROR ("BNEP - bad ctl pkt length: %d", *rem_len);
882 *rem_len = 0;