Lines Matching full:img
80 EFI_LOADED_IMAGE *img; in efi_main() local
111 status = OpenProtocolByHandle(IH, &image_protocol, (void**)&img); in efi_main()
127 if (img->LoadOptionsSize > 0 && img->LoadOptions != NULL) { in efi_main()
128 if (img->LoadOptionsSize == strlen(img->LoadOptions) + 1) { in efi_main()
129 args = malloc(img->LoadOptionsSize << 1); in efi_main()
130 for (argc = 0; argc < (int)img->LoadOptionsSize; argc++) in efi_main()
131 args[argc] = ((char*)img->LoadOptions)[argc]; in efi_main()
133 args = malloc(img->LoadOptionsSize); in efi_main()
134 memcpy(args, img->LoadOptions, img->LoadOptionsSize); in efi_main()
152 addprog = (args == NULL || img->ParentHandle == NULL || in efi_main()
153 img->FilePath == NULL) ? 1 : 0; in efi_main()
156 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || in efi_main()
157 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || in efi_main()
158 DevicePathNodeLength(img->FilePath) <= in efi_main()