Lines Matching refs:discovery

363 	hdev->discovery.scan_start = 0;
365 /* If we were running LE only scan, change discovery state. If
367 * and BR/EDR inquiry is already finished, stop discovery,
368 * otherwise BR/EDR inquiry will stop discovery when finished.
370 * discovery state.
373 if (hdev->discovery.type == DISCOV_TYPE_LE)
376 if (hdev->discovery.type != DISCOV_TYPE_INTERLEAVED)
381 hdev->discovery.state != DISCOVERY_RESOLVING)
439 !hdev->discovery.scan_start)
447 duration = hdev->discovery.scan_duration;
448 scan_start = hdev->discovery.scan_start;
2875 /* If discovery is active don't interfere with it */
2876 if (hdev->discovery.state != DISCOVERY_STOPPED)
2880 * since these filters are meant for service discovery only.
5187 struct discovery_state *d = &hdev->discovery;
5191 bt_dev_dbg(hdev, "state %u", hdev->discovery.state);
5220 /* No further actions needed for LE-only discovery */
5665 if (hdev->discovery.limited)
5679 /* Accept list is not used for discovery */
5689 * discovery scanning parameters.
5766 bt_dev_dbg(hdev, "type %u", hdev->discovery.type);
5768 switch (hdev->discovery.type) {
5772 /* When running simultaneous discovery, the LE scanning time
5773 * should occupy the whole discovery time sine BR/EDR inquiry
5776 * For interleaving discovery in comparison, BR/EDR inquiry
5783 /* During simultaneous discovery, we double LE scan
5807 /* When service discovery is used and the controller has a
5810 * restarting scanning during the discovery phase.
5813 hdev->discovery.result_filtering) {
5814 hdev->discovery.scan_start = jiffies;
5815 hdev->discovery.scan_duration = timeout;
5834 /* This function disables discovery and mark it as paused */
5837 int old_state = hdev->discovery.state;
5840 /* If discovery already stopped/stopping/paused there nothing to do */
5920 * Pause discovery (active scanning/inquiry)
5922 * Pause Scanning (passive scanning in case discovery was not active)
5942 /* Pause discovery if not already stopped */
5995 /* This function resumes discovery */
6000 /* If discovery not paused there nothing to do */
6049 * Resume discovery (active scanning/inquiry)
6074 /* Resume discovery */
6313 * handler for scan disabling knows to set the correct discovery