Lines Matching refs:d
748 struct iso_list_data *d = data; in bis_list() local
754 if (d->big != conn->iso_qos.bcast.big || d->bis == BT_ISO_QOS_BIS_UNSET || in bis_list()
755 d->bis != conn->iso_qos.bcast.bis) in bis_list()
758 d->count++; in bis_list()
763 struct iso_list_data *d = data; in terminate_big_sync() local
765 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", d->big, d->bis); in terminate_big_sync()
767 hci_disable_per_advertising_sync(hdev, d->bis); in terminate_big_sync()
768 hci_remove_ext_adv_instance_sync(hdev, d->bis, NULL); in terminate_big_sync()
771 if (!d->big_term) in terminate_big_sync()
774 return hci_le_terminate_big_sync(hdev, d->big, in terminate_big_sync()
785 struct iso_list_data *d; in hci_le_terminate_big() local
791 d = kzalloc(sizeof(*d), GFP_KERNEL); in hci_le_terminate_big()
792 if (!d) in hci_le_terminate_big()
795 d->big = conn->iso_qos.bcast.big; in hci_le_terminate_big()
796 d->bis = conn->iso_qos.bcast.bis; in hci_le_terminate_big()
797 d->big_term = test_and_clear_bit(HCI_CONN_BIG_CREATED, &conn->flags); in hci_le_terminate_big()
799 ret = hci_cmd_sync_queue(hdev, terminate_big_sync, d, in hci_le_terminate_big()
802 kfree(d); in hci_le_terminate_big()
809 struct iso_list_data *d = data; in big_terminate_sync() local
811 bt_dev_dbg(hdev, "big 0x%2.2x sync_handle 0x%4.4x", d->big, in big_terminate_sync()
812 d->sync_handle); in big_terminate_sync()
814 if (d->big_sync_term) in big_terminate_sync()
815 hci_le_big_terminate_sync(hdev, d->big); in big_terminate_sync()
817 if (d->pa_sync_term) in big_terminate_sync()
818 return hci_le_pa_terminate_sync(hdev, d->sync_handle); in big_terminate_sync()
825 struct iso_list_data *d; in hci_le_big_terminate() local
830 d = kzalloc(sizeof(*d), GFP_KERNEL); in hci_le_big_terminate()
831 if (!d) in hci_le_big_terminate()
834 d->big = big; in hci_le_big_terminate()
835 d->sync_handle = conn->sync_handle; in hci_le_big_terminate()
836 d->pa_sync_term = test_and_clear_bit(HCI_CONN_PA_SYNC, &conn->flags); in hci_le_big_terminate()
837 d->big_sync_term = test_and_clear_bit(HCI_CONN_BIG_SYNC, &conn->flags); in hci_le_big_terminate()
839 ret = hci_cmd_sync_queue(hdev, big_terminate_sync, d, in hci_le_big_terminate()
842 kfree(d); in hci_le_big_terminate()
901 struct iso_list_data *d = data; in find_cis() local
904 if (!bacmp(&conn->dst, BDADDR_ANY) || d->cig != conn->iso_qos.ucast.cig) in find_cis()
907 d->count++; in find_cis()
917 struct iso_list_data d; in cis_cleanup() local
922 memset(&d, 0, sizeof(d)); in cis_cleanup()
923 d.cig = conn->iso_qos.ucast.cig; in cis_cleanup()
928 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_BOUND, &d); in cis_cleanup()
929 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECT, &d); in cis_cleanup()
930 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECTED, &d); in cis_cleanup()
931 if (d.count) in cis_cleanup()
1209 struct hci_dev *hdev = NULL, *d; in hci_get_route() local
1215 list_for_each_entry(d, &hci_dev_list, list) { in hci_get_route()
1216 if (!test_bit(HCI_UP, &d->flags) || in hci_get_route()
1217 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route()
1230 if (!lmp_bredr_capable(d)) in hci_get_route()
1232 bacpy(&id_addr, &d->bdaddr); in hci_get_route()
1235 if (!lmp_le_capable(d)) in hci_get_route()
1238 hci_copy_identity_address(d, &id_addr, in hci_get_route()
1249 hdev = d; break; in hci_get_route()
1252 if (bacmp(&d->bdaddr, dst)) { in hci_get_route()
1253 hdev = d; break; in hci_get_route()
2266 struct iso_list_data *d = data; in bis_mark_per_adv() local
2272 if (d->big != conn->iso_qos.bcast.big || in bis_mark_per_adv()
2273 d->bis == BT_ISO_QOS_BIS_UNSET || in bis_mark_per_adv()
2274 d->bis != conn->iso_qos.bcast.bis) in bis_mark_per_adv()