| /openbmc/qemu/scripts/ |
| H A D | clean-header-guards.pl | 49 my ($fname, $msg, $line1, $line2) = @_; 51 return if !$opt_v or $fname =~ $exclude; 52 print "$fname skipped: $msg\n"; 58 my ($fname, $msg) = @_; 59 return if $fname =~ $exclude; 60 print STDERR "$fname: warning: $msg\n"; 64 my ($fname) = @_; 66 open(my $in, "<", $fname) 67 or die "can't open $fname for reading: $!"; 72 my ($fname, $contents) = @_; [all …]
|
| H A D | cleanup-trace-events.pl | 44 while (my $fname = <GREP>) { 45 chomp $fname; 46 next if $seen{$fname} || $fname eq 'trace-events'; 47 $seen{$fname} = 1; 48 push @files, "# $fname\n";
|
| /openbmc/u-boot/tools/patman/ |
| H A D | tools.py | 81 def GetOutputFilename(fname): argument 90 return os.path.join(outdir, fname) 111 def GetInputFilename(fname): argument 121 return fname 123 pathname = os.path.join(dirname, fname) 128 (fname, ','.join(indir), os.getcwd())) 140 return glob.glob(fname) 156 def PathHasFile(fname): argument 166 if os.path.exists(os.path.join(dir, fname)): 182 def Filename(fname): argument [all …]
|
| H A D | checkpatch.py | 24 fname = os.path.join(path, 'checkpatch.pl') 25 if os.path.isfile(fname): 26 return fname 30 fname = os.path.join(path, 'src', 'third_party', 'kernel', 'files', 32 if os.path.isfile(fname): 33 return fname 39 def CheckPatch(fname, verbose=False): argument 65 result.stdout = command.Output(chk, '--no-tree', fname, 125 def GetWarningMsg(col, msg_type, fname, line, msg): argument 140 return '%s:%d: %s: %s\n' % (fname, line, msg_type, msg) [all …]
|
| H A D | get_maintainer.py | 20 fname = os.path.join(path, 'get_maintainer.pl') 21 if os.path.isfile(fname): 22 return fname 26 def GetMaintainer(fname, verbose=False): argument 45 stdout = command.Output(get_maintainer, '--norolestats', fname)
|
| H A D | func_test.py | 43 def GetPath(fname): argument 45 'test', fname) 48 def GetText(self, fname): argument 49 return open(self.GetPath(fname)).read() 53 fname = re.sub('[ :]', '-', subject) 54 return fname.replace('--', '-') 62 fname = os.path.join(self.tmpdir, src_fname) 63 shutil.copy(self.GetPath(src_fname), fname) 64 fname_list.append(fname) 68 fname = os.path.join(self.tmpdir, src_fname) [all …]
|
| H A D | settings.py | 168 def ReadGitAliases(fname): argument 178 fd = open(fname, 'r') 180 print("Warning: Cannot find alias file '%s'" % fname) 264 def _ReadAliasFile(fname): argument 270 if os.path.exists(fname): 272 with open(fname) as fd: 282 bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum, 289 def _ReadBouncesFile(fname): argument 295 if os.path.exists(fname): 296 with open(fname) as fd:
|
| /openbmc/u-boot/arch/sandbox/cpu/ |
| H A D | os.c | 101 int os_write_file(const char *fname, const void *buf, int size) in os_write_file() argument 105 fd = os_open(fname, OS_O_WRONLY | OS_O_CREAT | OS_O_TRUNC); in os_write_file() 107 printf("Cannot open file '%s'\n", fname); in os_write_file() 111 printf("Cannot write to file '%s'\n", fname); in os_write_file() 120 int os_read_file(const char *fname, void **bufp, int *sizep) in os_read_file() argument 126 fd = os_open(fname, OS_O_RDONLY); in os_read_file() 128 printf("Cannot open file '%s'\n", fname); in os_read_file() 133 printf("Cannot seek to end of file '%s'\n", fname); in os_read_file() 137 printf("Cannot seek to start of file '%s'\n", fname); in os_read_file() 142 printf("Not enough memory to read file '%s'\n", fname); in os_read_file() [all …]
|
| H A D | spl.c | 31 char fname[256]; in spl_board_load_image() local 34 ret = os_find_u_boot(fname, sizeof(fname)); in spl_board_load_image() 36 printf("(%s not found, error %d)\n", fname, ret); in spl_board_load_image() 41 spl_image->arg = strdup(fname); in spl_board_load_image() 70 const char *fname = spl_image->arg; in jump_to_image_no_args() local 72 if (fname) { in jump_to_image_no_args() 74 os_spl_to_uboot(fname); in jump_to_image_no_args()
|
| H A D | state.c | 45 static int state_read_file(struct sandbox_state *state, const char *fname) in state_read_file() argument 51 ret = os_get_filesize(fname, &size); in state_read_file() 53 printf("Cannot find sandbox state file '%s'\n", fname); in state_read_file() 61 fd = os_open(fname, OS_O_RDONLY); in state_read_file() 63 printf("Cannot open sandbox state file '%s'\n", fname); in state_read_file() 68 printf("Cannot read sandbox state file '%s'\n", fname); in state_read_file() 141 int sandbox_read_state(struct sandbox_state *state, const char *fname) in sandbox_read_state() argument 148 if (state->read_state && fname) { in sandbox_read_state() 149 ret = state_read_file(state, fname); in sandbox_read_state() 166 if (state->read_state && fname) { in sandbox_read_state() [all …]
|
| /openbmc/u-boot/scripts/dtc/ |
| H A D | srcpos.c | 71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument 75 if (!dirname || fname[0] == '/') in try_open() 76 fullname = xstrdup(fname); in try_open() 78 fullname = join_path(dirname, fname); in try_open() 98 static char *fopen_any_on_path(const char *fname, FILE **fp) in fopen_any_on_path() argument 108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path() 112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path() 117 FILE *srcfile_relative_open(const char *fname, char **fullnamep) in srcfile_relative_open() argument 122 if (streq(fname, "-")) { in srcfile_relative_open() 126 fullname = fopen_any_on_path(fname, &f); in srcfile_relative_open() [all …]
|
| /openbmc/u-boot/tools/buildman/ |
| H A D | toolchain.py | 60 def __init__(self, fname, test, verbose=False, priority=PRIORITY_CALC, argument 71 self.gcc = fname 72 self.path = os.path.dirname(fname) 77 basename = os.path.basename(fname) 93 cmd = [fname, '--version'] 95 self.priority = self.GetPriority(fname) 115 def GetPriority(self, fname): argument 131 if priority_list[prio] in fname: 253 def Add(self, fname, test=True, verbose=False, priority=PRIORITY_CALC, argument 266 toolchain = Toolchain(fname, test, verbose, priority, arch, [all …]
|
| /openbmc/openbmc/poky/meta/recipes-extended/libaio/libaio/ |
| H A D | libaio_fix_for_mips_syscalls.patch | 9 @@ -76,7 +76,7 @@ type fname(atype a) \ 17 #define io_syscall2(type,fname,sname,atype,a,btype,b) \ 18 @@ -100,7 +100,7 @@ type fname(atype a, btype b) \ 26 #define io_syscall3(type,fname,sname,atype,a,btype,b,ctype,c) \ 27 @@ -125,7 +125,7 @@ type fname(atype a, btype b, ctype c) \ 35 #define io_syscall4(type,fname,sname,atype,a,btype,b,ctype,c,dtype,d) \ 36 @@ -150,7 +150,7 @@ type fname(atype a, btype b, ctype c, dt 45 @@ -186,7 +186,7 @@ type fname(atype a, btype b, ctype c, dt 54 @@ -216,7 +216,7 @@ type fname (atype a,btype b,ctype c,dtyp
|
| /openbmc/u-boot/tools/ |
| H A D | fit_common.c | 43 int mmap_fdt(const char *cmdname, const char *fname, size_t size_inc, in mmap_fdt() argument 50 fd = open(fname, O_RDWR | O_BINARY); in mmap_fdt() 54 cmdname, fname, strerror(errno)); in mmap_fdt() 60 cmdname, fname, strerror(errno)); in mmap_fdt() 68 cmdname, fname, strerror(errno)); in mmap_fdt() 77 cmdname, fname, strerror(errno)); in mmap_fdt() 106 unlink(fname); in mmap_fdt()
|
| H A D | fit_image.c | 100 size = imagetool_get_filesize(params, cont->fname); in fit_calc_size() 115 void *fdt, const char *name, const char *fname) in fdt_property_file() argument 122 fd = open(fname, O_RDWR | O_BINARY); in fdt_property_file() 125 params->cmdname, fname, strerror(errno)); in fdt_property_file() 131 params->cmdname, fname, strerror(errno)); in fdt_property_file() 141 params->cmdname, fname, strerror(errno)); in fdt_property_file() 163 static void get_basename(char *str, int size, const char *fname) in get_basename() argument 174 p = strrchr(fname, '/'); in get_basename() 175 start = p ? p + 1 : fname; in get_basename() 176 p = strrchr(fname, '.'); in get_basename() [all …]
|
| /openbmc/u-boot/tools/binman/ |
| H A D | state.py | 35 def GetFdt(fname): argument 48 return fdt_files[fname] 50 def GetFdtPath(fname): argument 61 return fdt_files[fname]._fname 63 def GetFdtContents(fname): argument 78 if fname in fdt_files and not use_fake_dtb: 79 pathname = GetFdtPath(fname) 80 data = GetFdt(fname).GetContents() 82 pathname = tools.GetInputFilename(fname)
|
| H A D | fdt_test.py | 28 def TestFile(self, fname): argument 29 return os.path.join(self._binman_dir, 'test', fname) 31 def GetCompiled(self, fname): argument 32 return fdt_util.EnsureCompiled(self.TestFile(fname)) 39 fname = self.GetCompiled('034_x86_ucode.dts') 40 dt = FdtScan(fname) 44 fname = self.GetCompiled('045_prop_test.dts') 45 dt = FdtScan(fname)
|
| H A D | elf.py | 22 def GetSymbols(fname, patterns): argument 34 stdout = command.Output('objdump', '-t', fname, raise_on_error=False) 64 def GetSymbolAddress(fname, sym_name): argument 74 syms = GetSymbols(fname, [sym_name]) 94 fname = tools.GetInputFilename(elf_fname) 95 syms = GetSymbols(fname, ['image', 'binman'])
|
| /openbmc/u-boot/drivers/mtd/ubi/ |
| H A D | debug.c | 399 const char *fname; in ubi_debugfs_init_dev() local 410 fname = UBI_DFS_DIR_NAME; in ubi_debugfs_init_dev() 415 fname = d->dfs_dir_name; in ubi_debugfs_init_dev() 416 dent = debugfs_create_dir(fname, dfs_rootdir); in ubi_debugfs_init_dev() 421 fname = "chk_gen"; in ubi_debugfs_init_dev() 422 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() 428 fname = "chk_io"; in ubi_debugfs_init_dev() 429 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() 435 fname = "chk_fastmap"; in ubi_debugfs_init_dev() 436 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() [all …]
|
| /openbmc/u-boot/Documentation/sphinx/ |
| H A D | kfigure.py | 91 fname = folder + os.sep + cmd 92 if path.isfile(fname): 93 return fname 99 def file2literal(fname): argument 100 with open(fname, "r") as src: 213 fname, in_ext = path.splitext(path.basename(img_node['uri'])) 232 dst_fname = path.join(translator.builder.outdir, fname + '.pdf') 233 img_node['uri'] = fname + '.pdf' 234 img_node['candidates'] = {'*': fname + '.pdf'} 241 fname + '.svg') [all …]
|
| /openbmc/u-boot/test/ |
| H A D | ut.c | 14 void ut_fail(struct unit_test_state *uts, const char *fname, int line, in ut_fail() argument 18 printf("%s:%d, %s(): %s\n", fname, line, func, cond); in ut_fail() 22 void ut_failf(struct unit_test_state *uts, const char *fname, int line, in ut_failf() argument 28 printf("%s:%d, %s(): %s: ", fname, line, func, cond); in ut_failf()
|
| /openbmc/u-boot/test/py/tests/ |
| H A D | test_fit.py | 128 def filesize(fname): argument 136 return os.stat(fname).st_size 138 def read_file(fname): argument 146 with open(fname, 'rb') as fd: 202 fname = make_fname(filename) 206 with open(fname, 'w') as fd: 208 return fname 216 fname = make_fname(filename) 220 with open(fname, 'w') as fd: 222 return fname
|
| /openbmc/u-boot/arch/arm/lib/ |
| H A D | semihosting.c | 46 static long smh_open(const char *fname, char *modestr) in smh_open() argument 51 const char *fname; in smh_open() member 56 debug("%s: file \'%s\', mode \'%s\'\n", __func__, fname, modestr); in smh_open() 69 open.fname = fname; in smh_open() 70 open.len = strlen(fname); in smh_open() 77 fname); in smh_open()
|
| /openbmc/qemu/tests/qtest/ |
| H A D | boot-sector.c | 88 int boot_sector_init(char *fname) in boot_sector_init() argument 95 fd = mkstemp(fname); in boot_sector_init() 97 fprintf(stderr, "Couldn't open \"%s\": %s", fname, strerror(errno)); in boot_sector_init() 127 fprintf(stderr, "Could not write \"%s\"", fname); in boot_sector_init() 177 void boot_sector_cleanup(const char *fname) in boot_sector_cleanup() argument 179 unlink(fname); in boot_sector_cleanup()
|
| /openbmc/u-boot/include/ |
| H A D | os.h | 232 int os_get_filesize(const char *fname, loff_t *size); 260 int os_write_ram_buf(const char *fname); 268 int os_read_ram_buf(const char *fname); 301 int os_find_u_boot(char *fname, int maxlen); 312 int os_spl_to_uboot(const char *fname);
|