Lines Matching refs:p_data
45 UINT8 *p_data; in rfc_send_sabme() local
52 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme()
55 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_sabme()
56 *p_data++ = RFCOMM_SABME | RFCOMM_PF; in rfc_send_sabme()
57 *p_data++ = RFCOMM_EA | 0; in rfc_send_sabme()
59 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
77 UINT8 *p_data; in rfc_send_ua() local
84 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua()
87 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua()
88 *p_data++ = RFCOMM_UA | RFCOMM_PF; in rfc_send_ua()
89 *p_data++ = RFCOMM_EA | 0; in rfc_send_ua()
91 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
109 UINT8 *p_data; in rfc_send_dm() local
116 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_dm()
119 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_dm()
120 *p_data++ = RFCOMM_DM | ((pf) ? RFCOMM_PF : 0); in rfc_send_dm()
121 *p_data++ = RFCOMM_EA | 0; in rfc_send_dm()
123 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm()
141 UINT8 *p_data; in rfc_send_disc() local
148 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_disc()
151 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_disc()
152 *p_data++ = RFCOMM_DISC | RFCOMM_PF; in rfc_send_disc()
153 *p_data++ = RFCOMM_EA | 0; in rfc_send_disc()
155 *p_data = RFCOMM_DISC_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_disc()
172 UINT8 *p_data; in rfc_send_buf_uih() local
188 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_buf_uih()
191 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_buf_uih()
192 *p_data++ = RFCOMM_UIH | ((credits) ? RFCOMM_PF : 0); in rfc_send_buf_uih()
195 *p_data++ = RFCOMM_EA | (p_buf->len << 1); in rfc_send_buf_uih()
200 *p_data++ = (p_buf->len & 0x7f) << 1; in rfc_send_buf_uih()
201 *p_data++ = p_buf->len >> RFCOMM_SHIFT_LENGTH2; in rfc_send_buf_uih()
207 *p_data++ = credits; in rfc_send_buf_uih()
211 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset + p_buf->len++; in rfc_send_buf_uih()
213 *p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_buf_uih()
238 UINT8 *p_data; in rfc_send_pn() local
244 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_pn()
246 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_PN; in rfc_send_pn()
247 *p_data++ = RFCOMM_EA | (RFCOMM_MX_PN_LEN << 1); in rfc_send_pn()
249 *p_data++ = dlci; in rfc_send_pn()
250 *p_data++ = RFCOMM_PN_FRAM_TYPE_UIH | cl; in rfc_send_pn()
256 *p_data++ = RFCOMM_PN_PRIORITY_0; in rfc_send_pn()
258 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
260 *p_data++ = RFCOMM_T1_DSEC; in rfc_send_pn()
261 *p_data++ = mtu & 0xFF; in rfc_send_pn()
262 *p_data++ = mtu >> 8; in rfc_send_pn()
263 *p_data++ = RFCOMM_N2; in rfc_send_pn()
264 *p_data = k; in rfc_send_pn()
283 UINT8 *p_data; in rfc_send_fcon() local
289 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_fcon()
291 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_FCON; in rfc_send_fcon()
292 *p_data++ = RFCOMM_EA | (RFCOMM_MX_FCON_LEN << 1); in rfc_send_fcon()
311 UINT8 *p_data; in rfc_send_fcoff() local
317 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_fcoff()
319 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_FCOFF; in rfc_send_fcoff()
320 *p_data++ = RFCOMM_EA | (RFCOMM_MX_FCOFF_LEN << 1); in rfc_send_fcoff()
340 UINT8 *p_data; in rfc_send_msc() local
352 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_msc()
359 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_MSC; in rfc_send_msc()
360 *p_data++ = RFCOMM_EA | (len << 1); in rfc_send_msc()
362 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_msc()
363 *p_data++ = RFCOMM_EA | in rfc_send_msc()
372 *p_data++ = RFCOMM_EA | RFCOMM_MSC_BREAK_PRESENT_MASK | in rfc_send_msc()
393 UINT8 *p_data; in rfc_send_rls() local
399 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_rls()
401 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_RLS; in rfc_send_rls()
402 *p_data++ = RFCOMM_EA | (RFCOMM_MX_RLS_LEN << 1); in rfc_send_rls()
404 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rls()
405 *p_data++ = RFCOMM_RLS_ERROR | status; in rfc_send_rls()
424 UINT8 *p_data; in rfc_send_nsc() local
430 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_nsc()
432 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(FALSE) | RFCOMM_MX_NSC; in rfc_send_nsc()
433 *p_data++ = RFCOMM_EA | (RFCOMM_MX_NSC_LEN << 1); in rfc_send_nsc()
435 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc()
457 UINT8 *p_data; in rfc_send_rpn() local
463 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_rpn()
465 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_RPN; in rfc_send_rpn()
469 *p_data++ = RFCOMM_EA | (RFCOMM_MX_RPN_REQ_LEN << 1); in rfc_send_rpn()
471 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rpn()
477 *p_data++ = RFCOMM_EA | (RFCOMM_MX_RPN_LEN << 1); in rfc_send_rpn()
479 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rpn()
480 *p_data++ = p_pars->baud_rate; in rfc_send_rpn()
481 *p_data++ = (p_pars->byte_size << RFCOMM_RPN_BITS_SHIFT) in rfc_send_rpn()
485 *p_data++ = p_pars->fc_type; in rfc_send_rpn()
486 *p_data++ = p_pars->xon_char; in rfc_send_rpn()
487 *p_data++ = p_pars->xoff_char; in rfc_send_rpn()
488 *p_data++ = (mask & 0xFF); in rfc_send_rpn()
489 *p_data++ = (mask >> 8); in rfc_send_rpn()
508 UINT8 *p_data; in rfc_send_test() local
526 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_test()
528 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_TEST; in rfc_send_test()
529 *p_data++ = RFCOMM_EA | (p_buf->len << 1); in rfc_send_test()
546 UINT8 *p_data; in rfc_send_credit() local
553 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_credit()
555 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_credit()
556 *p_data++ = RFCOMM_UIH | RFCOMM_PF; in rfc_send_credit()
557 *p_data++ = RFCOMM_EA | 0; in rfc_send_credit()
558 *p_data++ = credit; in rfc_send_credit()
559 *p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_credit()
577 UINT8 *p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_parse_data() local
578 UINT8 *p_start = p_data; in rfc_parse_data()
587 RFCOMM_PARSE_CTRL_FIELD (ead, p_frame->cr, p_frame->dlci, p_data); in rfc_parse_data()
593 RFCOMM_PARSE_TYPE_FIELD (p_frame->type, p_frame->pf, p_data); in rfc_parse_data()
594 RFCOMM_PARSE_LEN_FIELD (eal, len, p_data); in rfc_parse_data()
603 p_frame->credit = *p_data++; in rfc_parse_data()
616 fcs = *(p_data + len); in rfc_parse_data()
703 UINT8 *p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_process_mx_message() local
709 p_rx_frame->ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
710 p_rx_frame->cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
711 p_rx_frame->type = *p_data++ & ~(RFCOMM_CR_MASK | RFCOMM_EA_MASK); in rfc_process_mx_message()
724 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
726 mx_len = *p_data++ >> RFCOMM_SHIFT_LENGTH1; in rfc_process_mx_message()
731 mx_len += *p_data++ << RFCOMM_SHIFT_LENGTH2; in rfc_process_mx_message()
748 p_rx_frame->dlci = *p_data++ & RFCOMM_PN_DLCI_MASK; in rfc_process_mx_message()
749 p_rx_frame->u.pn.frame_type = *p_data & RFCOMM_PN_FRAME_TYPE_MASK; in rfc_process_mx_message()
750 p_rx_frame->u.pn.conv_layer = *p_data++ & RFCOMM_PN_CONV_LAYER_MASK; in rfc_process_mx_message()
751 p_rx_frame->u.pn.priority = *p_data++ & RFCOMM_PN_PRIORITY_MASK; in rfc_process_mx_message()
752 p_rx_frame->u.pn.t1 = *p_data++; in rfc_process_mx_message()
753 p_rx_frame->u.pn.mtu = *p_data + (*(p_data + 1) << 8); in rfc_process_mx_message()
754 p_data += 2; in rfc_process_mx_message()
755 p_rx_frame->u.pn.n2 = *p_data++; in rfc_process_mx_message()
756 p_rx_frame->u.pn.k = *p_data++ & RFCOMM_PN_K_MASK; in rfc_process_mx_message()
776 p_rx_frame->u.test.p_data = p_data; in rfc_process_mx_message()
808 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
809 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
810 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
819 p_rx_frame->u.msc.signals = *p_data++; in rfc_process_mx_message()
823 p_rx_frame->u.msc.break_present = *p_data & RFCOMM_MSC_BREAK_PRESENT_MASK; in rfc_process_mx_message()
824 … p_rx_frame->u.msc.break_duration = (*p_data & RFCOMM_MSC_BREAK_MASK) >> RFCOMM_MSC_SHIFT_BREAK; in rfc_process_mx_message()
840 p_rx_frame->u.nsc.ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
841 p_rx_frame->u.nsc.cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
842 p_rx_frame->u.nsc.type = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
853 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
854 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
855 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
868 p_rx_frame->u.rpn.baud_rate = *p_data++; in rfc_process_mx_message()
869 … p_rx_frame->u.rpn.byte_size = (*p_data >> RFCOMM_RPN_BITS_SHIFT) & RFCOMM_RPN_BITS_MASK; in rfc_process_mx_message()
870 …p_rx_frame->u.rpn.stop_bits = (*p_data >> RFCOMM_RPN_STOP_BITS_SHIFT) & RFCOMM_RPN_STOP_BITS_MAS… in rfc_process_mx_message()
871 … p_rx_frame->u.rpn.parity = (*p_data >> RFCOMM_RPN_PARITY_SHIFT) & RFCOMM_RPN_PARITY_MASK; in rfc_process_mx_message()
872 …p_rx_frame->u.rpn.parity_type = (*p_data++ >> RFCOMM_RPN_PARITY_TYPE_SHIFT) & RFCOMM_RPN_PARITY_TY… in rfc_process_mx_message()
874 p_rx_frame->u.rpn.fc_type = *p_data++ & RFCOMM_FC_MASK; in rfc_process_mx_message()
875 p_rx_frame->u.rpn.xon_char = *p_data++; in rfc_process_mx_message()
876 p_rx_frame->u.rpn.xoff_char = *p_data++; in rfc_process_mx_message()
877 p_rx_frame->u.rpn.param_mask = (*p_data + (*(p_data + 1) << 8)) & RFCOMM_RPN_PM_MASK; in rfc_process_mx_message()
888 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
889 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
891 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
892 p_rx_frame->u.rls.line_status = (*p_data & ~0x01); in rfc_process_mx_message()