• Home
  • Raw
  • Download

Lines Matching refs:p_buf

56   tBTA_AV_API_ENABLE* p_buf =  in BTA_AvEnable()  local
62 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable()
63 p_buf->p_cback = p_cback; in BTA_AvEnable()
64 p_buf->features = features; in BTA_AvEnable()
66 bta_sys_sendmsg(p_buf); in BTA_AvEnable()
79 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_AvDisable() local
82 p_buf->event = BTA_AV_API_DISABLE_EVT; in BTA_AvDisable()
84 bta_sys_sendmsg(p_buf); in BTA_AvDisable()
103 tBTA_AV_API_REG* p_buf = in BTA_AvRegister() local
106 p_buf->hdr.layer_specific = chnl; in BTA_AvRegister()
107 p_buf->hdr.event = BTA_AV_API_REGISTER_EVT; in BTA_AvRegister()
109 strlcpy(p_buf->p_service_name, p_service_name, BTA_SERVICE_NAME_LEN); in BTA_AvRegister()
111 p_buf->p_service_name[0] = 0; in BTA_AvRegister()
112 p_buf->app_id = app_id; in BTA_AvRegister()
113 p_buf->p_app_sink_data_cback = p_sink_data_cback; in BTA_AvRegister()
114 p_buf->service_uuid = service_uuid; in BTA_AvRegister()
116 bta_sys_sendmsg(p_buf); in BTA_AvRegister()
129 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_AvDeregister() local
131 p_buf->layer_specific = hndl; in BTA_AvDeregister()
132 p_buf->event = BTA_AV_API_DEREGISTER_EVT; in BTA_AvDeregister()
134 bta_sys_sendmsg(p_buf); in BTA_AvDeregister()
154 tBTA_AV_API_OPEN* p_buf = in BTA_AvOpen() local
157 p_buf->hdr.event = BTA_AV_API_OPEN_EVT; in BTA_AvOpen()
158 p_buf->hdr.layer_specific = handle; in BTA_AvOpen()
159 p_buf->bd_addr = bd_addr; in BTA_AvOpen()
160 p_buf->use_rc = use_rc; in BTA_AvOpen()
161 p_buf->switch_res = BTA_AV_RS_NONE; in BTA_AvOpen()
162 p_buf->uuid = uuid; in BTA_AvOpen()
164 bta_sys_sendmsg(p_buf); in BTA_AvOpen()
179 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_AvClose() local
181 p_buf->event = BTA_AV_API_CLOSE_EVT; in BTA_AvClose()
182 p_buf->layer_specific = handle; in BTA_AvClose()
184 bta_sys_sendmsg(p_buf); in BTA_AvClose()
199 tBTA_AV_API_DISCNT* p_buf = in BTA_AvDisconnect() local
202 p_buf->hdr.event = BTA_AV_API_DISCONNECT_EVT; in BTA_AvDisconnect()
203 p_buf->hdr.layer_specific = handle; in BTA_AvDisconnect()
205 bta_sys_sendmsg(p_buf); in BTA_AvDisconnect()
220 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_AvStart() local
222 p_buf->event = BTA_AV_API_START_EVT; in BTA_AvStart()
223 p_buf->layer_specific = handle; in BTA_AvStart()
225 bta_sys_sendmsg(p_buf); in BTA_AvStart()
240 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_AvOffloadStart() local
242 p_buf->event = BTA_AV_API_OFFLOAD_START_EVT; in BTA_AvOffloadStart()
243 p_buf->layer_specific = hndl; in BTA_AvOffloadStart()
245 bta_sys_sendmsg(p_buf); in BTA_AvOffloadStart()
258 tBTA_AV_API_STATUS_RSP* p_buf = in BTA_AvOffloadStartRsp() local
261 p_buf->hdr.event = BTA_AV_API_OFFLOAD_START_RSP_EVT; in BTA_AvOffloadStartRsp()
262 p_buf->hdr.layer_specific = hndl; in BTA_AvOffloadStartRsp()
263 p_buf->status = status; in BTA_AvOffloadStartRsp()
265 bta_sys_sendmsg(p_buf); in BTA_AvOffloadStartRsp()
283 tBTA_AV_API_STOP* p_buf = in BTA_AvStop() local
286 p_buf->hdr.event = BTA_AV_API_STOP_EVT; in BTA_AvStop()
287 p_buf->hdr.layer_specific = handle; in BTA_AvStop()
288 p_buf->flush = true; in BTA_AvStop()
289 p_buf->suspend = suspend; in BTA_AvStop()
290 p_buf->reconfig_stop = false; in BTA_AvStop()
292 bta_sys_sendmsg(p_buf); in BTA_AvStop()
314 tBTA_AV_API_RCFG* p_buf = in BTA_AvReconfig() local
317 p_buf->hdr.layer_specific = hndl; in BTA_AvReconfig()
318 p_buf->hdr.event = BTA_AV_API_RECONFIG_EVT; in BTA_AvReconfig()
319 p_buf->num_protect = num_protect; in BTA_AvReconfig()
320 p_buf->suspend = suspend; in BTA_AvReconfig()
321 p_buf->sep_info_idx = sep_info_idx; in BTA_AvReconfig()
322 p_buf->p_protect_info = (uint8_t*)(p_buf + 1); in BTA_AvReconfig()
323 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in BTA_AvReconfig()
324 memcpy(p_buf->p_protect_info, p_protect_info, num_protect); in BTA_AvReconfig()
326 bta_sys_sendmsg(p_buf); in BTA_AvReconfig()
340 tBTA_AV_API_PROTECT_REQ* p_buf = (tBTA_AV_API_PROTECT_REQ*)osi_malloc( in BTA_AvProtectReq() local
343 p_buf->hdr.layer_specific = hndl; in BTA_AvProtectReq()
344 p_buf->hdr.event = BTA_AV_API_PROTECT_REQ_EVT; in BTA_AvProtectReq()
345 p_buf->len = len; in BTA_AvProtectReq()
347 p_buf->p_data = NULL; in BTA_AvProtectReq()
349 p_buf->p_data = (uint8_t*)(p_buf + 1); in BTA_AvProtectReq()
350 memcpy(p_buf->p_data, p_data, len); in BTA_AvProtectReq()
353 bta_sys_sendmsg(p_buf); in BTA_AvProtectReq()
370 tBTA_AV_API_PROTECT_RSP* p_buf = (tBTA_AV_API_PROTECT_RSP*)osi_malloc( in BTA_AvProtectRsp() local
373 p_buf->hdr.layer_specific = hndl; in BTA_AvProtectRsp()
374 p_buf->hdr.event = BTA_AV_API_PROTECT_RSP_EVT; in BTA_AvProtectRsp()
375 p_buf->len = len; in BTA_AvProtectRsp()
376 p_buf->error_code = error_code; in BTA_AvProtectRsp()
378 p_buf->p_data = NULL; in BTA_AvProtectRsp()
380 p_buf->p_data = (uint8_t*)(p_buf + 1); in BTA_AvProtectRsp()
381 memcpy(p_buf->p_data, p_data, len); in BTA_AvProtectRsp()
384 bta_sys_sendmsg(p_buf); in BTA_AvProtectRsp()
399 tBTA_AV_API_REMOTE_CMD* p_buf = in BTA_AvRemoteCmd() local
402 p_buf->hdr.event = BTA_AV_API_REMOTE_CMD_EVT; in BTA_AvRemoteCmd()
403 p_buf->hdr.layer_specific = rc_handle; in BTA_AvRemoteCmd()
404 p_buf->msg.op_id = rc_id; in BTA_AvRemoteCmd()
405 p_buf->msg.state = key_state; in BTA_AvRemoteCmd()
406 p_buf->msg.p_pass_data = NULL; in BTA_AvRemoteCmd()
407 p_buf->msg.pass_len = 0; in BTA_AvRemoteCmd()
408 p_buf->label = label; in BTA_AvRemoteCmd()
410 bta_sys_sendmsg(p_buf); in BTA_AvRemoteCmd()
427 tBTA_AV_API_REMOTE_CMD* p_buf = (tBTA_AV_API_REMOTE_CMD*)osi_malloc( in BTA_AvRemoteVendorUniqueCmd() local
430 p_buf->label = label; in BTA_AvRemoteVendorUniqueCmd()
431 p_buf->hdr.event = BTA_AV_API_REMOTE_CMD_EVT; in BTA_AvRemoteVendorUniqueCmd()
432 p_buf->hdr.layer_specific = rc_handle; in BTA_AvRemoteVendorUniqueCmd()
433 p_buf->msg.op_id = AVRC_ID_VENDOR; in BTA_AvRemoteVendorUniqueCmd()
434 p_buf->msg.state = key_state; in BTA_AvRemoteVendorUniqueCmd()
435 p_buf->msg.pass_len = buf_len; in BTA_AvRemoteVendorUniqueCmd()
437 p_buf->msg.p_pass_data = NULL; in BTA_AvRemoteVendorUniqueCmd()
439 p_buf->msg.p_pass_data = (uint8_t*)(p_buf + 1); in BTA_AvRemoteVendorUniqueCmd()
440 memcpy(p_buf->msg.p_pass_data, p_msg, buf_len); in BTA_AvRemoteVendorUniqueCmd()
442 bta_sys_sendmsg(p_buf); in BTA_AvRemoteVendorUniqueCmd()
458 tBTA_AV_API_VENDOR* p_buf = in BTA_AvVendorCmd() local
461 p_buf->hdr.event = BTA_AV_API_VENDOR_CMD_EVT; in BTA_AvVendorCmd()
462 p_buf->hdr.layer_specific = rc_handle; in BTA_AvVendorCmd()
463 p_buf->msg.hdr.ctype = cmd_code; in BTA_AvVendorCmd()
464 p_buf->msg.hdr.subunit_type = AVRC_SUB_PANEL; in BTA_AvVendorCmd()
465 p_buf->msg.hdr.subunit_id = 0; in BTA_AvVendorCmd()
466 p_buf->msg.company_id = p_bta_av_cfg->company_id; in BTA_AvVendorCmd()
467 p_buf->label = label; in BTA_AvVendorCmd()
468 p_buf->msg.vendor_len = len; in BTA_AvVendorCmd()
470 p_buf->msg.p_vendor_data = NULL; in BTA_AvVendorCmd()
472 p_buf->msg.p_vendor_data = (uint8_t*)(p_buf + 1); in BTA_AvVendorCmd()
473 memcpy(p_buf->msg.p_vendor_data, p_data, len); in BTA_AvVendorCmd()
476 bta_sys_sendmsg(p_buf); in BTA_AvVendorCmd()
493 tBTA_AV_API_VENDOR* p_buf = in BTA_AvVendorRsp() local
496 p_buf->hdr.event = BTA_AV_API_VENDOR_RSP_EVT; in BTA_AvVendorRsp()
497 p_buf->hdr.layer_specific = rc_handle; in BTA_AvVendorRsp()
498 p_buf->msg.hdr.ctype = rsp_code; in BTA_AvVendorRsp()
499 p_buf->msg.hdr.subunit_type = AVRC_SUB_PANEL; in BTA_AvVendorRsp()
500 p_buf->msg.hdr.subunit_id = 0; in BTA_AvVendorRsp()
502 p_buf->msg.company_id = company_id; in BTA_AvVendorRsp()
504 p_buf->msg.company_id = p_bta_av_cfg->company_id; in BTA_AvVendorRsp()
505 p_buf->label = label; in BTA_AvVendorRsp()
506 p_buf->msg.vendor_len = len; in BTA_AvVendorRsp()
508 p_buf->msg.p_vendor_data = NULL; in BTA_AvVendorRsp()
510 p_buf->msg.p_vendor_data = (uint8_t*)(p_buf + 1); in BTA_AvVendorRsp()
511 memcpy(p_buf->msg.p_vendor_data, p_data, len); in BTA_AvVendorRsp()
514 bta_sys_sendmsg(p_buf); in BTA_AvVendorRsp()
528 tBTA_AV_API_OPEN_RC* p_buf = in BTA_AvOpenRc() local
531 p_buf->hdr.event = BTA_AV_API_RC_OPEN_EVT; in BTA_AvOpenRc()
532 p_buf->hdr.layer_specific = handle; in BTA_AvOpenRc()
534 bta_sys_sendmsg(p_buf); in BTA_AvOpenRc()
547 tBTA_AV_API_CLOSE_RC* p_buf = in BTA_AvCloseRc() local
550 p_buf->hdr.event = BTA_AV_API_RC_CLOSE_EVT; in BTA_AvCloseRc()
551 p_buf->hdr.layer_specific = rc_handle; in BTA_AvCloseRc()
553 bta_sys_sendmsg(p_buf); in BTA_AvCloseRc()
571 tBTA_AV_API_META_RSP* p_buf = in BTA_AvMetaRsp() local
574 p_buf->hdr.event = BTA_AV_API_META_RSP_EVT; in BTA_AvMetaRsp()
575 p_buf->hdr.layer_specific = rc_handle; in BTA_AvMetaRsp()
576 p_buf->rsp_code = rsp_code; in BTA_AvMetaRsp()
577 p_buf->p_pkt = p_pkt; in BTA_AvMetaRsp()
578 p_buf->is_rsp = true; in BTA_AvMetaRsp()
579 p_buf->label = label; in BTA_AvMetaRsp()
581 bta_sys_sendmsg(p_buf); in BTA_AvMetaRsp()
603 tBTA_AV_API_META_RSP* p_buf = in BTA_AvMetaCmd() local
606 p_buf->hdr.event = BTA_AV_API_META_RSP_EVT; in BTA_AvMetaCmd()
607 p_buf->hdr.layer_specific = rc_handle; in BTA_AvMetaCmd()
608 p_buf->p_pkt = p_pkt; in BTA_AvMetaCmd()
609 p_buf->rsp_code = cmd_code; in BTA_AvMetaCmd()
610 p_buf->is_rsp = false; in BTA_AvMetaCmd()
611 p_buf->label = label; in BTA_AvMetaCmd()
613 bta_sys_sendmsg(p_buf); in BTA_AvMetaCmd()