Lines Matching defs:p_buf

55     BT_HDR  *p_buf;
57 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
59 p_buf->layer_specific = handle;
60 p_buf->event = BTA_PAN_CI_TX_READY_EVT;
61 bta_sys_sendmsg(p_buf);
80 BT_HDR *p_buf;
82 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
84 p_buf->layer_specific = handle;
85 p_buf->event = BTA_PAN_CI_RX_READY_EVT;
86 bta_sys_sendmsg(p_buf);
107 tBTA_PAN_CI_TX_FLOW *p_buf;
109 if ((p_buf = (tBTA_PAN_CI_TX_FLOW *) GKI_getbuf(sizeof(tBTA_PAN_CI_TX_FLOW))) != NULL)
111 p_buf->hdr.layer_specific = handle;
112 p_buf->hdr.event = BTA_PAN_CI_TX_FLOW_EVT;
113 p_buf->enable = enable;
114 bta_sys_sendmsg(p_buf);
133 BT_HDR * p_buf;
135 if((p_buf = (BT_HDR *) GKI_getpoolbuf(PAN_POOL_ID)) != NULL)
139 p_buf->offset = PAN_MINIMUM_OFFSET;
142 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->src, src);
143 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->dst, dst);
144 ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol = protocol;
145 ((tBTA_PAN_DATA_PARAMS *)p_buf)->ext = ext;
146 p_buf->len=len;
149 memcpy((UINT8 *)(p_buf + 1) + p_buf->offset, p_data, len);
151 p_buf->layer_specific = handle;
152 p_buf->event = BTA_PAN_CI_RX_WRITEBUF_EVT;
153 bta_sys_sendmsg(p_buf);
174 BT_HDR *p_buf, BOOLEAN ext)
178 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->src, src);
179 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->dst, dst);
180 ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol = protocol;
181 ((tBTA_PAN_DATA_PARAMS *)p_buf)->ext = ext;
183 p_buf->layer_specific = handle;
184 p_buf->event = BTA_PAN_CI_RX_WRITEBUF_EVT;
185 bta_sys_sendmsg(p_buf);
205 BT_HDR * p_buf;
209 p_buf = (BT_HDR *)GKI_dequeue(&p_scb->data_queue);
211 if(p_buf)
213 bdcpy(src,((tBTA_PAN_DATA_PARAMS *)p_buf)->src);
214 bdcpy(dst,((tBTA_PAN_DATA_PARAMS *)p_buf)->dst);
215 *p_protocol = ((tBTA_PAN_DATA_PARAMS *)p_buf)->protocol;
216 *p_ext = ((tBTA_PAN_DATA_PARAMS *)p_buf)->ext;
217 *p_forward = ((tBTA_PAN_DATA_PARAMS *)p_buf)->forward;
220 return p_buf;
277 void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext)
283 UNUSED(p_buf);