Lines Matching full:discovery

460 	/* If discovery is active don't interfere with it */  in __hci_update_background_scan()
461 if (hdev->discovery.state != DISCOVERY_STOPPED) in __hci_update_background_scan()
465 * since these filters are meant for service discovery only. in __hci_update_background_scan()
467 * The Start Discovery and Start Service Discovery operations in __hci_update_background_scan()
1323 /* Pause discovery if not already stopped */ in hci_req_prepare_suspend()
1324 old_state = hdev->discovery.state; in hci_req_prepare_suspend()
1424 /* Unpause discovery */ in hci_req_prepare_suspend()
1806 /* If a discovery flag wasn't provided, simply use the global in create_instance_adv_data()
2987 if (req->hdev->discovery.limited) in bredr_inquiry()
3019 hdev->discovery.scan_start = 0; in le_scan_disable_work()
3021 /* If we were running LE only scan, change discovery state. If in le_scan_disable_work()
3023 * and BR/EDR inquiry is already finished, stop discovery, in le_scan_disable_work()
3024 * otherwise BR/EDR inquiry will stop discovery when finished. in le_scan_disable_work()
3026 * discovery state. in le_scan_disable_work()
3029 if (hdev->discovery.type == DISCOV_TYPE_LE) in le_scan_disable_work()
3032 if (hdev->discovery.type != DISCOV_TYPE_INTERLEAVED) in le_scan_disable_work()
3037 hdev->discovery.state != DISCOVERY_RESOLVING) in le_scan_disable_work()
3113 !hdev->discovery.scan_start) in le_scan_restart_work()
3121 duration = hdev->discovery.scan_duration; in le_scan_restart_work()
3122 scan_start = hdev->discovery.scan_start; in le_scan_restart_work()
3149 /* Accept list is not used for discovery */ in active_scan()
3153 /* Discovery doesn't require controller address resolution */ in active_scan()
3161 * discovery scanning parameters. in active_scan()
3217 bt_dev_dbg(hdev, "type %u", hdev->discovery.type); in start_discovery()
3219 switch (hdev->discovery.type) { in start_discovery()
3227 /* When running simultaneous discovery, the LE scanning time in start_discovery()
3228 * should occupy the whole discovery time sine BR/EDR inquiry in start_discovery()
3231 * For interleaving discovery in comparison, BR/EDR inquiry in start_discovery()
3238 /* During simultaneous discovery, we double LE scan in start_discovery()
3267 /* When service discovery is used and the controller has a in start_discovery()
3270 * restarting scanning during the discovery phase. in start_discovery()
3273 hdev->discovery.result_filtering) { in start_discovery()
3274 hdev->discovery.scan_start = jiffies; in start_discovery()
3275 hdev->discovery.scan_duration = timeout; in start_discovery()
3285 struct discovery_state *d = &hdev->discovery; in hci_req_stop_discovery()
3290 bt_dev_dbg(hdev, "state %u", hdev->discovery.state); in hci_req_stop_discovery()
3311 /* No further actions needed for LE-only discovery */ in hci_req_stop_discovery()
3345 switch (hdev->discovery.state) { in discov_update()