Home | History | Annotate | Download | only in hh

Lines Matching full:p_data

77 typedef void (*tBTA_HH_ACTION)(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data);
275 void bta_hh_sm_execute(tBTA_HH_DEV_CB *p_cb, UINT16 event, tBTA_HH_DATA * p_data)
300 bdcpy(cback_data.conn.bda, ((tBTA_HH_API_CONN *)p_data)->bd_addr);
306 cback_event = p_data->api_maintdev.sub_event;
308 if (p_data->api_maintdev.sub_event == BTA_HH_ADD_DEV_EVT)
310 bdcpy(cback_data.dev_info.bda, p_data->api_maintdev.bda);
317 cback_data.dev_info.handle = (UINT8)p_data->api_maintdev.hdr.layer_specific;
321 cback_event = (p_data->api_sndcmd.t_type - BTA_HH_FST_BTE_TRANS_EVT) +
323 osi_free_and_reset((void **)&p_data->api_sndcmd.p_data);
324 if (p_data->api_sndcmd.t_type == HID_TRANS_SET_PROTOCOL ||
325 p_data->api_sndcmd.t_type == HID_TRANS_SET_REPORT ||
326 p_data->api_sndcmd.t_type == HID_TRANS_SET_IDLE)
329 cback_data.dev_status.handle = (UINT8)p_data->api_sndcmd.hdr.layer_specific;
331 else if (p_data->api_sndcmd.t_type != HID_TRANS_DATA &&
332 p_data->api_sndcmd.t_type != HID_TRANS_CONTROL)
334 cback_data.hs_data.handle = (UINT8)p_data->api_sndcmd.hdr.layer_specific;
338 else if (p_data->api_sndcmd.t_type == HID_TRANS_CONTROL &&
339 p_data->api_sndcmd.param == BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG)
352 cback_data.dev_status.handle = (UINT8)p_data->api_sndcmd.hdr.layer_specific;
357 APPL_TRACE_ERROR("wrong device handle: [%d]", p_data->hdr.layer_specific);
359 p_data != NULL)
360 osi_free_and_reset((void **)&p_data->hid_cback.p_data);
391 (*bta_hh_action[action])(p_cb, p_data);