Lines Matching refs:scan

369 		/* 160 msec page scan interval */
401 bt_dev_dbg(hdev, "cancelling interleave scan");
415 * allowlist scan and one without any filters to save power.
424 bt_dev_dbg(hdev, "starting interleave scan");
489 * keep the background scan running.
493 * since some controllers are not able to scan and connect at
948 /* Use ext scanning if set ext scan param and ext scan enable is
1107 bt_dev_dbg(hdev, "LE passive scan with accept list = %d",
1140 /* Update page scan state (since we may have modified it when setting
1151 u8 scan = SCAN_DISABLED;
1169 scan = SCAN_PAGE;
1172 hci_req_add(req, HCI_OP_WRITE_SCAN_ENABLE, 1, &scan);
1177 /* Before changing params disable scan if enabled */
1292 /* Disable page scan */
1296 /* Disable LE passive scan if enabled */
1327 /* Enable passive scan at lower duty cycle */
1329 /* Pause scan changes again. */
2589 u8 scan;
2605 scan = SCAN_PAGE;
2607 scan = SCAN_DISABLED;
2610 scan |= SCAN_INQUIRY;
2612 if (test_bit(HCI_PSCAN, &hdev->flags) == !!(scan & SCAN_PAGE) &&
2613 test_bit(HCI_ISCAN, &hdev->flags) == !!(scan & SCAN_INQUIRY))
2616 hci_req_add(req, HCI_OP_WRITE_SCAN_ENABLE, 1, &scan);
2958 bt_dev_err(hdev, "failed to disable LE scan: status 0x%02x",
2965 /* If we were running LE only scan, change discovery state. If
3049 bt_dev_err(hdev, "failed to restart LE scan: status %d",
3060 /* When the scan was started, hdev->le_scan_disable has been queued
3061 * after duration from scan_start. During scan restart this job
3063 * timeout, to make sure that scan does not run indefinitely.
3161 /* During simultaneous discovery, we double LE scan
3192 * start and duration of the scan. This is required for