Lines Matching refs:loader
47 struct initrd_loader *loader; in initrd_load_file() local
54 loader = (struct initrd_loader *) this; in initrd_load_file()
56 if (loader->length == 0 || !loader->address) in initrd_load_file()
59 if (!buffer || *buffer_size < loader->length) { in initrd_load_file()
60 *buffer_size = loader->length; in initrd_load_file()
64 CopyMem(buffer, loader->address, loader->length); in initrd_load_file()
65 *buffer_size = loader->length; in initrd_load_file()
77 struct initrd_loader *loader; in initrd_register() local
92 loader = xnew(struct initrd_loader, 1); in initrd_register()
93 *loader = (struct initrd_loader) { in initrd_register()
103 &EfiLoadFile2Protocol, loader, in initrd_register()
106 FreePool(loader); in initrd_register()
113 struct initrd_loader *loader; in initrd_unregister() local
120 initrd_handle, &EfiLoadFile2Protocol, (void **) &loader, in initrd_unregister()
132 &EfiLoadFile2Protocol, loader, in initrd_unregister()
138 FreePool(loader); in initrd_unregister()