Lines Matching refs:p_cb
361 btif_gatts_cb_t* p_cb = (btif_gatts_cb_t*)p_param; in btgatts_handle_event() local
362 if (!p_cb) return; in btgatts_handle_event()
371 btif_to_bta_uuid(&uuid, &p_cb->uuid); in btgatts_handle_event()
377 BTA_GATTS_AppDeregister(p_cb->server_if); in btgatts_handle_event()
387 if (btif_get_address_type(p_cb->bd_addr.address, &addr_type) && in btgatts_handle_event()
388 btif_get_device_type(p_cb->bd_addr.address, &device_type) && in btgatts_handle_event()
391 BTA_DmAddBleDevice(p_cb->bd_addr.address, addr_type, device_type); in btgatts_handle_event()
395 if (!p_cb->is_direct) in btgatts_handle_event()
399 if (p_cb->transport != GATT_TRANSPORT_AUTO) in btgatts_handle_event()
401 transport = p_cb->transport; in btgatts_handle_event()
414 if (p_cb->transport == GATT_TRANSPORT_LE) in btgatts_handle_event()
427 BTA_GATTS_Open(p_cb->server_if, p_cb->bd_addr.address, in btgatts_handle_event()
428 p_cb->is_direct, transport); in btgatts_handle_event()
434 BTA_GATTS_CancelOpen(p_cb->server_if, p_cb->bd_addr.address, TRUE); in btgatts_handle_event()
435 BTA_GATTS_CancelOpen(p_cb->server_if, p_cb->bd_addr.address, FALSE); in btgatts_handle_event()
438 if (p_cb->conn_id != 0) in btgatts_handle_event()
439 BTA_GATTS_Close(p_cb->conn_id); in btgatts_handle_event()
445 btif_to_bta_uuid(&uuid, &p_cb->srvc_id.id.uuid); in btgatts_handle_event()
447 BTA_GATTS_CreateService(p_cb->server_if, &uuid, in btgatts_handle_event()
448 p_cb->srvc_id.id.inst_id, p_cb->num_handles, in btgatts_handle_event()
449 p_cb->srvc_id.is_primary); in btgatts_handle_event()
455 BTA_GATTS_AddIncludeService(p_cb->srvc_handle, p_cb->incl_handle); in btgatts_handle_event()
461 btif_to_bta_uuid(&uuid, &p_cb->uuid); in btgatts_handle_event()
463 BTA_GATTS_AddCharacteristic(p_cb->srvc_handle, &uuid, in btgatts_handle_event()
464 p_cb->permissions, p_cb->properties); in btgatts_handle_event()
471 btif_to_bta_uuid(&uuid, &p_cb->uuid); in btgatts_handle_event()
473 BTA_GATTS_AddCharDescriptor(p_cb->srvc_handle, p_cb->permissions, in btgatts_handle_event()
479 BTA_GATTS_StartService(p_cb->srvc_handle, p_cb->transport); in btgatts_handle_event()
483 BTA_GATTS_StopService(p_cb->srvc_handle); in btgatts_handle_event()
487 BTA_GATTS_DeleteService(p_cb->srvc_handle); in btgatts_handle_event()
491 BTA_GATTS_HandleValueIndication(p_cb->conn_id, p_cb->attr_handle, in btgatts_handle_event()
492 p_cb->len, p_cb->value, p_cb->confirm); in btgatts_handle_event()
500 btgatt_response_t *p_rsp = &p_cb->response; in btgatts_handle_event()
503 BTA_GATTS_SendRsp(p_cb->conn_id, p_cb->trans_id, in btgatts_handle_event()
504 p_cb->status, &rsp_struct); in btgatts_handle_event()