Home | History | Annotate | Download | only in ag

Lines Matching refs:p_buf

59     tBTA_AG_API_ENABLE  *p_buf;
75 if ((p_buf = (tBTA_AG_API_ENABLE *) GKI_getbuf(sizeof(tBTA_AG_API_ENABLE))) != NULL)
77 p_buf->hdr.event = BTA_AG_API_ENABLE_EVT;
78 p_buf->parse_mode = parse_mode;
79 p_buf->p_cback = p_cback;
80 bta_sys_sendmsg(p_buf);
99 BT_HDR *p_buf;
101 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
103 p_buf->event = BTA_AG_API_DISABLE_EVT;
104 bta_sys_sendmsg(p_buf);
121 tBTA_AG_API_REGISTER *p_buf;
124 if ((p_buf = (tBTA_AG_API_REGISTER *) GKI_getbuf(sizeof(tBTA_AG_API_REGISTER))) != NULL)
126 p_buf->hdr.event = BTA_AG_API_REGISTER_EVT;
127 p_buf->features = features;
128 p_buf->sec_mask = sec_mask;
129 p_buf->services = services;
130 p_buf->app_id = app_id;
135 BCM_STRNCPY_S(p_buf->p_name[i], BTA_SERVICE_NAME_LEN+1, p_service_names[i], BTA_SERVICE_NAME_LEN);
136 p_buf->p_name[i][BTA_SERVICE_NAME_LEN] = 0;
140 p_buf->p_name[i][0] = 0;
143 bta_sys_sendmsg(p_buf);
159 BT_HDR *p_buf;
161 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
163 p_buf->event = BTA_AG_API_DEREGISTER_EVT;
164 p_buf->layer_specific = handle;
165 bta_sys_sendmsg(p_buf);
184 tBTA_AG_API_OPEN *p_buf;
186 if ((p_buf = (tBTA_AG_API_OPEN *) GKI_getbuf(sizeof(tBTA_AG_API_OPEN))) != NULL)
188 p_buf->hdr.event = BTA_AG_API_OPEN_EVT;
189 p_buf->hdr.layer_specific = handle;
190 bdcpy(p_buf->bd_addr, bd_addr);
191 p_buf->services = services;
192 p_buf->sec_mask = sec_mask;
193 bta_sys_sendmsg(p_buf);
210 BT_HDR *p_buf;
212 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
214 p_buf->event = BTA_AG_API_CLOSE_EVT;
215 p_buf->layer_specific = handle;
216 bta_sys_sendmsg(p_buf);
233 BT_HDR *p_buf;
235 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
237 p_buf->event = BTA_AG_API_AUDIO_OPEN_EVT;
238 p_buf->layer_specific = handle;
239 bta_sys_sendmsg(p_buf);
256 BT_HDR *p_buf;
258 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
260 p_buf->event = BTA_AG_API_AUDIO_CLOSE_EVT;
261 p_buf->layer_specific = handle;
262 bta_sys_sendmsg(p_buf);
281 tBTA_AG_API_RESULT *p_buf;
283 if ((p_buf = (tBTA_AG_API_RESULT *) GKI_getbuf(sizeof(tBTA_AG_API_RESULT))) != NULL)
285 p_buf->hdr.event = BTA_AG_API_RESULT_EVT;
286 p_buf->hdr.layer_specific = handle;
287 p_buf->result = result;
290 memcpy(&p_buf->data, p_data, sizeof(p_buf->data));
292 bta_sys_sendmsg(p_buf);
310 tBTA_AG_API_SETCODEC *p_buf;
312 if ((p_buf = (tBTA_AG_API_SETCODEC *) GKI_getbuf(sizeof(tBTA_AG_API_SETCODEC))) != NULL)
314 p_buf->hdr.event = BTA_AG_API_SETCODEC_EVT;
315 p_buf->hdr.layer_specific = handle;
316 p_buf->codec = codec;
317 bta_sys_sendmsg(p_buf);