Lines Matching refs:handler
585 struct efi_handler **handler) in efi_search_protocol() argument
600 if (handler) in efi_search_protocol()
601 *handler = protocol; in efi_search_protocol()
620 struct efi_handler *handler; in efi_remove_protocol() local
623 ret = efi_search_protocol(handle, protocol, &handler); in efi_remove_protocol()
626 if (handler->protocol_interface != protocol_interface) in efi_remove_protocol()
628 list_del(&handler->link); in efi_remove_protocol()
629 free(handler); in efi_remove_protocol()
1133 struct efi_handler *handler) in efi_create_open_info() argument
1141 list_add_tail(&item->link, &handler->open_infos); in efi_create_open_info()
1173 struct efi_handler *handler; in efi_add_protocol() local
1183 handler = calloc(1, sizeof(struct efi_handler)); in efi_add_protocol()
1184 if (!handler) in efi_add_protocol()
1186 memcpy((void *)&handler->guid, protocol, sizeof(efi_guid_t)); in efi_add_protocol()
1187 handler->protocol_interface = protocol_interface; in efi_add_protocol()
1188 INIT_LIST_HEAD(&handler->open_infos); in efi_add_protocol()
1189 list_add_tail(&handler->link, &efiobj->protocols); in efi_add_protocol()
1198 list_del(&handler->link); in efi_add_protocol()
1199 free(handler); in efi_add_protocol()
1275 struct efi_handler *handler; in efi_get_drivers() local
1281 list_for_each_entry(handler, &handle->protocols, link) { in efi_get_drivers()
1282 if (protocol && guidcmp(&handler->guid, protocol)) in efi_get_drivers()
1284 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_drivers()
1303 list_for_each_entry(handler, &handle->protocols, link) { in efi_get_drivers()
1304 if (protocol && guidcmp(&handler->guid, protocol)) in efi_get_drivers()
1306 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_drivers()
1387 struct efi_handler *handler; in efi_uninstall_protocol() local
1393 r = efi_search_protocol(handle, protocol, &handler); in efi_uninstall_protocol()
1396 if (handler->protocol_interface != protocol_interface) in efi_uninstall_protocol()
1412 list_for_each_entry_safe(item, pos, &handler->open_infos, link) { in efi_uninstall_protocol()
1420 if (!list_empty(&handler->open_infos)) { in efi_uninstall_protocol()
1874 struct efi_handler *handler; in efi_locate_device_path() local
1901 &handler); in efi_locate_device_path()
1904 dp = (struct efi_device_path *)handler->protocol_interface; in efi_locate_device_path()
2012 struct efi_handler *handler; in efi_load_image_from_path() local
2034 ret = efi_search_protocol(device, guid, &handler); in efi_load_image_from_path()
2038 load_file_protocol = handler->protocol_interface; in efi_load_image_from_path()
2371 struct efi_handler *handler; in efi_close_protocol() local
2379 ret = efi_search_protocol(handle, protocol, &handler); in efi_close_protocol()
2384 list_for_each_entry_safe(item, pos, &handler->open_infos, link) { in efi_close_protocol()
2447 struct efi_handler *handler; in efi_open_protocol_information() local
2459 r = efi_search_protocol(handle, protocol, &handler); in efi_open_protocol_information()
2465 list_for_each_entry(item, &handler->open_infos, link) { in efi_open_protocol_information()
2482 list_for_each_entry_reverse(item, &handler->open_infos, link) { in efi_open_protocol_information()
2625 struct efi_handler *handler; in efi_locate_protocol() local
2661 ret = efi_search_protocol(efiobj, protocol, &handler); in efi_locate_protocol()
2666 ret = efi_search_protocol(efiobj, protocol, &handler); in efi_locate_protocol()
2675 *protocol_interface = handler->protocol_interface; in efi_locate_protocol()
3008 struct efi_handler *handler, in efi_protocol_open() argument
3029 list_for_each_entry(item, &handler->open_infos, link) { in efi_protocol_open()
3057 list_for_each_entry(item, &handler->open_infos, link) { in efi_protocol_open()
3083 list_for_each_entry(item, &handler->open_infos, link) { in efi_protocol_open()
3091 match = efi_create_open_info(handler); in efi_protocol_open()
3104 *protocol_interface = handler->protocol_interface; in efi_protocol_open()
3130 struct efi_handler *handler; in efi_open_protocol() local
3167 r = efi_search_protocol(handle, protocol, &handler); in efi_open_protocol()
3178 r = efi_protocol_open(handler, protocol_interface, agent_handle, in efi_open_protocol()
3701 struct efi_handler *handler; in efi_connect_controller() local
3704 list_for_each_entry(handler, &efiobj->protocols, link) { in efi_connect_controller()
3705 list_for_each_entry(item, &handler->open_infos, link) { in efi_connect_controller()
3793 struct efi_handler *handler; in efi_get_child_controllers() local
3799 list_for_each_entry(handler, &efiobj->protocols, link) { in efi_get_child_controllers()
3800 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_child_controllers()
3818 list_for_each_entry(handler, &efiobj->protocols, link) { in efi_get_child_controllers()
3819 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_child_controllers()