Lines Matching refs:handles
97 EFI_HANDLE *handles; in efi_serial_init() local
103 handles = NULL; in efi_serial_init()
104 status = BS->LocateHandle(ByProtocol, &serial, NULL, &bufsz, handles); in efi_serial_init()
108 if ((handles = malloc(bufsz)) == NULL) in efi_serial_init()
115 status = BS->LocateHandle(ByProtocol, &serial, NULL, &bufsz, handles); in efi_serial_init()
117 free(handles); in efi_serial_init()
120 *handlep = handles; in efi_serial_init()
163 EFI_HANDLE *handles, handle; in efi_serial_get_handle() local
170 handles = NULL; in efi_serial_get_handle()
172 status = efi_serial_init(&handles, &nhandles); in efi_serial_get_handle()
181 if (condev == handles[index]) { in efi_serial_get_handle()
186 free(handles); in efi_serial_get_handle()
194 devpath = efi_lookup_devpath(handles[index]); in efi_serial_get_handle()
196 handle = (handles[index]); in efi_serial_get_handle()
197 efi_close_devpath(handles[index]); in efi_serial_get_handle()
205 handle = handles[port]; in efi_serial_get_handle()
207 free(handles); in efi_serial_get_handle()