Home
last modified time | relevance | path

Searched refs:bacmp (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/bluetooth/
Dbtbcm.c79 if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0) || in btbcm_check_bdaddr()
80 !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) || in btbcm_check_bdaddr()
81 !bacmp(&bda->bdaddr, BDADDR_BCM2076B1) || in btbcm_check_bdaddr()
82 !bacmp(&bda->bdaddr, BDADDR_BCM4324B3) || in btbcm_check_bdaddr()
83 !bacmp(&bda->bdaddr, BDADDR_BCM4330B1) || in btbcm_check_bdaddr()
84 !bacmp(&bda->bdaddr, BDADDR_BCM4334B0) || in btbcm_check_bdaddr()
85 !bacmp(&bda->bdaddr, BDADDR_BCM4345C5) || in btbcm_check_bdaddr()
86 !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) || in btbcm_check_bdaddr()
87 !bacmp(&bda->bdaddr, BDADDR_BCM43341B)) { in btbcm_check_bdaddr()
Dhci_ll.c647 if (!bacmp(&lldev->bdaddr, BDADDR_NONE)) { in ll_setup()
652 } else if (bacmp(&lldev->bdaddr, BDADDR_ANY)) { in ll_setup()
Dbtintel.c54 if (!bacmp(&bda->bdaddr, BDADDR_INTEL)) { in btintel_check_bdaddr()
Dhci_intel.c661 if (!bacmp(&params.otp_bdaddr, BDADDR_ANY)) { in intel_setup()
Dbtusb.c2493 if (!bacmp(&params->otp_bdaddr, BDADDR_ANY)) { in btusb_intel_download_firmware()
/kernel/linux/linux-5.10/net/bluetooth/
Dhci_core.c1132 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup()
1148 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup_unknown()
1165 if (!bacmp(bdaddr, BDADDR_ANY) && e->name_state == state) in hci_inquiry_cache_lookup_resolve()
1167 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup_resolve()
1426 if (ret < 0 || !bacmp(&ba, BDADDR_ANY)) in hci_dev_get_bd_addr_from_property()
1469 !bacmp(&hdev->bdaddr, BDADDR_ANY) && in hci_dev_do_open()
1470 !bacmp(&hdev->static_addr, BDADDR_ANY)) { in hci_dev_do_open()
1512 if (!bacmp(&hdev->public_addr, BDADDR_ANY)) in hci_dev_do_open()
1515 if (bacmp(&hdev->public_addr, BDADDR_ANY) && in hci_dev_do_open()
1563 if (bacmp(&hdev->public_addr, BDADDR_ANY) && in hci_dev_do_open()
[all …]
Dsco.c338 if (!bacmp(&sco_pi(sk)->src, ba)) in __sco_get_sock_listen_by_addr()
359 if (!bacmp(&sco_pi(sk)->src, src)) in sco_get_sock_listen()
363 if (!bacmp(&sco_pi(sk)->src, BDADDR_ANY)) in sco_get_sock_listen()
1175 if (!bacmp(&sco_pi(sk)->src, &hdev->bdaddr) || in sco_connect_ind()
1176 !bacmp(&sco_pi(sk)->src, BDADDR_ANY)) { in sco_connect_ind()
Dhci_conn.c652 int use_src = bacmp(src, BDADDR_ANY); in hci_get_route()
693 if (!bacmp(&id_addr, src) && id_addr_type == src_type) { in hci_get_route()
697 if (bacmp(&d->bdaddr, dst)) { in hci_get_route()
813 if (bacmp(&req->hdev->random_addr, direct_rpa)) in hci_req_add_le_create_conn()
939 bacmp(&random_addr, BDADDR_ANY) && in hci_req_directed_advertising()
940 bacmp(&random_addr, &hdev->random_addr)) { in hci_req_directed_advertising()
1045 if (irk && bacmp(&irk->rpa, BDADDR_ANY)) { in hci_connect_le()
Dhci_request.c1911 !bacmp(&adv_instance->random_addr, &hdev->rpa)) in hci_get_random_address()
1917 !bacmp(&hdev->random_addr, &hdev->rpa)) in hci_get_random_address()
1958 if (bacmp(&hdev->bdaddr, &nrpa)) in hci_get_random_address()
2065 bacmp(&random_addr, BDADDR_ANY)) { in __hci_req_setup_ext_adv_instance()
2070 if (!bacmp(&random_addr, &adv_instance->random_addr)) in __hci_req_setup_ext_adv_instance()
2073 if (!bacmp(&random_addr, &hdev->random_addr)) in __hci_req_setup_ext_adv_instance()
2378 !bacmp(&hdev->random_addr, &hdev->rpa)) in hci_update_random_address()
2413 if (bacmp(&hdev->bdaddr, &nrpa)) in hci_update_random_address()
2432 !bacmp(&hdev->bdaddr, BDADDR_ANY) || in hci_update_random_address()
2434 bacmp(&hdev->static_addr, BDADDR_ANY))) { in hci_update_random_address()
[all …]
Dmgmt.c585 !bacmp(&hdev->public_addr, BDADDR_ANY)) in is_configured()
601 !bacmp(&hdev->public_addr, BDADDR_ANY)) in get_missing_options()
884 !bacmp(&hdev->bdaddr, BDADDR_ANY)) { in get_current_settings()
885 if (bacmp(&hdev->static_addr, BDADDR_ANY)) in get_current_settings()
3060 if (bacmp(&addr->bdaddr, &conn->dst) != 0) { in cancel_pair_device()
4591 if (!bacmp(&cp->addr.bdaddr, BDADDR_ANY)) { in remove_remote_oob_data()
5288 if (bacmp(&cp->bdaddr, BDADDR_ANY)) { in set_static_address()
5289 if (!bacmp(&cp->bdaddr, BDADDR_NONE)) in set_static_address()
5572 (bacmp(&hdev->static_addr, BDADDR_ANY) || in set_bredr()
6356 if (bacmp(&cp->addr.bdaddr, BDADDR_ANY)) { in get_clock_info()
[all …]
Dl2cap_core.c184 if (c->sport == psm && !bacmp(&c->src, src)) in __l2cap_global_chan_by_addr()
1964 src_match = !bacmp(&c->src, src); in l2cap_global_chan_by_psm()
1965 dst_match = !bacmp(&c->dst, dst); in l2cap_global_chan_by_psm()
1973 src_any = !bacmp(&c->src, BDADDR_ANY); in l2cap_global_chan_by_psm()
1974 dst_any = !bacmp(&c->dst, BDADDR_ANY); in l2cap_global_chan_by_psm()
5275 bacmp(&conn->hcon->src, &conn->hcon->dst) > 0) { in l2cap_move_channel_req()
8095 if (!bacmp(&c->src, &hdev->bdaddr)) { in l2cap_connect_ind()
8100 } else if (!bacmp(&c->src, BDADDR_ANY)) { in l2cap_connect_ind()
8132 if (bacmp(&c->src, &hcon->src) && bacmp(&c->src, BDADDR_ANY)) in l2cap_global_fixed_chan()
Dhci_event.c1324 return bacmp(&d->last_adv_addr, BDADDR_ANY); in has_pending_adv_report()
5084 if (local_rpa && bacmp(local_rpa, BDADDR_ANY)) { in le_conn_update_addr()
5099 if (local_rpa && bacmp(local_rpa, BDADDR_ANY)) { in le_conn_update_addr()
5323 bacmp(&conn->resp_addr, BDADDR_ANY)) in hci_le_ext_adv_term_evt()
5608 match = (!bacmp(bdaddr, &d->last_adv_addr) && in process_adv_report()
Dhci_debugfs.c1142 if (bacmp(&hdev->bdaddr, BDADDR_ANY)) in hci_debugfs_create_le()
D6lowpan.c120 if (bacmp(&peer->chan->dst, ba)) in peer_lookup_ba()
Dl2cap_sock.c231 if (chan->src_type == BDADDR_BREDR && bacmp(&chan->src, BDADDR_ANY) && in l2cap_sock_connect()
Dsmp.c2607 if (!bacmp(&info->bdaddr, BDADDR_ANY) || in smp_cmd_ident_addr_info()
2619 (bacmp(&info->bdaddr, &hcon->dst) || in smp_cmd_ident_addr_info()
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
Dsock.c114 if (bacmp(&rfcomm_pi(sk)->src, src)) in __rfcomm_get_listen_sock_by_addr()
139 if (!bacmp(&rfcomm_pi(sk)->src, src)) in rfcomm_get_sock_by_channel()
143 if (!bacmp(&rfcomm_pi(sk)->src, BDADDR_ANY)) in rfcomm_get_sock_by_channel()
Dcore.c697 if ((!bacmp(src, BDADDR_ANY) || !bacmp(&chan->src, src)) && in rfcomm_session_get()
698 !bacmp(&chan->dst, dst)) in rfcomm_session_get()
/kernel/linux/linux-5.10/include/net/bluetooth/
Dbluetooth.h274 static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2) in bacmp() function
Dhci_core.h964 if (c->type == type && !bacmp(&c->dst, ba)) { in hci_conn_hash_lookup_ba()
988 if (ba_type == c->dst_type && !bacmp(&c->dst, ba)) { in hci_conn_hash_lookup_le()
/kernel/linux/linux-5.10/net/bluetooth/hidp/
Dcore.c1011 if (!bacmp(bdaddr, &session->bdaddr)) in __hidp_session_find()
1325 if (bacmp(&ctrl_chan->src, &intr_chan->src) || in hidp_verify_sockets()
1326 bacmp(&ctrl_chan->dst, &intr_chan->dst)) in hidp_verify_sockets()
/kernel/linux/linux-5.10/net/bluetooth/cmtp/
Dcore.c60 if (!bacmp(bdaddr, &session->bdaddr)) in __cmtp_get_session()