Searched refs:file (Results 1 - 25 of 151) sorted by relevance

1234567

/u-boot/tools/
H A Dimx9_image.sh4 # Script to check whether the file exists in mkimage cfg files for the i.MX9.
6 # usage: $0 <file.cfg>
8 file=$1
10 blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file`
27 sed -in "/$f/ s/./#&/" $file
H A Dimx_cntr_image.sh4 # script to check whether the file exists in imximage.cfg for i.MX8
8 file=$1
10 blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file`
26 sed -in "s;$f;$tmp;" $file
H A Dfile2include.c3 * Convert a file image to a C define
10 * The tool file2include converts a file to a C include. The file
22 /* Size of the blocks written to the compressed file */
27 FILE *file; local
37 /* Open file */
38 file = fopen(argv[1], "r");
39 if (!file) {
43 /* Get file length */
44 ret = fseek(file,
[all...]
/u-boot/test/py/tests/test_semihosting/
H A Dconftest.py11 """Set up a file system to be used in semihosting tests
18 with open(image_path, 'w', encoding = 'utf-8') as file:
19 file.write('Das U-Boot\n')
/u-boot/include/
H A Diomux.h17 * Pointers to devices used for each file type. Defined in console.c
27 #define for_each_console_dev(i, file, dev) \
29 i < cd_count[file] && (dev = console_devices[file][i]); \
H A Dstdio.h63 int __printf(2, 3) fprintf(int file, const char *fmt, ...);
64 void fputs(int file, const char *s);
65 void fputc(int file, const char c);
67 void fflush(int file);
69 static inline void fflush(int file) {} argument
71 int ftstc(int file);
72 int fgetc(int file);
H A Dconsole.h19 int console_start(int file, struct stdio_dev *sdev); /* Start a console device */
20 void console_stop(int file, struct stdio_dev *sdev); /* Stop a console device */
21 int console_assign(int file, const char *devname); /* Assign the console */
/u-boot/cmd/
H A Dcat.c18 char *file; local
28 file = argv[3];
30 ret = fs_load_alloc(ifname, dev, file, 0, 0, (void **)&buffer,
33 // check file exists
40 log_err("File does not exist: ifname=%s dev=%s file=%s\n", ifname, dev, file);
43 log_err("File is too large: ifname=%s dev=%s file=%s\n", ifname, dev, file);
46 log_err("Not enough memory: ifname=%s dev=%s file=%s\n", ifname, dev, file);
[all...]
H A Dxxd.c19 char *file; local
29 file = argv[3];
31 // check file exists
35 if (!fs_exists(file)) {
36 log_err("File does not exist: ifname=%s dev=%s file=%s\n", ifname, dev, file);
40 // get file size
44 if (fs_size(file, &file_size)) {
45 log_err("Cannot read file size: ifname=%s dev=%s file
[all...]
H A Dcbfs.c50 const struct cbfs_cachenode *file; local
67 file = file_cbfs_find(argv[2]);
68 if (!file) {
76 printf("reading %s\n", file_cbfs_name(file));
78 size = file_cbfs_read(file, (void *)offset, count);
89 "load binary file from a cbfs filesystem",
91 " - load binary file 'filename' from the cbfs to address 'addr'\n"
97 const struct cbfs_cachenode *file = file_cbfs_get_first(); local
100 if (!file) {
107 while (file) {
[all...]
/u-boot/scripts/kconfig/
H A Dutil.c13 /* file already present in list? If not add it */
14 struct file *file_lookup(const char *name)
16 struct file *file; local
18 for (file = file_list; file; file = file->next) {
19 if (!strcmp(name, file->name)) {
20 return file;
[all...]
/u-boot/test/py/tests/test_efi_bootmgr/
H A Dconftest.py12 """Set up a file system to be used in UEFI bootmanager tests.
26 with open(mnt_point + '/initrd-1.img', 'w', encoding = 'ascii') as file:
27 file.write("initrd 1")
29 with open(mnt_point + '/initrd-2.img', 'w', encoding = 'ascii') as file:
30 file.write("initrd 2")
/u-boot/test/py/tests/test_eficonfig/
H A Dconftest.py13 """Set up a file system to be used in UEFI "eficonfig" command
28 with open(mnt_point + '/initrd-1.img', 'w', encoding = 'ascii') as file:
29 file.write("initrd 1")
31 with open(mnt_point + '/initrd-2.img', 'w', encoding = 'ascii') as file:
32 file.write("initrd 2")
/u-boot/drivers/misc/
H A Dqfw_acpi.c36 struct fw_file *file; local
46 file = qfw_find_file(dev, entry->alloc.file);
47 if (!file) {
48 printf("error: can't find file %s\n", entry->alloc.file);
52 size = be32_to_cpu(file->cfg.size);
78 debug("bios_linker_allocate: allocate file %s, size %u, zone %d, align %u, addr 0x%lx\n",
79 file->cfg.name, size, entry->alloc.zone, align, aligned_addr);
81 qfw_read_entry(dev, be16_to_cpu(file
137 struct fw_file *file; local
158 struct fw_file *file; local
247 struct fw_file *file; local
[all...]
H A Dqfw_sandbox.c54 struct fw_cfg_file *file; local
82 file = address;
85 file->size = cpu_to_be32(8);
86 file->select = cpu_to_be16(FW_CFG_FILE_FIRST);
87 strcpy(file->name, "test-one");
91 file->size = cpu_to_be32(8);
92 file->select = cpu_to_be16(FW_CFG_FILE_FIRST + 1);
93 strcpy(file->name, "test-two");
/u-boot/tools/kermit/
H A Dsend_cmd9 set file type bin
10 set file name lit
H A Dsend_image11 set file type bin
12 set file name lit
/u-boot/test/image/
H A Dtest-imagetools.sh33 local file
35 for file in ${DATAFILES}; do
36 rm -f ${file} ${SRCDIR}/${file}
58 local file
61 for file in ${DATAFILES}; do
62 head -c $RANDOM /dev/urandom >${SRCDIR}/${file}
89 # Write files into an multi-file image
95 echo -e "\nBuilding multi-file image..."
101 # Extract files from an multi-file imag
[all...]
/u-boot/board/synopsys/hsdk/
H A Dheaderize-hsdk.py24 with open(filename, "rb") as file:
25 ba = bytearray(file.read())
35 print("uboot bin file not exists: " + uboot_bin_filename)
39 print("uboot elf file not exists: " + uboot_elf_filename)
84 # write header to file
85 with open(headerised_filename, "wb") as file:
86 file.write(arc_id.to_bytes(2, byteorder='little'))
87 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
88 file.write(check_sum.to_bytes(1, byteorder='little'))
89 file
[all...]
/u-boot/common/
H A Dqfw.c32 struct fw_file *file; local
47 file = malloc(sizeof(*file));
48 if (!file) {
53 sizeof(struct fw_cfg_file), &file->cfg);
54 file->addr = 0;
55 list_add_tail(&file->list, &qdev->fw_list);
62 file = list_entry(entry, struct fw_file, list);
63 free(file);
72 struct fw_file *file; local
[all...]
H A Dconsole.c175 static int console_setfile(int file, struct stdio_dev * dev) argument
182 switch (file) {
186 error = console_start(file, dev);
191 stdio_devices[file] = dev;
197 switch (file) {
211 default: /* Invalid file ID */
247 static void console_devices_set(int file, struct stdio_dev *dev) argument
249 console_devices[file][0] = dev;
250 cd_count[file] = 1;
255 * @file
264 console_needs_start_stop(int file, struct stdio_dev *sdev) argument
284 console_getc(int file) argument
300 console_tstc(int file) argument
322 console_putc(int file, const char c) argument
341 console_puts_select(int file, bool serial_only, const char *s) argument
360 console_puts(int file, const char *s) argument
372 console_flush(int file) argument
385 console_doenv(int file, struct stdio_dev *dev) argument
392 console_devices_set(int file, struct stdio_dev *dev) argument
396 console_needs_start_stop(int file, struct stdio_dev *sdev) argument
401 console_getc(int file) argument
411 console_tstc(int file) argument
416 console_putc(int file, const char c) argument
421 console_puts_select(int file, bool serial_only, const char *s) argument
428 console_puts(int file, const char *s) argument
434 console_flush(int file) argument
442 console_doenv(int file, struct stdio_dev *dev) argument
449 console_setfile_and_devices(int file, struct stdio_dev *dev) argument
455 console_start(int file, struct stdio_dev *sdev) argument
472 console_stop(int file, struct stdio_dev *sdev) argument
501 fgetc(int file) argument
534 ftstc(int file) argument
542 fputc(int file, const char c) argument
548 fputs(int file, const char *s) argument
555 fflush(int file) argument
562 fprintf(int file, const char *fmt, ...) argument
956 console_assign(int file, const char *devname) argument
[all...]
/u-boot/scripts/dtc/
H A Dsrcpos.h39 * Open a source file.
41 * If the source file is a relative pathname, then it is searched for in the
42 * current directory (the directory of the last source file read) and after
48 * If the file is not found, then this function does not return, but calls
53 * file that was opened. The caller is then responsible
76 struct srcfile_state *file; member in struct:srcpos
88 (Current).file = YYRHSLOC(Rhs, N).file; \
94 (Current).file = YYRHSLOC (Rhs, 0).file; \
[all...]
/u-boot/board/synopsys/axs10x/
H A Dheaderize-axs.py27 with open(filename, "rb") as file:
28 ba = bytearray(file.read())
34 print("uboot bin file not exists: " + uboot_bin_filename)
38 print("uboot elf file not exists: " + uboot_elf_filename)
104 # write header to file
105 with open(headerised_filename, "wb") as file:
106 file.write(arc_id.to_bytes(2, byteorder='little'))
107 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
108 file.write(check_sum.to_bytes(1, byteorder='little'))
109 file
[all...]
/u-boot/test/py/tests/test_xxd/
H A Dconftest.py13 """Set up a file system to be used in xxd tests
24 with open(mnt_point + '/hello', 'w', encoding = 'ascii') as file:
25 file.write('hello world\n\x00\x01\x02\x03\x04\x05')
/u-boot/test/py/tests/test_cat/
H A Dconftest.py13 """Set up a file system to be used in cat tests
24 with open(mnt_point + '/hello', 'w', encoding = 'ascii') as file:
25 file.write('hello world\n')

Completed in 215 milliseconds

1234567