Lines Matching refs:p_data
89 static void bta_ag_cback_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data, tBTA_AG_STATUS status) in bta_ag_cback_open() argument
98 if(p_data) in bta_ag_cback_open()
101 bdcpy(open.bd_addr, p_data->api_open.bd_addr); in bta_ag_cback_open()
122 void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_register() argument
127 p_scb->reg_services = p_data->api_register.services; in bta_ag_register()
128 p_scb->serv_sec_mask = p_data->api_register.sec_mask; in bta_ag_register()
129 p_scb->features = p_data->api_register.features; in bta_ag_register()
130 p_scb->app_id = p_data->api_register.app_id; in bta_ag_register()
133 bta_ag_create_records(p_scb, p_data); in bta_ag_register()
156 void bta_ag_deregister(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_deregister() argument
162 bta_ag_del_records(p_scb, p_data); in bta_ag_deregister()
181 void bta_ag_start_dereg(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_start_dereg() argument
187 bta_ag_del_records(p_scb, p_data); in bta_ag_start_dereg()
200 void bta_ag_start_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_start_open() argument
205 if (p_data) in bta_ag_start_open()
207 bdcpy(p_scb->peer_addr, p_data->api_open.bd_addr); in bta_ag_start_open()
208 p_scb->open_services = p_data->api_open.services; in bta_ag_start_open()
209 p_scb->cli_sec_mask = p_data->api_open.sec_mask; in bta_ag_start_open()
242 void bta_ag_disc_int_res(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_disc_int_res() argument
246 APPL_TRACE_DEBUG ("bta_ag_disc_int_res: Status: %d", p_data->disc_result.status); in bta_ag_disc_int_res()
249 if (p_data->disc_result.status == SDP_SUCCESS || in bta_ag_disc_int_res()
250 p_data->disc_result.status == SDP_DB_FULL) in bta_ag_disc_int_res()
264 bta_ag_free_db(p_scb, p_data); in bta_ag_disc_int_res()
268 (p_data->disc_result.status == SDP_SUCCESS || in bta_ag_disc_int_res()
269 p_data->disc_result.status == SDP_DB_FULL || in bta_ag_disc_int_res()
270 p_data->disc_result.status == SDP_NO_RECS_MATCH)) in bta_ag_disc_int_res()
289 bta_ag_sm_execute(p_scb, event, p_data); in bta_ag_disc_int_res()
295 bta_ag_sm_execute(p_scb, event, p_data); in bta_ag_disc_int_res()
310 void bta_ag_disc_acp_res(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_disc_acp_res() argument
313 if (p_data->disc_result.status == SDP_SUCCESS || in bta_ag_disc_acp_res()
314 p_data->disc_result.status == SDP_DB_FULL) in bta_ag_disc_acp_res()
321 bta_ag_free_db(p_scb, p_data); in bta_ag_disc_acp_res()
334 void bta_ag_disc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_disc_fail() argument
336 UNUSED(p_data); in bta_ag_disc_fail()
360 void bta_ag_open_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_open_fail() argument
363 bta_ag_cback_open(p_scb, p_data, BTA_AG_FAIL_RESOURCES); in bta_ag_open_fail()
376 void bta_ag_rfc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_rfc_fail() argument
378 UNUSED(p_data); in bta_ag_rfc_fail()
411 void bta_ag_rfc_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_rfc_close() argument
416 UNUSED(p_data); in bta_ag_rfc_close()
504 void bta_ag_rfc_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_rfc_open() argument
534 bta_ag_svc_conn_open(p_scb, p_data); in bta_ag_rfc_open()
548 void bta_ag_rfc_acp_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_rfc_acp_open() argument
563 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_ag_rfc_acp_open()
604 i, p_scb->serv_handle[i], p_data->rfc.port_handle); in bta_ag_rfc_acp_open()
606 if (p_scb->serv_handle[i] == p_data->rfc.port_handle) in bta_ag_rfc_acp_open()
609 p_scb->conn_handle = p_data->rfc.port_handle; in bta_ag_rfc_acp_open()
624 bta_ag_rfc_open(p_scb, p_data); in bta_ag_rfc_acp_open()
640 void bta_ag_rfc_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_rfc_data() argument
644 UNUSED(p_data); in bta_ag_rfc_data()
694 void bta_ag_start_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_start_close() argument
708 bta_ag_rfc_do_close(p_scb, p_data); in bta_ag_start_close()
712 bta_ag_sco_shutdown(p_scb, p_data); in bta_ag_start_close()
725 void bta_ag_post_sco_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_post_sco_open() argument
730 bta_ag_send_ring(p_scb, p_data); in bta_ag_post_sco_open()
754 void bta_ag_post_sco_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_post_sco_close() argument
759 bta_ag_rfc_do_close(p_scb, p_data); in bta_ag_post_sco_close()
787 bta_ag_sco_open(p_scb, p_data); in bta_ag_post_sco_close()
792 bta_ag_send_ring(p_scb, p_data); in bta_ag_post_sco_close()
811 void bta_ag_svc_conn_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_svc_conn_open() argument
814 UNUSED(p_data); in bta_ag_svc_conn_open()
854 void bta_ag_ci_rx_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_ci_rx_data() argument
857 tBTA_AG_CI_RX_WRITE *p_rx_write_msg = (tBTA_AG_CI_RX_WRITE *)p_data; in bta_ag_ci_rx_data()
884 void bta_ag_rcvd_slc_ready(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_rcvd_slc_ready() argument
886 UNUSED(p_data); in bta_ag_rcvd_slc_ready()
907 void bta_ag_setcodec(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) in bta_ag_setcodec() argument
910 tBTA_AG_PEER_CODEC codec_type = p_data->api_setcodec.codec; in bta_ag_setcodec()