Lines Matching refs:p_data

140             p_dest_data->req_data.p_data = GKI_getbuf(sizeof(tBTA_GATTS_REQ_DATA));  in btapp_gatts_copy_req_data()
141 if (p_dest_data->req_data.p_data != NULL) in btapp_gatts_copy_req_data()
143 memcpy(p_dest_data->req_data.p_data, p_src_data->req_data.p_data, in btapp_gatts_copy_req_data()
153 static void btapp_gatts_free_req_data(UINT16 event, tBTA_GATTS *p_data) in btapp_gatts_free_req_data() argument
161 if (p_data && p_data->req_data.p_data) in btapp_gatts_free_req_data()
162 GKI_freebuf(p_data->req_data.p_data); in btapp_gatts_free_req_data()
174 tBTA_GATTS *p_data = (tBTA_GATTS*)p_param; in btapp_gatts_handle_cback() local
180 bta_to_btif_uuid(&app_uuid, &p_data->reg_oper.uuid); in btapp_gatts_handle_cback()
182 , p_data->reg_oper.status in btapp_gatts_handle_cback()
183 , p_data->reg_oper.server_if in btapp_gatts_handle_cback()
195 bdcpy(bda.address, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
197 btif_gatt_check_encrypted_link(p_data->conn.remote_bda, p_data->conn.transport); in btapp_gatts_handle_cback()
200 p_data->conn.conn_id, p_data->conn.server_if, TRUE, &bda); in btapp_gatts_handle_cback()
207 bdcpy(bda.address, p_data->conn.remote_bda); in btapp_gatts_handle_cback()
210 p_data->conn.conn_id, p_data->conn.server_if, FALSE, &bda); in btapp_gatts_handle_cback()
217 srvc_id.is_primary = p_data->create.is_primary; in btapp_gatts_handle_cback()
218 srvc_id.id.inst_id = p_data->create.svc_instance; in btapp_gatts_handle_cback()
219 bta_to_btif_uuid(&srvc_id.id.uuid, &p_data->create.uuid); in btapp_gatts_handle_cback()
222 p_data->create.status, p_data->create.server_if, &srvc_id, in btapp_gatts_handle_cback()
223 p_data->create.service_id in btapp_gatts_handle_cback()
230 p_data->add_result.status, in btapp_gatts_handle_cback()
231 p_data->add_result.server_if, in btapp_gatts_handle_cback()
232 p_data->add_result.service_id, in btapp_gatts_handle_cback()
233 p_data->add_result.attr_id); in btapp_gatts_handle_cback()
239 bta_to_btif_uuid(&uuid, &p_data->add_result.char_uuid); in btapp_gatts_handle_cback()
242 p_data->add_result.status, in btapp_gatts_handle_cback()
243 p_data->add_result.server_if, in btapp_gatts_handle_cback()
245 p_data->add_result.service_id, in btapp_gatts_handle_cback()
246 p_data->add_result.attr_id); in btapp_gatts_handle_cback()
253 bta_to_btif_uuid(&uuid, &p_data->add_result.char_uuid); in btapp_gatts_handle_cback()
256 p_data->add_result.status, in btapp_gatts_handle_cback()
257 p_data->add_result.server_if, in btapp_gatts_handle_cback()
259 p_data->add_result.service_id, in btapp_gatts_handle_cback()
260 p_data->add_result.attr_id); in btapp_gatts_handle_cback()
266 p_data->srvc_oper.status, in btapp_gatts_handle_cback()
267 p_data->srvc_oper.server_if, in btapp_gatts_handle_cback()
268 p_data->srvc_oper.service_id); in btapp_gatts_handle_cback()
273 p_data->srvc_oper.status, in btapp_gatts_handle_cback()
274 p_data->srvc_oper.server_if, in btapp_gatts_handle_cback()
275 p_data->srvc_oper.service_id); in btapp_gatts_handle_cback()
280 p_data->srvc_oper.status, in btapp_gatts_handle_cback()
281 p_data->srvc_oper.server_if, in btapp_gatts_handle_cback()
282 p_data->srvc_oper.service_id); in btapp_gatts_handle_cback()
288 bdcpy(bda.address, p_data->req_data.remote_bda); in btapp_gatts_handle_cback()
291 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, in btapp_gatts_handle_cback()
292 p_data->req_data.p_data->read_req.handle, in btapp_gatts_handle_cback()
293 p_data->req_data.p_data->read_req.offset, in btapp_gatts_handle_cback()
294 p_data->req_data.p_data->read_req.is_long); in btapp_gatts_handle_cback()
301 bdcpy(bda.address, p_data->req_data.remote_bda); in btapp_gatts_handle_cback()
304 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, in btapp_gatts_handle_cback()
305 p_data->req_data.p_data->write_req.handle, in btapp_gatts_handle_cback()
306 p_data->req_data.p_data->write_req.offset, in btapp_gatts_handle_cback()
307 p_data->req_data.p_data->write_req.len, in btapp_gatts_handle_cback()
308 p_data->req_data.p_data->write_req.need_rsp, in btapp_gatts_handle_cback()
309 p_data->req_data.p_data->write_req.is_prep, in btapp_gatts_handle_cback()
310 p_data->req_data.p_data->write_req.value); in btapp_gatts_handle_cback()
317 bdcpy(bda.address, p_data->req_data.remote_bda); in btapp_gatts_handle_cback()
320 p_data->req_data.conn_id,p_data->req_data.trans_id, &bda, in btapp_gatts_handle_cback()
321 p_data->req_data.p_data->exec_write); in btapp_gatts_handle_cback()
327 p_data->req_data.conn_id, p_data->req_data.status); in btapp_gatts_handle_cback()
332 , p_data->congest.conn_id in btapp_gatts_handle_cback()
333 , p_data->congest.congested in btapp_gatts_handle_cback()
339 , p_data->req_data.conn_id in btapp_gatts_handle_cback()
340 , p_data->req_data.p_data->mtu in btapp_gatts_handle_cback()
355 btapp_gatts_free_req_data(event, p_data); in btapp_gatts_handle_cback()
358 static void btapp_gatts_cback(tBTA_GATTS_EVT event, tBTA_GATTS *p_data) in btapp_gatts_cback() argument
362 (void*)p_data, sizeof(tBTA_GATTS), btapp_gatts_copy_req_data); in btapp_gatts_cback()