Lines Matching refs:ret

44 	efi_status_t ret;  in count_child_controllers()  local
49 ret = boottime->open_protocol_information(handle, protocol, in count_child_controllers()
51 if (ret != EFI_SUCCESS) in count_child_controllers()
52 return ret; in count_child_controllers()
60 ret = boottime->free_pool(entry_buffer); in count_child_controllers()
61 if (ret != EFI_SUCCESS) in count_child_controllers()
63 return ret; in count_child_controllers()
79 efi_status_t ret; in supported() local
82 ret = boottime->open_protocol( in supported()
86 switch (ret) { in supported()
89 return ret; in supported()
95 ret = boottime->close_protocol( in supported()
98 if (ret != EFI_SUCCESS) in supported()
99 ret = EFI_UNSUPPORTED; in supported()
100 return ret; in supported()
117 efi_status_t ret; in start() local
121 ret = boottime->open_protocol( in start()
125 switch (ret) { in start()
128 return ret; in start()
139 ret = boottime->install_protocol_interface( in start()
142 if (ret != EFI_SUCCESS) { in start()
146 ret = boottime->open_protocol( in start()
151 if (ret != EFI_SUCCESS) { in start()
156 return ret; in start()
169 efi_status_t ret; in disconnect_child() local
171 ret = boottime->close_protocol( in disconnect_child()
174 if (ret != EFI_SUCCESS) { in disconnect_child()
176 return ret; in disconnect_child()
178 ret = boottime->uninstall_protocol_interface( in disconnect_child()
180 if (ret != EFI_SUCCESS) { in disconnect_child()
182 return ret; in disconnect_child()
184 return ret; in disconnect_child()
202 efi_status_t ret; in stop() local
211 ret = disconnect_child(controller_handle, in stop()
213 if (ret != EFI_SUCCESS) in stop()
214 return ret; in stop()
220 ret = boottime->open_protocol_information( in stop()
223 if (ret != EFI_SUCCESS) { in stop()
225 return ret; in stop()
230 ret = disconnect_child( in stop()
233 if (ret != EFI_SUCCESS) in stop()
234 return ret; in stop()
237 ret = boottime->free_pool(entry_buffer); in stop()
238 if (ret != EFI_SUCCESS) in stop()
242 ret = boottime->close_protocol( in stop()
245 if (ret != EFI_SUCCESS) { in stop()
247 return ret; in stop()
271 efi_status_t ret; in setup() local
276 ret = boottime->install_protocol_interface( in setup()
279 if (ret != EFI_SUCCESS) { in setup()
284 ret = boottime->install_protocol_interface( in setup()
287 if (ret != EFI_SUCCESS) { in setup()
311 efi_status_t ret; in execute() local
315 ret = boottime->connect_controller(handle_controller, NULL, NULL, 1); in execute()
316 if (ret != EFI_SUCCESS) { in execute()
321 ret = count_child_controllers(handle_controller, &guid_controller, in execute()
323 if (ret != EFI_SUCCESS || count != NUMBER_OF_CHILD_CONTROLLERS) { in execute()
328 ret = boottime->disconnect_controller(handle_controller, in execute()
331 if (ret != EFI_SUCCESS) { in execute()
336 ret = count_child_controllers(handle_controller, &guid_controller, in execute()
338 if (ret != EFI_SUCCESS || count != NUMBER_OF_CHILD_CONTROLLERS - 1) { in execute()
343 ret = boottime->disconnect_controller(handle_controller, NULL, NULL); in execute()
344 if (ret != EFI_SUCCESS) { in execute()
349 ret = count_child_controllers(handle_controller, &guid_controller, in execute()
351 if (ret != EFI_SUCCESS || count) { in execute()
357 ret = boottime->connect_controller(handle_controller, NULL, NULL, 1); in execute()
358 if (ret != EFI_SUCCESS) { in execute()
363 ret = count_child_controllers(handle_controller, &guid_controller, in execute()
365 if (ret != EFI_SUCCESS || count != NUMBER_OF_CHILD_CONTROLLERS) { in execute()
370 ret = boottime->uninstall_protocol_interface(handle_controller, in execute()
373 if (ret == EFI_SUCCESS) { in execute()
379 ret = boottime->reinstall_protocol_interface(handle_controller, in execute()
383 if (ret != EFI_SUCCESS) { in execute()
388 ret = count_child_controllers(handle_controller, &guid_controller, in execute()
390 if (ret != EFI_SUCCESS || count != NUMBER_OF_CHILD_CONTROLLERS) { in execute()
395 ret = boottime->uninstall_protocol_interface(handle_controller, in execute()
398 if (ret != EFI_SUCCESS) { in execute()
403 ret = count_child_controllers(handle_controller, &guid_controller, in execute()
405 if (ret == EFI_SUCCESS) in execute()