adv_instance     1703 net/bluetooth/hci_core.c 		struct adv_info *adv_instance;
adv_instance     1707 net/bluetooth/hci_core.c 		list_for_each_entry(adv_instance, &hdev->adv_instances, list)
adv_instance     1708 net/bluetooth/hci_core.c 			cancel_delayed_work_sync(&adv_instance->rpa_expired_cb);
adv_instance     2743 net/bluetooth/hci_core.c 	struct adv_info *adv_instance;
adv_instance     2745 net/bluetooth/hci_core.c 	list_for_each_entry(adv_instance, &hdev->adv_instances, list) {
adv_instance     2746 net/bluetooth/hci_core.c 		if (adv_instance->instance == instance)
adv_instance     2747 net/bluetooth/hci_core.c 			return adv_instance;
adv_instance     2773 net/bluetooth/hci_core.c 	struct adv_info *adv_instance;
adv_instance     2775 net/bluetooth/hci_core.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     2776 net/bluetooth/hci_core.c 	if (!adv_instance)
adv_instance     2789 net/bluetooth/hci_core.c 	cancel_delayed_work_sync(&adv_instance->rpa_expired_cb);
adv_instance     2791 net/bluetooth/hci_core.c 	list_del(&adv_instance->list);
adv_instance     2792 net/bluetooth/hci_core.c 	kfree(adv_instance);
adv_instance     2801 net/bluetooth/hci_core.c 	struct adv_info *adv_instance, *n;
adv_instance     2803 net/bluetooth/hci_core.c 	list_for_each_entry_safe(adv_instance, n, &hdev->adv_instances, list)
adv_instance     2804 net/bluetooth/hci_core.c 		adv_instance->rpa_expired = rpa_expired;
adv_instance     2810 net/bluetooth/hci_core.c 	struct adv_info *adv_instance, *n;
adv_instance     2817 net/bluetooth/hci_core.c 	list_for_each_entry_safe(adv_instance, n, &hdev->adv_instances, list) {
adv_instance     2818 net/bluetooth/hci_core.c 		cancel_delayed_work_sync(&adv_instance->rpa_expired_cb);
adv_instance     2819 net/bluetooth/hci_core.c 		list_del(&adv_instance->list);
adv_instance     2820 net/bluetooth/hci_core.c 		kfree(adv_instance);
adv_instance     2829 net/bluetooth/hci_core.c 	struct adv_info *adv_instance = container_of(work, struct adv_info,
adv_instance     2834 net/bluetooth/hci_core.c 	adv_instance->rpa_expired = true;
adv_instance     2843 net/bluetooth/hci_core.c 	struct adv_info *adv_instance;
adv_instance     2845 net/bluetooth/hci_core.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     2846 net/bluetooth/hci_core.c 	if (adv_instance) {
adv_instance     2847 net/bluetooth/hci_core.c 		memset(adv_instance->adv_data, 0,
adv_instance     2848 net/bluetooth/hci_core.c 		       sizeof(adv_instance->adv_data));
adv_instance     2849 net/bluetooth/hci_core.c 		memset(adv_instance->scan_rsp_data, 0,
adv_instance     2850 net/bluetooth/hci_core.c 		       sizeof(adv_instance->scan_rsp_data));
adv_instance     2856 net/bluetooth/hci_core.c 		adv_instance = kzalloc(sizeof(*adv_instance), GFP_KERNEL);
adv_instance     2857 net/bluetooth/hci_core.c 		if (!adv_instance)
adv_instance     2860 net/bluetooth/hci_core.c 		adv_instance->pending = true;
adv_instance     2861 net/bluetooth/hci_core.c 		adv_instance->instance = instance;
adv_instance     2862 net/bluetooth/hci_core.c 		list_add(&adv_instance->list, &hdev->adv_instances);
adv_instance     2866 net/bluetooth/hci_core.c 	adv_instance->flags = flags;
adv_instance     2867 net/bluetooth/hci_core.c 	adv_instance->adv_data_len = adv_data_len;
adv_instance     2868 net/bluetooth/hci_core.c 	adv_instance->scan_rsp_len = scan_rsp_len;
adv_instance     2871 net/bluetooth/hci_core.c 		memcpy(adv_instance->adv_data, adv_data, adv_data_len);
adv_instance     2874 net/bluetooth/hci_core.c 		memcpy(adv_instance->scan_rsp_data,
adv_instance     2877 net/bluetooth/hci_core.c 	adv_instance->timeout = timeout;
adv_instance     2878 net/bluetooth/hci_core.c 	adv_instance->remaining_time = timeout;
adv_instance     2881 net/bluetooth/hci_core.c 		adv_instance->duration = HCI_DEFAULT_ADV_DURATION;
adv_instance     2883 net/bluetooth/hci_core.c 		adv_instance->duration = duration;
adv_instance     2885 net/bluetooth/hci_core.c 	adv_instance->tx_power = HCI_TX_POWER_INVALID;
adv_instance     2887 net/bluetooth/hci_core.c 	INIT_DELAYED_WORK(&adv_instance->rpa_expired_cb,
adv_instance     1117 net/bluetooth/hci_event.c 	struct adv_info *adv_instance;
adv_instance     1132 net/bluetooth/hci_event.c 		adv_instance = hci_find_adv_instance(hdev,
adv_instance     1134 net/bluetooth/hci_event.c 		if (adv_instance)
adv_instance     1135 net/bluetooth/hci_event.c 			bacpy(&adv_instance->random_addr, &cp->bdaddr);
adv_instance     1664 net/bluetooth/hci_event.c 	struct adv_info *adv_instance;
adv_instance     1681 net/bluetooth/hci_event.c 		adv_instance = hci_find_adv_instance(hdev,
adv_instance     1683 net/bluetooth/hci_event.c 		if (adv_instance)
adv_instance     1684 net/bluetooth/hci_event.c 			adv_instance->tx_power = rp->tx_power;
adv_instance     5103 net/bluetooth/hci_event.c 		struct adv_info *adv_instance;
adv_instance     5113 net/bluetooth/hci_event.c 		adv_instance = hci_find_adv_instance(hdev, hdev->cur_adv_instance);
adv_instance     5114 net/bluetooth/hci_event.c 		if (adv_instance)
adv_instance     5115 net/bluetooth/hci_event.c 			bacpy(&conn->resp_addr, &adv_instance->random_addr);
adv_instance      905 net/bluetooth/hci_request.c 	struct adv_info *adv_instance;
adv_instance      911 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance      912 net/bluetooth/hci_request.c 	if (!adv_instance)
adv_instance      918 net/bluetooth/hci_request.c 	return adv_instance->scan_rsp_len;
adv_instance      924 net/bluetooth/hci_request.c 	struct adv_info *adv_instance;
adv_instance      930 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance      931 net/bluetooth/hci_request.c 	if (!adv_instance)
adv_instance      937 net/bluetooth/hci_request.c 	return adv_instance->scan_rsp_len;
adv_instance      960 net/bluetooth/hci_request.c 	struct adv_info *adv_instance;
adv_instance      982 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance      985 net/bluetooth/hci_request.c 	if (!adv_instance)
adv_instance      988 net/bluetooth/hci_request.c 	return adv_instance->flags;
adv_instance     1179 net/bluetooth/hci_request.c 	struct adv_info *adv_instance;
adv_instance     1183 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     1184 net/bluetooth/hci_request.c 	if (!adv_instance)
adv_instance     1187 net/bluetooth/hci_request.c 	instance_flags = adv_instance->flags;
adv_instance     1193 net/bluetooth/hci_request.c 	memcpy(&ptr[scan_rsp_len], adv_instance->scan_rsp_data,
adv_instance     1194 net/bluetooth/hci_request.c 	       adv_instance->scan_rsp_len);
adv_instance     1196 net/bluetooth/hci_request.c 	scan_rsp_len += adv_instance->scan_rsp_len;
adv_instance     1263 net/bluetooth/hci_request.c 	struct adv_info *adv_instance = NULL;
adv_instance     1269 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     1270 net/bluetooth/hci_request.c 		if (!adv_instance)
adv_instance     1279 net/bluetooth/hci_request.c 	if (adv_instance && eir_get_data(adv_instance->adv_data,
adv_instance     1280 net/bluetooth/hci_request.c 					 adv_instance->adv_data_len, EIR_FLAGS,
adv_instance     1317 net/bluetooth/hci_request.c 	if (adv_instance) {
adv_instance     1318 net/bluetooth/hci_request.c 		memcpy(ptr, adv_instance->adv_data,
adv_instance     1319 net/bluetooth/hci_request.c 		       adv_instance->adv_data_len);
adv_instance     1320 net/bluetooth/hci_request.c 		ad_len += adv_instance->adv_data_len;
adv_instance     1321 net/bluetooth/hci_request.c 		ptr += adv_instance->adv_data_len;
adv_instance     1328 net/bluetooth/hci_request.c 			if (adv_instance)
adv_instance     1329 net/bluetooth/hci_request.c 				adv_tx_power = adv_instance->tx_power;
adv_instance     1473 net/bluetooth/hci_request.c 			   bool use_rpa, struct adv_info *adv_instance,
adv_instance     1488 net/bluetooth/hci_request.c 		if (adv_instance) {
adv_instance     1489 net/bluetooth/hci_request.c 			if (!adv_instance->rpa_expired &&
adv_instance     1490 net/bluetooth/hci_request.c 			    !bacmp(&adv_instance->random_addr, &hdev->rpa))
adv_instance     1493 net/bluetooth/hci_request.c 			adv_instance->rpa_expired = false;
adv_instance     1509 net/bluetooth/hci_request.c 		if (adv_instance)
adv_instance     1511 net/bluetooth/hci_request.c 					   &adv_instance->rpa_expired_cb, to);
adv_instance     1567 net/bluetooth/hci_request.c 	struct adv_info *adv_instance;
adv_instance     1573 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     1574 net/bluetooth/hci_request.c 		if (!adv_instance)
adv_instance     1577 net/bluetooth/hci_request.c 		adv_instance = NULL;
adv_instance     1596 net/bluetooth/hci_request.c 				     adv_use_rpa(hdev, flags), adv_instance,
adv_instance     1649 net/bluetooth/hci_request.c 		if (adv_instance) {
adv_instance     1650 net/bluetooth/hci_request.c 			if (!bacmp(&random_addr, &adv_instance->random_addr))
adv_instance     1676 net/bluetooth/hci_request.c 	struct adv_info *adv_instance;
adv_instance     1679 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     1680 net/bluetooth/hci_request.c 		if (!adv_instance)
adv_instance     1683 net/bluetooth/hci_request.c 		adv_instance = NULL;
adv_instance     1701 net/bluetooth/hci_request.c 	if (adv_instance && adv_instance->duration) {
adv_instance     1702 net/bluetooth/hci_request.c 		u16 duration = adv_instance->duration * MSEC_PER_SEC;
adv_instance     1737 net/bluetooth/hci_request.c 	struct adv_info *adv_instance = NULL;
adv_instance     1747 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     1748 net/bluetooth/hci_request.c 	if (!adv_instance)
adv_instance     1759 net/bluetooth/hci_request.c 	if (adv_instance->timeout == 0 ||
adv_instance     1760 net/bluetooth/hci_request.c 	    adv_instance->duration <= adv_instance->remaining_time)
adv_instance     1761 net/bluetooth/hci_request.c 		timeout = adv_instance->duration;
adv_instance     1763 net/bluetooth/hci_request.c 		timeout = adv_instance->remaining_time;
adv_instance     1768 net/bluetooth/hci_request.c 	if (adv_instance->timeout)
adv_instance     1769 net/bluetooth/hci_request.c 		adv_instance->remaining_time =
adv_instance     1770 net/bluetooth/hci_request.c 				adv_instance->remaining_time - timeout;
adv_instance     1823 net/bluetooth/hci_request.c 	struct adv_info *adv_instance, *n, *next_instance = NULL;
adv_instance     1839 net/bluetooth/hci_request.c 		list_for_each_entry_safe(adv_instance, n, &hdev->adv_instances,
adv_instance     1841 net/bluetooth/hci_request.c 			if (!(force || adv_instance->timeout))
adv_instance     1844 net/bluetooth/hci_request.c 			rem_inst = adv_instance->instance;
adv_instance     1850 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
adv_instance     1852 net/bluetooth/hci_request.c 		if (force || (adv_instance && adv_instance->timeout &&
adv_instance     1853 net/bluetooth/hci_request.c 			      !adv_instance->remaining_time)) {
adv_instance     2800 net/bluetooth/hci_request.c 			struct adv_info *adv_instance;
adv_instance     2802 net/bluetooth/hci_request.c 			adv_instance = list_first_entry(&hdev->adv_instances,
adv_instance     2805 net/bluetooth/hci_request.c 							adv_instance->instance,
adv_instance       89 net/bluetooth/hci_request.h 			   bool use_rpa, struct adv_info *adv_instance,
adv_instance     3152 net/bluetooth/mgmt.c 	struct adv_info *adv_instance;
adv_instance     3156 net/bluetooth/mgmt.c 	adv_instance = hci_find_adv_instance(hdev, hdev->cur_adv_instance);
adv_instance     3157 net/bluetooth/mgmt.c 	if (!adv_instance)
adv_instance     3161 net/bluetooth/mgmt.c 	if (!(adv_instance->flags & flags))
adv_instance     3166 net/bluetooth/mgmt.c 	adv_instance = hci_get_next_instance(hdev, adv_instance->instance);
adv_instance     3167 net/bluetooth/mgmt.c 	if (!adv_instance)
adv_instance     3171 net/bluetooth/mgmt.c 	err = __hci_req_schedule_adv_instance(&req, adv_instance->instance,
adv_instance     4243 net/bluetooth/mgmt.c 	struct adv_info *adv_instance;
adv_instance     4278 net/bluetooth/mgmt.c 		adv_instance = list_first_entry_or_null(&hdev->adv_instances,
adv_instance     4280 net/bluetooth/mgmt.c 		if (!adv_instance)
adv_instance     4283 net/bluetooth/mgmt.c 		instance = adv_instance->instance;
adv_instance     6348 net/bluetooth/mgmt.c 	struct adv_info *adv_instance;
adv_instance     6376 net/bluetooth/mgmt.c 	list_for_each_entry(adv_instance, &hdev->adv_instances, list) {
adv_instance     6377 net/bluetooth/mgmt.c 		*instance = adv_instance->instance;
adv_instance     6492 net/bluetooth/mgmt.c 	struct adv_info *adv_instance, *n;
adv_instance     6501 net/bluetooth/mgmt.c 	list_for_each_entry_safe(adv_instance, n, &hdev->adv_instances, list) {
adv_instance     6502 net/bluetooth/mgmt.c 		if (!adv_instance->pending)
adv_instance     6506 net/bluetooth/mgmt.c 			adv_instance->pending = false;
adv_instance     6510 net/bluetooth/mgmt.c 		instance = adv_instance->instance;