Lines Matching refs:handle_data

267 	struct msft_monitor_advertisement_handle_data *handle_data;  in msft_le_monitor_advertisement_cb()  local
283 handle_data = kmalloc(sizeof(*handle_data), GFP_KERNEL); in msft_le_monitor_advertisement_cb()
284 if (!handle_data) { in msft_le_monitor_advertisement_cb()
289 handle_data->mgmt_handle = monitor->handle; in msft_le_monitor_advertisement_cb()
290 handle_data->msft_handle = rp->handle; in msft_le_monitor_advertisement_cb()
291 handle_data->cond_type = MSFT_MONITOR_ADVERTISEMENT_TYPE_PATTERN; in msft_le_monitor_advertisement_cb()
292 INIT_LIST_HEAD(&handle_data->list); in msft_le_monitor_advertisement_cb()
293 list_add(&handle_data->list, &msft->handle_map); in msft_le_monitor_advertisement_cb()
376 struct msft_monitor_advertisement_handle_data *handle_data; in msft_le_cancel_monitor_advertisement_cb() local
393 handle_data = msft_find_handle_data(hdev, monitor->handle, true); in msft_le_cancel_monitor_advertisement_cb()
395 if (handle_data) { in msft_le_cancel_monitor_advertisement_cb()
406 msft_monitor_device_del(hdev, handle_data->mgmt_handle, in msft_le_cancel_monitor_advertisement_cb()
410 msft_handle = handle_data->msft_handle; in msft_le_cancel_monitor_advertisement_cb()
412 list_del(&handle_data->list); in msft_le_cancel_monitor_advertisement_cb()
413 kfree(handle_data); in msft_le_cancel_monitor_advertisement_cb()
431 struct msft_monitor_advertisement_handle_data *handle_data; in msft_remove_monitor_sync() local
434 handle_data = msft_find_handle_data(hdev, monitor->handle, true); in msft_remove_monitor_sync()
437 if (!handle_data) in msft_remove_monitor_sync()
441 cp.handle = handle_data->msft_handle; in msft_remove_monitor_sync()
517 struct msft_monitor_advertisement_handle_data *handle_data; in msft_add_monitor_sync() local
572 handle_data = msft_find_handle_data(hdev, monitor->handle, true); in msft_add_monitor_sync()
573 if (!handle_data) { in msft_add_monitor_sync()
578 handle_data->rssi_high = cp->rssi_high; in msft_add_monitor_sync()
579 handle_data->rssi_low = cp->rssi_low; in msft_add_monitor_sync()
580 handle_data->rssi_low_interval = cp->rssi_low_interval; in msft_add_monitor_sync()
581 handle_data->rssi_sampling_period = cp->rssi_sampling_period; in msft_add_monitor_sync()
677 struct msft_monitor_advertisement_handle_data *handle_data, *tmp; in msft_do_close() local
689 list_for_each_entry_safe(handle_data, tmp, &msft->handle_map, list) { in msft_do_close()
691 handle_data->mgmt_handle); in msft_do_close()
696 list_del(&handle_data->list); in msft_do_close()
697 kfree(handle_data); in msft_do_close()
933 struct msft_monitor_advertisement_handle_data *handle_data) in msft_add_address_filter() argument
945 address_filter->pattern_handle = handle_data->msft_handle; in msft_add_address_filter()
946 address_filter->mgmt_handle = handle_data->mgmt_handle; in msft_add_address_filter()
947 address_filter->rssi_high = handle_data->rssi_high; in msft_add_address_filter()
948 address_filter->rssi_low = handle_data->rssi_low; in msft_add_address_filter()
949 address_filter->rssi_low_interval = handle_data->rssi_low_interval; in msft_add_address_filter()
950 address_filter->rssi_sampling_period = handle_data->rssi_sampling_period; in msft_add_address_filter()
980 struct msft_monitor_advertisement_handle_data *handle_data; in msft_monitor_device_evt() local
994 handle_data = msft_find_handle_data(hdev, ev->monitor_handle, false); in msft_monitor_device_evt()
997 if (!handle_data) in msft_monitor_device_evt()
999 mgmt_handle = handle_data->mgmt_handle; in msft_monitor_device_evt()
1003 if (handle_data) { in msft_monitor_device_evt()
1011 handle_data->msft_handle); in msft_monitor_device_evt()
1015 if (ev->monitor_state && handle_data->cond_type == in msft_monitor_device_evt()
1018 &ev->bdaddr, handle_data); in msft_monitor_device_evt()