/external/bluetooth/bluedroid/stack/bnep/ |
D | bnep_utils.c | 90 if (!memcmp ((UINT8 *)(p_bcb->rem_bda), p_bda, BD_ADDR_LEN)) in bnepu_find_bcb_by_bd_addr() 123 memcpy ((UINT8 *)(p_bcb->rem_bda), (UINT8 *)p_rem_bda, BD_ADDR_LEN); in bnepu_allocate_bcb() 343 UINT16_TO_BE_STREAM (p, (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters)); in bnepu_send_peer_our_multi_filters() 346 memcpy (p, p_bcb->sent_mcast_filter_start[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters() 347 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters() 348 memcpy (p, p_bcb->sent_mcast_filter_end[xx], BD_ADDR_LEN); in bnepu_send_peer_our_multi_filters() 349 p += BD_ADDR_LEN; in bnepu_send_peer_our_multi_filters() 352 p_buf->len = 4 + (2 * BD_ADDR_LEN * p_bcb->sent_mcast_filters); in bnepu_send_peer_our_multi_filters() 494 if ((p_src_addr) && (memcmp (p_src_addr, bnep_cb.my_bda, BD_ADDR_LEN))) in bnepu_build_bnep_hdr() 497 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 | 552 p += BD_ADDR_LEN; in bnep_data_ind() 554 p += BD_ADDR_LEN; in bnep_data_ind() 600 p += BD_ADDR_LEN; in bnep_data_ind() 607 p += BD_ADDR_LEN; in bnep_data_ind() 830 memcpy (bnep_cb.my_bda, p_bda, BD_ADDR_LEN); in bnep_read_addr_cb()
|
/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 | 83 if (memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0) in smp_connect_cback() 142 memcpy(&p_cb->pairing_bda[0], bd_addr, BD_ADDR_LEN); in smp_data_ind() 144 else if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN)) in smp_data_ind() 151 if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN) == 0) in smp_data_ind()
|
D | smp_api.c | 143 memcpy (p_cb->pairing_bda, bd_addr, BD_ADDR_LEN); in SMP_Pair() 176 (!memcmp (p_cb->pairing_bda, bd_addr, BD_ADDR_LEN)) ) in SMP_PairCancel() 204 memcmp (smp_cb.pairing_bda, bd_addr, BD_ADDR_LEN)) in SMP_SecurityGrant() 239 if (memcmp (bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) != 0) in SMP_PasskeyReply()
|
/external/bluetooth/bluedroid/stack/btm/ |
D | btm_ble_bgconn.c | 87 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller() 88 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) in btm_add_dev_to_controller() 99 if (memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0 && in btm_add_dev_to_controller() 100 memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0) in btm_add_dev_to_controller() 156 if (p_dev_op->in_use && !memcmp(p_dev_op->bd_addr, bd_addr, BD_ADDR_LEN)) in btm_enq_wl_dev_operation() 170 memcpy(p_dev_op->bd_addr, bd_addr, BD_ADDR_LEN); in btm_enq_wl_dev_operation() 313 if (p_bg_dev->in_use && memcmp(p_bg_dev->bd_addr, bd_addr, BD_ADDR_LEN) == 0) in btm_update_bg_conn_list() 331 memcpy(p_bg_dev->bd_addr, bd_addr, BD_ADDR_LEN); in btm_update_bg_conn_list()
|
D | btm_dev.c | 81 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in BTM_SecAddDevice() 275 if (!memcmp (bd_addr, btm_cb.connecting_bda, BD_ADDR_LEN)) in btm_sec_alloc_dev() 279 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); in btm_sec_alloc_dev() 405 && (!memcmp (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN))) in btm_find_dev()
|
D | btm_sec.c | 877 if (memcmp (bd_addr, btm_cb.pairing_bda, BD_ADDR_LEN) != 0) in BTM_PINCodeReply() 1092 memcpy (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN); in BTM_SecBond() 1223 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_SecBondCancel() 1513 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_ConfirmReqReply() 1560 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_PasskeyReqReply() 1650 || (memcmp (btm_cb.pairing_bda, bd_addr, BD_ADDR_LEN) != 0) ) in BTM_IoCapRsp() 1850 p += BD_ADDR_LEN; in BTM_ReadOobData() 1991 memcpy (evt_data.bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN); in btm_sec_check_upgrade() 2526 &&(!memcmp (btm_cb.pairing_bda, bda, BD_ADDR_LEN))) in btm_sec_conn_req() 2538 memcpy (btm_cb.connecting_bda, bda, BD_ADDR_LEN); in btm_sec_conn_req() [all …]
|
D | btm_sco.c | 589 && (!memcmp (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN))) in BTM_CreateSco() 634 memcpy (p->esco.data.bd_addr, remote_bda, BD_ADDR_LEN); in BTM_CreateSco() 807 && (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN))) in btm_sco_conn_req() 813 memcpy (p->esco.data.bd_addr, bda, BD_ADDR_LEN); in btm_sco_conn_req() 837 memcpy(evt_data.bd_addr, bda, BD_ADDR_LEN); in btm_sco_conn_req() 860 memcpy (p->esco.data.bd_addr, bda, BD_ADDR_LEN); in btm_sco_conn_req() 907 && (!bda || !memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN))) in btm_sco_connected() 1064 if (p->rem_bd_known && (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN))) in btm_remove_sco_links() 1135 if ((!bda) || (!memcmp (p->esco.data.bd_addr, bda, BD_ADDR_LEN) && p->rem_bd_known)) in btm_sco_acl_removed() 1639 memcpy(data.bd_addr, p->esco.data.bd_addr, BD_ADDR_LEN); in btm_esco_proc_conn_chg() [all …]
|
D | btm_acl.c | 144 if ((p->in_use) && (!memcmp (p->remote_addr, bda, BD_ADDR_LEN))) in btm_bda_to_acl() 247 memcpy (p->remote_addr, bda, BD_ADDR_LEN); in btm_acl_created() 337 … && (bda && (0 == memcmp(btm_cb.devcb.switch_role_ref_data.remote_bd_addr, bda, BD_ADDR_LEN)))) in btm_acl_report_role_change() 720 BD_ADDR_LEN); in BTM_SwitchRole() 817 BD_ADDR_LEN); in BTM_ChangeLinkKey() 1201 memcpy (lnkpol.rem_bda, p_acl_cb->remote_addr, BD_ADDR_LEN); in btm_read_link_policy_complete() 2243 memcpy(p_data->remote_bd_addr, p_bda, BD_ADDR_LEN); in btm_acl_role_changed() 2519 if (memcmp (btm_cb.devcb.local_addr, addr, BD_ADDR_LEN) == 0) in btm_get_max_packet_size() 2927 memcpy(btm_cb.devcb.read_tx_pwr_addr, remote_bda, BD_ADDR_LEN); in BTM_ReadTxPower() 2989 memcpy (results.rem_bda, p_acl_cb->remote_addr, BD_ADDR_LEN); in btm_read_tx_power_complete() [all …]
|
D | btm_ble_addr.c | 335 memcpy(p_mgnt_cb->random_bda, random_bda, BD_ADDR_LEN); in btm_ble_resolve_random_addr() 371 memcpy(bd_addr, p_dev_rec->ble.static_addr, BD_ADDR_LEN); in btm_ble_map_bda_to_conn_bda()
|
/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/stack/gap/ |
D | gap_ble.c | 90 if (p_clcb->in_use && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gap_find_clcb_by_bd_addr() 145 memcpy (p_clcb->bda, bda, BD_ADDR_LEN); in gap_clcb_alloc() 173 memcpy (p_clcb->bda, bda, BD_ADDR_LEN); in gap_find_alloc_clcb() 204 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bd_addr, BD_ADDR_LEN) ) in gap_get_conn_id_if_connected() 236 memcpy(p_op->pending_data.reconn_addr, reconn_addr, BD_ADDR_LEN); in gap_ble_enqueue_op() 324 p_value->len = BD_ADDR_LEN; in gap_read_attr_value() 362 if (memcmp(gap_cb.reconn_bda, dummy_bda, BD_ADDR_LEN) != 0) in gap_read_local_reconn_addr() 364 memcpy(reconn_bda, gap_cb.reconn_bda, BD_ADDR_LEN); in gap_read_local_reconn_addr() 965 memcpy(p_clcb->reconn_addr, reconn_addr, BD_ADDR_LEN); in GAP_BleUpdateReconnectAddr()
|
D | gap_utils.c | 175 memcpy (p_result->bd_addr, p_cb->p_cur_inq->results.remote_bd_addr, BD_ADDR_LEN); in gap_find_addr_name_cb() 299 memcpy (bd_addr, p_result->results.remote_bd_addr, BD_ADDR_LEN); in gap_find_local_addr_by_name()
|
/external/bluetooth/bluedroid/bta/gatt/ |
D | bta_gattc_api.c | 160 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Open() 192 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_CancelOpen() 889 !memcmp(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN) && in BTA_GATTC_RegisterForNotifications() 906 memcpy(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN); in BTA_GATTC_RegisterForNotifications() 968 !memcmp(p_clreg->notif_reg[i].remote_bda, bda, BD_ADDR_LEN) && in BTA_GATTC_DeregisterForNotifications() 1013 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Refresh() 1040 …BTA_GATTC_API_LISTEN *) GKI_getbuf((UINT16)(sizeof(tBTA_GATTC_API_LISTEN) + BD_ADDR_LEN))) != NULL) in BTA_GATTC_Listen() 1049 memcpy(p_buf->remote_bda, target_bda, BD_ADDR_LEN); in BTA_GATTC_Listen() 1075 …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 | 480 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTS_Open() 511 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTS_CancelOpen() 560 …BTA_GATTS_API_LISTEN *) GKI_getbuf((UINT16)(sizeof(tBTA_GATTS_API_LISTEN) + BD_ADDR_LEN))) != NULL) in BTA_GATTS_Listen() 570 memcpy(p_buf->remote_bda, target_bda, BD_ADDR_LEN); in BTA_GATTS_Listen()
|
/external/bluetooth/bluedroid/stack/gatt/ |
D | gatt_attr.c | 71 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gatt_profile_find_conn_id_by_bd_addr() 96 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gatt_profile_find_clcb_by_bd_addr() 126 memcpy (p_clcb->bda, bda, BD_ADDR_LEN); in gatt_profile_clcb_alloc()
|
/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/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/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/include/ |
D | bt_types.h | 246 …EAM(p, a) {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++ = (UINT8) a[BD_ADDR… 256 …gister int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN - 1; for (ijk = 0; ijk < BD_ADDR_L… 302 #define BD_ADDR_LEN 6 /* Device address length */ macro 303 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 | 72 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() 97 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in srvc_eng_find_clcb_by_bd_addr() 174 memcpy (p_clcb->bda, bda, BD_ADDR_LEN); in srvc_eng_clcb_alloc()
|