• Home
  • Raw
  • Download

Lines Matching refs:p_buf

39 static UINT8 *bnepu_init_hdr (BT_HDR *p_buf, UINT16 hdr_len, UINT8 pkt_type);
174 BT_HDR *p_buf; in bnep_send_conn_req() local
179 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnep_send_conn_req()
185 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req()
186 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req()
219 p_buf->len = (UINT16)(p - p_start); in bnep_send_conn_req()
221 bnepu_check_send_packet (p_bcb, p_buf); in bnep_send_conn_req()
236 BT_HDR *p_buf; in bnep_send_conn_responce() local
240 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnep_send_conn_responce()
246 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
247 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce()
257 p_buf->len = 4; in bnep_send_conn_responce()
259 bnepu_check_send_packet (p_bcb, p_buf); in bnep_send_conn_responce()
275 BT_HDR *p_buf; in bnepu_send_peer_our_filters() local
281 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnepu_send_peer_our_filters()
287 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters()
288 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters()
303 p_buf->len = 4 + (4 * p_bcb->sent_num_filters); in bnepu_send_peer_our_filters()
305 bnepu_check_send_packet (p_bcb, p_buf); in bnepu_send_peer_our_filters()
325 BT_HDR *p_buf; in bnepu_send_peer_our_multi_filters() local
331 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnepu_send_peer_our_multi_filters()
337 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters()
338 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters()
355 p_buf->len = 4 + (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters); in bnepu_send_peer_our_multi_filters()
357 bnepu_check_send_packet (p_bcb, p_buf); in bnepu_send_peer_our_multi_filters()
377 BT_HDR *p_buf; in bnepu_send_peer_filter_rsp() local
381 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnepu_send_peer_filter_rsp()
387 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp()
388 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp()
398 p_buf->len = 4; in bnepu_send_peer_filter_rsp()
400 bnepu_check_send_packet (p_bcb, p_buf); in bnepu_send_peer_filter_rsp()
415 BT_HDR *p_buf; in bnep_send_command_not_understood() local
419 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnep_send_command_not_understood()
425 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_command_not_understood()
426 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_command_not_understood()
436 p_buf->len = 3; in bnep_send_command_not_understood()
438 bnepu_check_send_packet (p_bcb, p_buf); in bnep_send_command_not_understood()
454 void bnepu_check_send_packet (tBNEP_CONN *p_bcb, BT_HDR *p_buf) in bnepu_check_send_packet() argument
463 GKI_freebuf (p_buf); in bnepu_check_send_packet()
467 GKI_enqueue (&p_bcb->xmit_q, p_buf); in bnepu_check_send_packet()
472 L2CA_DataWrite (p_bcb->l2cap_cid, p_buf); in bnepu_check_send_packet()
488 void bnepu_build_bnep_hdr (tBNEP_CONN *p_bcb, BT_HDR *p_buf, UINT16 protocol, in bnepu_build_bnep_hdr() argument
509 p = bnepu_init_hdr (p_buf, 15, (UINT8)(ext_bit | BNEP_FRAME_GENERAL_ETHERNET)); 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()
530 p = bnepu_init_hdr (p_buf, 9, (UINT8)(ext_bit | BNEP_FRAME_COMPRESSED_ETHERNET_DEST_ONLY)); in bnepu_build_bnep_hdr()
550 static UINT8 *bnepu_init_hdr (BT_HDR *p_buf, UINT16 hdr_len, UINT8 pkt_type) in bnepu_init_hdr() argument
552 UINT8 *p = (UINT8 *)(p_buf + 1) + p_buf->offset; in bnepu_init_hdr()
555 if (p_buf->offset < (hdr_len + L2CAP_MIN_OFFSET)) in bnepu_init_hdr()
557 UINT16 xx, diff = BNEP_MINIMUM_OFFSET - p_buf->offset; in bnepu_init_hdr()
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()
562 p_buf->offset = BNEP_MINIMUM_OFFSET; in bnepu_init_hdr()
563 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in bnepu_init_hdr()
566 p_buf->len += hdr_len; in bnepu_init_hdr()
567 p_buf->offset -= hdr_len; in bnepu_init_hdr()
1154 BT_HDR *p_buf; in bnepu_send_peer_multicast_filter_rsp() local
1158 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (BNEP_POOL_ID)) == NULL) in bnepu_send_peer_multicast_filter_rsp()
1164 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_multicast_filter_rsp()
1165 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_multicast_filter_rsp()
1175 p_buf->len = 4; in bnepu_send_peer_multicast_filter_rsp()
1177 bnepu_check_send_packet (p_bcb, p_buf); in bnepu_send_peer_multicast_filter_rsp()