Home | History | Annotate | Download | only in src

Lines Matching full:p_data

701     tBTA_HH *p_data = (tBTA_HH *)p_param;
711 BTIF_TRACE_DEBUG("%s: BTA_HH_ENABLE_EVT: status =%d",__FUNCTION__, p_data->status);
712 if (p_data->status == BTA_HH_OK) {
720 BTIF_TRACE_WARNING("BTA_HH_ENABLE_EVT: Error, HH enabling failed, status = %d", p_data->status);
726 if (p_data->status == BTA_HH_OK) {
738 BTIF_TRACE_WARNING("BTA_HH_DISABLE_EVT: Error, HH disabling failed, status = %d", p_data->status);
742 BTIF_TRACE_WARNING("%s: BTA_HH_OPN_EVT: handle=%d, status =%d",__FUNCTION__, p_data->conn.handle, p_data->conn.status);
743 if (p_data->conn.status == BTA_HH_OK) {
744 p_dev = btif_hh_find_connected_dev_by_handle(p_data->conn.handle);
746 BTIF_TRACE_WARNING("BTA_HH_OPEN_EVT: Error, cannot find device with handle %d", p_data->conn.handle);
750 BTA_HhClose(p_data->conn.handle);
751 HAL_CBACK(bt_hh_callbacks, connection_state_cb, (bt_bdaddr_t*) &p_data->conn.bda,BTHH_CONN_STATE_DISCONNECTED);
755 memcpy(&(p_dev->bd_addr), p_data->conn.bda, BD_ADDR_LEN);
758 BTA_HhClose(p_data->conn.handle);
761 BTIF_TRACE_WARNING("BTA_HH_OPEN_EVT: Found device...Getting dscp info for handle ... %d",p_data->conn.handle);
762 memcpy(&(p_dev->bd_addr), p_data->conn.bda, BD_ADDR_LEN);
765 if (check_cod((bt_bdaddr_t*)p_data->conn.bda, COD_HID_KEYBOARD )||
766 check_cod((bt_bdaddr_t*)p_data->conn.bda, COD_HID_COMBO))
767 BTA_HhSetIdle(p_data->conn.handle, 0);
768 btif_hh_cb.p_curr_dev = btif_hh_find_connected_dev_by_handle(p_data->conn.handle);
769 BTA_HhGetDscpInfo(p_data->conn.handle);
775 bt_bdaddr_t *bdaddr = (bt_bdaddr_t*)p_data->conn.bda;
786 HAL_CBACK(bt_hh_callbacks, connection_state_cb, (bt_bdaddr_t*) &p_data->conn.bda,BTHH_CONN_STATE_DISCONNECTED);
793 p_data->dev_status.status, p_data->dev_status.handle);
794 p_dev = btif_hh_find_connected_dev_by_handle(p_data->dev_status.handle);
817 BTIF_TRACE_WARNING("Error: cannot find device with handle %d", p_data->dev_status.handle);
822 BT_HDR *hdr = p_data->hs_data.rsp_data.p_rpt_data;
827 p_data->hs_data.status, p_data->hs_data.handle);
828 p_dev = btif_hh_find_connected_dev_by_handle(p_data->hs_data.handle);
836 (bthh_status_t) p_data->hs_data.status, data, len);
840 (bthh_status_t) p_data->hs_data.status);
843 BTIF_TRACE_WARNING("Error: cannot find device with handle %d", p_data->hs_data.handle);
850 p_data->dev_status.status, p_data->dev_status.handle);
851 p_data->dev_status.handle);
855 (bthh_status_t) p_data->hs_data.status);
860 p_dev = btif_hh_find_connected_dev_by_handle(p_data->dev_status.handle);
862 p_data->hs_data.status, p_data->hs_data.handle,
863 p_data->hs_data.rsp_data.proto_mode,
864 (p_data->hs_data.rsp_data.proto_mode == BTA_HH_PROTO_RPT_MODE) ? "Report Mode" :
865 (p_data->hs_data.rsp_data.proto_mode == BTA_HH_PROTO_BOOT_MODE) ? "Boot Mode" : "Unsupported");
866 if (p_data->hs_data.rsp_data.proto_mode != BTA_HH_PROTO_UNKNOWN) {
869 (bthh_status_t)p_data->hs_data.status,
870 (bthh_protocol_mode_t) p_data->hs_data.rsp_data.proto_mode);
874 (bthh_status_t)p_data->hs_data.status);
880 p_data->dev_status.status, p_data->dev_status.handle);
881 p_dev = btif_hh_find_connected_dev_by_handle(p_data->dev_status.handle);
885 (bthh_status_t)p_data->hs_data.status);
891 p_data->hs_data.handle, p_data->hs_data.status,
892 p_data->hs_data.rsp_data.idle_rate);
897 p_data->dev_status.status, p_data->dev_status.handle);
901 len = p_data->dscp_info.descriptor.dl_len;
930 p_data->dscp_info.vendor_id, p_data->dscp_info.product_id,
931 p_data->dscp_info.version, p_data->dscp_info.ctry_code,
932 len, p_data->dscp_info.descriptor.dsc_list);
939 btif_hh_copy_hid_info(&dscp_info, &p_data->dscp_info);
947 p_data->dscp_info.vendor_id, p_data->dscp_info.product_id,
948 p_data->dscp_info.version, p_data->dscp_info.ctry_code,
949 p_data->dscp_info.ssr_max_latency, p_data->dscp_info.ssr_min_tout,
950 len, p_data->dscp_info.descriptor.dsc_list);
971 if(p_data->dscp_info.vendor_id
973 p_data->dscp_info.product_id
992 BTIF_TRACE_WARNING("BTA_HH_ADD_DEV_EVT: status = %d, handle = %d",p_data->dev_info.status, p_data->dev_info.handle);
995 if (memcmp(btif_hh_cb.added_devices[i].bd_addr.address, p_data->dev_info.bda, 6) == 0) {
996 if (p_data->dev_info.status == BTA_HH_OK) {
997 btif_hh_cb.added_devices[i].dev_handle = p_data->dev_info.handle;
1009 p_data->dev_info.status, p_data->dev_info.handle);
1011 p_data->dev_info.bda[0], p_data->dev_info.bda[1], p_data->dev_info.bda[2],
1012 p_data->dev_info.bda[3], p_data->dev_info.bda[4], p_data->dev_info.bda[5]);
1017 p_data->dev_status.status, p_data->dev_status.handle);
1018 p_dev = btif_hh_find_connected_dev_by_handle(p_data->dev_status.handle);
1041 p_data->dev_status.status);
1065 static void bte_hh_evt(tBTA_HH_EVT event, tBTA_HH *p_data)
1089 status = btif_transfer_context(btif_hh_upstreams_evt, (uint16_t)event, (void*)p_data, param_len, NULL);
1159 tBTA_HH p_data;
1166 memset(&p_data, 0, sizeof(tBTA_HH));
1167 p_data.dev_status.status = BTHH_ERR;
1168 p_data.dev_status.handle = p_dev->dev_handle;
1172 (char *)&p_data, param_len, NULL);