Lines Matching defs:img
85 EFI_LOADED_IMAGE *img;
105 status = BS->HandleProtocol(IH, &image_protocol, (VOID**)&img);
121 if (img->LoadOptionsSize > 0 && img->LoadOptions != NULL) {
122 if (img->LoadOptionsSize == strlen(img->LoadOptions) + 1) {
123 args = malloc(img->LoadOptionsSize << 1);
124 for (argc = 0; argc < img->LoadOptionsSize; argc++)
125 args[argc] = ((char*)img->LoadOptions)[argc];
127 args = malloc(img->LoadOptionsSize);
128 memcpy(args, img->LoadOptions, img->LoadOptionsSize);
146 addprog = (args == NULL || img->ParentHandle == NULL ||
147 img->FilePath == NULL) ? 1 : 0;
150 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH ||
151 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP ||
152 DevicePathNodeLength(img->FilePath) <=