Lines Matching refs:p_buf
48 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready() local
50 p_buf->layer_specific = handle; in bta_pan_ci_tx_ready()
51 p_buf->event = BTA_PAN_CI_TX_READY_EVT; in bta_pan_ci_tx_ready()
53 bta_sys_sendmsg(p_buf); in bta_pan_ci_tx_ready()
70 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in bta_pan_ci_rx_ready() local
72 p_buf->layer_specific = handle; in bta_pan_ci_rx_ready()
73 p_buf->event = BTA_PAN_CI_RX_READY_EVT; in bta_pan_ci_rx_ready()
75 bta_sys_sendmsg(p_buf); in bta_pan_ci_rx_ready()
94 tBTA_PAN_CI_TX_FLOW* p_buf = in bta_pan_ci_tx_flow() local
97 p_buf->hdr.layer_specific = handle; in bta_pan_ci_tx_flow()
98 p_buf->hdr.event = BTA_PAN_CI_TX_FLOW_EVT; in bta_pan_ci_tx_flow()
99 p_buf->enable = enable; in bta_pan_ci_tx_flow()
101 bta_sys_sendmsg(p_buf); in bta_pan_ci_tx_flow()
119 BT_HDR* p_buf = (BT_HDR*)osi_malloc(PAN_BUF_SIZE); in bta_pan_ci_rx_write() local
121 p_buf->offset = PAN_MINIMUM_OFFSET; in bta_pan_ci_rx_write()
124 ((tBTA_PAN_DATA_PARAMS*)p_buf)->src = src; in bta_pan_ci_rx_write()
125 ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst = dst; in bta_pan_ci_rx_write()
126 ((tBTA_PAN_DATA_PARAMS*)p_buf)->protocol = protocol; in bta_pan_ci_rx_write()
127 ((tBTA_PAN_DATA_PARAMS*)p_buf)->ext = ext; in bta_pan_ci_rx_write()
128 p_buf->len = len; in bta_pan_ci_rx_write()
131 memcpy((uint8_t*)(p_buf + 1) + p_buf->offset, p_data, len); in bta_pan_ci_rx_write()
133 p_buf->layer_specific = handle; in bta_pan_ci_rx_write()
134 p_buf->event = BTA_PAN_CI_RX_WRITEBUF_EVT; in bta_pan_ci_rx_write()
136 bta_sys_sendmsg(p_buf); in bta_pan_ci_rx_write()
155 BT_HDR* p_buf, bool ext) { in bta_pan_ci_rx_writebuf() argument
157 ((tBTA_PAN_DATA_PARAMS*)p_buf)->src = src; in bta_pan_ci_rx_writebuf()
158 ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst = dst; in bta_pan_ci_rx_writebuf()
159 ((tBTA_PAN_DATA_PARAMS*)p_buf)->protocol = protocol; in bta_pan_ci_rx_writebuf()
160 ((tBTA_PAN_DATA_PARAMS*)p_buf)->ext = ext; in bta_pan_ci_rx_writebuf()
162 p_buf->layer_specific = handle; in bta_pan_ci_rx_writebuf()
163 p_buf->event = BTA_PAN_CI_RX_WRITEBUF_EVT; in bta_pan_ci_rx_writebuf()
164 bta_sys_sendmsg(p_buf); in bta_pan_ci_rx_writebuf()
180 BT_HDR* p_buf; in bta_pan_ci_readbuf() local
184 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_scb->data_queue); in bta_pan_ci_readbuf()
185 if (p_buf != NULL) { in bta_pan_ci_readbuf()
186 src = ((tBTA_PAN_DATA_PARAMS*)p_buf)->src; in bta_pan_ci_readbuf()
187 dst = ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst; in bta_pan_ci_readbuf()
188 *p_protocol = ((tBTA_PAN_DATA_PARAMS*)p_buf)->protocol; in bta_pan_ci_readbuf()
189 *p_ext = ((tBTA_PAN_DATA_PARAMS*)p_buf)->ext; in bta_pan_ci_readbuf()
190 *p_forward = ((tBTA_PAN_DATA_PARAMS*)p_buf)->forward; in bta_pan_ci_readbuf()
193 return p_buf; in bta_pan_ci_readbuf()
239 UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) {} in bta_pan_ci_rx_writebuf() argument