/external/bluetooth/bluedroid/stack/bnep/ |
D | bnep_utils.c | 91 if (!memcmp ((UINT8 *)(p_bcb->rem_bda), p_bda, BD_ADDR_LEN)) in bnepu_find_bcb_by_bd_addr() 124 memcpy ((UINT8 *)(p_bcb->rem_bda), (UINT8 *)p_rem_bda, BD_ADDR_LEN); in bnepu_allocate_bcb() 350 UINT16_TO_BE_STREAM (p, (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters)); in bnepu_send_peer_our_multi_filters() 353 memcpy (p, p_bcb->sent_mcast_filter_start[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters() 354 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters() 355 memcpy (p, p_bcb->sent_mcast_filter_end[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters() 356 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters() 359 p_buf->len = 4 + (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters); in bnepu_send_peer_our_multi_filters() 501 if ((p_src_addr) && (memcmp (p_src_addr, bnep_cb.my_bda, BD_ADDR_LEN))) in bnepu_build_bnep_hdr() 504 if (memcmp (p_dest_addr, p_bcb->rem_bda, BD_ADDR_LEN)) in bnepu_build_bnep_hdr() [all …]
|
D | bnep_api.c | 676 memcpy (p_bcb->sent_mcast_filter_start[xx], p_start_array, BD_ADDR_LEN); in BNEP_SetMulticastFilters() 677 memcpy (p_bcb->sent_mcast_filter_end[xx], p_end_array, BD_ADDR_LEN); in BNEP_SetMulticastFilters() 679 p_start_array += BD_ADDR_LEN; in BNEP_SetMulticastFilters() 680 p_end_array += BD_ADDR_LEN; in BNEP_SetMulticastFilters() 771 memcpy (p_status->rem_bda, p_bcb->rem_bda, BD_ADDR_LEN); in BNEP_GetStatus()
|
D | bnep_main.c | 554 p += BD_ADDR_LEN; in bnep_data_ind() 556 p += BD_ADDR_LEN; in bnep_data_ind() 602 p += BD_ADDR_LEN; in bnep_data_ind() 609 p += BD_ADDR_LEN; in bnep_data_ind() 832 memcpy (bnep_cb.my_bda, p_bda, BD_ADDR_LEN); in bnep_read_addr_cb()
|
/external/bluetooth/bluedroid/stack/btm/ |
D | btm_ble_addr.c | 339 memcpy(p_mgnt_cb->random_bda, random_bda, BD_ADDR_LEN); in btm_ble_resolve_random_addr() 375 memcpy(bd_addr, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_ble_map_bda_to_conn_bda() 400 if ( memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) == 0) in btm_find_dev_by_public_static_addr() 430 memcmp(p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN) != 0) in btm_public_addr_to_random_pseudo() 436 memcpy(bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN); in btm_public_addr_to_random_pseudo() 469 memcpy(random_pseudo, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_random_pseudo_to_public() 495 if (memcmp(dummy_bda, rra, BD_ADDR_LEN) == 0) in btm_ble_refresh_rra() 505 memcpy(p_acl->active_remote_addr, p_sec_rec->ble.static_addr, BD_ADDR_LEN); in btm_ble_refresh_rra() 510 memcpy(p_acl->active_remote_addr, rra, BD_ADDR_LEN); in btm_ble_refresh_rra() 516 memcpy(p_sec_rec->ble.cur_rand_addr, rra, BD_ADDR_LEN); in btm_ble_refresh_rra()
|
D | btm_ble_bgconn.c | 92 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller() 93 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) in btm_add_dev_to_controller() 105 if (memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller() 106 memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0) in btm_add_dev_to_controller() 162 if (p_dev_op->in_use && !memcmp(p_dev_op->bd_addr, bd_addr, BD_ADDR_LEN)) in btm_enq_wl_dev_operation() 174 memcpy(p_dev_op->bd_addr, bd_addr, BD_ADDR_LEN); in btm_enq_wl_dev_operation() 321 if (p_bg_dev->in_use && memcmp(p_bg_dev->bd_addr, bd_addr, BD_ADDR_LEN) == 0) in btm_update_bg_conn_list() 343 memcpy(p_bg_dev->bd_addr, bd_addr, BD_ADDR_LEN); in btm_update_bg_conn_list()
|
D | btm_dev.c | 84 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in BTM_SecAddDevice() 243 (!memcmp (btm_cb.sec_dev_rec[i].bd_addr, bd_addr, BD_ADDR_LEN))) in btm_sec_alloc_dev() 315 if (!memcmp (bd_addr, btm_cb.connecting_bda, BD_ADDR_LEN)) in btm_sec_alloc_dev() 319 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in btm_sec_alloc_dev() 452 && (!memcmp (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN))) in btm_find_dev()
|
D | btm_sec.c | 992 if (memcmp (bd_addr, btm_cb.pairing_bda, BD_ADDR_LEN) != 0) in BTM_PINCodeReply() 1214 memcpy (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN); in btm_sec_bond_by_transport() 1404 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_SecBondCancel() 1701 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_ConfirmReqReply() 1748 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_PasskeyReqReply() 1838 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_IoCapRsp() 2038 p += BD_ADDR_LEN; in BTM_ReadOobData() 2187 memcpy (evt_data.bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN); in btm_sec_check_upgrade() 2730 &&(!memcmp (btm_cb.pairing_bda, bda, BD_ADDR_LEN))) in btm_sec_conn_req() 2742 memcpy (btm_cb.connecting_bda, bda, BD_ADDR_LEN); in btm_sec_conn_req() [all …]
|
D | btm_sco.c | 596 && (!memcmp (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN))) in BTM_CreateSco() 641 memcpy (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN); in BTM_CreateSco() 814 && (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN))) in btm_sco_conn_req() 820 memcpy (p->esco.data.bd_addr, bda, BD_ADDR_LEN); in btm_sco_conn_req() 844 memcpy(evt_data.bd_addr, bda, BD_ADDR_LEN); in btm_sco_conn_req() 867 memcpy (p->esco.data.bd_addr, bda, BD_ADDR_LEN); in btm_sco_conn_req() 914 && (!bda || !memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN))) in btm_sco_connected() 1071 if (p->rem_bd_known && (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN))) in btm_remove_sco_links() 1142 if ((!bda) || (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN) && p->rem_bd_known)) in btm_sco_acl_removed() 1646 memcpy(data.bd_addr, p->esco.data.bd_addr, BD_ADDR_LEN); in btm_esco_proc_conn_chg() [all …]
|
D | btm_acl.c | 102 if ((p->in_use) && (!memcmp (p->remote_addr, bda, BD_ADDR_LEN)) in btm_bda_to_acl() 170 memcpy(conn_addr, p_dev_rec->bd_addr, BD_ADDR_LEN); in btm_ble_get_acl_remote_addr() 175 memcpy(conn_addr, p_dev_rec->ble.cur_rand_addr, BD_ADDR_LEN); in btm_ble_get_acl_remote_addr() 180 memcpy(conn_addr, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_ble_get_acl_remote_addr() 252 memcpy(p->conn_addr, btm_cb.ble_ctr_cb.addr_mgnt_cb.private_addr, BD_ADDR_LEN); in btm_acl_created() 271 memcpy (p->remote_addr, bda, BD_ADDR_LEN); in btm_acl_created() 367 … && (bda && (0 == memcmp(btm_cb.devcb.switch_role_ref_data.remote_bd_addr, bda, BD_ADDR_LEN)))) in btm_acl_report_role_change() 758 BD_ADDR_LEN); in BTM_SwitchRole() 855 BD_ADDR_LEN); in BTM_ChangeLinkKey() 1238 memcpy (lnkpol.rem_bda, p_acl_cb->remote_addr, BD_ADDR_LEN); in btm_read_link_policy_complete() [all …]
|
D | btm_ble.c | 94 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in BTM_SecAddBleDevice() 299 memcpy(local_conn_addr, p_acl->conn_addr, BD_ADDR_LEN); in BTM_ReadConnectionAddr() 363 memcpy(conn_addr, p->active_remote_addr, BD_ADDR_LEN); in BTM_ReadRemoteConnectionAddr() 368 memcpy(conn_addr, pseudo_addr, BD_ADDR_LEN); in BTM_ReadRemoteConnectionAddr() 920 memcpy(p_rec->ble.static_addr, p_keys->pid_key.static_addr, BD_ADDR_LEN); in btm_sec_save_le_key() 1537 memcpy(match_rec->ble.cur_rand_addr, bda, BD_ADDR_LEN); in btm_ble_resolve_random_addr_on_conn_cmpl() 1538 memcpy(bda, match_rec->bd_addr, BD_ADDR_LEN); in btm_ble_resolve_random_addr_on_conn_cmpl() 1617 memcpy(p_dev_rec->ble.cur_rand_addr, bda, BD_ADDR_LEN); in btm_ble_connected() 1750 memcpy (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN); in btm_proc_smp_cback() 1805 memset (btm_cb.pairing_bda, 0xff, BD_ADDR_LEN); in btm_proc_smp_cback() [all …]
|
/external/bluetooth/bluedroid/bta/include/ |
D | bd.h | 32 #ifndef BD_ADDR_LEN 33 #define BD_ADDR_LEN 6 macro 34 typedef UINT8 BD_ADDR[BD_ADDR_LEN];
|
/external/bluetooth/bluedroid/stack/smp/ |
D | smp_l2c.c | 91 if (memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0) in smp_connect_cback() 157 memcpy(&p_cb->pairing_bda[0], bd_addr, BD_ADDR_LEN); in smp_data_ind() 159 else if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN)) in smp_data_ind() 168 if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN) == 0) in smp_data_ind()
|
D | smp_api.c | 144 memcpy (p_cb->pairing_bda, bd_addr, BD_ADDR_LEN); in SMP_Pair() 177 (!memcmp (p_cb->pairing_bda, bd_addr, BD_ADDR_LEN)) ) in SMP_PairCancel() 205 memcmp (smp_cb.pairing_bda, bd_addr, BD_ADDR_LEN)) in SMP_SecurityGrant() 243 if (memcmp (bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) != 0) in SMP_PasskeyReply()
|
/external/bluetooth/bluedroid/vnd/ble/ |
D | vendor_ble.c | 66 memcpy(p_q->irk_q[p_q->q_next], target_bda, BD_ADDR_LEN); in btm_ble_vendor_enq_irk_pending() 67 memcpy(p_q->irk_q_random_pseudo[p_q->q_next], psuedo_bda, BD_ADDR_LEN); in btm_ble_vendor_enq_irk_pending() 95 if (memcmp(p_q->irk_q_random_pseudo[i], psuedo_addr, BD_ADDR_LEN) == 0 && in btm_ble_vendor_find_irk_pending_entry() 124 memcpy(target_bda, p_q->irk_q[p_q->q_pending], BD_ADDR_LEN); in btm_ble_vendor_deq_irk_pending() 125 memcpy(psuedo_addr, p_q->irk_q_random_pseudo[p_q->q_pending], BD_ADDR_LEN); in btm_ble_vendor_deq_irk_pending() 153 if (p_irk_entry->in_use && memcmp(p_irk_entry->bd_addr, target_bda, BD_ADDR_LEN) == 0) in btm_ble_vendor_find_irk_entry() 181 if (p_irk_entry->in_use && memcmp(p_irk_entry->psuedo_bda, psuedo_bda, BD_ADDR_LEN) == 0) in btm_ble_vendor_find_irk_entry_by_psuedo_addr() 208 memcpy(p_irk_entry->bd_addr, target_bda, BD_ADDR_LEN); in btm_ble_vendor_alloc_irk_entry() 209 memcpy(p_irk_entry->psuedo_bda, pseudo_bda, BD_ADDR_LEN); in btm_ble_vendor_alloc_irk_entry()
|
/external/bluetooth/bluedroid/bta/sys/ |
D | bd.c | 54 for (i = BD_ADDR_LEN; i != 0; i--) in bdcpy() 74 for (i = BD_ADDR_LEN; i != 0; i--) in bdcmp()
|
/external/bluetooth/bluedroid/bta/gatt/ |
D | bta_gattc_api.c | 161 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Open() 193 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_CancelOpen() 914 !memcmp(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN) && in BTA_GATTC_RegisterForNotifications() 931 memcpy(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN); in BTA_GATTC_RegisterForNotifications() 988 !memcmp(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN) && in BTA_GATTC_DeregisterForNotifications() 1031 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Refresh() 1058 …BTA_GATTC_API_LISTEN *) GKI_getbuf((UINT16)(sizeof(tBTA_GATTC_API_LISTEN) + BD_ADDR_LEN))) != NULL) in BTA_GATTC_Listen() 1067 memcpy(p_buf->remote_bda, target_bda, BD_ADDR_LEN); in BTA_GATTC_Listen() 1093 …BTA_GATTC_API_LISTEN *) GKI_getbuf((UINT16)(sizeof(tBTA_GATTC_API_LISTEN) + BD_ADDR_LEN))) != NULL) in BTA_GATTC_Broadcast()
|
D | bta_gatts_api.c | 481 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTS_Open() 512 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTS_CancelOpen() 561 …BTA_GATTS_API_LISTEN *) GKI_getbuf((UINT16)(sizeof(tBTA_GATTS_API_LISTEN) + BD_ADDR_LEN))) != NULL) in BTA_GATTS_Listen() 571 memcpy(p_buf->remote_bda, target_bda, BD_ADDR_LEN); in BTA_GATTS_Listen()
|
/external/libnfc-nci/src/hal/include/ |
D | nfc_types.h | 62 …EAM(p, a) {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++ = (UINT8) a[BD_ADDR… 72 …gister int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN - 1; for (ijk = 0; ijk < BD_ADDR_L…
|
/external/bluetooth/bluedroid/stack/pan/ |
D | pan_utils.c | 197 memcmp (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN) == 0) in pan_allocate_pcb() 206 memcpy (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN); in pan_allocate_pcb() 257 if (memcmp (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN) == 0) in pan_get_pcb_by_addr()
|
/external/bluetooth/bluedroid/stack/mcap/ |
D | mca_csm.c | 235 …if (p_ccb_tmp->state != MCA_CCB_NULL_ST && memcmp(p_ccb_tmp->peer_addr, bd_addr, BD_ADDR_LEN) == 0) in mca_ccb_by_bd() 275 memcpy(p_ccb_tmp->peer_addr, bd_addr, BD_ADDR_LEN); in mca_ccb_alloc() 315 memcpy (evt_data.disconnect_ind.bd_addr, p_ccb->peer_addr, BD_ADDR_LEN); in mca_ccb_dealloc()
|
/external/bluetooth/bluedroid/stack/include/ |
D | bt_types.h | 253 …EAM(p, a) {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++ = (UINT8) a[BD_ADDR… 263 …gister int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN - 1; for (ijk = 0; ijk < BD_ADDR_L… 309 #define BD_ADDR_LEN 6 /* Device address length */ macro 310 typedef UINT8 BD_ADDR[BD_ADDR_LEN]; /* Device address */
|
/external/libnfc-nci/src/include/ |
D | bt_types.h | 230 …EAM(p, a) {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++ = (UINT8) a[BD_ADDR… 240 …gister int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN - 1; for (ijk = 0; ijk < BD_ADDR_L… 286 #define BD_ADDR_LEN 6 /* Device address length */ macro 287 typedef UINT8 BD_ADDR[BD_ADDR_LEN]; /* Device address */
|
/external/bluetooth/bluedroid/stack/rfcomm/ |
D | port_utils.c | 82 memcpy (p_port->bd_addr, bd_addr, BD_ADDR_LEN); in port_allocate_port() 263 memcpy (p_port->bd_addr, BT_BD_ANY, BD_ADDR_LEN); in port_release_port() 289 && !memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN)) in port_find_mcb() 392 && !memcmp (p_port->bd_addr, bd_addr, BD_ADDR_LEN)) in port_find_port()
|
/external/bluetooth/bluedroid/stack/srvc/ |
D | srvc_eng.c | 76 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in srvc_eng_find_conn_id_by_bd_addr() 101 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in srvc_eng_find_clcb_by_bd_addr() 178 memcpy (p_clcb->bda, bda, BD_ADDR_LEN); in srvc_eng_clcb_alloc()
|
/external/bluetooth/bluedroid/stack/l2cap/ |
D | l2c_ble.c | 60 if (memcmp (rem_bda, l2cb.ble_connecting_bda, BD_ADDR_LEN)) in L2CA_CancelBleConnectReq() 426 if (l2cb.is_ble_connecting && memcmp(bda, l2cb.ble_connecting_bda, BD_ADDR_LEN) == 0) in l2cble_advertiser_conn_comp() 689 memcpy(init_addr, p_lcb->remote_bd_addr, BD_ADDR_LEN); in l2cble_init_direct_conn() 699 memcpy(init_addr, p_dev_rec->ble.cur_rand_addr, BD_ADDR_LEN); in l2cble_init_direct_conn() 738 memcpy (l2cb.ble_connecting_bda, p_lcb->remote_bd_addr, BD_ADDR_LEN); in l2cble_init_direct_conn()
|