Lines Matching refs:handle_data

263 	struct msft_monitor_advertisement_handle_data *handle_data;  in msft_le_monitor_advertisement_cb()  local
279 handle_data = kmalloc(sizeof(*handle_data), GFP_KERNEL); in msft_le_monitor_advertisement_cb()
280 if (!handle_data) { in msft_le_monitor_advertisement_cb()
285 handle_data->mgmt_handle = monitor->handle; in msft_le_monitor_advertisement_cb()
286 handle_data->msft_handle = rp->handle; in msft_le_monitor_advertisement_cb()
287 handle_data->cond_type = MSFT_MONITOR_ADVERTISEMENT_TYPE_PATTERN; in msft_le_monitor_advertisement_cb()
288 INIT_LIST_HEAD(&handle_data->list); in msft_le_monitor_advertisement_cb()
289 list_add(&handle_data->list, &msft->handle_map); in msft_le_monitor_advertisement_cb()
372 struct msft_monitor_advertisement_handle_data *handle_data; in msft_le_cancel_monitor_advertisement_cb() local
389 handle_data = msft_find_handle_data(hdev, monitor->handle, true); in msft_le_cancel_monitor_advertisement_cb()
391 if (handle_data) { in msft_le_cancel_monitor_advertisement_cb()
402 msft_monitor_device_del(hdev, handle_data->mgmt_handle, in msft_le_cancel_monitor_advertisement_cb()
406 msft_handle = handle_data->msft_handle; in msft_le_cancel_monitor_advertisement_cb()
408 list_del(&handle_data->list); in msft_le_cancel_monitor_advertisement_cb()
409 kfree(handle_data); in msft_le_cancel_monitor_advertisement_cb()
427 struct msft_monitor_advertisement_handle_data *handle_data; in msft_remove_monitor_sync() local
430 handle_data = msft_find_handle_data(hdev, monitor->handle, true); in msft_remove_monitor_sync()
433 if (!handle_data) in msft_remove_monitor_sync()
437 cp.handle = handle_data->msft_handle; in msft_remove_monitor_sync()
510 struct msft_monitor_advertisement_handle_data *handle_data; in msft_add_monitor_sync() local
565 handle_data = msft_find_handle_data(hdev, monitor->handle, true); in msft_add_monitor_sync()
566 if (!handle_data) { in msft_add_monitor_sync()
571 handle_data->rssi_high = cp->rssi_high; in msft_add_monitor_sync()
572 handle_data->rssi_low = cp->rssi_low; in msft_add_monitor_sync()
573 handle_data->rssi_low_interval = cp->rssi_low_interval; in msft_add_monitor_sync()
574 handle_data->rssi_sampling_period = cp->rssi_sampling_period; in msft_add_monitor_sync()
670 struct msft_monitor_advertisement_handle_data *handle_data, *tmp; in msft_do_close() local
682 list_for_each_entry_safe(handle_data, tmp, &msft->handle_map, list) { in msft_do_close()
684 handle_data->mgmt_handle); in msft_do_close()
689 list_del(&handle_data->list); in msft_do_close()
690 kfree(handle_data); in msft_do_close()
929 struct msft_monitor_advertisement_handle_data *handle_data) in msft_add_address_filter() argument
941 address_filter->pattern_handle = handle_data->msft_handle; in msft_add_address_filter()
942 address_filter->mgmt_handle = handle_data->mgmt_handle; in msft_add_address_filter()
943 address_filter->rssi_high = handle_data->rssi_high; in msft_add_address_filter()
944 address_filter->rssi_low = handle_data->rssi_low; in msft_add_address_filter()
945 address_filter->rssi_low_interval = handle_data->rssi_low_interval; in msft_add_address_filter()
946 address_filter->rssi_sampling_period = handle_data->rssi_sampling_period; in msft_add_address_filter()
976 struct msft_monitor_advertisement_handle_data *handle_data; in msft_monitor_device_evt() local
990 handle_data = msft_find_handle_data(hdev, ev->monitor_handle, false); in msft_monitor_device_evt()
993 if (!handle_data) in msft_monitor_device_evt()
995 mgmt_handle = handle_data->mgmt_handle; in msft_monitor_device_evt()
999 if (handle_data) { in msft_monitor_device_evt()
1007 handle_data->msft_handle); in msft_monitor_device_evt()
1011 if (ev->monitor_state && handle_data->cond_type == in msft_monitor_device_evt()
1014 &ev->bdaddr, handle_data); in msft_monitor_device_evt()