Lines Matching refs:protocol
547 struct efi_handler *protocol; in efi_search_protocol() local
549 protocol = list_entry(lhandle, struct efi_handler, link); in efi_search_protocol()
550 if (!guidcmp(protocol->guid, protocol_guid)) { in efi_search_protocol()
552 *handler = protocol; in efi_search_protocol()
568 const efi_guid_t *protocol, in efi_remove_protocol() argument
574 ret = efi_search_protocol(handle, protocol, &handler); in efi_remove_protocol()
593 struct efi_handler *protocol; in efi_remove_all_protocols() local
599 list_for_each_entry_safe(protocol, pos, &efiobj->protocols, link) { in efi_remove_all_protocols()
602 ret = efi_remove_protocol(handle, protocol->guid, in efi_remove_all_protocols()
603 protocol->protocol_interface); in efi_remove_all_protocols()
1112 const efi_guid_t *protocol, in efi_add_protocol() argument
1123 ret = efi_search_protocol(handle, protocol, NULL); in efi_add_protocol()
1129 handler->guid = protocol; in efi_add_protocol()
1136 if (!guidcmp(protocol, &event->protocol)) { in efi_add_protocol()
1152 if (!guidcmp(&efi_guid_device_path, protocol)) in efi_add_protocol()
1173 efi_handle_t *handle, const efi_guid_t *protocol, in efi_install_protocol_interface() argument
1178 EFI_ENTRY("%p, %pUl, %d, %p", handle, protocol, protocol_interface_type, in efi_install_protocol_interface()
1181 if (!handle || !protocol || in efi_install_protocol_interface()
1197 r = efi_add_protocol(*handle, protocol, protocol_interface); in efi_install_protocol_interface()
1214 const efi_guid_t *protocol, in efi_get_drivers() argument
1225 if (protocol && guidcmp(handler->guid, protocol)) in efi_get_drivers()
1247 if (protocol && guidcmp(handler->guid, protocol)) in efi_get_drivers()
1286 const efi_guid_t *protocol, in efi_disconnect_all_drivers() argument
1293 ret = efi_get_drivers(handle, protocol, &number_of_drivers, in efi_disconnect_all_drivers()
1324 (efi_handle_t handle, const efi_guid_t *protocol, in efi_uninstall_protocol() argument
1340 r = efi_search_protocol(handle, protocol, &handler); in efi_uninstall_protocol()
1344 efi_disconnect_all_drivers(efiobj, protocol, NULL); in efi_uninstall_protocol()
1357 r = efi_remove_protocol(handle, protocol, protocol_interface); in efi_uninstall_protocol()
1376 (efi_handle_t handle, const efi_guid_t *protocol, in efi_uninstall_protocol_interface() argument
1381 EFI_ENTRY("%p, %pUl, %p", handle, protocol, protocol_interface); in efi_uninstall_protocol_interface()
1383 ret = efi_uninstall_protocol(handle, protocol, protocol_interface); in efi_uninstall_protocol_interface()
1410 const efi_guid_t *protocol, in efi_register_protocol_notify() argument
1417 EFI_ENTRY("%pUl, %p, %p", protocol, event, registration); in efi_register_protocol_notify()
1419 if (!protocol || !event || !registration) { in efi_register_protocol_notify()
1431 guidcpy(&item->protocol, protocol); in efi_register_protocol_notify()
1453 const efi_guid_t *protocol, efi_handle_t handle) in efi_search() argument
1461 ret = efi_search_protocol(handle, protocol, NULL); in efi_search()
1506 const efi_guid_t *protocol, void *search_key, in efi_locate_handle() argument
1527 if (!protocol) in efi_locate_handle()
1545 if (!efi_search(search_type, protocol, efiobj)) in efi_locate_handle()
1572 if (!efi_search(search_type, protocol, efiobj)) in efi_locate_handle()
1597 const efi_guid_t *protocol, void *search_key, in efi_locate_handle_ext() argument
1600 EFI_ENTRY("%d, %pUl, %p, %p, %p", search_type, protocol, search_key, in efi_locate_handle_ext()
1603 return EFI_EXIT(efi_locate_handle(search_type, protocol, search_key, in efi_locate_handle_ext()
1798 const efi_guid_t *protocol, in efi_locate_device_path() argument
1812 EFI_ENTRY("%pUl, %p, %p", protocol, device_path, device); in efi_locate_device_path()
1814 if (!protocol || !device_path || !*device_path) { in efi_locate_device_path()
1823 ret = EFI_CALL(efi_locate_handle_buffer(BY_PROTOCOL, protocol, NULL, in efi_locate_device_path()
2293 const efi_guid_t *protocol, in efi_close_protocol() argument
2302 EFI_ENTRY("%p, %pUl, %p, %p", handle, protocol, agent_handle, in efi_close_protocol()
2310 r = efi_search_protocol(handle, protocol, &handler); in efi_close_protocol()
2342 efi_handle_t handle, const efi_guid_t *protocol, in efi_open_protocol_information() argument
2352 EFI_ENTRY("%p, %pUl, %p, %p", handle, protocol, entry_buffer, in efi_open_protocol_information()
2360 r = efi_search_protocol(handle, protocol, &handler); in efi_open_protocol_information()
2441 struct efi_handler *protocol; in efi_protocols_per_handle() local
2443 protocol = list_entry(protocol_handle, in efi_protocols_per_handle()
2445 (*protocol_buffer)[j] = (void *)protocol->guid; in efi_protocols_per_handle()
2470 const efi_guid_t *protocol, void *search_key, in efi_locate_handle_buffer() argument
2476 EFI_ENTRY("%d, %pUl, %p, %p, %p", search_type, protocol, search_key, in efi_locate_handle_buffer()
2485 r = efi_locate_handle(search_type, protocol, search_key, &buffer_size, in efi_locate_handle_buffer()
2493 r = efi_locate_handle(search_type, protocol, search_key, &buffer_size, in efi_locate_handle_buffer()
2514 static efi_status_t EFIAPI efi_locate_protocol(const efi_guid_t *protocol, in efi_locate_protocol() argument
2522 EFI_ENTRY("%pUl, %p, %p", protocol, registration, protocol_interface); in efi_locate_protocol()
2528 if (!protocol || !protocol_interface) in efi_locate_protocol()
2544 if (guidcmp(&event->protocol, protocol)) in efi_locate_protocol()
2554 ret = efi_search_protocol(efiobj, protocol, &handler); in efi_locate_protocol()
2559 ret = efi_search_protocol(efiobj, protocol, &handler); in efi_locate_protocol()
2592 const efi_guid_t *protocol; in efi_install_multiple_protocol_interfaces() local
2603 protocol = efi_va_arg(argptr, efi_guid_t*); in efi_install_multiple_protocol_interfaces()
2604 if (!protocol) in efi_install_multiple_protocol_interfaces()
2608 if (!guidcmp(protocol, &efi_guid_device_path)) { in efi_install_multiple_protocol_interfaces()
2611 r = EFI_CALL(efi_locate_device_path(protocol, &dp, in efi_install_multiple_protocol_interfaces()
2622 handle, protocol, in efi_install_multiple_protocol_interfaces()
2636 protocol = efi_va_arg(argptr, efi_guid_t*); in efi_install_multiple_protocol_interfaces()
2638 EFI_CALL(efi_uninstall_protocol_interface(*handle, protocol, in efi_install_multiple_protocol_interfaces()
2666 const efi_guid_t *protocol; in efi_uninstall_multiple_protocol_interfaces() local
2676 protocol = efi_va_arg(argptr, efi_guid_t*); in efi_uninstall_multiple_protocol_interfaces()
2677 if (!protocol) in efi_uninstall_multiple_protocol_interfaces()
2680 r = efi_uninstall_protocol(handle, protocol, in efi_uninstall_multiple_protocol_interfaces()
2699 protocol = efi_va_arg(argptr, efi_guid_t*); in efi_uninstall_multiple_protocol_interfaces()
2701 EFI_CALL(efi_install_protocol_interface(&handle, protocol, in efi_uninstall_multiple_protocol_interfaces()
2906 (efi_handle_t handle, const efi_guid_t *protocol, in efi_open_protocol() argument
2913 EFI_ENTRY("%p, %pUl, %p, %p, %p, 0x%x", handle, protocol, in efi_open_protocol()
2917 if (!handle || !protocol || in efi_open_protocol()
2947 r = efi_search_protocol(handle, protocol, &handler); in efi_open_protocol()
3070 struct efi_handler *protocol; in efi_delete_image() local
3072 list_for_each_entry(protocol, &efiobj->protocols, link) { in efi_delete_image()
3075 list_for_each_entry(info, &protocol->open_infos, link) { in efi_delete_image()
3080 (efiobj, protocol->guid, in efi_delete_image()
3300 const efi_guid_t *protocol, in efi_handle_protocol() argument
3303 return efi_open_protocol(handle, protocol, protocol_interface, efi_root, in efi_handle_protocol()
3502 efi_handle_t handle, const efi_guid_t *protocol, in efi_reinstall_protocol_interface() argument
3507 EFI_ENTRY("%p, %pUl, %p, %p", handle, protocol, old_interface, in efi_reinstall_protocol_interface()
3511 ret = efi_uninstall_protocol(handle, protocol, old_interface); in efi_reinstall_protocol_interface()
3516 ret = efi_add_protocol(handle, protocol, new_interface); in efi_reinstall_protocol_interface()