Lines Matching full:bd_addr
154 extern bt_status_t btif_dm_remove_bond(const bt_bdaddr_t *bd_addr);
159 extern void btif_dm_cb_remove_bond(bt_bdaddr_t *bd_addr);
283 BD_ADDR* bda;
296 bda = (BD_ADDR*) (&p_dev->bd_addr);
367 static btif_hh_device_t *btif_hh_find_dev_by_bda(bt_bdaddr_t *bd_addr)
372 memcmp(&(btif_hh_cb.devices[i].bd_addr), bd_addr, BD_ADDR_LEN) == 0)
388 static btif_hh_device_t *btif_hh_find_connected_dev_by_bda(bt_bdaddr_t *bd_addr)
393 memcmp(&(btif_hh_cb.devices[i].bd_addr), bd_addr, BD_ADDR_LEN) == 0)
409 void btif_hh_stop_vup_timer(bt_bdaddr_t *bd_addr)
411 btif_hh_device_t *p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
430 void btif_hh_start_vup_timer(bt_bdaddr_t *bd_addr)
432 btif_hh_device_t *p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
465 if (memcmp(&(btif_hh_cb.added_devices[i].bd_addr), &bda, BD_ADDR_LEN) == 0) {
472 if (btif_hh_cb.added_devices[i].bd_addr.address[0] == 0 &&
473 bd_addr.address[1] == 0 &&
474 btif_hh_cb.added_devices[i].bd_addr.address[2] == 0 &&
475 btif_hh_cb.added_devices[i].bd_addr.address[3] == 0 &&
476 btif_hh_cb.added_devices[i].bd_addr.address[4] == 0 &&
477 btif_hh_cb.added_devices[i].bd_addr.address[5] == 0)
481 memcpy(&(btif_hh_cb.added_devices[i].bd_addr), &bda, BD_ADDR_LEN);
500 void btif_hh_remove_device(bt_bdaddr_t bd_addr)
507 bd_addr.address[0], bd_addr.address[1], bd_addr.address[2], bd_addr.address[3], bd_addr.address[4], bd_addr.address[5]);
511 if (memcmp(&(p_added_dev->bd_addr),&bd_addr, 6) == 0) {
513 btif_storage_remove_hid_info(&(p_added_dev->bd_addr));
514 memset(&(p_added_dev->bd_addr), 0, 6);
520 p_dev = btif_hh_find_dev_by_bda(&bd_addr);
523 bd_addr.address[0], bd_addr.address[1], bd_addr.address[2], bd_addr.address[3], bd_addr.address[4], bd_addr.address[5]);
528 HAL_CBACK(bt_hh_callbacks, connection_state_cb, &(p_dev->bd_addr), BTHH_CONN_STATE_DISCONNECTED);
584 bt_status_t btif_hh_virtual_unplug(bt_bdaddr_t *bd_addr)
590 bd_addr->address[0], bd_addr->address[1], bd_addr->address[2], bd_addr->address[3],
591 bd_addr->address[4], bd_addr->address[5]);
592 p_dev = btif_hh_find_dev_by_bda(bd_addr);
598 btif_hh_start_vup_timer(bd_addr);
620 bt_status_t btif_hh_connect(bt_bdaddr_t *bd_addr)
626 BD_ADDR *bda = (BD_ADDR*)bd_addr;
629 dev = btif_hh_find_dev_by_bda(bd_addr);
641 if (memcmp(&(btif_hh_cb.added_devices[i].bd_addr), bd_addr, BD_ADDR_LEN) == 0) {
652 memset(&(added_dev->bd_addr), 0, 6);
664 BD_ADDR *bda = (BD_ADDR*)bd_addr;
675 HAL_CBACK(bt_hh_callbacks, connection_state_cb, bd_addr, BTHH_CONN_STATE_CONNECTING);
689 void btif_hh_disconnect(bt_bdaddr_t *bd_addr)
691 BD_ADDR *bda = (BD_ADDR*)bd_addr;
693 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
796 memcpy(&(p_dev->bd_addr), p_data->conn.bda, BD_ADDR_LEN);
803 memcpy(&(p_dev->bd_addr), p_data->conn.bda, BD_ADDR_LEN);
812 HAL_CBACK(bt_hh_callbacks, connection_state_cb,&(p_dev->bd_addr), p_dev->dev_status);
830 btif_hh_stop_vup_timer(&(p_dev->bd_addr));
834 HAL_CBACK(bt_hh_callbacks, connection_state_cb,&(p_dev->bd_addr), p_dev->dev_status);
857 (bt_bdaddr_t*) &(p_dev->bd_addr),
861 (bt_bdaddr_t*) &(p_dev->bd_addr),
875 (bt_bdaddr_t*) &(p_dev->bd_addr),
889 (bt_bdaddr_t*) &(p_dev->bd_addr),
894 (bt_bdaddr_t*) &(p_dev->bd_addr),
905 (bt_bdaddr_t*)&(p_dev->bd_addr),
940 &p_dev->bd_addr, &prop_name) == BT_STATUS_SUCCESS)
954 if (btif_hh_add_added_dev(p_dev->bd_addr, p_dev->attr_mask)) {
955 BD_ADDR bda;
956 bdcpy(bda, p_dev->bd_addr.address);
959 bdcpy(bda, p_dev->bd_addr.address);
962 p_dev->bd_addr.address[0], p_dev->bd_addr.address[1],
963 p_dev->bd_addr.address[2],p_dev->bd_addr.address[3],
964 p_dev->bd_addr.address[4], p_dev->bd_addr.address[5]);
967 ret = btif_storage_add_hid_device_info(&(p_dev->bd_addr), p_dev->attr_mask,p_dev->sub_class,p_dev->app_id,
1017 if (memcmp(btif_hh_cb.added_devices[i].bd_addr.address, p_data->dev_info.bda, 6) == 0) {
1022 memset(btif_hh_cb.added_devices[i].bd_addr.address, 0, 6);
1045 p_dev->bd_addr.address[0], p_dev->bd_addr.address[1],
1046 p_dev->bd_addr.address[2],p_dev->bd_addr.address[3],
1047 p_dev->bd_addr.address[4], p_dev->bd_addr.address[5]);
1051 btif_hh_stop_vup_timer(&(p_dev->bd_addr));
1055 HAL_CBACK(bt_hh_callbacks, connection_state_cb,&(p_dev->bd_addr), p_dev->dev_status);
1059 if (p_dev->local_vup || check_cod_hid(&(p_dev->bd_addr), COD_HID_MAJOR))
1062 BTA_DmRemoveDevice((UINT8 *)p_dev->bd_addr.address);
1065 btif_hh_remove_device(p_dev->bd_addr);
1066 HAL_CBACK(bt_hh_callbacks, virtual_unplug_cb,&(p_dev->bd_addr),
1135 bt_bdaddr_t *bd_addr = (bt_bdaddr_t*)p_param;
1142 ret = btif_hh_connect(bd_addr);
1145 HAL_CBACK(bt_hh_callbacks, connection_state_cb,bd_addr,BTHH_CONN_STATE_CONNECTING);
1148 HAL_CBACK(bt_hh_callbacks, connection_state_cb,bd_addr,BTHH_CONN_STATE_DISCONNECTED);
1155 btif_hh_disconnect(bd_addr);
1156 HAL_CBACK(bt_hh_callbacks, connection_state_cb,bd_addr,BTHH_CONN_STATE_DISCONNECTING);
1163 ret = btif_hh_virtual_unplug(bd_addr);
1249 static bt_status_t connect( bt_bdaddr_t *bd_addr)
1254 (char*)bd_addr, sizeof(bt_bdaddr_t), NULL);
1270 static bt_status_t disconnect( bt_bdaddr_t *bd_addr )
1280 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
1284 (char*)bd_addr, sizeof(bt_bdaddr_t), NULL);
1302 static bt_status_t virtual_unplug (bt_bdaddr_t *bd_addr)
1308 bd_addr->address[0], bd_addr->address[1], bd_addr->address[2], bd_addr->address[3],
1309 bd_addr->address[4], bd_addr->address[5]);
1315 p_dev = btif_hh_find_dev_by_bda(bd_addr);
1322 (char*)bd_addr, sizeof(bt_bdaddr_t), NULL);
1336 static bt_status_t set_info (bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info )
1340 BD_ADDR* bda = (BD_ADDR*) bd_addr;
1370 if (btif_hh_add_added_dev(*bd_addr, hid_info.attr_mask))
1390 static bt_status_t get_protocol (bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode)
1394 BD_ADDR* bda = (BD_ADDR*) bd_addr;
1405 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
1425 static bt_status_t set_protocol (bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode)
1430 BD_ADDR* bda = (BD_ADDR*) bd_addr;
1442 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
1469 static bt_status_t get_report (bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, uint8_t reportId, int bufferSize)
1473 BD_ADDR* bda = (BD_ADDR*) bd_addr;
1487 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
1515 static bt_status_t set_report (bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, char* report)
1519 BD_ADDR* bda = (BD_ADDR*) bd_addr;
1532 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);
1586 static bt_status_t send_data (bt_bdaddr_t *bd_addr, char* data)
1590 BD_ADDR* bda = (BD_ADDR*) bd_addr;
1602 p_dev = btif_hh_find_connected_dev_by_bda(bd_addr);