Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/bluetooth/
Dbtbcm.c123 if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0) || in btbcm_check_bdaddr()
124 !bacmp(&bda->bdaddr, BDADDR_BCM20702A1) || in btbcm_check_bdaddr()
125 !bacmp(&bda->bdaddr, BDADDR_BCM2076B1) || in btbcm_check_bdaddr()
126 !bacmp(&bda->bdaddr, BDADDR_BCM4324B3) || in btbcm_check_bdaddr()
127 !bacmp(&bda->bdaddr, BDADDR_BCM4330B1) || in btbcm_check_bdaddr()
128 !bacmp(&bda->bdaddr, BDADDR_BCM4334B0) || in btbcm_check_bdaddr()
129 !bacmp(&bda->bdaddr, BDADDR_BCM4345C5) || in btbcm_check_bdaddr()
130 !bacmp(&bda->bdaddr, BDADDR_BCM43430A0) || in btbcm_check_bdaddr()
131 !bacmp(&bda->bdaddr, BDADDR_BCM43430A1) || in btbcm_check_bdaddr()
132 !bacmp(&bda->bdaddr, BDADDR_BCM43341B)) { in btbcm_check_bdaddr()
Dhci_ll.c648 if (!bacmp(&lldev->bdaddr, BDADDR_NONE)) { in ll_setup()
653 } else if (bacmp(&lldev->bdaddr, BDADDR_ANY)) { in ll_setup()
Dbtintel.c89 if (!bacmp(&bda->bdaddr, BDADDR_INTEL)) { in btintel_check_bdaddr()
2016 if (!bacmp(&params->otp_bdaddr, BDADDR_ANY)) { in btintel_download_fw()
2237 if (!bacmp(&ver->otp_bd_addr, BDADDR_ANY)) { in btintel_prepare_fw_download_tlv()
Dhci_intel.c661 if (!bacmp(&params.otp_bdaddr, BDADDR_ANY)) { in intel_setup()
/linux-6.6.21/net/bluetooth/
Dhci_core.c201 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup()
217 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup_unknown()
234 if (!bacmp(bdaddr, BDADDR_ANY) && e->name_state == state) in hci_inquiry_cache_lookup_resolve()
236 if (!bacmp(&e->data.bdaddr, bdaddr)) in hci_inquiry_cache_lookup_resolve()
999 !bacmp(&hdev->bdaddr, BDADDR_ANY) && in hci_power_on()
1000 !bacmp(&hdev->static_addr, BDADDR_ANY))) { in hci_power_on()
1139 if (bacmp(bdaddr, &k->bdaddr) == 0) { in hci_find_link_key()
1214 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk()
1243 if (!bacmp(&irk->rpa, rpa)) { in hci_find_irk_by_rpa()
1283 bacmp(bdaddr, &irk->bdaddr) == 0) { in hci_find_irk_by_addr()
[all …]
Diso.c550 if (bacmp(&iso_pi(sk)->dst, dst)) in __iso_get_sock_listen_by_addr()
553 if (!bacmp(&iso_pi(sk)->src, src)) in __iso_get_sock_listen_by_addr()
569 if (bacmp(&iso_pi(sk)->src, ba)) in __iso_get_sock_listen_by_sid()
572 if (bacmp(&iso_pi(sk)->dst, bc)) in __iso_get_sock_listen_by_sid()
601 if (bacmp(dst, BDADDR_ANY) && bacmp(&iso_pi(sk)->dst, dst)) in iso_get_sock_listen()
609 if (!bacmp(&iso_pi(sk)->src, src)) in iso_get_sock_listen()
613 if (!bacmp(&iso_pi(sk)->src, BDADDR_ANY)) in iso_get_sock_listen()
927 if (bacmp(&iso_pi(sk)->dst, BDADDR_ANY)) in iso_sock_connect()
1020 if (!bacmp(&iso_pi(sk)->dst, BDADDR_ANY)) in iso_sock_listen()
1487 !bacmp(&iso_pi(sk)->dst, BDADDR_ANY)) { in iso_sock_getsockopt()
[all …]
Dhci_request.c685 if (bacmp(&hdev->bdaddr, &nrpa)) in hci_update_random_address()
704 !bacmp(&hdev->bdaddr, BDADDR_ANY) || in hci_update_random_address()
706 bacmp(&hdev->static_addr, BDADDR_ANY))) { in hci_update_random_address()
708 if (bacmp(&hdev->static_addr, &hdev->random_addr)) in hci_update_random_address()
Dhci_sync.c947 if (bacmp(&hdev->bdaddr, &nrpa)) in hci_update_random_address_sync()
966 !bacmp(&hdev->bdaddr, BDADDR_ANY) || in hci_update_random_address_sync()
968 bacmp(&hdev->static_addr, BDADDR_ANY))) { in hci_update_random_address_sync()
970 if (bacmp(&hdev->static_addr, &hdev->random_addr)) in hci_update_random_address_sync()
1163 bacmp(&random_addr, BDADDR_ANY)) { in hci_setup_ext_adv_instance_sync()
1166 if (!bacmp(&random_addr, &adv->random_addr)) in hci_setup_ext_adv_instance_sync()
1169 if (!bacmp(&random_addr, &hdev->random_addr)) in hci_setup_ext_adv_instance_sync()
3253 (!bacmp(&hdev->bdaddr, BDADDR_ANY) && in hci_powered_update_sync()
3255 if (bacmp(&hdev->static_addr, BDADDR_ANY)) in hci_powered_update_sync()
3283 if (ret < 0 || !bacmp(&ba, BDADDR_ANY)) in hci_dev_get_bd_addr_from_property()
[all …]
Dsco.c355 if (!bacmp(&sco_pi(sk)->src, ba)) in __sco_get_sock_listen_by_addr()
376 if (!bacmp(&sco_pi(sk)->src, src)) in sco_get_sock_listen()
380 if (!bacmp(&sco_pi(sk)->src, BDADDR_ANY)) in sco_get_sock_listen()
1333 if (!bacmp(&sco_pi(sk)->src, &hdev->bdaddr) || in sco_connect_ind()
1334 !bacmp(&sco_pi(sk)->src, BDADDR_ANY)) { in sco_connect_ind()
Dhci_conn.c747 if (bacmp(&conn->dst, BDADDR_ANY)) in bis_list()
899 if (!bacmp(&conn->dst, BDADDR_ANY) || d->cig != conn->iso_qos.ucast.cig) in find_cis()
988 if (!bacmp(dst, BDADDR_ANY)) in hci_conn_add()
1164 int use_src = bacmp(src, BDADDR_ANY); in hci_get_route()
1205 if (!bacmp(&id_addr, src) && id_addr_type == src_type) { in hci_get_route()
1209 if (bacmp(&d->bdaddr, dst)) { in hci_get_route()
1381 if (irk && bacmp(&irk->rpa, BDADDR_ANY)) { in hci_connect_le()
1639 if (!bacmp(&hdev->bdaddr, dst)) { in hci_connect_acl()
1991 if (conn->type != ISO_LINK || !bacmp(&conn->dst, BDADDR_ANY)) in hci_conn_check_create_cis()
2226 if (bacmp(&conn->dst, BDADDR_ANY)) in bis_mark_per_adv()
Dmgmt.c633 !bacmp(&hdev->public_addr, BDADDR_ANY)) in is_configured()
649 !bacmp(&hdev->public_addr, BDADDR_ANY)) in get_missing_options()
933 !bacmp(&hdev->bdaddr, BDADDR_ANY)) { in get_current_settings()
934 if (bacmp(&hdev->static_addr, BDADDR_ANY)) in get_current_settings()
3617 if (bacmp(&addr->bdaddr, &conn->dst) != 0) { in cancel_pair_device()
5810 if (!bacmp(&cp->addr.bdaddr, BDADDR_ANY)) { in remove_remote_oob_data()
6528 if (bacmp(&cp->bdaddr, BDADDR_ANY)) { in set_static_address()
6529 if (!bacmp(&cp->bdaddr, BDADDR_NONE)) in set_static_address()
6801 (bacmp(&hdev->static_addr, BDADDR_ANY) || in set_bredr()
7522 if (bacmp(&cp->addr.bdaddr, BDADDR_ANY)) { in get_clock_info()
[all …]
Dmsft.c224 !bacmp(addr, &entry->bdaddr)) in msft_find_address_data()
245 (!bdaddr || (!bacmp(bdaddr, &dev->bdaddr) && in msft_monitor_device_del()
Dhci_event.c1416 if (!bacmp(&hdev->rpa, sent)) { in hci_cc_le_set_random_addr()
1477 if (!bacmp(&hdev->rpa, &cp->bdaddr)) { in hci_cc_le_set_adv_set_random_addr()
1751 return bacmp(&d->last_adv_addr, BDADDR_ANY); in has_pending_adv_report()
3292 if (hdev && !bacmp(&hdev->bdaddr, &ev->bdaddr)) { in hci_conn_request_evt()
3827 if (conn->type != ISO_LINK || !bacmp(&conn->dst, BDADDR_ANY) || in hci_unbound_cis_failed()
3879 if (!conn || !bacmp(&conn->dst, BDADDR_ANY)) in hci_cc_le_set_cig_params()
5833 if (local_rpa && bacmp(local_rpa, BDADDR_ANY)) { in le_conn_update_addr()
5848 if (local_rpa && bacmp(local_rpa, BDADDR_ANY)) { in le_conn_update_addr()
6129 bacmp(&conn->resp_addr, BDADDR_ANY)) in hci_le_ext_adv_term_evt()
6424 match = (!bacmp(bdaddr, &d->last_adv_addr) && in process_adv_report()
[all …]
Dl2cap_core.c200 if (c->sport == psm && !bacmp(&c->src, src)) in __l2cap_global_chan_by_addr()
1994 src_match = !bacmp(&c->src, src); in l2cap_global_chan_by_psm()
1995 dst_match = !bacmp(&c->dst, dst); in l2cap_global_chan_by_psm()
2005 src_any = !bacmp(&c->src, BDADDR_ANY); in l2cap_global_chan_by_psm()
2006 dst_any = !bacmp(&c->dst, BDADDR_ANY); in l2cap_global_chan_by_psm()
5332 bacmp(&conn->hcon->src, &conn->hcon->dst) > 0) { in l2cap_move_channel_req()
8189 if (!bacmp(&c->src, &hdev->bdaddr)) { in l2cap_connect_ind()
8194 } else if (!bacmp(&c->src, BDADDR_ANY)) { in l2cap_connect_ind()
8226 if (bacmp(&c->src, &hcon->src) && bacmp(&c->src, BDADDR_ANY)) in l2cap_global_fixed_chan()
Dhci_debugfs.c1198 if (bacmp(&hdev->bdaddr, BDADDR_ANY)) in hci_debugfs_create_le()
Dl2cap_sock.c218 if (chan->src_type == BDADDR_BREDR && bacmp(&chan->src, BDADDR_ANY) && in l2cap_sock_connect()
Dsmp.c2628 if (!bacmp(&info->bdaddr, BDADDR_ANY) || in smp_cmd_ident_addr_info()
2640 (bacmp(&info->bdaddr, &hcon->dst) || in smp_cmd_ident_addr_info()
/linux-6.6.21/include/net/bluetooth/
Dhci_core.h1116 if (bacmp(&c->dst, ba) || c->type != ISO_LINK) in hci_conn_hash_lookup_bis()
1140 if (bacmp(&c->dst, ba) || c->type != ISO_LINK || in hci_conn_hash_lookup_per_adv_bis()
1183 if (c->type == type && !bacmp(&c->dst, ba)) { in hci_conn_hash_lookup_ba()
1207 if (ba_type == c->dst_type && !bacmp(&c->dst, ba)) { in hci_conn_hash_lookup_le()
1230 if (c->type != ISO_LINK || !bacmp(&c->dst, BDADDR_ANY)) in hci_conn_hash_lookup_cis()
1242 if (!ba || (ba_type == c->dst_type && !bacmp(&c->dst, ba))) { in hci_conn_hash_lookup_cis()
1262 if (c->type != ISO_LINK || !bacmp(&c->dst, BDADDR_ANY)) in hci_conn_hash_lookup_cig()
1285 if (bacmp(&c->dst, BDADDR_ANY) || c->type != ISO_LINK) in hci_conn_hash_lookup_big()
1838 #define rpa_valid(dev) (bacmp(&dev->rpa, BDADDR_ANY) && \
1840 #define adv_rpa_valid(adv) (bacmp(&adv->random_addr, BDADDR_ANY) && \
Dbluetooth.h362 static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2) in bacmp() function
/linux-6.6.21/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.c737 if ((!bacmp(src, BDADDR_ANY) || !bacmp(&chan->src, src)) && in rfcomm_session_get()
738 !bacmp(&chan->dst, dst)) in rfcomm_session_get()
/linux-6.6.21/net/bluetooth/hidp/
Dcore.c1010 if (!bacmp(bdaddr, &session->bdaddr)) in __hidp_session_find()
1324 if (bacmp(&ctrl_chan->src, &intr_chan->src) || in hidp_verify_sockets()
1325 bacmp(&ctrl_chan->dst, &intr_chan->dst)) in hidp_verify_sockets()
/linux-6.6.21/net/bluetooth/cmtp/
Dcore.c60 if (!bacmp(bdaddr, &session->bdaddr)) in __cmtp_get_session()