Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/OK3568_Linux_fs/kernel/scripts/dtc/
H A Dsrcpos.c47 static void set_initial_path(char *fname) in set_initial_path() argument
49 int i, len = strlen(fname); in set_initial_path()
51 xasprintf(&initial_path, "%s", fname); in set_initial_path()
58 static char *shorten_to_initial_path(char *fname) in shorten_to_initial_path() argument
63 for (p1 = fname, p2 = initial_path; *p1 && *p2; p1++, p2++) { in shorten_to_initial_path()
74 int restlen = strlen(fname) - (p1 - fname); in shorten_to_initial_path()
100 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument
104 if (!dirname || fname[0] == '/') in try_open()
105 fullname = xstrdup(fname); in try_open()
107 fullname = join_path(dirname, fname); in try_open()
[all …]
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Ddir.c80 struct f2fs_filename *fname) in f2fs_init_casefolded_name() argument
86 !is_dot_dotdot(fname->usr_fname->name, fname->usr_fname->len)) { in f2fs_init_casefolded_name()
87 fname->cf_name.name = kmem_cache_alloc(f2fs_cf_name_slab, in f2fs_init_casefolded_name()
89 if (!fname->cf_name.name) in f2fs_init_casefolded_name()
91 fname->cf_name.len = utf8_casefold(sb->s_encoding, in f2fs_init_casefolded_name()
92 fname->usr_fname, in f2fs_init_casefolded_name()
93 fname->cf_name.name, in f2fs_init_casefolded_name()
95 if ((int)fname->cf_name.len <= 0) { in f2fs_init_casefolded_name()
96 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in f2fs_init_casefolded_name()
97 fname->cf_name.name = NULL; in f2fs_init_casefolded_name()
[all …]
H A Dhash.c96 void f2fs_hash_filename(const struct inode *dir, struct f2fs_filename *fname) in f2fs_hash_filename() argument
98 const u8 *name = fname->disk_name.name; in f2fs_hash_filename()
99 size_t len = fname->disk_name.len; in f2fs_hash_filename()
104 fname->hash = 0; in f2fs_hash_filename()
119 WARN_ON_ONCE(!fname->usr_fname->name); in f2fs_hash_filename()
120 if (fname->cf_name.name) { in f2fs_hash_filename()
121 name = fname->cf_name.name; in f2fs_hash_filename()
122 len = fname->cf_name.len; in f2fs_hash_filename()
124 name = fname->usr_fname->name; in f2fs_hash_filename()
125 len = fname->usr_fname->len; in f2fs_hash_filename()
[all …]
/OK3568_Linux_fs/kernel/fs/ext4/
H A Ddir.c409 struct fname { struct
413 struct fname *next; argument
426 struct fname *fname, *next; in free_rb_tree_fname() local
428 rbtree_postorder_for_each_entry_safe(fname, next, root, rb_hash) in free_rb_tree_fname()
429 while (fname) { in free_rb_tree_fname()
430 struct fname *old = fname; in free_rb_tree_fname()
431 fname = fname->next; in free_rb_tree_fname()
471 struct fname *fname, *new_fn; in ext4_htree_store_dirent() local
479 len = sizeof(struct fname) + ent_name->len + 1; in ext4_htree_store_dirent()
492 fname = rb_entry(parent, struct fname, rb_hash); in ext4_htree_store_dirent()
[all …]
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dfname.c390 int lookup, struct fscrypt_name *fname) in fscrypt_setup_filename() argument
395 memset(fname, 0, sizeof(struct fscrypt_name)); in fscrypt_setup_filename()
396 fname->usr_fname = iname; in fscrypt_setup_filename()
399 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
400 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
411 &fname->crypto_buf.len)) in fscrypt_setup_filename()
413 fname->crypto_buf.name = kmalloc(fname->crypto_buf.len, in fscrypt_setup_filename()
415 if (!fname->crypto_buf.name) in fscrypt_setup_filename()
418 ret = fscrypt_fname_encrypt(dir, iname, fname->crypto_buf.name, in fscrypt_setup_filename()
419 fname->crypto_buf.len); in fscrypt_setup_filename()
[all …]
/OK3568_Linux_fs/u-boot/arch/sandbox/cpu/
H A Dos.c321 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 Dstate.c45 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 …]
/OK3568_Linux_fs/buildroot/utils/
H A Dgetdeveloperlib.py31 fname = line[line.find("/") + 1:].strip()
32 if fname == "dev/null":
34 files.add(fname)
41 def fname_get_package_infra(fname): argument
44 if not fname.endswith(".mk"):
47 if not os.path.exists(fname):
50 with open(fname, "r") as f:
148 for fname in fnames:
149 for root, dirs, files in os.walk(os.path.join(brpath, fname)):
158 def parse_arches_from_config_in(fname): argument
[all …]
H A Dcheck-package69 def get_lib_from_filename(fname): argument
71 if DO_CHECK_INTREE.match(fname) is None:
73 if DO_NOT_CHECK_INTREE.match(fname):
76 if os.path.basename(fname) == "external.mk" and \
77 os.path.exists(fname[:-2] + "desc"):
79 if CONFIG_IN_FILENAME.search(fname):
81 if fname.endswith(".hash"):
83 if fname.endswith(".mk"):
85 if fname.endswith(".patch"):
114 def check_file_using_lib(fname): argument
[all …]
/OK3568_Linux_fs/u-boot/scripts/dtc/
H A Dsrcpos.c71 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 …]
/OK3568_Linux_fs/u-boot/tools/buildman/
H A Dtoolchain.py59 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 …]
/OK3568_Linux_fs/external/mpp/osal/
H A Dmpp_log.cpp43 const char *fname, va_list args) in __mpp_log() argument
49 size_t len_name = (fname) ? (strnlen(fname, MPP_LOG_MAX_LEN)) : (0); in __mpp_log()
58 buf_left -= snprintf(msg, buf_left, "%s ", fname); in __mpp_log()
79 void _mpp_log(const char *tag, const char *fmt, const char *fname, ...) in _mpp_log() argument
85 va_start(args, fname); in _mpp_log()
86 __mpp_log(os_log_info, tag, fmt, fname, args); in _mpp_log()
90 void _mpp_err(const char *tag, const char *fmt, const char *fname, ...) in _mpp_err() argument
96 va_start(args, fname); in _mpp_err()
97 __mpp_log(os_log_error, tag, fmt, fname, args); in _mpp_err()
101 void _mpp_log_l(int level, const char *tag, const char *fmt, const char *fname, ...) in _mpp_log_l() argument
[all …]
/OK3568_Linux_fs/kernel/arch/mips/txx9/generic/
H A Dsmsc_fdc37m81x.c136 const char *fname = __func__; in smsc_fdc37m81x_config_dump() local
142 pr_info("%s: common\n", fname); in smsc_fdc37m81x_config_dump()
143 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_NONE, in smsc_fdc37m81x_config_dump()
145 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_NONE, in smsc_fdc37m81x_config_dump()
147 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_NONE, in smsc_fdc37m81x_config_dump()
149 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_NONE, in smsc_fdc37m81x_config_dump()
151 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_NONE, in smsc_fdc37m81x_config_dump()
154 pr_info("%s: keyboard\n", fname); in smsc_fdc37m81x_config_dump()
156 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_KBD, in smsc_fdc37m81x_config_dump()
158 smsc_fdc37m81x_config_dump_one(fname, SMSC_FDC37M81X_KBD, in smsc_fdc37m81x_config_dump()
[all …]
/OK3568_Linux_fs/kernel/scripts/
H A Drecordmcount.c164 static void *mmap_file(char const *fname) in mmap_file() argument
174 fd_map = open(fname, O_RDONLY); in mmap_file()
176 perror(fname); in mmap_file()
180 perror(fname); in mmap_file()
184 fprintf(stderr, "not a regular file: %s\n", fname); in mmap_file()
193 perror(fname); in mmap_file()
197 perror(fname); in mmap_file()
317 static int write_file(const char *fname) in write_file() argument
319 char tmp_file[strlen(fname) + 4]; in write_file()
325 sprintf(tmp_file, "%s.rc", fname); in write_file()
[all …]
/OK3568_Linux_fs/u-boot/tools/patman/
H A Dcheckpatch.py25 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 Dfunc_test.py44 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 …]
/OK3568_Linux_fs/buildroot/package/ghostscript/
H A D0002-Bug-704342-Include-device-specifier-strings-in-acces.patch31 @@ -72,8 +72,28 @@ pipe_fopen(gx_io_device * iodev, const char *fname, const char *access,
42 + const size_t nlen = strlen(fname);
49 + memcpy(f + preflen, fname, nlen + 1);
54 + memcpy(f + pipestrlen, fname, nlen + 1);
56 - if (gp_validate_path(mem, fname, access) != 0)
65 @@ -95,8 +95,17 @@ mswin_handle_fopen(gx_io_device * iodev, const char *fname, const char *access,
71 + const size_t nlen = strlen(fname);
73 - if (gp_validate_path(mem, fname, access) != 0)
78 + memcpy(f + preflen, fname, nlen + 1);
88 @@ -168,8 +168,16 @@ mswin_printer_fopen(gx_io_device * iodev, const char *fname, const char *acces…
[all …]
/OK3568_Linux_fs/kernel/scripts/coccinelle/misc/
H A Dnewline_in_nl_msg.cocci30 identifier fname;
35 fname(e,m@p)
42 identifier r1.fname;
46 * fname(e,m)
53 fname << r1.fname;
59 msg="WARNING avoid newline at end of message in %s" % (fname)
68 fname << r1.fname;
74 msg="WARNING avoid newline at end of message in %s" % (fname)
/OK3568_Linux_fs/kernel/arch/mips/boot/tools/
H A Drelocs_main.c32 const char *fname; in main() local
41 fname = NULL; in main()
62 } else if (!fname) { in main()
63 fname = arg; in main()
68 if (!fname) in main()
71 fp = fopen(fname, "r+"); in main()
73 die("Cannot open %s: %s\n", fname, strerror(errno)); in main()
76 die("Cannot read %s: %s", fname, strerror(errno)); in main()
/OK3568_Linux_fs/u-boot/drivers/mtd/ubi/
H A Ddebug.c400 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 …]
/OK3568_Linux_fs/kernel/arch/x86/tools/
H A Drelocs_common.c23 const char *fname; in main() local
33 fname = NULL; in main()
58 else if (!fname) { in main()
59 fname = arg; in main()
64 if (!fname) { in main()
67 fp = fopen(fname, "r"); in main()
69 die("Cannot open %s: %s\n", fname, strerror(errno)); in main()
72 die("Cannot read %s: %s", fname, strerror(errno)); in main()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_benchmark/src/cnpy/
H A Dcnpy.h90 npz_t npz_load(std::string fname);
91 NpyArray npz_load(std::string fname, std::string varname);
92 NpyArray npy_load(std::string fname);
111 int npy_save(std::string fname, const T* data, const std::vector<size_t> shape, std::string mode = …
113 std::ofstream ofs(fname, std::ios::out);
122 fp = fopen(fname.c_str(), "r+b");
133 …std::cout << "libnpy error: " << fname << " has word size " << word_size << " but npy_save appendi…
138 …std::cout << "libnpy error: npy_save attempting to append misdimensioned data to " << fname << "\n…
144 … std::cout << "libnpy error: npy_save attempting to append misshaped data to " << fname << "\n";
150 fp = fopen(fname.c_str(), "wb");
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/cnpy/
H A Dcnpy.h90 npz_t npz_load(std::string fname);
91 NpyArray npz_load(std::string fname, std::string varname);
92 NpyArray npy_load(std::string fname);
111 int npy_save(std::string fname, const T* data, const std::vector<size_t> shape, std::string mode = …
113 std::ofstream ofs(fname, std::ios::out);
122 fp = fopen(fname.c_str(), "r+b");
133 …std::cout << "libnpy error: " << fname << " has word size " << word_size << " but npy_save appendi…
138 …std::cout << "libnpy error: npy_save attempting to append misdimensioned data to " << fname << "\n…
144 … std::cout << "libnpy error: npy_save attempting to append misshaped data to " << fname << "\n";
150 fp = fopen(fname.c_str(), "wb");
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/libaio/libaio/
H A Dlibaio_fix_for_mips_syscalls.patch9 @@ -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
/OK3568_Linux_fs/kernel/include/linux/
H A Dfscrypt.h218 int lookup, struct fscrypt_name *fname);
220 static inline void fscrypt_free_filename(struct fscrypt_name *fname) in fscrypt_free_filename() argument
222 kfree(fname->crypto_buf.name); in fscrypt_free_filename()
232 bool fscrypt_match_name(const struct fscrypt_name *fname,
250 struct fscrypt_name *fname);
445 int lookup, struct fscrypt_name *fname) in fscrypt_setup_filename() argument
450 memset(fname, 0, sizeof(*fname)); in fscrypt_setup_filename()
451 fname->usr_fname = iname; in fscrypt_setup_filename()
452 fname->disk_name.name = (unsigned char *)iname->name; in fscrypt_setup_filename()
453 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
[all …]

12345678910>>...16