Lines Matching refs:p_data

43     UINT8   *p_data;  in rfc_send_sabme()  local
48 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme()
51 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_sabme()
52 *p_data++ = RFCOMM_SABME | RFCOMM_PF; in rfc_send_sabme()
53 *p_data++ = RFCOMM_EA | 0; in rfc_send_sabme()
55 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme()
72 UINT8 *p_data; in rfc_send_ua() local
77 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua()
80 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua()
81 *p_data++ = RFCOMM_UA | RFCOMM_PF; in rfc_send_ua()
82 *p_data++ = RFCOMM_EA | 0; in rfc_send_ua()
84 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua()
101 UINT8 *p_data; in rfc_send_dm() local
106 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_dm()
109 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_dm()
110 *p_data++ = RFCOMM_DM | ((pf) ? RFCOMM_PF : 0); in rfc_send_dm()
111 *p_data++ = RFCOMM_EA | 0; in rfc_send_dm()
113 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm()
130 UINT8 *p_data; in rfc_send_disc() local
135 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_disc()
138 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_disc()
139 *p_data++ = RFCOMM_DISC | RFCOMM_PF; in rfc_send_disc()
140 *p_data++ = RFCOMM_EA | 0; in rfc_send_disc()
142 *p_data = RFCOMM_DISC_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_disc()
159 UINT8 *p_data; in rfc_send_buf_uih() local
175 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_buf_uih()
178 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_buf_uih()
179 *p_data++ = RFCOMM_UIH | ((credits) ? RFCOMM_PF : 0); in rfc_send_buf_uih()
182 *p_data++ = RFCOMM_EA | (p_buf->len << 1); in rfc_send_buf_uih()
187 *p_data++ = (p_buf->len & 0x7f) << 1; in rfc_send_buf_uih()
188 *p_data++ = p_buf->len >> RFCOMM_SHIFT_LENGTH2; in rfc_send_buf_uih()
194 *p_data++ = credits; in rfc_send_buf_uih()
198 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset + p_buf->len++; in rfc_send_buf_uih()
200 *p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_buf_uih()
222 UINT8 *p_data; in rfc_send_pn() local
226 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_pn()
228 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_PN; in rfc_send_pn()
229 *p_data++ = RFCOMM_EA | (RFCOMM_MX_PN_LEN << 1); in rfc_send_pn()
231 *p_data++ = dlci; in rfc_send_pn()
232 *p_data++ = RFCOMM_PN_FRAM_TYPE_UIH | cl; in rfc_send_pn()
238 *p_data++ = RFCOMM_PN_PRIORITY_0; in rfc_send_pn()
240 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
242 *p_data++ = RFCOMM_T1_DSEC; in rfc_send_pn()
243 *p_data++ = mtu & 0xFF; in rfc_send_pn()
244 *p_data++ = mtu >> 8; in rfc_send_pn()
245 *p_data++ = RFCOMM_N2; in rfc_send_pn()
246 *p_data = k; in rfc_send_pn()
264 UINT8 *p_data; in rfc_send_fcon() local
268 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_fcon()
270 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_FCON; in rfc_send_fcon()
271 *p_data++ = RFCOMM_EA | (RFCOMM_MX_FCON_LEN << 1); in rfc_send_fcon()
289 UINT8 *p_data; in rfc_send_fcoff() local
293 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_fcoff()
295 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_FCOFF; in rfc_send_fcoff()
296 *p_data++ = RFCOMM_EA | (RFCOMM_MX_FCOFF_LEN << 1); in rfc_send_fcoff()
315 UINT8 *p_data; in rfc_send_msc() local
325 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_msc()
332 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_MSC; in rfc_send_msc()
333 *p_data++ = RFCOMM_EA | (len << 1); in rfc_send_msc()
335 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_msc()
336 *p_data++ = RFCOMM_EA | in rfc_send_msc()
345 *p_data++ = RFCOMM_EA | RFCOMM_MSC_BREAK_PRESENT_MASK | in rfc_send_msc()
365 UINT8 *p_data; in rfc_send_rls() local
369 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_rls()
371 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_RLS; in rfc_send_rls()
372 *p_data++ = RFCOMM_EA | (RFCOMM_MX_RLS_LEN << 1); in rfc_send_rls()
374 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rls()
375 *p_data++ = RFCOMM_RLS_ERROR | status; in rfc_send_rls()
393 UINT8 *p_data; in rfc_send_nsc() local
397 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_nsc()
399 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(FALSE) | RFCOMM_MX_NSC; in rfc_send_nsc()
400 *p_data++ = RFCOMM_EA | (RFCOMM_MX_NSC_LEN << 1); in rfc_send_nsc()
402 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc()
423 UINT8 *p_data; in rfc_send_rpn() local
427 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_rpn()
429 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_RPN; in rfc_send_rpn()
433 *p_data++ = RFCOMM_EA | (RFCOMM_MX_RPN_REQ_LEN << 1); in rfc_send_rpn()
435 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rpn()
441 *p_data++ = RFCOMM_EA | (RFCOMM_MX_RPN_LEN << 1); in rfc_send_rpn()
443 *p_data++ = RFCOMM_EA | RFCOMM_CR_MASK | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_rpn()
444 *p_data++ = p_pars->baud_rate; in rfc_send_rpn()
445 *p_data++ = (p_pars->byte_size << RFCOMM_RPN_BITS_SHIFT) in rfc_send_rpn()
449 *p_data++ = p_pars->fc_type; in rfc_send_rpn()
450 *p_data++ = p_pars->xon_char; in rfc_send_rpn()
451 *p_data++ = p_pars->xoff_char; in rfc_send_rpn()
452 *p_data++ = (mask & 0xFF); in rfc_send_rpn()
453 *p_data++ = (mask >> 8); in rfc_send_rpn()
493 UINT8 *p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_test() local
495 *p_data++ = RFCOMM_EA | RFCOMM_I_CR(is_command) | RFCOMM_MX_TEST; in rfc_send_test()
496 *p_data++ = RFCOMM_EA | (p_buf->len << 1); in rfc_send_test()
512 UINT8 *p_data; in rfc_send_credit() local
517 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_credit()
519 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_credit()
520 *p_data++ = RFCOMM_UIH | RFCOMM_PF; in rfc_send_credit()
521 *p_data++ = RFCOMM_EA | 0; in rfc_send_credit()
522 *p_data++ = credit; in rfc_send_credit()
523 *p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_credit()
541 UINT8 *p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_parse_data() local
542 UINT8 *p_start = p_data; in rfc_parse_data()
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()
558 RFCOMM_PARSE_LEN_FIELD (eal, len, p_data); in rfc_parse_data()
567 p_frame->credit = *p_data++; in rfc_parse_data()
580 fcs = *(p_data + len); in rfc_parse_data()
667 UINT8 *p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_process_mx_message() local
673 p_rx_frame->ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
674 p_rx_frame->cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
675 p_rx_frame->type = *p_data++ & ~(RFCOMM_CR_MASK | RFCOMM_EA_MASK); in rfc_process_mx_message()
688 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
690 mx_len = *p_data++ >> RFCOMM_SHIFT_LENGTH1; in rfc_process_mx_message()
695 mx_len += *p_data++ << RFCOMM_SHIFT_LENGTH2; in rfc_process_mx_message()
712 p_rx_frame->dlci = *p_data++ & RFCOMM_PN_DLCI_MASK; in rfc_process_mx_message()
713 p_rx_frame->u.pn.frame_type = *p_data & RFCOMM_PN_FRAME_TYPE_MASK; in rfc_process_mx_message()
714 p_rx_frame->u.pn.conv_layer = *p_data++ & RFCOMM_PN_CONV_LAYER_MASK; in rfc_process_mx_message()
715 p_rx_frame->u.pn.priority = *p_data++ & RFCOMM_PN_PRIORITY_MASK; in rfc_process_mx_message()
716 p_rx_frame->u.pn.t1 = *p_data++; in rfc_process_mx_message()
717 p_rx_frame->u.pn.mtu = *p_data + (*(p_data + 1) << 8); in rfc_process_mx_message()
718 p_data += 2; in rfc_process_mx_message()
719 p_rx_frame->u.pn.n2 = *p_data++; in rfc_process_mx_message()
720 p_rx_frame->u.pn.k = *p_data++ & RFCOMM_PN_K_MASK; in rfc_process_mx_message()
740 p_rx_frame->u.test.p_data = p_data; in rfc_process_mx_message()
772 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
773 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
774 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
783 p_rx_frame->u.msc.signals = *p_data++; in rfc_process_mx_message()
787 p_rx_frame->u.msc.break_present = *p_data & RFCOMM_MSC_BREAK_PRESENT_MASK; in rfc_process_mx_message()
788 … p_rx_frame->u.msc.break_duration = (*p_data & RFCOMM_MSC_BREAK_MASK) >> RFCOMM_MSC_SHIFT_BREAK; in rfc_process_mx_message()
804 p_rx_frame->u.nsc.ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
805 p_rx_frame->u.nsc.cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
806 p_rx_frame->u.nsc.type = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
817 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
818 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; in rfc_process_mx_message()
819 p_rx_frame->dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; in rfc_process_mx_message()
832 p_rx_frame->u.rpn.baud_rate = *p_data++; in rfc_process_mx_message()
833 … p_rx_frame->u.rpn.byte_size = (*p_data >> RFCOMM_RPN_BITS_SHIFT) & RFCOMM_RPN_BITS_MASK; in rfc_process_mx_message()
834 …p_rx_frame->u.rpn.stop_bits = (*p_data >> RFCOMM_RPN_STOP_BITS_SHIFT) & RFCOMM_RPN_STOP_BITS_MAS… in rfc_process_mx_message()
835 … p_rx_frame->u.rpn.parity = (*p_data >> RFCOMM_RPN_PARITY_SHIFT) & RFCOMM_RPN_PARITY_MASK; in rfc_process_mx_message()
836 …p_rx_frame->u.rpn.parity_type = (*p_data++ >> RFCOMM_RPN_PARITY_TYPE_SHIFT) & RFCOMM_RPN_PARITY_TY… in rfc_process_mx_message()
838 p_rx_frame->u.rpn.fc_type = *p_data++ & RFCOMM_FC_MASK; in rfc_process_mx_message()
839 p_rx_frame->u.rpn.xon_char = *p_data++; in rfc_process_mx_message()
840 p_rx_frame->u.rpn.xoff_char = *p_data++; in rfc_process_mx_message()
841 p_rx_frame->u.rpn.param_mask = (*p_data + (*(p_data + 1) << 8)) & RFCOMM_RPN_PM_MASK; in rfc_process_mx_message()
852 ea = *p_data & RFCOMM_EA; in rfc_process_mx_message()
853 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()
856 p_rx_frame->u.rls.line_status = (*p_data & ~0x01); in rfc_process_mx_message()