Lines Matching refs:p

175     UINT8   *p, *p_start;  in bnep_send_conn_req()  local
186 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req()
189 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_conn_req()
192 UINT8_TO_BE_STREAM (p, BNEP_SETUP_CONNECTION_REQUEST_MSG); in bnep_send_conn_req()
194 UINT8_TO_BE_STREAM (p, p_bcb->dst_uuid.len); in bnep_send_conn_req()
198 UINT16_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid16); in bnep_send_conn_req()
199 UINT16_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid16); in bnep_send_conn_req()
203 UINT32_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid32); in bnep_send_conn_req()
204 UINT32_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid32); in bnep_send_conn_req()
208 memcpy (p, p_bcb->dst_uuid.uu.uuid128, p_bcb->dst_uuid.len); in bnep_send_conn_req()
209 p += p_bcb->dst_uuid.len; in bnep_send_conn_req()
210 memcpy (p, p_bcb->src_uuid.uu.uuid128, p_bcb->dst_uuid.len); in bnep_send_conn_req()
211 p += p_bcb->dst_uuid.len; in bnep_send_conn_req()
219 p_buf->len = (UINT16)(p - p_start); in bnep_send_conn_req()
237 UINT8 *p; in bnep_send_conn_responce() local
247 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
250 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_conn_responce()
253 UINT8_TO_BE_STREAM (p, BNEP_SETUP_CONNECTION_RESPONSE_MSG); in bnep_send_conn_responce()
255 UINT16_TO_BE_STREAM (p, resp_code); in bnep_send_conn_responce()
276 UINT8 *p; in bnepu_send_peer_our_filters() local
288 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters()
291 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_our_filters()
294 UINT8_TO_BE_STREAM (p, BNEP_FILTER_NET_TYPE_SET_MSG); in bnepu_send_peer_our_filters()
296 UINT16_TO_BE_STREAM (p, (4 * p_bcb->sent_num_filters)); in bnepu_send_peer_our_filters()
299 UINT16_TO_BE_STREAM (p, p_bcb->sent_prot_filter_start[xx]); in bnepu_send_peer_our_filters()
300 UINT16_TO_BE_STREAM (p, p_bcb->sent_prot_filter_end[xx]); in bnepu_send_peer_our_filters()
326 UINT8 *p; in bnepu_send_peer_our_multi_filters() local
338 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters()
341 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_our_multi_filters()
344 UINT8_TO_BE_STREAM (p, BNEP_FILTER_MULTI_ADDR_SET_MSG); in bnepu_send_peer_our_multi_filters()
346 UINT16_TO_BE_STREAM (p, (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters)); in bnepu_send_peer_our_multi_filters()
349 memcpy (p, p_bcb->sent_mcast_filter_start[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters()
350 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters()
351 memcpy (p, p_bcb->sent_mcast_filter_end[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters()
352 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters()
378 UINT8 *p; in bnepu_send_peer_filter_rsp() local
388 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp()
391 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_filter_rsp()
394 UINT8_TO_BE_STREAM (p, BNEP_FILTER_NET_TYPE_RESPONSE_MSG); in bnepu_send_peer_filter_rsp()
396 UINT16_TO_BE_STREAM (p, response_code); in bnepu_send_peer_filter_rsp()
416 UINT8 *p; in bnep_send_command_not_understood() local
426 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_command_not_understood()
429 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_command_not_understood()
432 UINT8_TO_BE_STREAM (p, BNEP_CONTROL_COMMAND_NOT_UNDERSTOOD); in bnep_send_command_not_understood()
434 UINT8_TO_BE_STREAM (p, cmd_code); in bnep_send_command_not_understood()
492 UINT8 ext_bit, *p = (UINT8 *)NULL; in bnepu_build_bnep_hdr() local
509 p = bnepu_init_hdr (p_buf, 15, (UINT8)(ext_bit | BNEP_FRAME_GENERAL_ETHERNET)); in bnepu_build_bnep_hdr()
511 memcpy (p, p_dest_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
512 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
514 memcpy (p, p_src_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
515 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
519 p = bnepu_init_hdr (p_buf, 3, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET)); in bnepu_build_bnep_hdr()
523 p = bnepu_init_hdr (p_buf, 9, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET_SRC_ONLY)); in bnepu_build_bnep_hdr()
525 memcpy (p, p_src_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
526 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
530 p = bnepu_init_hdr (p_buf, 9, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET_DEST_ONLY)); in bnepu_build_bnep_hdr()
532 memcpy (p, p_dest_addr, BD_ADDR_LEN); in bnepu_build_bnep_hdr()
533 p += BD_ADDR_LEN; in bnepu_build_bnep_hdr()
537 UINT16_TO_BE_STREAM (p, protocol); in bnepu_build_bnep_hdr()
552 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in bnepu_init_hdr() local
558 p = p + p_buf->len - 1; in bnepu_init_hdr()
559 for (xx = 0; xx < p_buf->len; xx++, p--) in bnepu_init_hdr()
560 p[diff] = *p; in bnepu_init_hdr()
563 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in bnepu_init_hdr()
568 p -= hdr_len; in bnepu_init_hdr()
570 *p++ = pkt_type; in bnepu_init_hdr()
572 return (p); in bnepu_init_hdr()
784 UINT8 *bnep_process_control_packet (tBNEP_CONN *p_bcb, UINT8 *p, UINT16 *rem_len, BOOLEAN is_ext) in bnep_process_control_packet() argument
792 ext_len = *p++; in bnep_process_control_packet()
796 control_type = *p++; in bnep_process_control_packet()
804 BNEP_TRACE_ERROR ("BNEP Received Cmd not understood for ctl pkt type: %d", *p); in bnep_process_control_packet()
805 p++; in bnep_process_control_packet()
810 len = *p++; in bnep_process_control_packet()
818 bnep_process_setup_conn_req (p_bcb, p, (UINT8)len); in bnep_process_control_packet()
819 p += (2 * len); in bnep_process_control_packet()
825 bnep_process_setup_conn_responce (p_bcb, p); in bnep_process_control_packet()
826 p += 2; in bnep_process_control_packet()
831 BE_STREAM_TO_UINT16 (len, p); in bnep_process_control_packet()
838 bnepu_process_peer_filter_set (p_bcb, p, len); in bnep_process_control_packet()
839 p += len; in bnep_process_control_packet()
844 bnepu_process_peer_filter_rsp (p_bcb, p); in bnep_process_control_packet()
845 p += 2; in bnep_process_control_packet()
850 BE_STREAM_TO_UINT16 (len, p); in bnep_process_control_packet()
857 bnepu_process_peer_multicast_filter_set (p_bcb, p, len); in bnep_process_control_packet()
858 p += len; in bnep_process_control_packet()
863 bnepu_process_multicast_filter_rsp (p_bcb, p); in bnep_process_control_packet()
864 p += 2; in bnep_process_control_packet()
873 p += (ext_len - 1); in bnep_process_control_packet()
886 return p; in bnep_process_control_packet()
1155 UINT8 *p; in bnepu_send_peer_multicast_filter_rsp() local
1165 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_multicast_filter_rsp()
1168 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnepu_send_peer_multicast_filter_rsp()
1171 UINT8_TO_BE_STREAM (p, BNEP_FILTER_MULTI_ADDR_RESPONSE_MSG); in bnepu_send_peer_multicast_filter_rsp()
1173 UINT16_TO_BE_STREAM (p, response_code); in bnepu_send_peer_multicast_filter_rsp()