Lines Matching refs:p_data

54                                   tGATT_CL_COMPLETE *p_data);
57 tGATT_CL_COMPLETE *p_data);
185 void bta_gattc_register(tBTA_GATTC_CB *p_cb, tBTA_GATTC_DATA *p_data) in bta_gattc_register() argument
189 tBT_UUID *p_app_uuid = &p_data->api_reg.app_uuid; in bta_gattc_register()
214 p_cb->cl_rcb[i].p_cback = p_data->api_reg.p_cback; in bta_gattc_register()
233 if (p_data->api_reg.p_cback) in bta_gattc_register()
239 (*p_data->api_reg.p_cback)(BTA_GATTC_REG_EVT, (tBTA_GATTC *)&cb_data); in bta_gattc_register()
450 void bta_gattc_cancel_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_cancel_open_error() argument
453 UNUSED(p_data); in bta_gattc_cancel_open_error()
470 void bta_gattc_open_error(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_open_error() argument
472 UNUSED(p_data); in bta_gattc_open_error()
492 void bta_gattc_open_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_open_fail() argument
494 UNUSED(p_data); in bta_gattc_open_fail()
515 void bta_gattc_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_open() argument
520 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open()
521 TRUE, p_data->api_conn.transport)) in bta_gattc_open()
525 bta_gattc_sm_execute(p_clcb, BTA_GATTC_INT_OPEN_FAIL_EVT, p_data); in bta_gattc_open()
531 p_data->api_conn.remote_bda, in bta_gattc_open()
533 p_data->api_conn.transport)) in bta_gattc_open()
551 void bta_gattc_init_bk_conn(tBTA_GATTC_API_OPEN *p_data, tBTA_GATTC_RCB *p_clreg) in bta_gattc_init_bk_conn() argument
558 if (bta_gattc_mark_bg_conn(p_data->client_if, p_data->remote_bda, TRUE, FALSE)) in bta_gattc_init_bk_conn()
561 if (!GATT_Connect(p_data->client_if, p_data->remote_bda, FALSE, p_data->transport)) in bta_gattc_init_bk_conn()
563 uint8_t *bda = (uint8_t *)p_data->remote_bda; in bta_gattc_init_bk_conn()
574 if (GATT_GetConnIdIfConnected(p_data->client_if, in bta_gattc_init_bk_conn()
575 p_data->remote_bda, in bta_gattc_init_bk_conn()
577 p_data->transport)) in bta_gattc_init_bk_conn()
579 if ((p_clcb = bta_gattc_find_alloc_clcb(p_data->client_if, p_data->remote_bda, in bta_gattc_init_bk_conn()
595 bta_gattc_send_open_cback(p_clreg, status, p_data->remote_bda, in bta_gattc_init_bk_conn()
608 void bta_gattc_cancel_bk_conn(tBTA_GATTC_API_CANCEL_OPEN *p_data) in bta_gattc_cancel_bk_conn() argument
615 if (bta_gattc_mark_bg_conn(p_data->client_if, p_data->remote_bda, FALSE, FALSE)) in bta_gattc_cancel_bk_conn()
617 if (GATT_CancelConnect(p_data->client_if, p_data->remote_bda, FALSE)) in bta_gattc_cancel_bk_conn()
626 p_clreg = bta_gattc_cl_get_regcb(p_data->client_if); in bta_gattc_cancel_bk_conn()
643 void bta_gattc_cancel_open_ok(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_cancel_open_ok() argument
646 UNUSED(p_data); in bta_gattc_cancel_open_ok()
665 void bta_gattc_cancel_open(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_cancel_open() argument
669 if (GATT_CancelConnect(p_clcb->p_rcb->client_if, p_data->api_cancel_conn.remote_bda, TRUE)) in bta_gattc_cancel_open()
671 bta_gattc_sm_execute(p_clcb, BTA_GATTC_INT_CANCEL_OPEN_OK_EVT, p_data); in bta_gattc_cancel_open()
691 void bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_conn() argument
696 if (p_data != NULL) in bta_gattc_conn()
698 APPL_TRACE_DEBUG("bta_gattc_conn conn_id=%d",p_data->hdr.layer_specific); in bta_gattc_conn()
699 p_clcb->bta_conn_id = p_data->int_conn.hdr.layer_specific; in bta_gattc_conn()
701 GATT_GetConnectionInfor(p_data->hdr.layer_specific, in bta_gattc_conn()
763 void bta_gattc_close_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_close_fail() argument
771 cb_data.close.conn_id = p_data->hdr.layer_specific; in bta_gattc_close_fail()
788 void bta_gattc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_close() argument
807 if (p_data->hdr.event == BTA_GATTC_API_CLOSE_EVT) in bta_gattc_close()
809 cb_data.close.status = GATT_Disconnect(p_data->hdr.layer_specific); in bta_gattc_close()
811 else if (p_data->hdr.event == BTA_GATTC_INT_DISCONN_EVT) in bta_gattc_close()
813 cb_data.close.status = p_data->int_conn.reason; in bta_gattc_close()
814 cb_data.close.reason = p_data->int_conn.reason; in bta_gattc_close()
857 void bta_gattc_disc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_disc_close() argument
874 bta_gattc_close(p_clcb, p_data); in bta_gattc_disc_close()
915 void bta_gattc_restart_discover(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_restart_discover() argument
917 UNUSED(p_data); in bta_gattc_restart_discover()
932 void bta_gattc_cfg_mtu(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_cfg_mtu() argument
936 if (bta_gattc_enqueue(p_clcb, p_data)) in bta_gattc_cfg_mtu()
938 status = GATTC_ConfigureMTU (p_clcb->bta_conn_id, p_data->api_mtu.mtu); in bta_gattc_cfg_mtu()
944 if (p_clcb->p_q_cmd == p_data) in bta_gattc_cfg_mtu()
960 void bta_gattc_start_discover(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_start_discover() argument
962 UNUSED(p_data); in bta_gattc_start_discover()
1024 void bta_gattc_disc_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_disc_cmpl() argument
1027 UNUSED(p_data); in bta_gattc_disc_cmpl()
1084 void bta_gattc_read(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_read() argument
1086 if (!bta_gattc_enqueue(p_clcb, p_data)) in bta_gattc_read()
1091 read_param.by_handle.handle = p_data->api_read.handle; in bta_gattc_read()
1092 read_param.by_handle.auth_req = p_data->api_read.auth_req; in bta_gattc_read()
1100 if (p_clcb->p_q_cmd == p_data) in bta_gattc_read()
1114 void bta_gattc_read_multi(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_read_multi() argument
1119 if (bta_gattc_enqueue(p_clcb, p_data)) in bta_gattc_read_multi()
1125 read_param.read_multiple.num_handles = p_data->api_read_multi.num_attr; in bta_gattc_read_multi()
1126 read_param.read_multiple.auth_req = p_data->api_read_multi.auth_req; in bta_gattc_read_multi()
1127 memcpy(&read_param.read_multiple.handles, p_data->api_read_multi.handles, in bta_gattc_read_multi()
1128 sizeof(UINT16) * p_data->api_read_multi.num_attr); in bta_gattc_read_multi()
1137 if (p_clcb->p_q_cmd == p_data) in bta_gattc_read_multi()
1153 void bta_gattc_write(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_write() argument
1155 if (!bta_gattc_enqueue(p_clcb, p_data)) in bta_gattc_write()
1162 attr.handle = p_data->api_write.handle; in bta_gattc_write()
1163 attr.offset = p_data->api_write.offset; in bta_gattc_write()
1164 attr.len = p_data->api_write.len; in bta_gattc_write()
1165 attr.auth_req = p_data->api_write.auth_req; in bta_gattc_write()
1167 if (p_data->api_write.p_value) in bta_gattc_write()
1168 memcpy(attr.value, p_data->api_write.p_value, p_data->api_write.len); in bta_gattc_write()
1170 status = GATTC_Write(p_clcb->bta_conn_id, p_data->api_write.write_type, &attr); in bta_gattc_write()
1176 if (p_clcb->p_q_cmd == p_data) in bta_gattc_write()
1190 void bta_gattc_execute(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_execute() argument
1194 if (bta_gattc_enqueue(p_clcb, p_data)) in bta_gattc_execute()
1196 status = GATTC_ExecuteWrite(p_clcb->bta_conn_id, p_data->api_exec.is_execute); in bta_gattc_execute()
1201 if (p_clcb->p_q_cmd == p_data) in bta_gattc_execute()
1217 void bta_gattc_confirm(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_confirm() argument
1219 UINT16 handle = p_data->api_confirm.handle; in bta_gattc_confirm()
1221 if (GATTC_SendHandleValueConfirm(p_data->api_confirm.hdr.layer_specific, handle) in bta_gattc_confirm()
1241 void bta_gattc_read_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) in bta_gattc_read_cmpl() argument
1250 cb_data.read.status = p_data->status; in bta_gattc_read_cmpl()
1252 if (p_data->p_cmpl != NULL && p_data->status == BTA_GATT_OK) in bta_gattc_read_cmpl()
1254 cb_data.read.handle = p_data->p_cmpl->att_value.handle; in bta_gattc_read_cmpl()
1256 read_value.len = p_data->p_cmpl->att_value.len; in bta_gattc_read_cmpl()
1257 read_value.p_value = p_data->p_cmpl->att_value.value; in bta_gattc_read_cmpl()
1280 void bta_gattc_write_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) in bta_gattc_write_cmpl() argument
1287 cb_data.write.status = p_data->status; in bta_gattc_write_cmpl()
1288 cb_data.write.handle = p_data->p_cmpl->att_value.handle; in bta_gattc_write_cmpl()
1313 void bta_gattc_exec_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) in bta_gattc_exec_cmpl() argument
1322 cb_data.exec_cmpl.status = p_data->status; in bta_gattc_exec_cmpl()
1337 void bta_gattc_cfg_mtu_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) in bta_gattc_cfg_mtu_cmpl() argument
1343 if (p_data->p_cmpl && p_data->status == BTA_GATT_OK) in bta_gattc_cfg_mtu_cmpl()
1344 p_clcb->p_srcb->mtu = p_data->p_cmpl->mtu; in bta_gattc_cfg_mtu_cmpl()
1347 p_clcb->status = p_data->status; in bta_gattc_cfg_mtu_cmpl()
1349 cb_data.cfg_mtu.status = p_data->status; in bta_gattc_cfg_mtu_cmpl()
1364 void bta_gattc_op_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_op_cmpl() argument
1366 UINT8 op = (UINT8)p_data->op_cmpl.op_code; in bta_gattc_op_cmpl()
1402 p_data->op_cmpl.status = GATT_ERROR; in bta_gattc_op_cmpl()
1407 bta_gattc_read_cmpl(p_clcb, &p_data->op_cmpl); in bta_gattc_op_cmpl()
1410 bta_gattc_write_cmpl(p_clcb, &p_data->op_cmpl); in bta_gattc_op_cmpl()
1413 bta_gattc_exec_cmpl(p_clcb, &p_data->op_cmpl); in bta_gattc_op_cmpl()
1416 bta_gattc_cfg_mtu_cmpl(p_clcb, &p_data->op_cmpl); in bta_gattc_op_cmpl()
1434 void bta_gattc_ignore_op_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_ignore_op_cmpl() argument
1440 APPL_TRACE_DEBUG("bta_gattc_ignore_op_cmpl op = %d", p_data->hdr.layer_specific); in bta_gattc_ignore_op_cmpl()
1452 void bta_gattc_search(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_search() argument
1461 bta_gattc_search_service(p_clcb, p_data->api_search.p_srvc_uuid); in bta_gattc_search()
1479 void bta_gattc_q_cmd(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_q_cmd() argument
1481 bta_gattc_enqueue(p_clcb, p_data); in bta_gattc_q_cmd()
1493 void bta_gattc_fail(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) in bta_gattc_fail() argument
1495 UNUSED(p_data); in bta_gattc_fail()
1754 tGATT_CL_COMPLETE *p_data, in bta_gattc_proc_other_indication() argument
1759 p_data->att_value.handle, p_data->handle); in bta_gattc_proc_other_indication()
1763 p_notify->len = p_data->att_value.len; in bta_gattc_proc_other_indication()
1765 memcpy(p_notify->value, p_data->att_value.value, p_data->att_value.len); in bta_gattc_proc_other_indication()
1781 void bta_gattc_process_indicate(UINT16 conn_id, tGATTC_OPTYPE op, tGATT_CL_COMPLETE *p_data) in bta_gattc_process_indicate() argument
1783 UINT16 handle = p_data->att_value.handle; in bta_gattc_process_indicate()
1820 …if (!bta_gattc_process_srvc_chg_ind(conn_id, p_clrcb, p_srcb, p_clcb, &notify, &p_data->att_value)) in bta_gattc_process_indicate()
1842 bta_gattc_proc_other_indication(p_clcb, op, p_data, &notify); in bta_gattc_process_indicate()
1862 tGATT_CL_COMPLETE *p_data) in bta_gattc_cmpl_cback() argument
1871 bta_gattc_process_indicate(conn_id, op, p_data); in bta_gattc_cmpl_cback()
1888 bta_gattc_cmpl_sendmsg(conn_id, op, status, p_data); in bta_gattc_cmpl_cback()
1902 tGATT_CL_COMPLETE *p_data) in bta_gattc_cmpl_sendmsg() argument
1912 if (p_data != NULL) { in bta_gattc_cmpl_sendmsg()
1914 memcpy(p_buf->p_cmpl, p_data, sizeof(tGATT_CL_COMPLETE)); in bta_gattc_cmpl_sendmsg()