Lines Matching refs:item

231 	struct efi_event *item;  in efi_queue_event()  local
241 list_for_each_entry(item, &efi_event_queue, queue_link) { in efi_queue_event()
242 if (item->notify_tpl < event->notify_tpl) { in efi_queue_event()
244 &item->queue_link); in efi_queue_event()
987 struct efi_register_notify_event *item, *next; in efi_close_event() local
994 list_for_each_entry_safe(item, next, &efi_register_notify_events, in efi_close_event()
996 if (event == item->event) { in efi_close_event()
1000 list_for_each_entry_safe(hitem, hnext, &item->handles, in efi_close_event()
1005 list_del(&item->link); in efi_close_event()
1006 free(item); in efi_close_event()
1078 struct efi_open_protocol_info_item *item; in efi_create_open_info() local
1080 item = calloc(1, sizeof(struct efi_open_protocol_info_item)); in efi_create_open_info()
1081 if (!item) in efi_create_open_info()
1084 list_add_tail(&item->link, &handler->open_infos); in efi_create_open_info()
1086 return &item->info; in efi_create_open_info()
1096 struct efi_open_protocol_info_item *item) in efi_delete_open_info() argument
1098 list_del(&item->link); in efi_delete_open_info()
1099 free(item); in efi_delete_open_info()
1219 struct efi_open_protocol_info_item *item; in efi_get_drivers() local
1227 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_drivers()
1228 if (item->info.attributes & in efi_get_drivers()
1249 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_drivers()
1250 if (item->info.attributes & in efi_get_drivers()
1256 item->info.agent_handle) in efi_get_drivers()
1263 item->info.agent_handle; in efi_get_drivers()
1329 struct efi_open_protocol_info_item *item; in efi_uninstall_protocol() local
1346 list_for_each_entry_safe(item, pos, &handler->open_infos, link) { in efi_uninstall_protocol()
1347 if (item->info.attributes == in efi_uninstall_protocol()
1349 item->info.attributes == EFI_OPEN_PROTOCOL_GET_PROTOCOL || in efi_uninstall_protocol()
1350 item->info.attributes == EFI_OPEN_PROTOCOL_TEST_PROTOCOL) in efi_uninstall_protocol()
1351 list_del(&item->link); in efi_uninstall_protocol()
1414 struct efi_register_notify_event *item; in efi_register_protocol_notify() local
1424 item = calloc(1, sizeof(struct efi_register_notify_event)); in efi_register_protocol_notify()
1425 if (!item) { in efi_register_protocol_notify()
1430 item->event = event; in efi_register_protocol_notify()
1431 guidcpy(&item->protocol, protocol); in efi_register_protocol_notify()
1432 INIT_LIST_HEAD(&item->handles); in efi_register_protocol_notify()
1434 list_add_tail(&item->link, &efi_register_notify_events); in efi_register_protocol_notify()
1436 *registration = item; in efi_register_protocol_notify()
2298 struct efi_open_protocol_info_item *item; in efi_close_protocol() local
2315 list_for_each_entry_safe(item, pos, &handler->open_infos, link) { in efi_close_protocol()
2316 if (item->info.agent_handle == agent_handle && in efi_close_protocol()
2317 item->info.controller_handle == controller_handle) { in efi_close_protocol()
2318 efi_delete_open_info(item); in efi_close_protocol()
2349 struct efi_open_protocol_info_item *item; in efi_open_protocol_information() local
2366 list_for_each_entry(item, &handler->open_infos, link) { in efi_open_protocol_information()
2367 if (item->info.open_count) in efi_open_protocol_information()
2383 list_for_each_entry_reverse(item, &handler->open_infos, link) { in efi_open_protocol_information()
2384 if (item->info.open_count) in efi_open_protocol_information()
2385 (*entry_buffer)[--count] = item->info; in efi_open_protocol_information()
2792 struct efi_open_protocol_info_item *item; in efi_protocol_open() local
2809 list_for_each_entry(item, &handler->open_infos, link) { in efi_protocol_open()
2810 if (item->info.agent_handle == agent_handle) { in efi_protocol_open()
2812 (item->info.attributes == attributes)) in efi_protocol_open()
2815 if (item->info.attributes & in efi_protocol_open()
2819 if (item->info.attributes & EFI_OPEN_PROTOCOL_EXCLUSIVE) in efi_protocol_open()
2837 list_for_each_entry(item, &handler->open_infos, link) { in efi_protocol_open()
2840 if (item->info.attributes == in efi_protocol_open()
2843 item->info.controller_handle, in efi_protocol_open()
2844 item->info.agent_handle, in efi_protocol_open()
2863 list_for_each_entry(item, &handler->open_infos, link) { in efi_protocol_open()
2864 if (item->info.agent_handle == agent_handle && in efi_protocol_open()
2865 item->info.controller_handle == controller_handle && in efi_protocol_open()
2866 item->info.attributes == attributes) in efi_protocol_open()
2867 match = &item->info; in efi_protocol_open()
3459 struct efi_open_protocol_info_item *item; in efi_connect_controller() local
3462 list_for_each_entry(item, &handler->open_infos, link) { in efi_connect_controller()
3463 if (item->info.attributes & in efi_connect_controller()
3466 item->info.controller_handle, in efi_connect_controller()
3551 struct efi_open_protocol_info_item *item; in efi_get_child_controllers() local
3557 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_child_controllers()
3558 if (item->info.agent_handle == driver_handle && in efi_get_child_controllers()
3559 item->info.attributes & in efi_get_child_controllers()
3576 list_for_each_entry(item, &handler->open_infos, link) { in efi_get_child_controllers()
3577 if (item->info.agent_handle == driver_handle && in efi_get_child_controllers()
3578 item->info.attributes & in efi_get_child_controllers()
3584 item->info.controller_handle) in efi_get_child_controllers()
3591 item->info.controller_handle; in efi_get_child_controllers()