Lines Matching refs:p_data

74   uint8_t* p_data;  in intr_data_copy_cb()  local
82 p_data = ((uint8_t*)p_dst_data) + sizeof(tBTA_HD_INTR_DATA); in intr_data_copy_cb()
84 memcpy(p_data, p_src_data->p_data, p_src_data->len); in intr_data_copy_cb()
86 p_dst_data->p_data = p_data; in intr_data_copy_cb()
92 uint8_t* p_data; in set_report_copy_cb() local
100 p_data = ((uint8_t*)p_dst_data) + sizeof(tBTA_HD_SET_REPORT); in set_report_copy_cb()
102 memcpy(p_data, p_src_data->p_data, p_src_data->len); in set_report_copy_cb()
104 p_dst_data->p_data = p_data; in set_report_copy_cb()
142 tBTA_HD* p_data = (tBTA_HD*)p_param; in btif_hd_upstreams_evt() local
148 BTIF_TRACE_DEBUG("%s: status=%d", __func__, p_data->status); in btif_hd_upstreams_evt()
149 if (p_data->status == BTA_HD_OK) { in btif_hd_upstreams_evt()
159 BTIF_TRACE_WARNING("Failed to enable BT-HD, status=%d", p_data->status); in btif_hd_upstreams_evt()
164 BTIF_TRACE_DEBUG("%s: status=%d", __func__, p_data->status); in btif_hd_upstreams_evt()
172 if (p_data->status == BTA_HD_OK) in btif_hd_upstreams_evt()
176 p_data->status); in btif_hd_upstreams_evt()
180 RawAddress* addr = (RawAddress*)&p_data->reg_status.bda; in btif_hd_upstreams_evt()
182 if (!p_data->reg_status.in_use) { in btif_hd_upstreams_evt()
203 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt()
214 btif_storage_set_hidd(p_data->conn.bda); in btif_hd_upstreams_evt()
217 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_CONNECTED); in btif_hd_upstreams_evt()
222 RawAddress* addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt()
229 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt()
233 HAL_CBACK(bt_hd_callbacks, get_report_cb, p_data->get_report.report_type, in btif_hd_upstreams_evt()
234 p_data->get_report.report_id, p_data->get_report.buffer_size); in btif_hd_upstreams_evt()
238 HAL_CBACK(bt_hd_callbacks, set_report_cb, p_data->set_report.report_type, in btif_hd_upstreams_evt()
239 p_data->set_report.report_id, p_data->set_report.len, in btif_hd_upstreams_evt()
240 p_data->set_report.p_data); in btif_hd_upstreams_evt()
244 HAL_CBACK(bt_hd_callbacks, set_protocol_cb, p_data->set_protocol); in btif_hd_upstreams_evt()
248 HAL_CBACK(bt_hd_callbacks, intr_data_cb, p_data->intr_data.report_id, in btif_hd_upstreams_evt()
249 p_data->intr_data.len, p_data->intr_data.p_data); in btif_hd_upstreams_evt()
254 (RawAddress*)&p_data->conn.bda, BTHD_CONN_STATE_DISCONNECTED); in btif_hd_upstreams_evt()
255 if (bta_dm_check_if_only_hd_connected(p_data->conn.bda)) { in btif_hd_upstreams_evt()
258 BTA_DmRemoveDevice(p_data->conn.bda); in btif_hd_upstreams_evt()
260 RawAddress* bd_addr = (RawAddress*)&p_data->conn.bda; in btif_hd_upstreams_evt()
272 (RawAddress*)&p_data->conn.bda, in btif_hd_upstreams_evt()
273 (bthd_connection_state_t)p_data->conn.status); in btif_hd_upstreams_evt()
292 static void bte_hd_evt(tBTA_HD_EVT event, tBTA_HD* p_data) { in bte_hd_evt() argument
322 param_len = sizeof(tBTA_HD_SET_REPORT) + p_data->set_report.len; in bte_hd_evt()
327 param_len += sizeof(p_data->set_protocol); in bte_hd_evt()
331 param_len = sizeof(tBTA_HD_INTR_DATA) + p_data->intr_data.len; in bte_hd_evt()
337 (char*)p_data, param_len, p_copy_cback); in bte_hd_evt()
541 uint16_t len, uint8_t* p_data) { in send_report() argument
567 report.p_data = p_data; in send_report()