Lines Matching refs:dlci

42 void rfc_send_sabme(tRFC_MCB* p_mcb, uint8_t dlci) {  in rfc_send_sabme()  argument
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()
70 void rfc_send_ua(tRFC_MCB* p_mcb, uint8_t dlci) { in rfc_send_ua() argument
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()
97 void rfc_send_dm(tRFC_MCB* p_mcb, uint8_t dlci, bool pf) { in rfc_send_dm() argument
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()
124 void rfc_send_disc(tRFC_MCB* p_mcb, uint8_t dlci) { in rfc_send_disc() argument
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()
151 void rfc_send_buf_uih(tRFC_MCB* p_mcb, uint8_t dlci, BT_HDR* p_buf) { in rfc_send_buf_uih() argument
161 if (dlci) { in rfc_send_buf_uih()
174 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_buf_uih()
192 *p_data = RFCOMM_UIH_FCS((uint8_t*)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_buf_uih()
194 if (dlci == RFCOMM_MX_DLCI) { in rfc_send_buf_uih()
208 void rfc_send_pn(tRFC_MCB* p_mcb, uint8_t dlci, bool is_command, uint16_t mtu, in rfc_send_pn() argument
219 *p_data++ = dlci; in rfc_send_pn()
297 void rfc_send_msc(tRFC_MCB* p_mcb, uint8_t dlci, bool is_command, in rfc_send_msc() argument
319 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_msc()
344 void rfc_send_rls(tRFC_MCB* p_mcb, uint8_t dlci, bool is_command, in rfc_send_rls() argument
355 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rls()
398 void rfc_send_rpn(tRFC_MCB* p_mcb, uint8_t dlci, bool is_command, in rfc_send_rpn() argument
411 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rpn()
417 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rpn()
482 void rfc_send_credit(tRFC_MCB* p_mcb, uint8_t dlci, uint8_t credit) { in rfc_send_credit() argument
490 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_credit()
494 *p_data = RFCOMM_UIH_FCS((uint8_t*)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_credit()
519 RFCOMM_PARSE_CTRL_FIELD(ead, p_frame->cr, p_frame->dlci, p_data); in rfc_parse_data()
546 (p_frame->dlci != RFCOMM_MX_DLCI) && (p_frame->pf == 1)) { in rfc_parse_data()
572 !p_frame->pf || len || !RFCOMM_VALID_DLCI(p_frame->dlci) || in rfc_parse_data()
581 !p_frame->pf || len || !RFCOMM_VALID_DLCI(p_frame->dlci) || in rfc_parse_data()
590 !RFCOMM_VALID_DLCI(p_frame->dlci) || in rfc_parse_data()
599 !p_frame->pf || len || !RFCOMM_VALID_DLCI(p_frame->dlci) || in rfc_parse_data()
607 if (!RFCOMM_VALID_DLCI(p_frame->dlci)) { in rfc_parse_data()
697 p_rx_frame->dlci = *p_data++ & RFCOMM_PN_DLCI_MASK; in rfc_process_mx_message()
707 if (!p_rx_frame->dlci || !RFCOMM_VALID_DLCI(p_rx_frame->dlci) || in rfc_process_mx_message()
761 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
763 if (!ea || !cr || !p_rx_frame->dlci || in rfc_process_mx_message()
764 !RFCOMM_VALID_DLCI(p_rx_frame->dlci)) { in rfc_process_mx_message()
803 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
805 if (!ea || !cr || !p_rx_frame->dlci || in rfc_process_mx_message()
806 !RFCOMM_VALID_DLCI(p_rx_frame->dlci)) { in rfc_process_mx_message()
843 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
846 if (!ea || !cr || !p_rx_frame->dlci || in rfc_process_mx_message()
847 !RFCOMM_VALID_DLCI(p_rx_frame->dlci)) { in rfc_process_mx_message()