Lines Matching refs:cr
44 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, true); in rfc_send_sabme() local
51 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_sabme()
56 RFCOMM_SABME_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
72 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, false); in rfc_send_ua() local
79 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua()
83 *p_data = RFCOMM_UA_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
99 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, false); in rfc_send_dm() local
106 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_dm()
110 *p_data = RFCOMM_DM_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm()
126 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, true); in rfc_send_disc() local
133 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_disc()
137 *p_data = RFCOMM_DISC_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_disc()
153 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, true); in rfc_send_buf_uih() local
174 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_buf_uih()
382 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc()
484 uint8_t cr = RFCOMM_CR(p_mcb->is_initiator, true); in rfc_send_credit() local
490 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_credit()
519 RFCOMM_PARSE_CTRL_FIELD(ead, p_frame->cr, p_frame->dlci, p_data); in rfc_parse_data()
571 if (RFCOMM_FRAME_IS_RSP(p_mcb->is_initiator, p_frame->cr) || in rfc_parse_data()
580 if (RFCOMM_FRAME_IS_CMD(p_mcb->is_initiator, p_frame->cr) || in rfc_parse_data()
589 if (RFCOMM_FRAME_IS_CMD(p_mcb->is_initiator, p_frame->cr) || len || in rfc_parse_data()
598 if (RFCOMM_FRAME_IS_RSP(p_mcb->is_initiator, p_frame->cr) || in rfc_parse_data()
613 } else if (RFCOMM_FRAME_IS_RSP(p_mcb->is_initiator, p_frame->cr)) { in rfc_parse_data()
637 uint8_t ea, cr, mx_len; in rfc_process_mx_message() local
648 p_rx_frame->cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
661 bool is_command = p_rx_frame->cr; in rfc_process_mx_message()
760 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
763 if (!ea || !cr || !p_rx_frame->dlci || in rfc_process_mx_message()
789 p_rx_frame->u.nsc.cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
802 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
805 if (!ea || !cr || !p_rx_frame->dlci || in rfc_process_mx_message()
841 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
846 if (!ea || !cr || !p_rx_frame->dlci || in rfc_process_mx_message()