| /rk3399_rockchip-uboot/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 …]
|
| /rk3399_rockchip-uboot/arch/sandbox/cpu/ |
| H A D | os.c | 321 char *fname; in os_dirent_ls() local 333 fname = malloc(len); in os_dirent_ls() 334 if (!fname) { in os_dirent_ls() 349 fname = realloc(fname, len); in os_dirent_ls() 351 if (!next || !fname) { in os_dirent_ls() 373 snprintf(fname, len, "%s/%s", dirname, next->name); in os_dirent_ls() 374 if (!stat(fname, &buf)) in os_dirent_ls() 385 free(fname); in os_dirent_ls() 404 int os_get_filesize(const char *fname, loff_t *size) in os_get_filesize() argument 409 ret = stat(fname, &buf); in os_get_filesize() [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 return os_spl_to_uboot(fname); in spl_board_load_image()
|
| 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 …]
|
| H A D | cpu.c | 110 const char *fname = state->fdt_fname; in sandbox_read_fdt_from_file() local 125 err = os_get_filesize(fname, &size); in sandbox_read_fdt_from_file() 127 printf("Failed to file FDT file '%s'\n", fname); in sandbox_read_fdt_from_file() 130 fd = os_open(fname, OS_O_RDONLY); in sandbox_read_fdt_from_file() 132 printf("Failed to open FDT file '%s'\n", fname); in sandbox_read_fdt_from_file()
|
| /rk3399_rockchip-uboot/tools/buildman/ |
| H A D | toolchain.py | 59 def __init__(self, fname, test, verbose=False, priority=PRIORITY_CALC, argument 70 self.gcc = fname 71 self.path = os.path.dirname(fname) 75 basename = os.path.basename(fname) 89 cmd = [fname, '--version'] 91 self.priority = self.GetPriority(fname) 111 def GetPriority(self, fname): argument 127 if priority_list[prio] in fname: 225 def Add(self, fname, test=True, verbose=False, priority=PRIORITY_CALC, argument 238 toolchain = Toolchain(fname, test, verbose, priority, arch) [all …]
|
| H A D | bsettings.py | 11 def Setup(fname=''): argument 21 if fname is not None: 22 config_fname = fname
|
| /rk3399_rockchip-uboot/tools/patman/ |
| H A D | get_maintainer.py | 21 fname = os.path.join(path, 'get_maintainer.pl') 22 if os.path.isfile(fname): 23 return fname 27 def GetMaintainer(fname, verbose=False): argument 46 stdout = command.Output(get_maintainer, '--norolestats', fname)
|
| H A D | checkpatch.py | 25 fname = os.path.join(path, 'checkpatch.pl') 26 if os.path.isfile(fname): 27 return fname 31 fname = os.path.join(path, 'src', 'third_party', 'kernel', 'files', 33 if os.path.isfile(fname): 34 return fname 40 def CheckPatch(fname, verbose=False): argument 66 result.stdout = command.Output(chk, '--no-tree', fname, 126 def GetWarningMsg(col, msg_type, fname, line, msg): argument 141 return '%s:%d: %s: %s\n' % (fname, line, msg_type, msg) [all …]
|
| H A D | func_test.py | 44 def GetPath(fname): argument 46 'test', fname) 49 def GetText(self, fname): argument 50 return open(self.GetPath(fname)).read() 54 fname = re.sub('[ :]', '-', subject) 55 return fname.replace('--', '-') 63 fname = os.path.join(self.tmpdir, src_fname) 64 shutil.copy(self.GetPath(src_fname), fname) 65 fname_list.append(fname) 69 fname = os.path.join(self.tmpdir, src_fname) [all …]
|
| H A D | tools.py | 64 def GetOutputFilename(fname): argument 73 return os.path.join(outdir, fname) 94 def GetInputFilename(fname): argument 104 return fname 106 pathname = os.path.join(dirname, fname) 111 (fname, ','.join(indir)))
|
| H A D | settings.py | 156 def ReadGitAliases(fname): argument 166 fd = open(fname, 'r') 168 print("Warning: Cannot find alias file '%s'" % fname) 252 def _ReadAliasFile(fname): argument 258 if os.path.exists(fname): 260 with open(fname) as fd: 270 bad_line = "%s:%d:Invalid line '%s'" % (fname, linenum, 277 def _ReadBouncesFile(fname): argument 283 if os.path.exists(fname): 284 with open(fname) as fd:
|
| H A D | patchstream.py | 359 fname = None 372 last_fname = fname 373 fname = match.group(1) 440 def FixPatch(backup_dir, fname, series, commit): argument 457 infd = open(fname, 'r') 466 shutil.copy(fname, os.path.join(backup_dir, os.path.basename(fname))) 467 shutil.move(tmpname, fname) 482 for fname in fnames: 484 commit.patch = fname 485 result = FixPatch(backup_dir, fname, series, commit) [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | fit_common.c | 41 int mmap_fdt(const char *cmdname, const char *fname, size_t size_inc, in mmap_fdt() argument 48 fd = open(fname, O_RDWR | O_BINARY); in mmap_fdt() 52 cmdname, fname, strerror(errno)); in mmap_fdt() 58 cmdname, fname, strerror(errno)); in mmap_fdt() 66 cmdname, fname, strerror(errno)); in mmap_fdt() 75 cmdname, fname, strerror(errno)); in mmap_fdt() 104 unlink(fname); in mmap_fdt()
|
| H A D | fit_image.c | 160 size = imagetool_get_filesize(params, cont->fname); in fit_calc_size() 175 void *fdt, const char *name, const char *fname) in fdt_property_file() argument 182 fd = open(fname, O_RDWR | O_BINARY); in fdt_property_file() 185 params->cmdname, fname, strerror(errno)); in fdt_property_file() 191 params->cmdname, fname, strerror(errno)); in fdt_property_file() 201 params->cmdname, fname, strerror(errno)); in fdt_property_file() 223 static void get_basename(char *str, int size, const char *fname) in get_basename() argument 234 p = strrchr(fname, '/'); in get_basename() 235 start = p ? p + 1 : fname; in get_basename() 236 p = strrchr(fname, '.'); in get_basename() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | debug.c | 400 const char *fname; in ubi_debugfs_init_dev() local 411 fname = UBI_DFS_DIR_NAME; in ubi_debugfs_init_dev() 416 fname = d->dfs_dir_name; in ubi_debugfs_init_dev() 417 dent = debugfs_create_dir(fname, dfs_rootdir); in ubi_debugfs_init_dev() 422 fname = "chk_gen"; in ubi_debugfs_init_dev() 423 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() 429 fname = "chk_io"; in ubi_debugfs_init_dev() 430 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() 436 fname = "chk_fastmap"; in ubi_debugfs_init_dev() 437 dent = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() [all …]
|
| /rk3399_rockchip-uboot/test/ |
| H A D | ut.c | 15 void ut_fail(struct unit_test_state *uts, const char *fname, int line, in ut_fail() argument 19 printf("%s:%d, %s(): %s\n", fname, line, func, cond); in ut_fail() 23 void ut_failf(struct unit_test_state *uts, const char *fname, int line, in ut_failf() argument 29 printf("%s:%d, %s(): %s: ", fname, line, func, cond); in ut_failf()
|
| /rk3399_rockchip-uboot/tools/binman/ |
| H A D | fdt_test.py | 26 def TestFile(self, fname): argument 27 return os.path.join(self._binman_dir, 'test', fname) 29 def GetCompiled(self, fname): argument 30 return fdt_util.EnsureCompiled(self.TestFile(fname)) 37 fname = self.GetCompiled('34_x86_ucode.dts') 38 dt = FdtScan(fname) 42 fname = self.GetCompiled('45_prop_test.dts') 43 dt = FdtScan(fname)
|
| H A D | func_test.py | 133 def _DoTestFile(self, fname): argument 140 '-d', self.TestFile(fname)) 142 def _SetupDtb(self, fname, outfile='u-boot.dtb'): argument 158 dtb = fdt_util.EnsureCompiled(self.TestFile(fname)) 164 def _DoReadFileDtb(self, fname, use_real_dtb=False): argument 188 dtb_data = self._SetupDtb(fname) 191 retcode = self._DoTestFile(fname) 196 fname = tools.GetOutputFilename('image.bin') 197 self.assertTrue(os.path.exists(fname)) 198 with open(fname) as fd: [all …]
|
| /rk3399_rockchip-uboot/arch/arm/lib/ |
| H A D | semihosting.c | 47 static long smh_open(const char *fname, char *modestr) in smh_open() argument 52 const char *fname; in smh_open() member 57 debug("%s: file \'%s\', mode \'%s\'\n", __func__, fname, modestr); in smh_open() 70 open.fname = fname; in smh_open() 71 open.len = strlen(fname); in smh_open() 78 fname); in smh_open()
|
| /rk3399_rockchip-uboot/test/py/tests/ |
| H A D | test_fit.py | 126 def filesize(fname): argument 134 return os.stat(fname).st_size 136 def read_file(fname): argument 144 with open(fname, 'r') as fd: 200 fname = make_fname(filename) 204 with open(fname, 'w') as fd: 206 return fname 214 fname = make_fname(filename) 218 with open(fname, 'w') as fd: 220 return fname
|
| /rk3399_rockchip-uboot/tools/binman/etype/ |
| H A D | u_boot_dtb_with_ucode.py | 42 fname = tools.GetOutputFilename(dtb_name) 43 with open(fname, 'wb') as fd: 47 dtb = fdt.FdtScan(fname) 50 raise self.Raise("No /microcode node found in '%s'" % fname) 70 self._pathname = fname
|
| H A D | u_boot_ucode.py | 83 fname = tools.GetOutputFilename(dtb_name) 84 with open(fname, 'wb') as fd: 87 self._pathname = fname
|
| /rk3399_rockchip-uboot/include/ |
| H A D | os.h | 241 int os_get_filesize(const char *fname, loff_t *size); 249 int os_write_ram_buf(const char *fname); 257 int os_read_ram_buf(const char *fname); 290 int os_find_u_boot(char *fname, int maxlen); 301 int os_spl_to_uboot(const char *fname);
|
| /rk3399_rockchip-uboot/tools/dtoc/ |
| H A D | fdt_util.py | 48 def EnsureCompiled(fname): argument 58 _, ext = os.path.splitext(fname) 60 return fname 66 root, _ = os.path.splitext(fname) 71 args += ['-o', dts_input, fname]
|