Lines Matching refs:p_frame
538 UINT8 rfc_parse_data (tRFC_MCB *p_mcb, MX_FRAME *p_frame, BT_HDR *p_buf) in rfc_parse_data() argument
551 RFCOMM_PARSE_CTRL_FIELD (ead, p_frame->cr, p_frame->dlci, p_data); in rfc_parse_data()
557 RFCOMM_PARSE_TYPE_FIELD (p_frame->type, p_frame->pf, p_data); in rfc_parse_data()
564 if ((p_mcb->flow == PORT_FC_CREDIT) && (p_frame->type == RFCOMM_UIH) && in rfc_parse_data()
565 (p_frame->dlci != RFCOMM_MX_DLCI) && (p_frame->pf == 1)) in rfc_parse_data()
567 p_frame->credit = *p_data++; in rfc_parse_data()
572 p_frame->credit = 0; in rfc_parse_data()
586 switch (p_frame->type) in rfc_parse_data()
589 if (RFCOMM_FRAME_IS_RSP(p_mcb->is_initiator, p_frame->cr) in rfc_parse_data()
590 || !p_frame->pf || len || !RFCOMM_VALID_DLCI (p_frame->dlci) in rfc_parse_data()
600 if (RFCOMM_FRAME_IS_CMD(p_mcb->is_initiator, p_frame->cr) in rfc_parse_data()
601 || !p_frame->pf || len || !RFCOMM_VALID_DLCI (p_frame->dlci) in rfc_parse_data()
611 if (RFCOMM_FRAME_IS_CMD(p_mcb->is_initiator, p_frame->cr) in rfc_parse_data()
612 || len || !RFCOMM_VALID_DLCI(p_frame->dlci) in rfc_parse_data()
622 if (RFCOMM_FRAME_IS_RSP(p_mcb->is_initiator, p_frame->cr) in rfc_parse_data()
623 || !p_frame->pf || len || !RFCOMM_VALID_DLCI(p_frame->dlci) in rfc_parse_data()
633 if (!RFCOMM_VALID_DLCI(p_frame->dlci)) in rfc_parse_data()
643 else if (RFCOMM_FRAME_IS_RSP(p_mcb->is_initiator, p_frame->cr)) in rfc_parse_data()