Home | History | Annotate | Download | only in acpibin

Lines Matching refs:File

22  * copy of the source code appearing in this file ("Covered Code") an
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
315 FILE *File;
318 File = fopen (FilePath, "rb");
319 if (!File)
321 printf ("Could not open file %s\n", FilePath);
325 Actual = fread (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File);
326 fclose (File);
330 printf ("File %s does not contain a valid ACPI table header\n", FilePath);
358 FILE *File;
361 File = fopen (FilePath, "rb");
362 if (!File)
364 printf ("Could not open file %s\n", FilePath);
368 Actual = fread (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File);
371 printf ("File %s does not contain a valid ACPI table header\n", FilePath);
396 fseek (File, 0, SEEK_SET);
397 Actual = fread (Table, 1, Header1.Length, File);
413 printf ("Checksum OK in AML file, not updating\n");
417 /* Open the target file for writing, to update checksum */
419 fclose (File);
420 File = fopen (FilePath, "r+b");
421 if (!File)
423 printf ("Could not open file %s for writing\n", FilePath);
431 Actual = fwrite (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File);
444 if (File)
446 fclose (File);
472 FILE *File1;
473 FILE *File2;
480 printf ("Could not open file %s\n", File1Path);
487 printf ("Could not open file %s\n", File2Path);
491 /* Read the ACPI header from each file */
496 printf ("File %s does not contain an ACPI table header\n", File1Path);
503 printf ("File %s does not contain an ACPI table header\n", File2Path);
542 printf ("Seek error on file %s\n", File2Path);
572 printf ("Error - file %s is longer than file %s\n", File1Path, File2Path);
577 printf ("Error - file %s is shorter than file %s\n", File1Path, File2Path);
611 * DESCRIPTION: Open a file and read it entirely into a new buffer
620 FILE *File;
628 File = fopen (Filename, "rb");
629 if (!File)
631 printf ("Could not open file %s\n", Filename);
635 /* Need file size to allocate a buffer */
637 Size = CmGetFileSize (File);
640 printf ("Could not get file size (seek) for %s\n", Filename);
644 /* Allocate a buffer for the entire file */
653 /* Read the entire file */
655 Actual = fread (DataBuffer, 1, Size, File);
658 printf ("Could not read the input file %s\n", Filename);
667 fclose (File);
676 * DESCRIPTION: Dump a binary AML file to a text file
686 FILE *FileOutHandle;
691 /* Get the entire AML file, validate header */
699 printf ("Input file: %s contains %u (0x%X) bytes\n",
705 printf ("Could not open file %s\n", File2Path);
724 /* Summary for the output file */
727 printf ("Output file: %s contains %u (0x%X) bytes\n\n",