Lines Matching refs:eir
283 static bool eir_has_name(const uint8_t *eir) in eir_has_name() argument
293 if (!eir[0]) { in eir_has_name()
298 if (eir[0] > len - 1) { in eir_has_name()
302 switch (eir[1]) { in eir_has_name()
305 if (eir[0] > 1) { in eir_has_name()
314 len -= eir[0] + 1; in eir_has_name()
315 eir += eir[0] + 1; in eir_has_name()
339 if (eir_has_name(discovery_results[i].eir)) { in report_discovery_results()
462 (void)memset(result->eir, 0, sizeof(result->eir)); in bt_hci_inquiry_result_with_rssi()
496 memcpy(result->eir, evt->eir, sizeof(result->eir)); in bt_hci_extended_inquiry_result()
511 uint8_t *eir; in bt_hci_remote_name_request_complete() local
527 eir = result->eir; in bt_hci_remote_name_request_complete()
535 if (!eir[0]) { in bt_hci_remote_name_request_complete()
544 eir[0] = eir_len + 1; in bt_hci_remote_name_request_complete()
545 eir[1] = EIR_SHORT_NAME; in bt_hci_remote_name_request_complete()
547 eir[0] = name_len + 1; in bt_hci_remote_name_request_complete()
548 eir[1] = EIR_SHORT_NAME; in bt_hci_remote_name_request_complete()
551 memcpy(&eir[2], evt->name, eir[0] - 1); in bt_hci_remote_name_request_complete()
557 if (eir[0] > eir_len - 1) { in bt_hci_remote_name_request_complete()
562 eir_len -= eir[0] + 1; in bt_hci_remote_name_request_complete()
563 eir += eir[0] + 1; in bt_hci_remote_name_request_complete()