Lines Matching refs:p
181 UINT8 *p, *p_start; in bnep_send_conn_req() local
187 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req()
190 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_conn_req()
193 UINT8_TO_BE_STREAM (p, BNEP_SETUP_CONNECTION_REQUEST_MSG); in bnep_send_conn_req()
195 UINT8_TO_BE_STREAM (p, p_bcb->dst_uuid.len); in bnep_send_conn_req()
199 UINT16_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid16); in bnep_send_conn_req()
200 UINT16_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid16); in bnep_send_conn_req()
204 UINT32_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid32); in bnep_send_conn_req()
205 UINT32_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid32); in bnep_send_conn_req()
209 memcpy (p, p_bcb->dst_uuid.uu.uuid128, p_bcb->dst_uuid.len); in bnep_send_conn_req()
210 p += p_bcb->dst_uuid.len; in bnep_send_conn_req()
211 memcpy (p, p_bcb->src_uuid.uu.uuid128, p_bcb->dst_uuid.len); in bnep_send_conn_req()
212 p += p_bcb->dst_uuid.len; in bnep_send_conn_req()
220 p_buf->len = (UINT16)(p - p_start); in bnep_send_conn_req()
238 UINT8 *p; in bnep_send_conn_responce() local
243 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
246 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_conn_responce()
249 UINT8_TO_BE_STREAM (p, BNEP_SETUP_CONNECTION_RESPONSE_MSG); in bnep_send_conn_responce()
251 UINT16_TO_BE_STREAM (p, resp_code); in bnep_send_conn_responce()
272 UINT8 *p; in bnepu_send_peer_our_filters() local
278 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters()
281 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_our_filters()
284 UINT8_TO_BE_STREAM (p, BNEP_FILTER_NET_TYPE_SET_MSG); in bnepu_send_peer_our_filters()
286 UINT16_TO_BE_STREAM (p, (4 * p_bcb->sent_num_filters)); in bnepu_send_peer_our_filters()
289 UINT16_TO_BE_STREAM (p, p_bcb->sent_prot_filter_start[xx]); in bnepu_send_peer_our_filters()
290 UINT16_TO_BE_STREAM (p, p_bcb->sent_prot_filter_end[xx]); in bnepu_send_peer_our_filters()
318 UINT8 *p; in bnepu_send_peer_our_multi_filters() local
324 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters()
327 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_our_multi_filters()
330 UINT8_TO_BE_STREAM (p, BNEP_FILTER_MULTI_ADDR_SET_MSG); in bnepu_send_peer_our_multi_filters()
332 UINT16_TO_BE_STREAM (p, (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters)); in bnepu_send_peer_our_multi_filters()
335 memcpy (p, p_bcb->sent_mcast_filter_start[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters()
336 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters()
337 memcpy (p, p_bcb->sent_mcast_filter_end[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters()
338 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters()
366 UINT8 *p; in bnepu_send_peer_filter_rsp() local
371 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp()
374 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_filter_rsp()
377 UINT8_TO_BE_STREAM (p, BNEP_FILTER_NET_TYPE_RESPONSE_MSG); in bnepu_send_peer_filter_rsp()
379 UINT16_TO_BE_STREAM (p, response_code); in bnepu_send_peer_filter_rsp()
399 UINT8 *p; in bnep_send_command_not_understood() local
404 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_command_not_understood()
407 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_command_not_understood()
410 UINT8_TO_BE_STREAM (p, BNEP_CONTROL_COMMAND_NOT_UNDERSTOOD); in bnep_send_command_not_understood()
412 UINT8_TO_BE_STREAM (p, cmd_code); in bnep_send_command_not_understood()
470 UINT8 ext_bit, *p = (UINT8 *)NULL; in bnepu_build_bnep_hdr() local
487 p = bnepu_init_hdr (p_buf, 15, (UINT8)(ext_bit | BNEP_FRAME_GENERAL_ETHERNET)); in bnepu_build_bnep_hdr()
489 memcpy (p, p_dest_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
490 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
492 memcpy (p, p_src_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
493 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
497 p = bnepu_init_hdr (p_buf, 3, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET)); in bnepu_build_bnep_hdr()
501 p = bnepu_init_hdr (p_buf, 9, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET_SRC_ONLY)); in bnepu_build_bnep_hdr()
503 memcpy (p, p_src_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
504 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
508 p = bnepu_init_hdr (p_buf, 9, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET_DEST_ONLY)); in bnepu_build_bnep_hdr()
510 memcpy (p, p_dest_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
511 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
515 UINT16_TO_BE_STREAM (p, protocol); in bnepu_build_bnep_hdr()
530 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in bnepu_init_hdr() local
536 p = p + p_buf->len - 1; in bnepu_init_hdr()
537 for (xx = 0; xx < p_buf->len; xx++, p--) in bnepu_init_hdr()
538 p[diff] = *p; in bnepu_init_hdr()
541 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in bnepu_init_hdr()
546 p -= hdr_len; in bnepu_init_hdr()
548 *p++ = pkt_type; in bnepu_init_hdr()
550 return (p); in bnepu_init_hdr()
762 UINT8 *bnep_process_control_packet (tBNEP_CONN *p_bcb, UINT8 *p, UINT16 *rem_len, BOOLEAN is_ext) in bnep_process_control_packet() argument
770 ext_len = *p++; in bnep_process_control_packet()
774 control_type = *p++; in bnep_process_control_packet()
782 BNEP_TRACE_ERROR ("BNEP Received Cmd not understood for ctl pkt type: %d", *p); in bnep_process_control_packet()
783 p++; in bnep_process_control_packet()
788 len = *p++; in bnep_process_control_packet()
796 bnep_process_setup_conn_req (p_bcb, p, (UINT8)len); in bnep_process_control_packet()
797 p += (2 * len); in bnep_process_control_packet()
803 bnep_process_setup_conn_responce (p_bcb, p); in bnep_process_control_packet()
804 p += 2; in bnep_process_control_packet()
809 BE_STREAM_TO_UINT16 (len, p); in bnep_process_control_packet()
816 bnepu_process_peer_filter_set (p_bcb, p, len); in bnep_process_control_packet()
817 p += len; in bnep_process_control_packet()
822 bnepu_process_peer_filter_rsp (p_bcb, p); in bnep_process_control_packet()
823 p += 2; in bnep_process_control_packet()
828 BE_STREAM_TO_UINT16 (len, p); in bnep_process_control_packet()
835 bnepu_process_peer_multicast_filter_set (p_bcb, p, len); in bnep_process_control_packet()
836 p += len; in bnep_process_control_packet()
841 bnepu_process_multicast_filter_rsp (p_bcb, p); in bnep_process_control_packet()
842 p += 2; in bnep_process_control_packet()
851 p += (ext_len - 1); in bnep_process_control_packet()
864 return p; in bnep_process_control_packet()
1133 UINT8 *p; in bnepu_send_peer_multicast_filter_rsp() local
1138 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_multicast_filter_rsp()
1141 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_multicast_filter_rsp()
1144 UINT8_TO_BE_STREAM (p, BNEP_FILTER_MULTI_ADDR_RESPONSE_MSG); in bnepu_send_peer_multicast_filter_rsp()
1146 UINT16_TO_BE_STREAM (p, response_code); in bnepu_send_peer_multicast_filter_rsp()