Lines Matching refs:discovery
456 /* If discovery is active don't interfere with it */
457 if (hdev->discovery.state != DISCOVERY_STOPPED)
461 * since these filters are meant for service discovery only.
1266 /* Pause discovery if not already stopped */
1267 old_state = hdev->discovery.state;
1355 /* Unpause discovery */
1748 /* If a discovery flag wasn't provided, simply use the global
2931 if (req->hdev->discovery.limited)
2963 hdev->discovery.scan_start = 0;
2965 /* If we were running LE only scan, change discovery state. If
2967 * and BR/EDR inquiry is already finished, stop discovery,
2968 * otherwise BR/EDR inquiry will stop discovery when finished.
2970 * discovery state.
2973 if (hdev->discovery.type == DISCOV_TYPE_LE)
2976 if (hdev->discovery.type != DISCOV_TYPE_INTERLEAVED)
2981 hdev->discovery.state != DISCOVERY_RESOLVING)
3057 !hdev->discovery.scan_start)
3065 duration = hdev->discovery.scan_duration;
3066 scan_start = hdev->discovery.scan_start;
3093 /* Accept list is not used for discovery */
3103 * discovery scanning parameters.
3140 BT_DBG("%s type %u", hdev->name, hdev->discovery.type);
3142 switch (hdev->discovery.type) {
3150 /* When running simultaneous discovery, the LE scanning time
3151 * should occupy the whole discovery time sine BR/EDR inquiry
3154 * For interleaving discovery in comparison, BR/EDR inquiry
3161 /* During simultaneous discovery, we double LE scan
3190 /* When service discovery is used and the controller has a
3193 * restarting scanning during the discovery phase.
3196 hdev->discovery.result_filtering) {
3197 hdev->discovery.scan_start = jiffies;
3198 hdev->discovery.scan_duration = timeout;
3208 struct discovery_state *d = &hdev->discovery;
3213 BT_DBG("%s state %u", hdev->name, hdev->discovery.state);
3233 /* No further actions needed for LE-only discovery */
3267 switch (hdev->discovery.state) {