• Home
  • Raw
  • Download

Lines Matching refs:p_msg

179     tBTA_JV_API_ALLOC_CHANNEL *p_msg;  in BTA_JvGetChannelId()  local
182 … if ((p_msg = (tBTA_JV_API_ALLOC_CHANNEL *)GKI_getbuf(sizeof(tBTA_JV_API_ALLOC_CHANNEL))) != NULL) in BTA_JvGetChannelId()
184 p_msg->hdr.event = BTA_JV_API_GET_CHANNEL_EVT; in BTA_JvGetChannelId()
185 p_msg->type = conn_type; in BTA_JvGetChannelId()
186 p_msg->channel = channel; in BTA_JvGetChannelId()
187 p_msg->user_data = user_data; in BTA_JvGetChannelId()
188 bta_sys_sendmsg(p_msg); in BTA_JvGetChannelId()
212 tBTA_JV_API_FREE_CHANNEL *p_msg; in BTA_JvFreeChannel() local
215 if ((p_msg = (tBTA_JV_API_FREE_CHANNEL *)GKI_getbuf(sizeof(tBTA_JV_API_FREE_CHANNEL))) != NULL) in BTA_JvFreeChannel()
217 p_msg->hdr.event = BTA_JV_API_FREE_SCN_EVT; in BTA_JvFreeChannel()
218 p_msg->scn = channel; in BTA_JvFreeChannel()
219 p_msg->type = conn_type; in BTA_JvFreeChannel()
220 bta_sys_sendmsg(p_msg); in BTA_JvFreeChannel()
244 tBTA_JV_API_START_DISCOVERY *p_msg; in BTA_JvStartDiscovery() local
247 …if ((p_msg = (tBTA_JV_API_START_DISCOVERY *)GKI_getbuf(sizeof(tBTA_JV_API_START_DISCOVERY))) != NU… in BTA_JvStartDiscovery()
249 p_msg->hdr.event = BTA_JV_API_START_DISCOVERY_EVT; in BTA_JvStartDiscovery()
250 bdcpy(p_msg->bd_addr, bd_addr); in BTA_JvStartDiscovery()
251 p_msg->num_uuid = num_uuid; in BTA_JvStartDiscovery()
252 memcpy(p_msg->uuid_list, p_uuid_list, num_uuid * sizeof(tSDP_UUID)); in BTA_JvStartDiscovery()
253 p_msg->num_attr = 0; in BTA_JvStartDiscovery()
254 p_msg->user_data = user_data; in BTA_JvStartDiscovery()
255 bta_sys_sendmsg(p_msg); in BTA_JvStartDiscovery()
277 tBTA_JV_API_CREATE_RECORD *p_msg; in BTA_JvCreateRecordByUser() local
280 … if ((p_msg = (tBTA_JV_API_CREATE_RECORD *)GKI_getbuf(sizeof(tBTA_JV_API_CREATE_RECORD))) != NULL) in BTA_JvCreateRecordByUser()
282 p_msg->hdr.event = BTA_JV_API_CREATE_RECORD_EVT; in BTA_JvCreateRecordByUser()
283 p_msg->user_data = user_data; in BTA_JvCreateRecordByUser()
284 bta_sys_sendmsg(p_msg); in BTA_JvCreateRecordByUser()
304 tBTA_JV_API_ADD_ATTRIBUTE *p_msg; in BTA_JvDeleteRecord() local
307 … if ((p_msg = (tBTA_JV_API_ADD_ATTRIBUTE *)GKI_getbuf(sizeof(tBTA_JV_API_ADD_ATTRIBUTE))) != NULL) in BTA_JvDeleteRecord()
309 p_msg->hdr.event = BTA_JV_API_DELETE_RECORD_EVT; in BTA_JvDeleteRecord()
310 p_msg->handle = handle; in BTA_JvDeleteRecord()
311 bta_sys_sendmsg(p_msg); in BTA_JvDeleteRecord()
338 tBTA_JV_API_L2CAP_CONNECT *p_msg; in BTA_JvL2capConnectLE() local
343 (p_msg = in BTA_JvL2capConnectLE()
346 p_msg->hdr.event = BTA_JV_API_L2CAP_CONNECT_LE_EVT; in BTA_JvL2capConnectLE()
347 p_msg->sec_mask = sec_mask; in BTA_JvL2capConnectLE()
348 p_msg->role = role; in BTA_JvL2capConnectLE()
349 p_msg->remote_chan = remote_chan; in BTA_JvL2capConnectLE()
350 p_msg->rx_mtu = rx_mtu; in BTA_JvL2capConnectLE()
352 p_msg->has_cfg = TRUE; in BTA_JvL2capConnectLE()
353 p_msg->cfg = *cfg; in BTA_JvL2capConnectLE()
355 p_msg->has_cfg = FALSE; in BTA_JvL2capConnectLE()
358 p_msg->has_ertm_info = TRUE; in BTA_JvL2capConnectLE()
359 p_msg->ertm_info = *ertm_info; in BTA_JvL2capConnectLE()
361 p_msg->has_ertm_info = FALSE; in BTA_JvL2capConnectLE()
363 memcpy(p_msg->peer_bd_addr, peer_bd_addr, sizeof(BD_ADDR)); in BTA_JvL2capConnectLE()
364 p_msg->p_cback = p_cback; in BTA_JvL2capConnectLE()
365 p_msg->user_data = user_data; in BTA_JvL2capConnectLE()
366 bta_sys_sendmsg(p_msg); in BTA_JvL2capConnectLE()
394 tBTA_JV_API_L2CAP_CONNECT *p_msg; in BTA_JvL2capConnect() local
399 … (p_msg = (tBTA_JV_API_L2CAP_CONNECT *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_CONNECT))) != NULL) in BTA_JvL2capConnect()
401 p_msg->hdr.event = BTA_JV_API_L2CAP_CONNECT_EVT; in BTA_JvL2capConnect()
402 p_msg->sec_mask = sec_mask; in BTA_JvL2capConnect()
403 p_msg->role = role; in BTA_JvL2capConnect()
404 p_msg->remote_psm = remote_psm; in BTA_JvL2capConnect()
405 p_msg->rx_mtu = rx_mtu; in BTA_JvL2capConnect()
407 p_msg->has_cfg = TRUE; in BTA_JvL2capConnect()
408 p_msg->cfg = *cfg; in BTA_JvL2capConnect()
410 p_msg->has_cfg = FALSE; in BTA_JvL2capConnect()
413 p_msg->has_ertm_info = TRUE; in BTA_JvL2capConnect()
414 p_msg->ertm_info = *ertm_info; in BTA_JvL2capConnect()
416 p_msg->has_ertm_info = FALSE; in BTA_JvL2capConnect()
418 memcpy(p_msg->peer_bd_addr, peer_bd_addr, sizeof(BD_ADDR)); in BTA_JvL2capConnect()
419 p_msg->p_cback = p_cback; in BTA_JvL2capConnect()
420 p_msg->user_data = user_data; in BTA_JvL2capConnect()
421 bta_sys_sendmsg(p_msg); in BTA_JvL2capConnect()
441 tBTA_JV_API_L2CAP_CLOSE *p_msg; in BTA_JvL2capClose() local
446 (p_msg = (tBTA_JV_API_L2CAP_CLOSE *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_CLOSE))) != NULL) in BTA_JvL2capClose()
448 p_msg->hdr.event = BTA_JV_API_L2CAP_CLOSE_EVT; in BTA_JvL2capClose()
449 p_msg->handle = handle; in BTA_JvL2capClose()
450 p_msg->p_cb = &bta_jv_cb.l2c_cb[handle]; in BTA_JvL2capClose()
451 bta_sys_sendmsg(p_msg); in BTA_JvL2capClose()
472 tBTA_JV_API_L2CAP_CLOSE *p_msg; in BTA_JvL2capCloseLE() local
476 if ((p_msg = (tBTA_JV_API_L2CAP_CLOSE *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_CLOSE))) != NULL) in BTA_JvL2capCloseLE()
478 p_msg->hdr.event = BTA_JV_API_L2CAP_CLOSE_FIXED_EVT; in BTA_JvL2capCloseLE()
479 p_msg->handle = handle; in BTA_JvL2capCloseLE()
480 bta_sys_sendmsg(p_msg); in BTA_JvL2capCloseLE()
506 tBTA_JV_API_L2CAP_SERVER *p_msg; in BTA_JvL2capStartServer() local
511 (p_msg = (tBTA_JV_API_L2CAP_SERVER *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_SERVER))) != NULL) in BTA_JvL2capStartServer()
513 p_msg->hdr.event = BTA_JV_API_L2CAP_START_SERVER_EVT; in BTA_JvL2capStartServer()
514 p_msg->sec_mask = sec_mask; in BTA_JvL2capStartServer()
515 p_msg->role = role; in BTA_JvL2capStartServer()
516 p_msg->local_psm = local_psm; in BTA_JvL2capStartServer()
517 p_msg->rx_mtu = rx_mtu; in BTA_JvL2capStartServer()
519 p_msg->has_cfg = TRUE; in BTA_JvL2capStartServer()
520 p_msg->cfg = *cfg; in BTA_JvL2capStartServer()
522 p_msg->has_cfg = FALSE; in BTA_JvL2capStartServer()
525 p_msg->has_ertm_info = TRUE; in BTA_JvL2capStartServer()
526 p_msg->ertm_info = *ertm_info; in BTA_JvL2capStartServer()
528 p_msg->has_ertm_info = FALSE; in BTA_JvL2capStartServer()
530 p_msg->p_cback = p_cback; in BTA_JvL2capStartServer()
531 p_msg->user_data = user_data; in BTA_JvL2capStartServer()
532 bta_sys_sendmsg(p_msg); in BTA_JvL2capStartServer()
558 tBTA_JV_API_L2CAP_SERVER *p_msg; in BTA_JvL2capStartServerLE() local
563 (p_msg = (tBTA_JV_API_L2CAP_SERVER *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_SERVER))) != NULL) in BTA_JvL2capStartServerLE()
565 p_msg->hdr.event = BTA_JV_API_L2CAP_START_SERVER_LE_EVT; in BTA_JvL2capStartServerLE()
566 p_msg->sec_mask = sec_mask; in BTA_JvL2capStartServerLE()
567 p_msg->role = role; in BTA_JvL2capStartServerLE()
568 p_msg->local_chan = local_chan; in BTA_JvL2capStartServerLE()
569 p_msg->rx_mtu = rx_mtu; in BTA_JvL2capStartServerLE()
571 p_msg->has_cfg = TRUE; in BTA_JvL2capStartServerLE()
572 p_msg->cfg = *cfg; in BTA_JvL2capStartServerLE()
574 p_msg->has_cfg = FALSE; in BTA_JvL2capStartServerLE()
577 p_msg->has_ertm_info = TRUE; in BTA_JvL2capStartServerLE()
578 p_msg->ertm_info = *ertm_info; in BTA_JvL2capStartServerLE()
580 p_msg->has_ertm_info = FALSE; in BTA_JvL2capStartServerLE()
582 p_msg->p_cback = p_cback; in BTA_JvL2capStartServerLE()
583 p_msg->user_data = user_data; in BTA_JvL2capStartServerLE()
584 bta_sys_sendmsg(p_msg); in BTA_JvL2capStartServerLE()
605 tBTA_JV_API_L2CAP_SERVER *p_msg; in BTA_JvL2capStopServer() local
609 if ((p_msg = (tBTA_JV_API_L2CAP_SERVER *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_SERVER))) != NULL) in BTA_JvL2capStopServer()
611 p_msg->hdr.event = BTA_JV_API_L2CAP_STOP_SERVER_EVT; in BTA_JvL2capStopServer()
612 p_msg->local_psm = local_psm; in BTA_JvL2capStopServer()
613 p_msg->user_data = user_data; in BTA_JvL2capStopServer()
614 bta_sys_sendmsg(p_msg); in BTA_JvL2capStopServer()
635 tBTA_JV_API_L2CAP_SERVER *p_msg; in BTA_JvL2capStopServerLE() local
639 if ((p_msg = (tBTA_JV_API_L2CAP_SERVER *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_SERVER))) != NULL) in BTA_JvL2capStopServerLE()
641 p_msg->hdr.event = BTA_JV_API_L2CAP_STOP_SERVER_LE_EVT; in BTA_JvL2capStopServerLE()
642 p_msg->local_chan = local_chan; in BTA_JvL2capStopServerLE()
643 p_msg->user_data = user_data; in BTA_JvL2capStopServerLE()
644 bta_sys_sendmsg(p_msg); in BTA_JvL2capStopServerLE()
788 tBTA_JV_API_L2CAP_WRITE *p_msg; in BTA_JvL2capWrite() local
793 (p_msg = (tBTA_JV_API_L2CAP_WRITE *)GKI_getbuf(sizeof(tBTA_JV_API_L2CAP_WRITE))) != NULL) in BTA_JvL2capWrite()
795 p_msg->hdr.event = BTA_JV_API_L2CAP_WRITE_EVT; in BTA_JvL2capWrite()
796 p_msg->handle = handle; in BTA_JvL2capWrite()
797 p_msg->req_id = req_id; in BTA_JvL2capWrite()
798 p_msg->p_data = p_data; in BTA_JvL2capWrite()
799 p_msg->p_cb = &bta_jv_cb.l2c_cb[handle]; in BTA_JvL2capWrite()
800 p_msg->len = len; in BTA_JvL2capWrite()
801 p_msg->user_data = user_data; in BTA_JvL2capWrite()
802 bta_sys_sendmsg(p_msg); in BTA_JvL2capWrite()
826 tBTA_JV_API_L2CAP_WRITE_FIXED *p_msg; in BTA_JvL2capWriteFixed() local
830 if ((p_msg = in BTA_JvL2capWriteFixed()
833 p_msg->hdr.event = BTA_JV_API_L2CAP_WRITE_FIXED_EVT; in BTA_JvL2capWriteFixed()
834 p_msg->channel = channel; in BTA_JvL2capWriteFixed()
835 memcpy(p_msg->addr, addr, sizeof(p_msg->addr)); in BTA_JvL2capWriteFixed()
836 p_msg->req_id = req_id; in BTA_JvL2capWriteFixed()
837 p_msg->p_data = p_data; in BTA_JvL2capWriteFixed()
838 p_msg->p_cback = p_cback; in BTA_JvL2capWriteFixed()
839 p_msg->len = len; in BTA_JvL2capWriteFixed()
840 p_msg->user_data = user_data; in BTA_JvL2capWriteFixed()
841 bta_sys_sendmsg(p_msg); in BTA_JvL2capWriteFixed()
868 tBTA_JV_API_RFCOMM_CONNECT *p_msg; in BTA_JvRfcommConnect() local
872 … (p_msg = (tBTA_JV_API_RFCOMM_CONNECT *)GKI_getbuf(sizeof(tBTA_JV_API_RFCOMM_CONNECT))) != NULL) in BTA_JvRfcommConnect()
874 p_msg->hdr.event = BTA_JV_API_RFCOMM_CONNECT_EVT; in BTA_JvRfcommConnect()
875 p_msg->sec_mask = sec_mask; in BTA_JvRfcommConnect()
876 p_msg->role = role; in BTA_JvRfcommConnect()
877 p_msg->remote_scn = remote_scn; in BTA_JvRfcommConnect()
878 memcpy(p_msg->peer_bd_addr, peer_bd_addr, sizeof(BD_ADDR)); in BTA_JvRfcommConnect()
879 p_msg->p_cback = p_cback; in BTA_JvRfcommConnect()
880 p_msg->user_data = user_data; in BTA_JvRfcommConnect()
881 bta_sys_sendmsg(p_msg); in BTA_JvRfcommConnect()
901 tBTA_JV_API_RFCOMM_CLOSE *p_msg; in BTA_JvRfcommClose() local
908 (p_msg = (tBTA_JV_API_RFCOMM_CLOSE *)GKI_getbuf(sizeof(tBTA_JV_API_RFCOMM_CLOSE))) != NULL) in BTA_JvRfcommClose()
910 p_msg->hdr.event = BTA_JV_API_RFCOMM_CLOSE_EVT; in BTA_JvRfcommClose()
911 p_msg->handle = handle; in BTA_JvRfcommClose()
912 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommClose()
913 p_msg->p_pcb = &bta_jv_cb.port_cb[p_msg->p_cb->rfc_hdl[si] - 1]; in BTA_JvRfcommClose()
914 p_msg->user_data = user_data; in BTA_JvRfcommClose()
915 bta_sys_sendmsg(p_msg); in BTA_JvRfcommClose()
942 tBTA_JV_API_RFCOMM_SERVER *p_msg; in BTA_JvRfcommStartServer() local
946 … (p_msg = (tBTA_JV_API_RFCOMM_SERVER *)GKI_getbuf(sizeof(tBTA_JV_API_RFCOMM_SERVER))) != NULL) in BTA_JvRfcommStartServer()
955 p_msg->hdr.event = BTA_JV_API_RFCOMM_START_SERVER_EVT; in BTA_JvRfcommStartServer()
956 p_msg->sec_mask = sec_mask; in BTA_JvRfcommStartServer()
957 p_msg->role = role; in BTA_JvRfcommStartServer()
958 p_msg->local_scn = local_scn; in BTA_JvRfcommStartServer()
959 p_msg->max_session = max_session; in BTA_JvRfcommStartServer()
960 p_msg->p_cback = p_cback; in BTA_JvRfcommStartServer()
961 p_msg->user_data = user_data; //caller's private data in BTA_JvRfcommStartServer()
962 bta_sys_sendmsg(p_msg); in BTA_JvRfcommStartServer()
983 tBTA_JV_API_RFCOMM_SERVER *p_msg; in BTA_JvRfcommStopServer() local
985 … if ((p_msg = (tBTA_JV_API_RFCOMM_SERVER *)GKI_getbuf(sizeof(tBTA_JV_API_RFCOMM_SERVER))) != NULL) in BTA_JvRfcommStopServer()
987 p_msg->hdr.event = BTA_JV_API_RFCOMM_STOP_SERVER_EVT; in BTA_JvRfcommStopServer()
988 p_msg->handle = handle; in BTA_JvRfcommStopServer()
989 p_msg->user_data = user_data; //caller's private data in BTA_JvRfcommStopServer()
990 bta_sys_sendmsg(p_msg); in BTA_JvRfcommStopServer()
1011 tBTA_JV_API_RFCOMM_READ *p_msg; in BTA_JvRfcommRead() local
1018 (p_msg = (tBTA_JV_API_RFCOMM_READ *)GKI_getbuf(sizeof(tBTA_JV_API_RFCOMM_READ))) != NULL) in BTA_JvRfcommRead()
1020 p_msg->hdr.event = BTA_JV_API_RFCOMM_READ_EVT; in BTA_JvRfcommRead()
1021 p_msg->handle = handle; in BTA_JvRfcommRead()
1022 p_msg->req_id = req_id; in BTA_JvRfcommRead()
1023 p_msg->p_data = p_data; in BTA_JvRfcommRead()
1024 p_msg->len = len; in BTA_JvRfcommRead()
1025 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommRead()
1026 p_msg->p_pcb = &bta_jv_cb.port_cb[p_msg->p_cb->rfc_hdl[si] - 1]; in BTA_JvRfcommRead()
1027 bta_sys_sendmsg(p_msg); in BTA_JvRfcommRead()
1101 tBTA_JV_API_RFCOMM_WRITE *p_msg; in BTA_JvRfcommWrite() local
1109 (p_msg = (tBTA_JV_API_RFCOMM_WRITE *)GKI_getbuf(sizeof(tBTA_JV_API_RFCOMM_WRITE))) != NULL) in BTA_JvRfcommWrite()
1111 p_msg->hdr.event = BTA_JV_API_RFCOMM_WRITE_EVT; in BTA_JvRfcommWrite()
1112 p_msg->handle = handle; in BTA_JvRfcommWrite()
1113 p_msg->req_id = req_id; in BTA_JvRfcommWrite()
1114 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommWrite()
1115 p_msg->p_pcb = &bta_jv_cb.port_cb[p_msg->p_cb->rfc_hdl[si] - 1]; in BTA_JvRfcommWrite()
1117 bta_sys_sendmsg(p_msg); in BTA_JvRfcommWrite()
1147 tBTA_JV_API_SET_PM_PROFILE *p_msg; in BTA_JvSetPmProfile() local
1150 if ((p_msg = (tBTA_JV_API_SET_PM_PROFILE *)GKI_getbuf(sizeof(tBTA_JV_API_SET_PM_PROFILE))) in BTA_JvSetPmProfile()
1153 p_msg->hdr.event = BTA_JV_API_SET_PM_PROFILE_EVT; in BTA_JvSetPmProfile()
1154 p_msg->handle = handle; in BTA_JvSetPmProfile()
1155 p_msg->app_id = app_id; in BTA_JvSetPmProfile()
1156 p_msg->init_st = init_st; in BTA_JvSetPmProfile()
1157 bta_sys_sendmsg(p_msg); in BTA_JvSetPmProfile()