Lines Matching refs:p_msg
423 BOOLEAN bta_hh_hdl_event(BT_HDR *p_msg)
428 switch (p_msg->event)
431 bta_hh_api_enable((tBTA_HH_DATA *) p_msg);
445 if (p_msg->event == BTA_HH_API_OPEN_EVT)
447 index = bta_hh_find_cb(((tBTA_HH_API_CONN *)p_msg)->bd_addr);
449 else if (p_msg->event == BTA_HH_API_MAINT_DEV_EVT)
452 if (((tBTA_HH_MAINT_DEV *)p_msg)->sub_event == BTA_HH_ADD_DEV_EVT)
454 index = bta_hh_find_cb(((tBTA_HH_MAINT_DEV *)p_msg)->bda);
458 index = bta_hh_dev_handle_to_cb_idx((UINT8)p_msg->layer_specific);
473 else if (p_msg->event == BTA_HH_INT_OPEN_EVT)
475 index = bta_hh_find_cb(((tBTA_HH_CBACK_DATA *)p_msg)->addr);
478 index = bta_hh_dev_handle_to_cb_idx((UINT8)p_msg->layer_specific);
484 APPL_TRACE_DEBUG("bta_hh_hdl_event:: handle = %d dev_cb[%d] ", p_msg->layer_specific, index);
486 bta_hh_sm_execute(p_cb, p_msg->event, (tBTA_HH_DATA *) p_msg);