Lines Matching refs:discovery

1405 	switch (hdev->discovery.state) {  in hci_stop_discovery()
4135 switch (hdev->discovery.type) { in trigger_discovery()
4206 switch (hdev->discovery.type) { in start_discovery_complete()
4228 BT_ERR("Invalid discovery type %d", hdev->discovery.type); in start_discovery_complete()
4241 hdev->discovery.result_filtering) { in start_discovery_complete()
4242 hdev->discovery.scan_start = jiffies; in start_discovery_complete()
4243 hdev->discovery.scan_duration = timeout; in start_discovery_complete()
4274 if (hdev->discovery.state != DISCOVERY_STOPPED || in start_discovery()
4295 hdev->discovery.type = cp->type; in start_discovery()
4296 hdev->discovery.report_invalid_rssi = false; in start_discovery()
4350 if (hdev->discovery.state != DISCOVERY_STOPPED || in start_service_discovery()
4395 hdev->discovery.result_filtering = true; in start_service_discovery()
4396 hdev->discovery.type = cp->type; in start_service_discovery()
4397 hdev->discovery.rssi = cp->rssi; in start_service_discovery()
4398 hdev->discovery.uuid_count = uuid_count; in start_service_discovery()
4401 hdev->discovery.uuids = kmemdup(cp->uuids, uuid_count * 16, in start_service_discovery()
4403 if (!hdev->discovery.uuids) { in start_service_discovery()
4475 if (hdev->discovery.type != mgmt_cp->type) { in stop_discovery()
4898 hdev->discovery.state == DISCOVERY_STOPPED) { in set_scan_params()
8226 hdev->discovery.scan_start + in restart_le_scan()
8227 hdev->discovery.scan_duration)) in restart_le_scan()
8246 if (hdev->discovery.rssi != HCI_RSSI_INVALID && in is_filter_match()
8248 (rssi < hdev->discovery.rssi && in is_filter_match()
8252 if (hdev->discovery.uuid_count != 0) { in is_filter_match()
8256 if (!eir_has_uuids(eir, eir_len, hdev->discovery.uuid_count, in is_filter_match()
8257 hdev->discovery.uuids) && in is_filter_match()
8259 hdev->discovery.uuid_count, in is_filter_match()
8260 hdev->discovery.uuids)) in is_filter_match()
8271 if (hdev->discovery.rssi != HCI_RSSI_INVALID && in is_filter_match()
8272 rssi < hdev->discovery.rssi) in is_filter_match()
8298 if (hdev->discovery.result_filtering) { in mgmt_device_found()
8321 if (rssi == HCI_RSSI_INVALID && !hdev->discovery.report_invalid_rssi && in mgmt_device_found()
8378 ev.type = hdev->discovery.type; in mgmt_discovering()