Home | History | Annotate | Download | only in pan

Lines Matching refs:p_buf

58     tBTA_PAN_CONN * p_buf;
62 if ((p_buf = (tBTA_PAN_CONN *) GKI_getbuf(sizeof(tBTA_PAN_CONN))) != NULL)
66 p_buf->hdr.event = BTA_PAN_CONN_OPEN_EVT;
97 p_buf->hdr.event = BTA_PAN_CONN_CLOSE_EVT;
105 p_buf->result = state;
106 p_buf->hdr.layer_specific = handle;
107 bta_sys_sendmsg(p_buf);
127 BT_HDR *p_buf;
135 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
137 p_buf->layer_specific = handle;
138 p_buf->event = BTA_PAN_BNEP_FLOW_ENABLE_EVT;
139 bta_sys_sendmsg(p_buf);
166 static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf,
173 if ( sizeof(tBTA_PAN_DATA_PARAMS) > p_buf->offset )
180 GKI_freebuf( p_buf );
185 memcpy( (UINT8 *)(p_new_buf+1)+sizeof(tBTA_PAN_DATA_PARAMS), (UINT8 *)(p_buf+1)+p_buf->offset, p_buf->len );
186 p_new_buf->len = p_buf->len;
188 GKI_freebuf( p_buf );
193 p_new_buf = p_buf;
390 BT_HDR *p_buf;
408 while((p_buf = (BT_HDR *)GKI_dequeue(&p_scb->data_queue)) != NULL)
409 GKI_freebuf(p_buf);
478 tBTA_PAN_CONN * p_buf;
485 if ((p_buf = (tBTA_PAN_CONN *) GKI_getbuf(sizeof(tBTA_PAN_CONN))) != NULL)
487 p_buf->hdr.event = BTA_PAN_CONN_CLOSE_EVT;
489 p_buf->hdr.layer_specific = p_scb->handle;
490 bta_sys_sendmsg(p_buf);
552 BT_HDR *p_buf;
560 while((p_buf = (BT_HDR *)GKI_dequeue(&p_scb->data_queue)) != NULL)
561 GKI_freebuf(p_buf);
619 BT_HDR * p_buf;
637 if ((p_buf = (BT_HDR *)GKI_dequeue(&p_scb->data_queue)) != NULL)
642 ((tBTA_PAN_DATA_PARAMS *)p_buf)->src,
643 ((tBTA_PAN_DATA_PARAMS *)p_buf)->dst,
644 ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol,
645 p_buf,
646 ((tBTA_PAN_DATA_PARAMS *)p_buf)->ext,
647 ((tBTA_PAN_DATA_PARAMS *)p_buf)->forward);
658 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
660 p_buf->layer_specific = p_scb->handle;
661 p_buf->event = BTA_PAN_RX_FROM_BNEP_READY_EVT;
662 bta_sys_sendmsg(p_buf);