Home | History | Annotate | Download | only in av

Lines Matching refs:p_buf

63     tBTA_AV_API_ENABLE  *p_buf;
70 if ((p_buf = (tBTA_AV_API_ENABLE *) GKI_getbuf(sizeof(tBTA_AV_API_ENABLE))) != NULL)
72 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT;
73 p_buf->p_cback = p_cback;
74 p_buf->features = features;
75 p_buf->sec_mask = sec_mask;
76 bta_sys_sendmsg(p_buf);
91 BT_HDR *p_buf;
94 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
96 p_buf->event = BTA_AV_API_DISABLE_EVT;
97 bta_sys_sendmsg(p_buf);
116 tBTA_AV_API_REG *p_buf;
119 if ((p_buf = (tBTA_AV_API_REG *) GKI_getbuf(sizeof(tBTA_AV_API_REG))) != NULL)
121 p_buf->hdr.layer_specific = chnl;
122 p_buf->hdr.event = BTA_AV_API_REGISTER_EVT;
125 BCM_STRNCPY_S(p_buf->p_service_name, sizeof(p_buf->p_service_name), p_service_name, BTA_SERVICE_NAME_LEN);
126 p_buf->p_service_name[BTA_SERVICE_NAME_LEN-1] = 0;
130 p_buf->p_service_name[0] = 0;
132 p_buf->app_id = app_id;
133 bta_sys_sendmsg(p_buf);
148 BT_HDR *p_buf;
150 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
152 p_buf->layer_specific = hndl;
153 p_buf->event = BTA_AV_API_DEREGISTER_EVT;
154 bta_sys_sendmsg(p_buf);
171 tBTA_AV_API_OPEN *p_buf;
173 if ((p_buf = (tBTA_AV_API_OPEN *) GKI_getbuf(sizeof(tBTA_AV_API_OPEN))) != NULL)
175 p_buf->hdr.event = BTA_AV_API_OPEN_EVT;
176 p_buf->hdr.layer_specific = handle;
177 bdcpy(p_buf->bd_addr, bd_addr);
178 p_buf->use_rc = use_rc;
179 p_buf->sec_mask = sec_mask;
180 p_buf->switch_res = BTA_AV_RS_NONE;
181 bta_sys_sendmsg(p_buf);
196 BT_HDR *p_buf;
198 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
200 p_buf->event = BTA_AV_API_CLOSE_EVT;
201 p_buf->layer_specific = handle;
202 bta_sys_sendmsg(p_buf);
217 tBTA_AV_API_DISCNT *p_buf;
219 if ((p_buf = (tBTA_AV_API_DISCNT *) GKI_getbuf(sizeof(tBTA_AV_API_DISCNT))) != NULL)
221 p_buf->hdr.event = BTA_AV_API_DISCONNECT_EVT;
222 bdcpy(p_buf->bd_addr, bd_addr);
223 bta_sys_sendmsg(p_buf);
238 BT_HDR *p_buf;
240 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
242 p_buf->event = BTA_AV_API_START_EVT;
243 bta_sys_sendmsg(p_buf);
260 tBTA_AV_API_STOP *p_buf;
262 if ((p_buf = (tBTA_AV_API_STOP *) GKI_getbuf(sizeof(tBTA_AV_API_STOP))) != NULL)
264 p_buf->hdr.event = BTA_AV_API_STOP_EVT;
265 p_buf->flush = TRUE;
266 p_buf->suspend = suspend;
267 bta_sys_sendmsg(p_buf);
287 tBTA_AV_API_RCFG *p_buf;
289 if ((p_buf = (tBTA_AV_API_RCFG *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_RCFG) + num_protect))) != NULL)
291 p_buf->hdr.layer_specific = hndl;
292 p_buf->hdr.event = BTA_AV_API_RECONFIG_EVT;
293 p_buf->num_protect = num_protect;
294 p_buf->suspend = suspend;
295 p_buf->sep_info_idx = sep_info_idx;
296 p_buf->p_protect_info = (UINT8 *)(p_buf + 1);
297 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE);
298 memcpy(p_buf->p_protect_info, p_protect_info, num_protect);
299 bta_sys_sendmsg(p_buf);
315 tBTA_AV_API_PROTECT_REQ *p_buf;
317 if ((p_buf = (tBTA_AV_API_PROTECT_REQ *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_PROTECT_REQ) + len))) != NULL)
319 p_buf->hdr.layer_specific = hndl;
320 p_buf->hdr.event = BTA_AV_API_PROTECT_REQ_EVT;
321 p_buf->len = len;
324 p_buf->p_data = NULL;
328 p_buf->p_data = (UINT8 *) (p_buf + 1);
329 memcpy(p_buf->p_data, p_data, len);
331 bta_sys_sendmsg(p_buf);
349 tBTA_AV_API_PROTECT_RSP *p_buf;
351 if ((p_buf = (tBTA_AV_API_PROTECT_RSP *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_PROTECT_RSP) + len))) != NULL)
353 p_buf->hdr.layer_specific = hndl;
354 p_buf->hdr.event = BTA_AV_API_PROTECT_RSP_EVT;
355 p_buf->len = len;
356 p_buf->error_code = error_code;
359 p_buf->p_data = NULL;
363 p_buf->p_data = (UINT8 *) (p_buf + 1);
364 memcpy(p_buf->p_data, p_data, len);
366 bta_sys_sendmsg(p_buf);
382 tBTA_AV_API_REMOTE_CMD *p_buf;
384 if ((p_buf = (tBTA_AV_API_REMOTE_CMD *) GKI_getbuf(sizeof(tBTA_AV_API_REMOTE_CMD))) != NULL)
386 p_buf->hdr.event = BTA_AV_API_REMOTE_CMD_EVT;
387 p_buf->hdr.layer_specific = rc_handle;
388 p_buf->msg.op_id = rc_id;
389 p_buf->msg.state = key_state;
390 p_buf->msg.p_pass_data = NULL;
391 p_buf->msg.pass_len = 0;
392 p_buf->label = label;
393 bta_sys_sendmsg(p_buf);
410 tBTA_AV_API_VENDOR *p_buf;
412 if ((p_buf = (tBTA_AV_API_VENDOR *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_VENDOR) + len))) != NULL)
414 p_buf->hdr.event = BTA_AV_API_VENDOR_CMD_EVT;
415 p_buf->hdr.layer_specific = rc_handle;
416 p_buf->msg.hdr.ctype = cmd_code;
417 p_buf->msg.hdr.subunit_type = AVRC_SUB_PANEL;
418 p_buf->msg.hdr.subunit_id = 0;
419 p_buf->msg.company_id = p_bta_av_cfg->company_id;
420 p_buf->label = label;
421 p_buf->msg.vendor_len = len;
424 p_buf->msg.p_vendor_data = NULL;
428 p_buf->msg.p_vendor_data = (UINT8 *) (p_buf + 1);
429 memcpy(p_buf->msg.p_vendor_data, p_data, len);
431 bta_sys_sendmsg(p_buf);
449 tBTA_AV_API_VENDOR *p_buf;
451 if ((p_buf = (tBTA_AV_API_VENDOR *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_VENDOR) + len))) != NULL)
453 p_buf->hdr.event = BTA_AV_API_VENDOR_RSP_EVT;
454 p_buf->hdr.layer_specific = rc_handle;
455 p_buf->msg.hdr.ctype = rsp_code;
456 p_buf->msg.hdr.subunit_type = AVRC_SUB_PANEL;
457 p_buf->msg.hdr.subunit_id = 0;
459 p_buf->msg.company_id = company_id;
461 p_buf->msg.company_id = p_bta_av_cfg->company_id;
462 p_buf->label = label;
463 p_buf->msg.vendor_len = len;
466 p_buf->msg.p_vendor_data = NULL;
470 p_buf->msg.p_vendor_data = (UINT8 *) (p_buf + 1);
471 memcpy(p_buf->msg.p_vendor_data, p_data, len);
473 bta_sys_sendmsg(p_buf);
489 tBTA_AV_API_OPEN_RC *p_buf;
491 if ((p_buf = (tBTA_AV_API_OPEN_RC *) GKI_getbuf(sizeof(tBTA_AV_API_OPEN_RC))) != NULL)
493 p_buf->hdr.event = BTA_AV_API_RC_OPEN_EVT;
494 p_buf->hdr.layer_specific = handle;
495 bta_sys_sendmsg(p_buf);
510 tBTA_AV_API_CLOSE_RC *p_buf;
512 if ((p_buf = (tBTA_AV_API_CLOSE_RC *) GKI_getbuf(sizeof(tBTA_AV_API_CLOSE_RC))) != NULL)
514 p_buf->hdr.event = BTA_AV_API_RC_CLOSE_EVT;
515 p_buf->hdr.layer_specific = rc_handle;
516 bta_sys_sendmsg(p_buf);
535 tBTA_AV_API_META_RSP *p_buf;
537 if ((p_buf = (tBTA_AV_API_META_RSP *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_META_RSP)))) != NULL)
539 p_buf->hdr.event = BTA_AV_API_META_RSP_EVT;
540 p_buf->hdr.layer_specific = rc_handle;
541 p_buf->rsp_code = rsp_code;
542 p_buf->p_pkt = p_pkt;
543 p_buf->is_rsp = TRUE;
544 p_buf->label = label;
546 bta_sys_sendmsg(p_buf);
566 tBTA_AV_API_META_RSP *p_buf;
568 if ((p_buf = (tBTA_AV_API_META_RSP *) GKI_getbuf((UINT16) (sizeof(tBTA_AV_API_META_RSP)))) != NULL)
570 p_buf->hdr.event = BTA_AV_API_META_RSP_EVT;
571 p_buf->hdr.layer_specific = rc_handle;
572 p_buf->p_pkt = p_pkt;
573 p_buf->rsp_code = cmd_code;
574 p_buf->is_rsp = FALSE;
575 p_buf->label = label;
577 bta_sys_sendmsg(p_buf);