Searched refs:filename (Results 1 - 200 of 368) sorted by relevance

12

/linux-4.1.27/samples/bpf/
H A Dtracex1_user.c10 char filename[256]; main() local
12 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
14 if (load_bpf_file(filename)) { main()
H A Dsockex1_user.c11 char filename[256]; main() local
15 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
17 if (load_bpf_file(filename)) { main()
H A Dsockex2_user.c16 char filename[256]; main() local
20 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
22 if (load_bpf_file(filename)) { main()
H A Dtracex4_user.c53 char filename[256]; main() local
56 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
58 if (load_bpf_file(filename)) { main()
H A Dtracex2_user.c59 char filename[256]; main() local
64 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
76 if (load_bpf_file(filename)) { main()
H A Dtracex3_user.c106 char filename[256]; main() local
109 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); main()
111 if (load_bpf_file(filename)) { main()
/linux-4.1.27/Documentation/mic/mpssd/
H A Dsysfs.c28 char filename[PATH_MAX]; readsysfs() local
35 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); readsysfs()
37 snprintf(filename, PATH_MAX, readsysfs()
40 fd = open(filename, O_RDONLY); readsysfs()
43 filename, strerror(errno)); readsysfs()
50 filename, strerror(errno)); readsysfs()
70 char filename[PATH_MAX]; setsysfs() local
75 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); setsysfs()
77 snprintf(filename, PATH_MAX, "%s/%s/%s", setsysfs()
82 fd = open(filename, O_RDWR); setsysfs()
86 filename, strerror(errno)); setsysfs()
94 filename, strerror(errno)); setsysfs()
/linux-4.1.27/tools/iio/
H A Diio_utils.c91 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; iioutils_get_type() local
124 ret = asprintf(&filename, iioutils_get_type()
130 sysfsfp = fopen(filename, "r"); iioutils_get_type()
132 printf("failed to open %s\n", filename); iioutils_get_type()
159 free(filename); iioutils_get_type()
161 filename = 0; iioutils_get_type()
168 if (filename) iioutils_get_type()
169 free(filename); iioutils_get_type()
192 char *filename = NULL; iioutils_get_param_float() local
214 ret = asprintf(&filename, iioutils_get_param_float()
220 sysfsfp = fopen(filename, "r"); iioutils_get_param_float()
229 if (filename) iioutils_get_param_float()
230 free(filename); iioutils_get_param_float()
278 char *filename; build_channel_array() local
294 ret = asprintf(&filename, build_channel_array()
300 sysfsfp = fopen(filename, "r"); build_channel_array()
303 free(filename); build_channel_array()
310 free(filename); build_channel_array()
325 ret = asprintf(&filename, build_channel_array()
333 sysfsfp = fopen(filename, "r"); build_channel_array()
335 free(filename); build_channel_array()
343 free(filename); build_channel_array()
354 free(filename); build_channel_array()
362 free(filename); build_channel_array()
365 ret = asprintf(&filename, build_channel_array()
370 free(filename); build_channel_array()
374 sysfsfp = fopen(filename, "r"); build_channel_array()
377 free(filename); build_channel_array()
438 char *filename; find_type_by_name() local
458 filename = malloc(strlen(iio_dir) find_type_by_name()
462 if (filename == NULL) { find_type_by_name()
466 sprintf(filename, "%s%s%d/name", find_type_by_name()
470 nameFile = fopen(filename, "r"); find_type_by_name()
472 free(filename); find_type_by_name()
475 free(filename); find_type_by_name()
489 int _write_sysfs_int(char *filename, char *basedir, int val, int verify) _write_sysfs_int() argument
494 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); _write_sysfs_int()
498 sprintf(temp, "%s/%s", basedir, filename); _write_sysfs_int()
520 filename); _write_sysfs_int()
529 int write_sysfs_int(char *filename, char *basedir, int val) write_sysfs_int() argument
531 return _write_sysfs_int(filename, basedir, val, 0); write_sysfs_int()
534 int write_sysfs_int_and_verify(char *filename, char *basedir, int val) write_sysfs_int_and_verify() argument
536 return _write_sysfs_int(filename, basedir, val, 1); write_sysfs_int_and_verify()
539 int _write_sysfs_string(char *filename, char *basedir, char *val, int verify) _write_sysfs_string() argument
543 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); _write_sysfs_string()
549 sprintf(temp, "%s/%s", basedir, filename); _write_sysfs_string()
574 filename); _write_sysfs_string()
586 * @filename: name of file to write to
590 int write_sysfs_string_and_verify(char *filename, char *basedir, char *val) write_sysfs_string_and_verify() argument
592 return _write_sysfs_string(filename, basedir, val, 1); write_sysfs_string_and_verify()
595 int write_sysfs_string(char *filename, char *basedir, char *val) write_sysfs_string() argument
597 return _write_sysfs_string(filename, basedir, val, 0); write_sysfs_string()
600 int read_sysfs_posint(char *filename, char *basedir) read_sysfs_posint() argument
604 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); read_sysfs_posint()
610 sprintf(temp, "%s/%s", basedir, filename); read_sysfs_posint()
623 int read_sysfs_float(char *filename, char *basedir, float *val) read_sysfs_float() argument
627 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); read_sysfs_float()
633 sprintf(temp, "%s/%s", basedir, filename); read_sysfs_float()
646 int read_sysfs_string(const char *filename, const char *basedir, char *str) read_sysfs_string() argument
650 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); read_sysfs_string()
656 sprintf(temp, "%s/%s", basedir, filename); read_sysfs_string()
H A Diio_utils.h63 int write_sysfs_int(char *filename, char *basedir, int val);
64 int write_sysfs_int_and_verify(char *filename, char *basedir, int val);
65 int write_sysfs_string_and_verify(char *filename, char *basedir, char *val);
66 int write_sysfs_string(char *filename, char *basedir, char *val);
67 int read_sysfs_posint(char *filename, char *basedir);
68 int read_sysfs_float(char *filename, char *basedir, float *val);
69 int read_sysfs_string(const char *filename, const char *basedir, char *str);
/linux-4.1.27/tools/perf/util/
H A Dvdso.h14 static inline bool is_vdso_map(const char *filename) is_vdso_map() argument
16 return !strcmp(filename, VDSO__MAP_NAME); is_vdso_map()
H A Dsrcline.c26 const char *filename; member in struct:a2l_data
102 &a2l->filename, &a2l->funcname, find_address_in_section()
171 if (a2l->found && a2l->filename) { addr2line()
172 *file = strdup(a2l->filename); addr2line()
202 char *filename = NULL; addr2line() local
216 if (getline(&filename, &len, fp) < 0 || !len) { addr2line()
221 sep = strchr(filename, '\n'); addr2line()
225 if (!strcmp(filename, "??:0")) { addr2line()
227 free(filename); addr2line()
231 sep = strchr(filename, ':'); addr2line()
234 *file = filename; addr2line()
H A Dbuild-id.c284 char *realname = (char *)name, *filename; build_id_cache__dirname_from_path() local
293 if (asprintf(&filename, "%s%s%s", buildid_dir, slash ? "/" : "", build_id_cache__dirname_from_path()
295 filename = NULL; build_id_cache__dirname_from_path()
300 return filename; build_id_cache__dirname_from_path()
347 char *realname = NULL, *filename = NULL, *dir_name = NULL, build_id_cache__add_s() local
364 if (asprintf(&filename, "%s/%s", dir_name, sbuild_id) < 0) { build_id_cache__add_s()
365 filename = NULL; build_id_cache__add_s()
369 if (access(filename, F_OK)) { build_id_cache__add_s()
371 if (copyfile("/proc/kallsyms", filename)) build_id_cache__add_s()
373 } else if (link(realname, filename) && errno != EEXIST && build_id_cache__add_s()
374 copyfile(name, filename)) build_id_cache__add_s()
387 targetname = filename + strlen(buildid_dir) - 5; build_id_cache__add_s()
395 free(filename); build_id_cache__add_s()
415 char *filename = build_id__filename(sbuild_id, NULL, 0); build_id_cache__cached() local
417 if (filename && !access(filename, F_OK)) build_id_cache__cached()
419 free(filename); build_id_cache__cached()
427 char *filename = zalloc(size), build_id_cache__remove_s() local
431 if (filename == NULL || linkname == NULL) build_id_cache__remove_s()
440 if (readlink(linkname, filename, size - 1) < 0) build_id_cache__remove_s()
450 snprintf(tmp, size - (tmp - linkname), "%s", filename); build_id_cache__remove_s()
457 free(filename); build_id_cache__remove_s()
H A Devent.c59 char filename[PATH_MAX]; perf_event__get_comm_ids() local
68 snprintf(filename, sizeof(filename), "/proc/%d/status", pid); perf_event__get_comm_ids()
70 fd = open(filename, O_RDONLY); perf_event__get_comm_ids()
72 pr_debug("couldn't open %s\n", filename); perf_event__get_comm_ids()
217 char filename[PATH_MAX]; perf_event__synthesize_mmap_events() local
224 snprintf(filename, sizeof(filename), "%s/proc/%d/maps", perf_event__synthesize_mmap_events()
227 fp = fopen(filename, "r"); perf_event__synthesize_mmap_events()
232 pr_debug("couldn't open %s\n", filename); perf_event__synthesize_mmap_events()
302 memcpy(event->mmap2.filename, execname, size); perf_event__synthesize_mmap_events()
306 (sizeof(event->mmap2.filename) - size)); perf_event__synthesize_mmap_events()
307 memset(event->mmap2.filename + size, 0, machine->id_hdr_size); perf_event__synthesize_mmap_events()
359 (sizeof(event->mmap.filename) - size)); perf_event__synthesize_modules()
360 memset(event->mmap.filename + size, 0, machine->id_hdr_size); perf_event__synthesize_modules()
366 memcpy(event->mmap.filename, pos->dso->long_name, perf_event__synthesize_modules()
386 char filename[PATH_MAX]; __event__synthesize_thread() local
407 snprintf(filename, sizeof(filename), "%s/proc/%d/task", __event__synthesize_thread()
410 tasks = opendir(filename); __event__synthesize_thread()
412 pr_debug("couldn't open %s\n", filename); __event__synthesize_thread()
650 size = snprintf(event->mmap.filename, sizeof(event->mmap.filename), perf_event__synthesize_kernel_mmap()
655 (sizeof(event->mmap.filename) - size) + machine->id_hdr_size); perf_event__synthesize_kernel_mmap()
701 event->mmap.filename); perf_event__fprintf_mmap()
716 event->mmap2.filename); perf_event__fprintf_mmap2()
H A Dmap.c24 static inline int is_anon_memory(const char *filename) is_anon_memory() argument
26 return !strcmp(filename, "//anon") || is_anon_memory()
27 !strcmp(filename, "/dev/zero (deleted)") || is_anon_memory()
28 !strcmp(filename, "/anon_hugepage (deleted)"); is_anon_memory()
31 static inline int is_no_dso_memory(const char *filename) is_no_dso_memory() argument
33 return !strncmp(filename, "[stack", 6) || is_no_dso_memory()
34 !strncmp(filename, "/SYSV",5) || is_no_dso_memory()
35 !strcmp(filename, "[heap]"); is_no_dso_memory()
38 static inline int is_android_lib(const char *filename) is_android_lib() argument
40 return !strncmp(filename, "/data/app-lib", 13) || is_android_lib()
41 !strncmp(filename, "/system/lib", 11); is_android_lib()
44 static inline bool replace_android_lib(const char *filename, char *newfilename) replace_android_lib() argument
51 libname = strrchr(filename, '/'); replace_android_lib()
61 if (!strncmp(filename, "/data/app-lib", 13)) { replace_android_lib()
85 if (!strncmp(filename, "/system/lib/", 11)) { replace_android_lib()
144 u64 ino_gen, u32 prot, u32 flags, char *filename, map__new()
154 android = is_android_lib(filename); map__new()
155 anon = is_anon_memory(filename); map__new()
156 vdso = is_vdso_map(filename); map__new()
157 no_dso = is_no_dso_memory(filename); map__new()
168 filename = newfilename; map__new()
172 if (replace_android_lib(filename, newfilename)) map__new()
173 filename = newfilename; map__new()
180 dso = __dsos__findnew(&machine->user_dsos, filename); map__new()
142 map__new(struct machine *machine, u64 start, u64 len, u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, u64 ino_gen, u32 prot, u32 flags, char *filename, enum map_type type, struct thread *thread) map__new() argument
H A Ddso.c38 char *root_dir, char *filename, size_t size) dso__read_binary_type_filename()
48 len = __symbol__join_symfs(filename, size, dso->long_name); dso__read_binary_type_filename()
49 debuglink = filename + len; dso__read_binary_type_filename()
50 while (debuglink != filename && *debuglink != '/') dso__read_binary_type_filename()
54 ret = filename__read_debuglink(filename, debuglink, dso__read_binary_type_filename()
55 size - (debuglink - filename)); dso__read_binary_type_filename()
61 (dso__build_id_filename(dso, filename, size) == NULL)) dso__read_binary_type_filename()
66 len = __symbol__join_symfs(filename, size, "/usr/lib/debug"); dso__read_binary_type_filename()
67 snprintf(filename + len, size - len, "%s.debug", dso->long_name); dso__read_binary_type_filename()
71 len = __symbol__join_symfs(filename, size, "/usr/lib/debug"); dso__read_binary_type_filename()
72 snprintf(filename + len, size - len, "%s", dso->long_name); dso__read_binary_type_filename()
84 len = __symbol__join_symfs(filename, size, ""); dso__read_binary_type_filename()
90 len += scnprintf(filename + len, dir_size, "%s", dso->long_name); dso__read_binary_type_filename()
91 len += scnprintf(filename + len , size - len, ".debug%s", dso__read_binary_type_filename()
105 len = __symbol__join_symfs(filename, size, "/usr/lib/debug/.build-id/"); dso__read_binary_type_filename()
106 snprintf(filename + len, size - len, "%.2s/%s.debug", dso__read_binary_type_filename()
113 __symbol__join_symfs(filename, size, dso->long_name); dso__read_binary_type_filename()
118 path__join3(filename, size, symbol_conf.symfs, dso__read_binary_type_filename()
124 __symbol__join_symfs(filename, size, dso->long_name); dso__read_binary_type_filename()
129 snprintf(filename, size, "%s", dso->long_name); dso__read_binary_type_filename()
178 bool decompress_to_file(const char *ext, const char *filename, int output_fd) decompress_to_file() argument
184 return !compressions[i].decompress(filename, decompress_to_file()
996 char filename[PATH_MAX]; dso__kernel_module_get_build_id() local
1003 snprintf(filename, sizeof(filename), dso__kernel_module_get_build_id()
1007 if (sysfs__read_build_id(filename, dso->build_id, dso__kernel_module_get_build_id()
36 dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type type, char *root_dir, char *filename, size_t size) dso__read_binary_type_filename() argument
H A Dannotate.c740 * Also color the filename and line if needed, with disasm_line__print()
742 * twice for close colored addr with the same filename:line disasm_line__print()
833 /* /filename:linenr ? Save line number and ignore. */ symbol__parse_objdump_line()
929 char *filename = dso__build_id_filename(dso, NULL, 0); symbol__annotate() local
939 if (filename) symbol__annotate()
940 symbol__join_symfs(symfs_filename, filename); symbol__annotate()
942 if (filename == NULL) { symbol__annotate()
954 free(filename); symbol__annotate()
961 filename = (char *)dso->long_name; symbol__annotate()
962 symbol__join_symfs(symfs_filename, filename); symbol__annotate()
991 pr_debug("%s: filename=%s, sym=%s, start=%#" PRIx64 ", end=%#" PRIx64 "\n", __func__, symbol__annotate()
992 filename, sym->name, map->unmap_ip(map, sym->start), symbol__annotate()
1008 free(filename); symbol__annotate()
1011 filename = symfs_filename; symbol__annotate()
1052 symfs_filename, filename); symbol__annotate()
1081 free(filename); symbol__annotate()
1185 /* Get the filename:line for the colored entries */ symbol__get_source_line()
1248 static void print_summary(struct rb_root *root, const char *filename) print_summary() argument
1253 printf("\nSorted summary for file %s\n", filename); print_summary()
1304 char *filename; symbol__annotate_printf() local
1316 filename = strdup(dso->long_name); symbol__annotate_printf()
1317 if (!filename) symbol__annotate_printf()
1321 d_filename = filename; symbol__annotate_printf()
1323 d_filename = basename(filename); symbol__annotate_printf()
1379 free(filename); symbol__annotate_printf()
H A Dsymbol.h234 int dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map,
248 int filename__read_build_id(const char *filename, void *bf, size_t size);
249 int sysfs__read_build_id(const char *filename, void *bf, size_t size);
250 int modules__parse(const char *filename, void *arg,
253 int filename__read_debuglink(const char *filename, char *debuglink,
266 bool symbol__restricted_filename(const char *filename,
H A Dsymbol.c493 int modules__parse(const char *filename, void *arg, modules__parse() argument
502 file = fopen(filename, "r"); modules__parse()
623 static int dso__load_all_kallsyms(struct dso *dso, const char *filename, dso__load_all_kallsyms() argument
627 return kallsyms__parse(filename, &args, map__process_kallsym_symbol); dso__load_all_kallsyms()
818 bool symbol__restricted_filename(const char *filename, symbol__restricted_filename() argument
824 char *r = realpath(filename, NULL); symbol__restricted_filename()
918 static int read_proc_modules(const char *filename, struct rb_root *modules) read_proc_modules() argument
920 if (symbol__restricted_filename(filename, "/proc/modules")) read_proc_modules()
923 if (modules__parse(filename, modules, __read_proc_modules)) { read_proc_modules()
972 static int do_validate_kcore_modules(const char *filename, struct map *map, do_validate_kcore_modules() argument
979 err = read_proc_modules(filename, &modules); do_validate_kcore_modules()
1009 * If kallsyms is referenced by name then we look for filename in the same
1012 static bool filename_from_kallsyms_filename(char *filename, filename_from_kallsyms_filename() argument
1018 strcpy(filename, kallsyms_filename); filename_from_kallsyms_filename()
1019 name = strrchr(filename, '/'); filename_from_kallsyms_filename()
1219 static int kallsyms__delta(struct map *map, const char *filename, u64 *delta) kallsyms__delta() argument
1230 addr = kallsyms__get_function_start(filename, kallsyms__delta()
1239 int dso__load_kallsyms(struct dso *dso, const char *filename, dso__load_kallsyms() argument
1244 if (symbol__restricted_filename(filename, "/proc/kallsyms")) dso__load_kallsyms()
1247 if (dso__load_all_kallsyms(dso, filename, map) < 0) dso__load_kallsyms()
1250 if (kallsyms__delta(map, filename, &delta)) dso__load_kallsyms()
1261 if (!dso__load_kcore(dso, map, filename)) dso__load_kallsyms()
1562 char *filename = NULL; dso__load_vmlinux_path() local
1565 filename = dso__build_id_filename(dso, NULL, 0); dso__load_vmlinux_path()
1566 if (filename != NULL) { dso__load_vmlinux_path()
1567 err = dso__load_vmlinux(dso, map, filename, true, filter); dso__load_vmlinux_path()
1570 free(filename); dso__load_vmlinux_path()
1696 * Step 1: if the user specified a kallsyms or vmlinux filename, use dso__load_kernel_sym()
1768 * if the user specified a vmlinux filename, use it and only dso__load_guest_kernel_sym()
H A Dutil.c490 int filename__read_str(const char *filename, char **buf, size_t *sizep) filename__read_str() argument
497 fd = open(filename, O_RDONLY); filename__read_str()
540 const char *filename; get_filename_for_perf_kvm() local
543 filename = strdup("perf.data.host"); get_filename_for_perf_kvm()
545 filename = strdup("perf.data.guest"); get_filename_for_perf_kvm()
547 filename = strdup("perf.data.kvm"); get_filename_for_perf_kvm()
549 return filename; get_filename_for_perf_kvm()
H A Dsymbol-minimal.c72 int filename__read_debuglink(const char *filename __maybe_unused, filename__read_debuglink()
82 int filename__read_build_id(const char *filename, void *bf, size_t size) filename__read_build_id() argument
92 fp = fopen(filename, "r"); filename__read_build_id()
218 int sysfs__read_build_id(const char *filename, void *build_id, size_t size) sysfs__read_build_id() argument
226 fd = open(filename, O_RDONLY); sysfs__read_build_id()
H A Dstrlist.c68 int strlist__load(struct strlist *slist, const char *filename) strlist__load() argument
72 FILE *fp = fopen(filename, "r"); strlist__load()
H A Dmachine.c463 const char *filename) machine__module_dso()
483 dso__set_long_name(dso, strdup(filename), true); machine__module_dso()
490 const char *filename) machine__new_module()
496 if (kmod_path__parse_name(&m, filename)) machine__new_module()
504 dso = machine__module_dso(machine, &m, filename); machine__new_module()
561 char filename[PATH_MAX]; machine__fprintf_vmlinux_path() local
562 if (dso__build_id_filename(kdso, filename, sizeof(filename))) machine__fprintf_vmlinux_path()
563 printed += fprintf(fp, "[0] %s\n", filename); machine__fprintf_vmlinux_path()
642 char filename[PATH_MAX]; machine__get_running_kernel_start() local
647 machine__get_kallsyms_filename(machine, filename, PATH_MAX); machine__get_running_kernel_start()
649 if (symbol__restricted_filename(filename, "/proc/kallsyms")) machine__get_running_kernel_start()
653 addr = kallsyms__get_function_start(filename, name); machine__get_running_kernel_start()
795 int machine__load_kallsyms(struct machine *machine, const char *filename, machine__load_kallsyms() argument
799 int ret = dso__load_kallsyms(map->dso, filename, map, filter); machine__load_kallsyms()
1091 is_kernel_mmap = memcmp(event->mmap.filename, machine__process_kernel_mmap_event()
1094 if (event->mmap.filename[0] == '/' || machine__process_kernel_mmap_event()
1095 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { machine__process_kernel_mmap_event()
1097 event->mmap.filename); machine__process_kernel_mmap_event()
1103 const char *symbol_name = (event->mmap.filename + machine__process_kernel_mmap_event()
1197 event->mmap2.filename, type, thread); machine__process_mmap2_event()
1243 event->mmap.filename, machine__process_mmap_event()
462 machine__module_dso(struct machine *machine, struct kmod_path *m, const char *filename) machine__module_dso() argument
489 machine__new_module(struct machine *machine, u64 start, const char *filename) machine__new_module() argument
H A Dutil.h195 static inline int has_extension(const char *filename, const char *ext) has_extension() argument
197 size_t len = strlen(filename); has_extension()
200 return len > extlen && !memcmp(filename + len - extlen, ext, extlen); has_extension()
319 int filename__read_str(const char *filename, char **buf, size_t *sizep);
H A Dsymbol-elf.c428 int filename__read_build_id(const char *filename, void *bf, size_t size) filename__read_build_id() argument
436 fd = open(filename, O_RDONLY); filename__read_build_id()
442 pr_debug2("%s: cannot read %s ELF file.\n", __func__, filename); filename__read_build_id()
455 int sysfs__read_build_id(const char *filename, void *build_id, size_t size) sysfs__read_build_id() argument
462 fd = open(filename, O_RDONLY); sysfs__read_build_id()
500 int filename__read_debuglink(const char *filename, char *debuglink, filename__read_debuglink() argument
511 fd = open(filename, O_RDONLY); filename__read_debuglink()
517 pr_debug2("%s: cannot read %s ELF file.\n", __func__, filename); filename__read_debuglink()
1224 static int kcore__open(struct kcore *kcore, const char *filename) kcore__open() argument
1228 kcore->fd = open(filename, O_RDONLY); kcore__open()
1253 static int kcore__init(struct kcore *kcore, char *filename, int elfclass, kcore__init() argument
1259 kcore->fd = mkstemp(filename); kcore__init()
1261 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400); kcore__init()
1280 unlink(filename); kcore__init()
1532 char filename[PATH_MAX]; kcore_copy__unlink() local
1534 scnprintf(filename, PATH_MAX, "%s/%s", dir, name); kcore_copy__unlink()
1536 return unlink(filename); kcore_copy__unlink()
H A Dstrlist.h23 int strlist__load(struct strlist *slist, const char *filename);
H A Dsvghelper.h6 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
H A Devent.h18 char filename[PATH_MAX]; member in struct:mmap_event
33 char filename[PATH_MAX]; member in struct:mmap2_event
207 char filename[]; member in struct:build_id_event
H A Dheader.c453 char filename[MAXPATHLEN]; build_cpu_topo() local
460 sprintf(filename, CORE_SIB_FMT, cpu); build_cpu_topo()
461 fp = fopen(filename, "r"); build_cpu_topo()
487 sprintf(filename, THRD_SIB_FMT, cpu); build_cpu_topo()
488 fp = fopen(filename, "r"); build_cpu_topo()
1217 char *filename, __event_process_build_id()
1251 dso = __dsos__findnew(dsos, filename); __event_process_build_id()
1257 if (!is_kernel_module(filename)) __event_process_build_id()
1278 char filename[0]; perf_header__read_build_ids_abi_quirk() member in struct:__anon14831
1281 char filename[PATH_MAX]; perf_header__read_build_ids_abi_quirk() local
1294 if (readn(input, filename, len) != len) perf_header__read_build_ids_abi_quirk()
1309 __event_process_build_id(&bev, filename, session); perf_header__read_build_ids_abi_quirk()
1322 char filename[PATH_MAX]; perf_header__read_build_ids() local
1336 if (readn(input, filename, len) != len) perf_header__read_build_ids()
1351 if (memcmp(filename, "nel.kallsyms]", 13) == 0) { perf_header__read_build_ids()
1357 __event_process_build_id(&bev, filename, session); perf_header__read_build_ids()
2766 memcpy(&ev.build_id.filename, pos->long_name, pos->long_name_len); perf_event__synthesize_build_id()
2778 event->build_id.filename, perf_event__process_build_id()
1216 __event_process_build_id(struct build_id_event *bev, char *filename, struct perf_session *session) __event_process_build_id() argument
H A Dconfig.c415 static int perf_config_from_file(config_fn_t fn, const char *filename, void *data) perf_config_from_file() argument
418 FILE *f = fopen(filename, "r"); perf_config_from_file()
423 config_file_name = filename; perf_config_from_file()
H A Ddso.h217 char *root_dir, char *filename, size_t size);
220 bool decompress_to_file(const char *ext, const char *filename, int output_fd);
H A Dmachine.h185 const char *filename);
187 int machine__load_kallsyms(struct machine *machine, const char *filename,
/linux-4.1.27/scripts/
H A Dcheckincludes.pl57 foreach my $filename (keys %includedfiles) {
58 if ($includedfiles{$filename} > 1) {
59 print "$file: $filename is included more than once.\n";
71 foreach my $filename (keys %includedfiles) {
72 if ($1 eq $filename) {
73 if ($includedfiles{$filename} > 1) {
74 $includedfiles{$filename}--;
H A Dheaders_check.pl29 my $filename;
32 $filename = $file;
34 open(my $fh, '<', $filename)
35 or die "$filename: $!\n";
60 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n";
73 printf STDERR "$filename:$lineno: " .
82 printf STDERR "$filename:$lineno: leaks CONFIG_$1 to userspace where it is not valid\n";
89 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
99 printf STDERR "$filename:$lineno: " .
114 my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path);
142 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
158 printf STDERR "$filename:$lineno: " .
H A Dheaderdep.pl62 my $filename = shift;
65 my $stripped = $filename;
68 return $stripped if $stripped ne $filename;
71 return $filename;
76 my $filename = shift;
77 return $filename if -f $filename;
80 my $path = "$i/$filename";
H A Ddocproc.c146 char *filename; member in struct:symfile
161 /* Add a filename to the list */ add_new_file()
162 static struct symfile * add_new_file(char * filename) add_new_file() argument
164 symfilelist[symfilecnt++].filename = strdup(filename); add_new_file()
169 static struct symfile * filename_exist(char * filename) filename_exist() argument
173 if (strcmp(symfilelist[i].filename, filename) == 0) filename_exist()
191 * Find all symbols in filename that are exported with EXPORT_SYMBOL & printline()
195 static void find_export_symbols(char * filename) find_export_symbols() argument
200 if (filename_exist(filename) == NULL) { find_export_symbols()
205 strncat(real_filename, filename, find_export_symbols()
207 sym = add_new_file(filename); find_export_symbols()
245 * kernel-doc -docbook -nofunction function_name1 filename
251 static void docfunctions(char * filename, char * type) docfunctions() argument
276 vec[idx++] = filename; docfunctions()
278 printf("<!-- %s -->\n", filename); docfunctions()
283 static void intfunc(char * filename) { docfunctions(filename, NOFUNCTION); } extfunc() argument
284 static void extfunc(char * filename) { docfunctions(filename, FUNCTION); } extfunc() argument
291 static void singfunc(char * filename, char * line) singfunc() argument
318 vec[idx++] = filename; singfunc()
326 * kernel-doc -docbook -function "doc section" filename
328 static void docsect(char *filename, char *line) docsect() argument
350 vec[5] = filename; docsect()
355 static void find_all_symbols(char *filename) find_all_symbols() argument
367 vec[2] = filename; find_all_symbols()
467 /* filename */ parse_file()
476 /* filename */ parse_file()
H A Dpnmtologo.c25 static const char *filename; variable
92 die("%s: end of file\n", filename); get_number()
98 die("%s: end of file\n", filename); get_number()
114 die("%s: end of file\n", filename); get_number()
133 fp = fopen(filename, "r"); read_image()
135 die("Cannot open file %s: %s\n", filename, strerror(errno)); read_image()
140 die("%s is not a PNM file\n", filename); read_image()
154 "Use pnmnoraw(1) to convert it to ASCII PNM\n", filename); read_image()
157 die("%s is not a PNM file\n", filename); read_image()
242 fprintf(out, " * It was automatically generated from %s\n", filename); write_header()
433 "Usage: %s [options] <filename>\n" usage()
493 filename = argv[optind]; main()
H A Dmarkup_oops.pl36 my $filename = $vmlinux_name;
196 $modulefile = `modinfo -F filename $module`;
199 $filename = $modulefile;
200 if ($filename eq "") {
205 open(FILE, $cross_compile."objdump -dS $filename |") || die "Cannot start objdump";
238 open(FILE, $cross_compile."objdump -dS --adjust-vma=$vmaoffset --start-address=$decodestart --stop-address=$decodestop $filename |") || die "Cannot start objdump";
365 -m, --module MODULE_DIRNAME Specify the module filename.
H A Dasn1_compiler.c203 static const char *filename; variable
515 filename, lineno, *p); tokenise()
561 filename = argv[1]; main()
565 fd = open(filename, O_RDONLY); main()
567 perror(filename); main()
572 perror(filename); main()
582 perror(filename); main()
587 perror(filename); main()
592 fprintf(stderr, "%s: Short read\n", filename); main()
728 fprintf(stderr, "%s: No defined types\n", filename); build_type_list()
797 filename, cursor->line, parse()
866 filename, cursor->line, parse_type()
875 filename, cursor->line, parse_type()
890 filename, cursor->line, parse_type()
992 filename, cursor->line, parse_type()
1043 filename, cursor->line, parse_type()
1062 filename, cursor->line, parse_type()
1105 filename, cursor->line, parse_type()
1117 filename, cursor->line, parse_type()
1122 fprintf(stderr, "%s: Unexpectedly hit EOF\n", filename); parse_type()
1137 filename, cursor->line, parse_compound()
1147 filename, cursor->line); parse_compound()
1180 filename, cursor->line, parse_compound()
1190 fprintf(stderr, "%s: Unexpectedly hit EOF\n", filename); parse_compound()
H A Drecordmcount.pl385 my $filename;
391 $filename = $2;
394 $filename = $inputfile;
397 if ($filename =~ m,^(.*)(\.\S),) {
401 $prefix = $filename;
568 my $globalobj = $dirname . "/.tmp_gl_" . $filename;
569 my $globalmix = $dirname . "/.tmp_mx_" . $filename;
591 my $mix = $dirname . "/.tmp_mx_" . $filename;
H A Ddecode_stacktrace.sh47 # Pass it to addr2line to get filename and line number
H A Dshow_delta16 print ("""usage: show_delta [<options>] <filename>
/linux-4.1.27/arch/xtensa/platforms/iss/
H A Dsimdisk.c29 const char *filename; member in struct:simdisk
45 static const char *filename[MAX_SIMDISK_COUNT] = { variable
57 if (n_files < ARRAY_SIZE(filename)) simdisk_param_set_filename()
58 filename[n_files++] = val; simdisk_param_set_filename()
67 module_param_cb(filename, &simdisk_param_ops_filename, &n_files, 0);
68 MODULE_PARM_DESC(filename, "Backing storage filename.");
159 static int simdisk_attach(struct simdisk *dev, const char *filename) simdisk_attach() argument
163 filename = kstrdup(filename, GFP_KERNEL); simdisk_attach()
164 if (filename == NULL) simdisk_attach()
173 dev->fd = simc_open(filename, O_RDWR, 0); simdisk_attach()
175 pr_err("SIMDISK: Can't open %s: %d\n", filename, errno); simdisk_attach()
181 dev->filename = filename; simdisk_attach()
182 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); simdisk_attach()
185 kfree(filename); simdisk_attach()
202 dev->filename, errno); simdisk_detach()
206 dev->gd->disk_name, dev->filename); simdisk_detach()
208 kfree(dev->filename); simdisk_detach()
209 dev->filename = NULL; simdisk_detach()
220 const char *s = dev->filename; proc_read_simdisk()
277 dev->filename = NULL; simdisk_setup()
341 if (filename[i] != NULL && filename[i][0] != 0 && simdisk_init()
343 simdisk_attach(sddev + i, filename[i]); simdisk_init()
/linux-4.1.27/include/uapi/linux/
H A Dbcm933xx_hcs.h18 char filename[64]; member in struct:bcm_hcs
H A Dauxvec.h33 #define AT_EXECFN 31 /* filename of program */
H A Delfcore.h89 char pr_fname[16]; /* filename of executable */
H A Dinotify.h17 * When you are watching a directory, you will receive the filename for events
/linux-4.1.27/tools/lib/api/fs/
H A Dfs.h15 int filename__read_int(const char *filename, int *value);
H A Ddebugfs.h20 int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename);
H A Ddebugfs.c78 int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename) debugfs__strerror_open() argument
88 debugfs_mountpoint, filename); debugfs__strerror_open()
101 debugfs_mountpoint, filename, debugfs_mountpoint); debugfs__strerror_open()
H A Dfs.c171 int filename__read_int(const char *filename, int *value) filename__read_int() argument
174 int fd = open(filename, O_RDONLY), err = -1; filename__read_int()
/linux-4.1.27/tools/perf/
H A Dbuiltin-buildid-cache.c128 static int build_id_cache__add_kcore(const char *filename, bool force) build_id_cache__add_kcore() argument
134 strlcpy(from_dir, filename, sizeof(from_dir)); build_id_cache__add_kcore()
185 static int build_id_cache__add_file(const char *filename) build_id_cache__add_file() argument
191 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { build_id_cache__add_file()
192 pr_debug("Couldn't read a build-id in %s\n", filename); build_id_cache__add_file()
197 err = build_id_cache__add_s(sbuild_id, filename, build_id_cache__add_file()
199 pr_debug("Adding %s %s: %s\n", sbuild_id, filename, build_id_cache__add_file()
204 static int build_id_cache__remove_file(const char *filename) build_id_cache__remove_file() argument
211 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { build_id_cache__remove_file()
212 pr_debug("Couldn't read a build-id in %s\n", filename); build_id_cache__remove_file()
218 pr_debug("Removing %s %s: %s\n", sbuild_id, filename, build_id_cache__remove_file()
251 char filename[PATH_MAX]; dso__missing_buildid_cache() local
254 if (dso__build_id_filename(dso, filename, sizeof(filename)) && dso__missing_buildid_cache()
255 filename__read_build_id(filename, build_id, dso__missing_buildid_cache()
261 filename); dso__missing_buildid_cache()
264 filename); dso__missing_buildid_cache()
276 static int build_id_cache__update_file(const char *filename) build_id_cache__update_file() argument
283 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { build_id_cache__update_file()
284 pr_debug("Couldn't read a build-id in %s\n", filename); build_id_cache__update_file()
293 err = build_id_cache__add_s(sbuild_id, filename, false, false); build_id_cache__update_file()
295 pr_debug("Updating %s %s: %s\n", sbuild_id, filename, build_id_cache__update_file()
H A Dbuiltin-help.c127 const char *filename = "kfmclient"; exec_man_konqueror() local
142 filename = file; exec_man_konqueror()
146 execlp(path, filename, "newTab", man_page.buf, NULL); exec_man_konqueror()
/linux-4.1.27/security/tomoyo/
H A Dutil.c260 char *filename; tomoyo_parse_name_union() local
266 filename = tomoyo_read_token(param); tomoyo_parse_name_union()
267 if (!tomoyo_correct_word(filename)) tomoyo_parse_name_union()
269 ptr->filename = tomoyo_get_name(filename); tomoyo_parse_name_union()
270 return ptr->filename != NULL; tomoyo_parse_name_union()
528 * @filename: The pathname to check.
531 * Returns true if @filename follows the naming rules, false otherwise.
533 bool tomoyo_correct_path(const char *filename) tomoyo_correct_path() argument
535 return *filename == '/' && tomoyo_correct_word(filename); tomoyo_correct_path()
615 * @filename: The string to evaluate.
617 * Returns the initial length without a pattern in @filename.
619 static int tomoyo_const_part_length(const char *filename) tomoyo_const_part_length() argument
624 if (!filename) tomoyo_const_part_length()
626 while ((c = *filename++) != '\0') { tomoyo_const_part_length()
631 c = *filename++; tomoyo_const_part_length()
640 c = *filename++; tomoyo_const_part_length()
643 c = *filename++; tomoyo_const_part_length()
675 * @filename: The start of string to check.
680 * Returns true if @filename matches @pattern, false otherwise.
682 static bool tomoyo_file_matches_pattern2(const char *filename, tomoyo_file_matches_pattern2() argument
687 while (filename < filename_end && pattern < pattern_end) { tomoyo_file_matches_pattern2()
690 if (*filename++ != *pattern++) tomoyo_file_matches_pattern2()
694 c = *filename; tomoyo_file_matches_pattern2()
703 if (filename[1] == '\\') tomoyo_file_matches_pattern2()
704 filename++; tomoyo_file_matches_pattern2()
705 else if (tomoyo_byte_range(filename + 1)) tomoyo_file_matches_pattern2()
706 filename += 3; tomoyo_file_matches_pattern2()
714 if (*++filename != '\\') tomoyo_file_matches_pattern2()
733 if (c == '\\' && tomoyo_byte_range(filename + 1) tomoyo_file_matches_pattern2()
734 && strncmp(filename + 1, pattern, 3) == 0) { tomoyo_file_matches_pattern2()
735 filename += 3; tomoyo_file_matches_pattern2()
742 for (i = 0; i <= filename_end - filename; i++) { tomoyo_file_matches_pattern2()
744 filename + i, filename_end, tomoyo_file_matches_pattern2()
747 c = filename[i]; tomoyo_file_matches_pattern2()
752 if (filename[i + 1] == '\\') tomoyo_file_matches_pattern2()
754 else if (tomoyo_byte_range(filename + i + 1)) tomoyo_file_matches_pattern2()
764 while (isdigit(filename[j])) tomoyo_file_matches_pattern2()
767 while (isxdigit(filename[j])) tomoyo_file_matches_pattern2()
770 while (tomoyo_alphabet_char(filename[j])) tomoyo_file_matches_pattern2()
775 filename + i, filename_end, tomoyo_file_matches_pattern2()
781 filename++; tomoyo_file_matches_pattern2()
787 return filename == filename_end && pattern == pattern_end; tomoyo_file_matches_pattern2()
793 * @filename: The start of string to check.
798 * Returns true if @filename matches @pattern, false otherwise.
800 static bool tomoyo_file_matches_pattern(const char *filename, tomoyo_file_matches_pattern() argument
813 result = tomoyo_file_matches_pattern2(filename, tomoyo_file_matches_pattern()
824 result = tomoyo_file_matches_pattern2(filename, filename_end, tomoyo_file_matches_pattern()
895 * tomoyo_path_matches_pattern - Check whether the given filename matches the given pattern.
897 * @filename: The filename to check.
920 bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, tomoyo_path_matches_pattern() argument
923 const char *f = filename->name; tomoyo_path_matches_pattern()
929 return !tomoyo_pathcmp(filename, pattern); tomoyo_path_matches_pattern()
931 if (filename->is_dir != pattern->is_dir) tomoyo_path_matches_pattern()
H A Dload_policy.c73 * @filename: The program about to start.
75 * This function checks whether @filename is /sbin/init , and if so
83 void tomoyo_load_policy(const char *filename) tomoyo_load_policy() argument
93 if (strcmp(filename, tomoyo_trigger)) tomoyo_load_policy()
H A Dfile.c69 tomoyo_put_name(ptr->filename); tomoyo_put_name_union()
86 if (tomoyo_path_matches_pattern(name, ptr->filename)) tomoyo_compare_name_union()
87 return ptr->filename; tomoyo_compare_name_union()
169 r->param.path.filename->name); tomoyo_audit_path_log()
199 r->param.mkdev.filename->name, tomoyo_audit_mkdev_log()
235 r->param.path_number.filename->name, buffer); tomoyo_audit_path_number_log()
257 tomoyo_compare_name_union(r->param.path.filename, tomoyo_check_path_acl()
280 tomoyo_compare_name_union(r->param.path_number.filename, tomoyo_check_path_number_acl()
323 tomoyo_compare_name_union(r->param.mkdev.filename, tomoyo_check_mkdev_acl()
552 * @filename: Filename to check.
559 const struct tomoyo_path_info *filename) tomoyo_path_permission()
568 r->param.path.filename = filename; tomoyo_path_permission()
581 * @filename: Filename to check.
588 const struct tomoyo_path_info *filename) tomoyo_execute_permission()
598 r->param.path.filename = filename; tomoyo_execute_permission()
712 r.param.path_number.filename = &buf; tomoyo_path_number_perm()
861 r.param.mkdev.filename = &buf; tomoyo_mkdev_perm()
558 tomoyo_path_permission(struct tomoyo_request_info *r, u8 operation, const struct tomoyo_path_info *filename) tomoyo_path_permission() argument
587 tomoyo_execute_permission(struct tomoyo_request_info *r, const struct tomoyo_path_info *filename) tomoyo_execute_permission() argument
H A Dcommon.h431 const struct tomoyo_path_info *filename; member in struct:tomoyo_request_info::__anon14318::__anon14319
444 const struct tomoyo_path_info *filename; member in struct:tomoyo_request_info::__anon14318::__anon14321
452 const struct tomoyo_path_info *filename; member in struct:tomoyo_request_info::__anon14318::__anon14322
516 /* Either @filename or @group is NULL. */
517 const struct tomoyo_path_info *filename; member in struct:tomoyo_name_union
923 bool tomoyo_correct_path(const char *filename);
939 bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename,
964 const struct tomoyo_path_info *filename);
1044 void tomoyo_load_policy(const char *filename);
1232 return a->filename == b->filename && a->group == b->group; tomoyo_same_name_union()
H A Dcondition.c271 char *filename = param->data; tomoyo_parse_name_union_quoted() local
272 if (*filename == '@') tomoyo_parse_name_union_quoted()
274 ptr->filename = tomoyo_get_dqword(filename); tomoyo_parse_name_union_quoted()
275 return ptr->filename != NULL; tomoyo_parse_name_union_quoted()
/linux-4.1.27/tools/power/acpi/tools/acpidump/
H A Dapfiles.c72 * PARAMETERS: pathname - Output filename
116 * filename from the table signature.
122 char filename[ACPI_NAME_SIZE + 16]; ap_write_to_binary_file() local
132 /* Construct lower-case filename from the table local signature */ ap_write_to_binary_file()
135 ACPI_MOVE_NAME(filename, ACPI_RSDP_NAME); ap_write_to_binary_file()
137 ACPI_MOVE_NAME(filename, table->signature); ap_write_to_binary_file()
139 filename[0] = (char)ACPI_TOLOWER(filename[0]); ap_write_to_binary_file()
140 filename[1] = (char)ACPI_TOLOWER(filename[1]); ap_write_to_binary_file()
141 filename[2] = (char)ACPI_TOLOWER(filename[2]); ap_write_to_binary_file()
142 filename[3] = (char)ACPI_TOLOWER(filename[3]); ap_write_to_binary_file()
143 filename[ACPI_NAME_SIZE] = 0; ap_write_to_binary_file()
150 ACPI_STRCAT(filename, instance_str); ap_write_to_binary_file()
153 ACPI_STRCAT(filename, ACPI_TABLE_FILE_SUFFIX); ap_write_to_binary_file()
158 table->signature, filename, table->length, table->length); ap_write_to_binary_file()
163 file = acpi_os_open_file(filename, ap_write_to_binary_file()
166 acpi_log_error("Could not open output file: %s\n", filename); ap_write_to_binary_file()
173 filename); ap_write_to_binary_file()
/linux-4.1.27/arch/um/kernel/
H A Dinitrd.c15 static int load_initrd(char *filename, void *buf, int size);
65 static int load_initrd(char *filename, void *buf, int size) load_initrd() argument
69 fd = os_open_file(filename, of_read(OPENFLAGS()), 0); load_initrd()
71 printk(KERN_ERR "Opening '%s' failed - err = %d\n", filename, load_initrd()
79 filename, -n); load_initrd()
/linux-4.1.27/security/integrity/ima/
H A Dima_template_lib.h30 const unsigned char *filename,
34 const unsigned char *filename,
38 struct file *file, const unsigned char *filename,
42 const unsigned char *filename,
46 const unsigned char *filename,
H A Dima_api.c41 struct file *file, const unsigned char *filename, ima_alloc_init_template()
58 result = field->field_init(iint, file, filename, ima_alloc_init_template()
93 const unsigned char *filename) ima_store_template()
120 result = ima_add_template_entry(entry, violation, op, inode, filename); ima_store_template()
131 void ima_add_violation(struct file *file, const unsigned char *filename, ima_add_violation() argument
142 result = ima_alloc_init_template(NULL, file, filename, ima_add_violation()
148 result = ima_store_template(entry, violation, inode, filename); ima_add_violation()
152 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, ima_add_violation()
198 const char *filename = file->f_path.dentry->d_name.name; ima_collect_measurement() local
240 filename, "collect_data", audit_cause, ima_collect_measurement()
261 struct file *file, const unsigned char *filename, ima_store_measurement()
275 result = ima_alloc_init_template(iint, file, filename, ima_store_measurement()
278 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, ima_store_measurement()
283 result = ima_store_template(entry, violation, inode, filename); ima_store_measurement()
291 const unsigned char *filename) ima_audit_measurement()
312 audit_log_untrustedstring(ab, filename); ima_audit_measurement()
40 ima_alloc_init_template(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, struct ima_template_entry **entry) ima_alloc_init_template() argument
91 ima_store_template(struct ima_template_entry *entry, int violation, struct inode *inode, const unsigned char *filename) ima_store_template() argument
260 ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len) ima_store_measurement() argument
290 ima_audit_measurement(struct integrity_iint_cache *iint, const unsigned char *filename) ima_audit_measurement() argument
H A Dima_template_lib.c200 const unsigned char *filename, ima_eventdigest_init()
233 filename, "collect_data", ima_eventdigest_init()
248 struct file *file, const unsigned char *filename, ima_eventdigest_ng_init()
270 const unsigned char *filename, ima_eventname_init_common()
277 BUG_ON(filename == NULL && file == NULL); ima_eventname_init_common()
279 if (filename) { ima_eventname_init_common()
280 cur_filename = filename; ima_eventname_init_common()
281 cur_filename_len = strlen(filename); ima_eventname_init_common()
292 * Truncate filename if the latter is too long and ima_eventname_init_common()
305 const unsigned char *filename, ima_eventname_init()
309 return ima_eventname_init_common(iint, file, filename, ima_eventname_init()
317 const unsigned char *filename, ima_eventname_ng_init()
321 return ima_eventname_init_common(iint, file, filename, ima_eventname_ng_init()
329 const unsigned char *filename, ima_eventsig_init()
199 ima_eventdigest_init(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, struct ima_field_data *field_data) ima_eventdigest_init() argument
247 ima_eventdigest_ng_init(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, struct ima_field_data *field_data) ima_eventdigest_ng_init() argument
268 ima_eventname_init_common(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct ima_field_data *field_data, bool size_limit) ima_eventname_init_common() argument
304 ima_eventname_init(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, struct ima_field_data *field_data) ima_eventname_init() argument
316 ima_eventname_ng_init(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, struct ima_field_data *field_data) ima_eventname_ng_init() argument
328 ima_eventsig_init(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, struct ima_field_data *field_data) ima_eventsig_init() argument
H A Dima.h65 const unsigned char *filename,
99 const unsigned char *filename);
105 void ima_add_violation(struct file *file, const unsigned char *filename,
138 const unsigned char *filename,
142 const unsigned char *filename);
144 struct file *file, const unsigned char *filename,
148 struct inode *inode, const unsigned char *filename);
172 struct file *file, const unsigned char *filename,
188 const unsigned char *filename, ima_appraise_measurement()
185 ima_appraise_measurement(int func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, int opened) ima_appraise_measurement() argument
H A Dima_queue.c110 const unsigned char *filename) ima_add_template_entry()
147 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, ima_add_template_entry()
108 ima_add_template_entry(struct ima_template_entry *entry, int violation, const char *op, struct inode *inode, const unsigned char *filename) ima_add_template_entry() argument
H A Dima_appraise.c186 struct file *file, const unsigned char *filename, ima_appraise_measurement()
278 integrity_audit_msg(AUDIT_INTEGRITY_DATA, inode, filename, ima_appraise_measurement()
185 ima_appraise_measurement(int func, struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, int opened) ima_appraise_measurement() argument
/linux-4.1.27/tools/lib/symbol/
H A Dkallsyms.c5 int kallsyms__parse(const char *filename, void *arg, kallsyms__parse() argument
12 FILE *file = fopen(filename, "r"); kallsyms__parse()
H A Dkallsyms.h20 int kallsyms__parse(const char *filename, void *arg,
/linux-4.1.27/tools/power/cpupower/bench/
H A Dparse.c68 char *filename; prepare_output() local
83 filename = malloc(sizeof(char) * len); prepare_output()
87 filename = realloc(filename, sizeof(char) * len); prepare_output()
89 if (filename == NULL) { prepare_output()
94 snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", prepare_output()
97 snprintf(filename, len - 1, "%s/benchmark_%li.log", prepare_output()
101 dprintf("logilename: %s\n", filename); prepare_output()
103 output = fopen(filename, "w+"); prepare_output()
109 fprintf(stdout, "Logfile: %s\n", filename); prepare_output()
111 free(filename); prepare_output()
/linux-4.1.27/scripts/dtc/
H A Dutil.c201 int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len) utilfdt_read_err_len() argument
209 if (strcmp(filename, "-") != 0) { utilfdt_read_err_len()
210 fd = open(filename, O_RDONLY); utilfdt_read_err_len()
246 int utilfdt_read_err(const char *filename, char **buffp) utilfdt_read_err() argument
249 return utilfdt_read_err_len(filename, buffp, &len); utilfdt_read_err()
252 char *utilfdt_read_len(const char *filename, off_t *len) utilfdt_read_len() argument
255 int ret = utilfdt_read_err_len(filename, &buff, len); utilfdt_read_len()
258 fprintf(stderr, "Couldn't open blob from '%s': %s\n", filename, utilfdt_read_len()
266 char *utilfdt_read(const char *filename) utilfdt_read() argument
269 return utilfdt_read_len(filename, &len); utilfdt_read()
272 int utilfdt_write_err(const char *filename, const void *blob) utilfdt_write_err() argument
280 if (strcmp(filename, "-") != 0) { utilfdt_write_err()
281 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); utilfdt_write_err()
304 int utilfdt_write(const char *filename, const void *blob) utilfdt_write() argument
306 int ret = utilfdt_write_err(filename, blob); utilfdt_write()
309 fprintf(stderr, "Couldn't write blob to '%s': %s\n", filename, utilfdt_write()
H A Dutil.h85 * @param filename The filename to read, or - for stdin
88 char *utilfdt_read(const char *filename);
95 char *utilfdt_read_len(const char *filename, off_t *len);
102 * @param filename The filename to read, or - for stdin
106 int utilfdt_read_err(const char *filename, char **buffp);
113 int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len);
119 * @param filename The filename to write, or - for stdout
123 int utilfdt_write(const char *filename, const void *blob);
130 * @param filename The filename to write, or - for stdout
134 int utilfdt_write_err(const char *filename, const void *blob);
H A Dfdtput.c235 static int do_fdtput(struct display_info *disp, const char *filename, do_fdtput() argument
242 blob = utilfdt_read(filename); do_fdtput()
269 ret = utilfdt_write(filename, blob); do_fdtput()
303 char *filename = NULL; main() local
345 filename = argv[optind++]; main()
346 if (!filename) main()
347 usage("Missing filename"); main()
359 if (do_fdtput(&disp, filename, argv, argc)) main()
H A Dfdtget.c242 * Run the main fdtget operation, given a filename and valid arguments
245 * @param filename Filename of blob file
250 static int do_fdtget(struct display_info *disp, const char *filename, do_fdtget() argument
257 blob = utilfdt_read(filename); do_fdtget()
307 char *filename = NULL; main() local
348 filename = argv[optind++]; main()
349 if (!filename) main()
350 usage("Missing filename"); main()
363 if (do_fdtget(&disp, filename, argv, argc, args_per_step)) main()
H A Dsrcpos.c63 * If the filename is an absolute path, then dirname is ignored. If it is a
69 * @return allocated filename on success (caller must free), NULL on failure
92 * If it is a relative filename, we search the full search path for it.
96 * @return pointer to allocated filename, which caller must free
H A Dfdtdump.c151 fprintf(stderr, "supply input filename\n"); main()
/linux-4.1.27/fs/gfs2/
H A Ddir.h30 const struct qstr *filename,
32 extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
34 extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
45 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
51 const struct qstr *filename,
H A Dsuper.h35 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
/linux-4.1.27/fs/
H A Dutimes.c27 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) SYSCALL_DEFINE2()
38 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); SYSCALL_DEFINE2()
122 * do_utimes - change times on filename or file descriptor
124 * @filename: path name or NULL
128 * If filename is NULL and dfd refers to an open file, then operate on
129 * the file. Otherwise look up filename, possibly using dfd as a
136 long do_utimes(int dfd, const char __user *filename, struct timespec *times, do_utimes() argument
149 if (filename == NULL && dfd != AT_FDCWD) { do_utimes()
169 error = user_path_at(dfd, filename, lookup_flags, &path); do_utimes()
185 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, SYSCALL_DEFINE4()
200 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags); SYSCALL_DEFINE4()
203 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, SYSCALL_DEFINE3()
228 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); SYSCALL_DEFINE3()
231 SYSCALL_DEFINE2(utimes, char __user *, filename, SYSCALL_DEFINE2()
234 return sys_futimesat(AT_FDCWD, filename, utimes); SYSCALL_DEFINE2()
H A Dstat.c90 int vfs_fstatat(int dfd, const char __user *filename, struct kstat *stat, vfs_fstatat() argument
106 error = user_path_at(dfd, filename, lookup_flags, &path); vfs_fstatat()
177 SYSCALL_DEFINE2(stat, const char __user *, filename, SYSCALL_DEFINE2()
183 error = vfs_stat(filename, &stat); SYSCALL_DEFINE2()
190 SYSCALL_DEFINE2(lstat, const char __user *, filename, SYSCALL_DEFINE2()
196 error = vfs_lstat(filename, &stat); SYSCALL_DEFINE2()
266 SYSCALL_DEFINE2(newstat, const char __user *, filename, SYSCALL_DEFINE2()
270 int error = vfs_stat(filename, &stat); SYSCALL_DEFINE2()
277 SYSCALL_DEFINE2(newlstat, const char __user *, filename, SYSCALL_DEFINE2()
283 error = vfs_lstat(filename, &stat); SYSCALL_DEFINE2()
291 SYSCALL_DEFINE4(newfstatat, int, dfd, const char __user *, filename, SYSCALL_DEFINE4()
297 error = vfs_fstatat(dfd, filename, &stat, flag); SYSCALL_DEFINE4()
400 SYSCALL_DEFINE2(stat64, const char __user *, filename, SYSCALL_DEFINE2()
404 int error = vfs_stat(filename, &stat); SYSCALL_DEFINE2()
412 SYSCALL_DEFINE2(lstat64, const char __user *, filename, SYSCALL_DEFINE2()
416 int error = vfs_lstat(filename, &stat); SYSCALL_DEFINE2()
435 SYSCALL_DEFINE4(fstatat64, int, dfd, const char __user *, filename, SYSCALL_DEFINE4()
441 error = vfs_fstatat(dfd, filename, &stat, flag); SYSCALL_DEFINE4()
H A Dexec.c112 struct filename *tmp = getname(library); SYSCALL_DEFINE1()
754 static struct file *do_open_execat(int fd, struct filename *name, int flags) do_open_execat()
800 struct filename *filename = getname_kernel(name); open_exec() local
801 struct file *f = ERR_CAST(filename); open_exec()
803 if (!IS_ERR(filename)) { open_exec()
804 f = do_open_execat(AT_FDCWD, filename, 0); open_exec()
805 putname(filename); open_exec()
1138 __set_task_comm(current, kbasename(bprm->filename), true); setup_new_exec()
1195 if (bprm->interp != bprm->filename) free_bprm()
1203 if (bprm->interp != bprm->filename) bprm_change_interp()
1478 static int do_execveat_common(int fd, struct filename *filename, do_execveat_common() argument
1489 if (IS_ERR(filename)) do_execveat_common()
1490 return PTR_ERR(filename); do_execveat_common()
1524 file = do_open_execat(fd, filename, flags); do_execveat_common()
1532 if (fd == AT_FDCWD || filename->name[0] == '/') { do_execveat_common()
1533 bprm->filename = filename->name; do_execveat_common()
1535 if (filename->name[0] == '\0') do_execveat_common()
1539 fd, filename->name); do_execveat_common()
1551 bprm->filename = pathbuf; do_execveat_common()
1553 bprm->interp = bprm->filename; do_execveat_common()
1571 retval = copy_strings_kernel(1, &bprm->filename, bprm); do_execveat_common()
1595 putname(filename); do_execveat_common()
1618 putname(filename); do_execveat_common()
1622 int do_execve(struct filename *filename, do_execve() argument
1628 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); do_execve()
1631 int do_execveat(int fd, struct filename *filename, do_execveat() argument
1639 return do_execveat_common(fd, filename, argv, envp, flags); do_execveat()
1643 static int compat_do_execve(struct filename *filename, compat_do_execve() argument
1655 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); compat_do_execve()
1658 static int compat_do_execveat(int fd, struct filename *filename, compat_do_execveat() argument
1671 return do_execveat_common(fd, filename, argv, envp, flags); compat_do_execveat()
1705 const char __user *, filename, SYSCALL_DEFINE3()
1709 return do_execve(getname(filename), argv, envp); SYSCALL_DEFINE3()
1713 int, fd, const char __user *, filename, SYSCALL_DEFINE5()
1721 getname_flags(filename, lookup_flags, NULL), SYSCALL_DEFINE5()
1726 COMPAT_SYSCALL_DEFINE3(execve, const char __user *, filename, COMPAT_SYSCALL_DEFINE3()
1730 return compat_do_execve(getname(filename), argv, envp); COMPAT_SYSCALL_DEFINE3()
1734 const char __user *, filename, COMPAT_SYSCALL_DEFINE5()
1742 getname_flags(filename, lookup_flags, NULL), COMPAT_SYSCALL_DEFINE5()
H A Dopen.c335 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) SYSCALL_DEFINE3()
366 res = user_path_at(dfd, filename, lookup_flags, &path); SYSCALL_DEFINE3()
411 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) SYSCALL_DEFINE2()
413 return sys_faccessat(AT_FDCWD, filename, mode); SYSCALL_DEFINE2()
416 SYSCALL_DEFINE1(chdir, const char __user *, filename) SYSCALL_DEFINE1()
422 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); SYSCALL_DEFINE1()
467 SYSCALL_DEFINE1(chroot, const char __user *, filename) SYSCALL_DEFINE1()
473 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); SYSCALL_DEFINE1()
542 SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode) SYSCALL_DEFINE3()
548 error = user_path_at(dfd, filename, lookup_flags, &path); SYSCALL_DEFINE3()
560 SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode) SYSCALL_DEFINE2()
562 return sys_fchmodat(AT_FDCWD, filename, mode); SYSCALL_DEFINE2()
607 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, SYSCALL_DEFINE5()
621 error = user_path_at(dfd, filename, lookup_flags, &path); SYSCALL_DEFINE5()
639 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) SYSCALL_DEFINE3()
641 return sys_fchownat(AT_FDCWD, filename, user, group, 0); SYSCALL_DEFINE3()
644 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) SYSCALL_DEFINE3()
646 return sys_fchownat(AT_FDCWD, filename, user, group, SYSCALL_DEFINE3()
950 * @name: struct filename containing path to open
958 struct file *file_open_name(struct filename *name, int flags, umode_t mode) file_open_name()
968 * @filename: path to open
976 struct file *filp_open(const char *filename, int flags, umode_t mode) filp_open() argument
978 struct filename *name = getname_kernel(filename); filp_open()
990 const char *filename, int flags, umode_t mode) file_open_root()
996 return do_file_open_root(dentry, mnt, filename, &op); file_open_root()
1000 long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) do_sys_open() argument
1004 struct filename *tmp; do_sys_open()
1009 tmp = getname(filename); do_sys_open()
1028 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) SYSCALL_DEFINE3()
1033 return do_sys_open(AT_FDCWD, filename, flags, mode); SYSCALL_DEFINE3()
1036 SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, SYSCALL_DEFINE4()
1042 return do_sys_open(dfd, filename, flags, mode); SYSCALL_DEFINE4()
989 file_open_root(struct dentry *dentry, struct vfsmount *mnt, const char *filename, int flags, umode_t mode) file_open_root() argument
H A Dbinfmt_em86.c63 * (3) filename of emulated file (replace argv[0]) load_em86()
69 retval = copy_strings_kernel(1, &bprm->filename, bprm); load_em86()
H A Dnamei.c122 #define EMBEDDED_NAME_MAX (PATH_MAX - offsetof(struct filename, iname))
124 struct filename * getname_flags()
125 getname_flags(const char __user *filename, int flags, int *empty) getname_flags() argument
127 struct filename *result; getname_flags()
131 result = audit_reusename(filename); getname_flags()
140 * First, try to embed the struct filename inside the names_cache getname_flags()
146 len = strncpy_from_user(kname, filename, EMBEDDED_NAME_MAX); getname_flags()
154 * separate struct filename so we can dedicate the entire getname_flags()
159 const size_t size = offsetof(struct filename, iname[1]); getname_flags()
173 len = strncpy_from_user(kname, filename, PATH_MAX); getname_flags()
197 result->uptr = filename; getname_flags()
203 struct filename * getname()
204 getname(const char __user * filename) getname() argument
206 return getname_flags(filename, 0, NULL); getname()
209 struct filename * getname_kernel()
210 getname_kernel(const char * filename) getname_kernel() argument
212 struct filename *result; getname_kernel()
213 int len = strlen(filename) + 1; getname_kernel()
222 struct filename *tmp; getname_kernel()
235 memcpy((char *)result->name, filename, len); getname_kernel()
244 void putname(struct filename *name) putname()
1891 static int path_init(int dfd, const struct filename *name, unsigned int flags, path_init()
2013 static int path_lookupat(int dfd, const struct filename *name, path_lookupat()
2065 static int filename_lookup(int dfd, struct filename *name, filename_lookup()
2082 struct filename *filename = getname_kernel(name); kern_path_locked() local
2087 if (IS_ERR(filename)) kern_path_locked()
2088 return ERR_CAST(filename); kern_path_locked()
2090 err = filename_lookup(AT_FDCWD, filename, LOOKUP_PARENT, &nd); kern_path_locked()
2109 putname(filename); kern_path_locked()
2116 struct filename *filename = getname_kernel(name); kern_path() local
2117 int res = PTR_ERR(filename); kern_path()
2119 if (!IS_ERR(filename)) { kern_path()
2120 res = filename_lookup(AT_FDCWD, filename, flags, &nd); kern_path()
2121 putname(filename); kern_path()
2141 struct filename *filename = getname_kernel(name); vfs_path_lookup() local
2142 int err = PTR_ERR(filename); vfs_path_lookup()
2147 if (!IS_ERR(filename)) { vfs_path_lookup()
2151 err = filename_lookup(AT_FDCWD, filename, vfs_path_lookup()
2155 putname(filename); vfs_path_lookup()
2226 struct filename *tmp = getname_flags(name, flags, empty); user_path_at_empty()
2249 * to struct filename, but the nd->last pointer points into the name string
2253 static struct filename * user_path_parent()
2257 struct filename *s = getname(path); user_path_parent()
2379 path_mountpoint(int dfd, const struct filename *name, struct path *path, path_mountpoint()
2409 filename_mountpoint(int dfd, struct filename *name, struct path *path, filename_mountpoint()
2944 int *opened, struct filename *name) do_last()
3180 static int do_tmpfile(int dfd, struct filename *pathname, do_tmpfile()
3242 static struct file *path_openat(int dfd, struct filename *pathname, path_openat()
3305 struct file *do_filp_open(int dfd, struct filename *pathname, do_filp_open()
3325 struct filename *filename; do_file_open_root() local
3334 filename = getname_kernel(name); do_file_open_root()
3335 if (unlikely(IS_ERR(filename))) do_file_open_root()
3336 return ERR_CAST(filename); do_file_open_root()
3338 file = path_openat(-1, filename, &nd, op, flags | LOOKUP_RCU); do_file_open_root()
3340 file = path_openat(-1, filename, &nd, op, flags); do_file_open_root()
3342 file = path_openat(-1, filename, &nd, op, flags | LOOKUP_REVAL); do_file_open_root()
3343 putname(filename); do_file_open_root()
3347 static struct dentry *filename_create(int dfd, struct filename *name, filename_create()
3420 struct filename *filename = getname_kernel(pathname); kern_path_create() local
3423 if (IS_ERR(filename)) kern_path_create()
3424 return ERR_CAST(filename); kern_path_create()
3425 res = filename_create(dfd, filename, path, lookup_flags); kern_path_create()
3426 putname(filename); kern_path_create()
3443 struct filename *tmp = getname(pathname); user_path_create()
3498 SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, SYSCALL_DEFINE4()
3510 dentry = user_path_create(dfd, filename, &path, lookup_flags); SYSCALL_DEFINE4()
3540 SYSCALL_DEFINE3(mknod, const char __user *, filename, umode_t, mode, unsigned, dev) SYSCALL_DEFINE3()
3542 return sys_mknodat(AT_FDCWD, filename, mode, dev); SYSCALL_DEFINE3()
3668 struct filename *name; do_rmdir()
3794 struct filename *name; do_unlinkat()
3903 struct filename *from; SYSCALL_DEFINE3()
4278 struct filename *from; SYSCALL_DEFINE5()
4279 struct filename *to; SYSCALL_DEFINE5()
H A Dbinfmt_script.c29 * If the script filename will be inaccessible after exec, typically load_script()
74 * (3) filename of shell script (replace argv[0]) load_script()
H A Dcompat.c75 COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename, COMPAT_SYSCALL_DEFINE2()
87 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); COMPAT_SYSCALL_DEFINE2()
90 COMPAT_SYSCALL_DEFINE4(utimensat, unsigned int, dfd, const char __user *, filename, struct compat_timespec __user *, t, int, flags) COMPAT_SYSCALL_DEFINE4()
102 return do_utimes(dfd, filename, t ? tv : NULL, flags); COMPAT_SYSCALL_DEFINE4()
105 COMPAT_SYSCALL_DEFINE3(futimesat, unsigned int, dfd, const char __user *, filename, struct compat_timeval __user *, t) COMPAT_SYSCALL_DEFINE3()
121 return do_utimes(dfd, filename, t ? tv : NULL, 0); COMPAT_SYSCALL_DEFINE3()
124 COMPAT_SYSCALL_DEFINE2(utimes, const char __user *, filename, struct compat_timeval __user *, t) COMPAT_SYSCALL_DEFINE2()
126 return compat_sys_futimesat(AT_FDCWD, filename, t); COMPAT_SYSCALL_DEFINE2()
162 COMPAT_SYSCALL_DEFINE2(newstat, const char __user *, filename, COMPAT_SYSCALL_DEFINE2()
168 error = vfs_stat(filename, &stat); COMPAT_SYSCALL_DEFINE2()
174 COMPAT_SYSCALL_DEFINE2(newlstat, const char __user *, filename, COMPAT_SYSCALL_DEFINE2()
180 error = vfs_lstat(filename, &stat); COMPAT_SYSCALL_DEFINE2()
188 const char __user *, filename, COMPAT_SYSCALL_DEFINE4()
194 error = vfs_fstatat(dfd, filename, &stat, flag); COMPAT_SYSCALL_DEFINE4()
1090 COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) COMPAT_SYSCALL_DEFINE3()
1092 return do_sys_open(AT_FDCWD, filename, flags, mode); COMPAT_SYSCALL_DEFINE3()
1099 COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) COMPAT_SYSCALL_DEFINE4()
1101 return do_sys_open(dfd, filename, flags, mode); COMPAT_SYSCALL_DEFINE4()
H A Dinternal.h102 extern struct file *do_filp_open(int dfd, struct filename *pathname,
/linux-4.1.27/tools/usb/
H A Dffs-test.c296 const char *const filename; member in struct:thread
336 t->fd = open(t->filename, O_RDWR); init_thread()
337 die_on(t->fd < 0, "%s", t->filename); init_thread()
356 err("%s: get fifo status", t->filename); cleanup_thread()
358 warn("%s: unclaimed = %d\n", t->filename, ret); cleanup_thread()
360 err("%s: fifo flush", t->filename); cleanup_thread()
365 err("%s: close", t->filename); cleanup_thread()
377 info("%s: starts\n", t->filename); start_thread_helper()
378 in_name = t->in_name ? t->in_name : t->filename; start_thread_helper()
379 out_name = t->out_name ? t->out_name : t->filename; start_thread_helper()
412 info("%s: ends\n", t->filename); start_thread_helper()
418 debug("%s: starting\n", t->filename); start_thread()
421 "pthread_create(%s)", t->filename); start_thread()
429 err("%s: joining thread", t->filename); join_thread()
431 debug("%s: joined\n", t->filename); join_thread()
585 info("%s: writing descriptors\n", t->filename); ep0_init()
589 info("%s: writing descriptors (in v2 format)\n", t->filename); ep0_init()
593 warn("%s: new format rejected, trying legacy\n", t->filename); ep0_init()
601 die_on(ret < 0, "%s: write: descriptors", t->filename); ep0_init()
603 info("%s: writing strings\n", t->filename); ep0_init()
605 die_on(ret < 0, "%s: write: strings", t->filename); ep0_init()
/linux-4.1.27/fs/qnx6/
H A Ddir.c78 /* error - long filename entries always have size 0xff qnx6_dir_longfilename()
102 pr_info("long filename checksum error.\n"); qnx6_dir_longfilename()
151 /* long filename detected qnx6_readdir()
152 get the filename from long filename qnx6_readdir()
177 * check if the long filename is correct.
205 * check if the filename is correct.
247 /* short filename */ qnx6_find_entry()
254 /* deal with long filename */ qnx6_find_entry()
261 pr_err("undefined filename size in inode.\n"); qnx6_find_entry()
/linux-4.1.27/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c56 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) vmaybe_write_file() argument
72 fd = open(filename, O_WRONLY); vmaybe_write_file()
77 filename, strerror(errno)); vmaybe_write_file()
82 die("short write to %s\n", filename); vmaybe_write_file()
85 filename, strerror(errno)); vmaybe_write_file()
90 filename, strerror(errno)); vmaybe_write_file()
94 static void maybe_write_file(char *filename, char *fmt, ...) maybe_write_file() argument
99 vmaybe_write_file(true, filename, fmt, ap); maybe_write_file()
104 static void write_file(char *filename, char *fmt, ...) write_file() argument
109 vmaybe_write_file(false, filename, fmt, ap); write_file()
/linux-4.1.27/arch/mips/lantiq/xway/
H A Dxrx200_phy_fw.c34 "failed to load firmware filename\n"); xway_gphy_load()
42 "failed to load firmware filename\n"); xway_gphy_load()
49 dev_err(&pdev->dev, "failed to load firmware filename\n"); xway_gphy_load()
/linux-4.1.27/arch/sparc/kernel/
H A Dsystbls.h59 asmlinkage long compat_sys_stat64(const char __user * filename,
61 asmlinkage long compat_sys_lstat64(const char __user * filename,
66 const char __user *filename,
99 const char __user *filename,
H A Dsys_sparc32.c100 asmlinkage long compat_sys_stat64(const char __user * filename, compat_sys_stat64() argument
104 int error = vfs_stat(filename, &stat); compat_sys_stat64()
111 asmlinkage long compat_sys_lstat64(const char __user * filename, compat_sys_lstat64() argument
115 int error = vfs_lstat(filename, &stat); compat_sys_lstat64()
134 const char __user *filename, compat_sys_fstatat64()
140 error = vfs_fstatat(dfd, filename, &stat, flag); compat_sys_fstatat64()
133 compat_sys_fstatat64(unsigned int dfd, const char __user *filename, struct compat_stat64 __user * statbuf, int flag) compat_sys_fstatat64() argument
/linux-4.1.27/fs/xfs/
H A Dxfs_error.c128 const char *filename, xfs_error_report()
135 tag, linenum, filename, ra); xfs_error_report()
147 const char *filename, xfs_corruption_error()
153 xfs_error_report(tag, level, mp, filename, linenum, ra); xfs_corruption_error()
124 xfs_error_report( const char *tag, int level, struct xfs_mount *mp, const char *filename, int linenum, inst_t *ra) xfs_error_report() argument
142 xfs_corruption_error( const char *tag, int level, struct xfs_mount *mp, void *p, const char *filename, int linenum, inst_t *ra) xfs_corruption_error() argument
H A Dxfs_error.h24 const char *filename, int linenum, inst_t *ra);
26 struct xfs_mount *mp, void *p, const char *filename,
/linux-4.1.27/fs/hfs/
H A Dtrans.c23 * the Macintosh character set produce the corresponding filename using
25 * mangled filename. Note that the output string is not NULL
89 * generate the corresponding filename in the Macintosh character set
91 * the mangled filename. Note that the output string is not NULL
H A Dstring.c70 * Compare two strings in the HFS filename character ordering
92 * Test for equality of two strings in the HFS filename character ordering.
/linux-4.1.27/arch/cris/arch-v10/kernel/
H A Dtraps.c126 if (__get_user(c, f.filename)) handle_BUG()
127 f.filename = "<bad filename>"; handle_BUG()
129 printk("kernel BUG at %s:%d!\n", f.filename, f.line); handle_BUG()
/linux-4.1.27/include/linux/ceph/
H A Dceph_debug.h9 * wrap pr_debug to include a filename:lineno prefix on each line.
/linux-4.1.27/scripts/mod/
H A Dfile2alias.c361 static int do_hid_entry(const char *filename, do_hid_entry() argument
380 static int do_ieee1394_entry(const char *filename, do_ieee1394_entry() argument
405 static int do_pci_entry(const char *filename, do_pci_entry() argument
436 filename, class_mask); do_pci_entry()
449 static int do_ccw_entry(const char *filename, do_ccw_entry() argument
473 static int do_ap_entry(const char *filename, do_ap_entry() argument
484 static int do_css_entry(const char *filename, do_css_entry() argument
495 static int do_serio_entry(const char *filename, do_serio_entry() argument
515 static int do_acpi_entry(const char *filename, do_acpi_entry() argument
608 static int do_pcmcia_entry(const char *filename, do_pcmcia_entry() argument
645 static int do_of_entry (const char *filename, void *symval, char *alias) do_of_entry() argument
670 static int do_vio_entry(const char *filename, void *symval, do_vio_entry() argument
705 static int do_input_entry(const char *filename, void *symval, do_input_entry() argument
763 static int do_eisa_entry(const char *filename, void *symval, do_eisa_entry() argument
776 static int do_parisc_entry(const char *filename, void *symval, do_parisc_entry() argument
796 static int do_sdio_entry(const char *filename, do_sdio_entry() argument
813 static int do_ssb_entry(const char *filename, do_ssb_entry() argument
830 static int do_bcma_entry(const char *filename, do_bcma_entry() argument
849 static int do_virtio_entry(const char *filename, void *symval, do_virtio_entry() argument
870 static int do_vmbus_entry(const char *filename, void *symval, do_vmbus_entry() argument
888 static int do_i2c_entry(const char *filename, void *symval, do_i2c_entry() argument
899 static int do_spi_entry(const char *filename, void *symval, do_spi_entry() argument
939 static int do_dmi_entry(const char *filename, void *symval, do_dmi_entry() argument
964 static int do_platform_entry(const char *filename, do_platform_entry() argument
973 static int do_mdio_entry(const char *filename, do_mdio_entry() argument
999 static int do_zorro_entry(const char *filename, void *symval, do_zorro_entry() argument
1010 static int do_isapnp_entry(const char *filename, do_isapnp_entry() argument
1026 static int do_ipack_entry(const char *filename, do_ipack_entry() argument
1089 static int do_amba_entry(const char *filename, do_amba_entry() argument
1100 filename, id, mask); do_amba_entry()
1118 static int do_mips_cdmm_entry(const char *filename, do_mips_cdmm_entry() argument
1134 static int do_x86cpu_entry(const char *filename, void *symval, do_x86cpu_entry() argument
1154 static int do_cpu_entry(const char *filename, void *symval, char *alias) do_cpu_entry() argument
1164 static int do_mei_entry(const char *filename, void *symval, do_mei_entry() argument
1176 static int do_rio_entry(const char *filename, do_rio_entry() argument
H A Dsumversion.c455 static void write_version(const char *filename, const char *sum, write_version() argument
460 fd = open(filename, O_RDWR); write_version()
463 filename, strerror(errno)); write_version()
469 filename, offset, strerror(errno)); write_version()
475 filename, strerror(errno)); write_version()
H A Dmodpost.c344 void *grab_file(const char *filename, unsigned long *size) grab_file() argument
350 fd = open(filename, O_RDONLY); grab_file()
405 static int parse_elf(struct elf_info *info, const char *filename) parse_elf() argument
414 hdr = grab_file(filename, &info->size); parse_elf()
417 fprintf(stderr, "%s: %s (ignored)\n", filename, parse_elf()
421 perror(filename); parse_elf()
458 filename, info->size); parse_elf()
500 "sizeof(*hrd)=%zu\n", filename, parse_elf()
508 fatal("%s has NOBITS .modinfo\n", filename); parse_elf()
544 fatal("%s has no symtab?\n", filename); parse_elf()
558 filename, sechdrs[symtab_shndx_idx].sh_link, parse_elf()
1986 static void read_symbols_from_files(const char *filename) read_symbols_from_files() argument
1991 if (strcmp(filename, "-") != 0) { read_symbols_from_files()
1992 in = fopen(filename, "r"); read_symbols_from_files()
1994 fatal("Can't open filenames file %s: %m", filename); read_symbols_from_files()
/linux-4.1.27/arch/x86/ia32/
H A Dsys_ia32.c53 asmlinkage long sys32_truncate64(const char __user *filename, sys32_truncate64() argument
57 return sys_truncate(filename, ((loff_t) offset_high << 32) | offset_low); sys32_truncate64()
98 asmlinkage long sys32_stat64(const char __user *filename, sys32_stat64() argument
102 int ret = vfs_stat(filename, &stat); sys32_stat64()
109 asmlinkage long sys32_lstat64(const char __user *filename, sys32_lstat64() argument
113 int ret = vfs_lstat(filename, &stat); sys32_lstat64()
128 asmlinkage long sys32_fstatat(unsigned int dfd, const char __user *filename, sys32_fstatat() argument
134 error = vfs_fstatat(dfd, filename, &stat, flag); sys32_fstatat()
/linux-4.1.27/tools/perf/tests/
H A Dopen-syscall-tp-fields.c20 const char *filename = "/etc/passwd"; test__syscall_open_tp_fields() local
69 open(filename, flags); test__syscall_open_tp_fields()
H A Dhists_common.c23 const char *filename; member in struct:__anon14799
113 strcpy(fake_mmap_event.mmap.filename, setup_fake_machine()
114 fake_mmap_info[i].filename); setup_fake_machine()
H A Dperf-record.c235 mmap_filename = event->mmap.filename; test__PERF_RECORD()
238 mmap_filename = event->mmap2.filename; test__PERF_RECORD()
/linux-4.1.27/arch/s390/kernel/
H A Dcompat_linux.h90 long compat_sys_s390_chown16(const char __user *filename, u16 user, u16 group);
91 long compat_sys_s390_lchown16(const char __user *filename, u16 user, u16 group);
114 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf);
115 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf);
117 long compat_sys_s390_fstatat64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
H A Dcompat_wrapper.c67 COMPAT_SYSCALL_WRAP1(chdir, const char __user *, filename);
68 COMPAT_SYSCALL_WRAP3(mknod, const char __user *, filename, umode_t, mode, unsigned, dev);
69 COMPAT_SYSCALL_WRAP2(chmod, const char __user *, filename, umode_t, mode);
72 COMPAT_SYSCALL_WRAP2(access, const char __user *, filename, int, mode);
86 COMPAT_SYSCALL_WRAP1(chroot, const char __user *, filename);
133 COMPAT_SYSCALL_WRAP3(lchown, const char __user *, filename, uid_t, user, gid_t, group);
143 COMPAT_SYSCALL_WRAP3(chown, const char __user *, filename, uid_t, user, gid_t, group);
182 COMPAT_SYSCALL_WRAP4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, unsigned, dev);
183 COMPAT_SYSCALL_WRAP5(fchownat, int, dfd, const char __user *, filename, uid_t, user, gid_t, group, int, flag);
189 COMPAT_SYSCALL_WRAP3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode);
190 COMPAT_SYSCALL_WRAP3(faccessat, int, dfd, const char __user *, filename, int, mode);
H A Dcompat_linux.c89 COMPAT_SYSCALL_DEFINE3(s390_chown16, const char __user *, filename, COMPAT_SYSCALL_DEFINE3()
92 return sys_chown(filename, low2highuid(user), low2highgid(group)); COMPAT_SYSCALL_DEFINE3()
96 filename, u16, user, u16, group) COMPAT_SYSCALL_DEFINE3()
98 return sys_lchown(filename, low2highuid(user), low2highgid(group)); COMPAT_SYSCALL_DEFINE3()
382 COMPAT_SYSCALL_DEFINE2(s390_stat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
385 int ret = vfs_stat(filename, &stat); COMPAT_SYSCALL_DEFINE2()
391 COMPAT_SYSCALL_DEFINE2(s390_lstat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) COMPAT_SYSCALL_DEFINE2()
394 int ret = vfs_lstat(filename, &stat); COMPAT_SYSCALL_DEFINE2()
409 COMPAT_SYSCALL_DEFINE4(s390_fstatat64, unsigned int, dfd, const char __user *, filename, COMPAT_SYSCALL_DEFINE4()
415 error = vfs_fstatat(dfd, filename, &stat, flag); COMPAT_SYSCALL_DEFINE4()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dinit.c665 static int ath6kl_get_fw(struct ath6kl *ar, const char *filename, ath6kl_get_fw() argument
671 ret = request_firmware(&fw_entry, filename, ar->dev); ath6kl_get_fw()
731 const char *filename; ath6kl_fetch_board_file() local
740 filename = ar->hw.fw_board; ath6kl_fetch_board_file()
742 ret = ath6kl_get_fw(ar, filename, &ar->fw_board, ath6kl_fetch_board_file()
756 filename, ret); ath6kl_fetch_board_file()
758 filename = ar->hw.fw_default_board; ath6kl_fetch_board_file()
760 ret = ath6kl_get_fw(ar, filename, &ar->fw_board, ath6kl_fetch_board_file()
764 filename, ret); ath6kl_fetch_board_file()
776 char filename[100]; ath6kl_fetch_otp_file() local
788 snprintf(filename, sizeof(filename), "%s/%s", ath6kl_fetch_otp_file()
791 ret = ath6kl_get_fw(ar, filename, &ar->fw_otp, ath6kl_fetch_otp_file()
795 filename, ret); ath6kl_fetch_otp_file()
804 char filename[100]; ath6kl_fetch_testmode_file() local
818 snprintf(filename, sizeof(filename), "%s/%s", ath6kl_fetch_testmode_file()
826 snprintf(filename, sizeof(filename), "%s/%s", ath6kl_fetch_testmode_file()
832 ret = ath6kl_get_fw(ar, filename, &ar->fw, &ar->fw_len); ath6kl_fetch_testmode_file()
835 ar->testmode, filename, ret); ath6kl_fetch_testmode_file()
844 char filename[100]; ath6kl_fetch_fw_file() local
854 snprintf(filename, sizeof(filename), "%s/%s", ath6kl_fetch_fw_file()
857 ret = ath6kl_get_fw(ar, filename, &ar->fw, &ar->fw_len); ath6kl_fetch_fw_file()
860 filename, ret); ath6kl_fetch_fw_file()
869 char filename[100]; ath6kl_fetch_patch_file() local
878 snprintf(filename, sizeof(filename), "%s/%s", ath6kl_fetch_patch_file()
881 ret = ath6kl_get_fw(ar, filename, &ar->fw_patch, ath6kl_fetch_patch_file()
885 filename, ret); ath6kl_fetch_patch_file()
894 char filename[100]; ath6kl_fetch_testscript_file() local
906 snprintf(filename, sizeof(filename), "%s/%s", ath6kl_fetch_testscript_file()
909 ret = ath6kl_get_fw(ar, filename, &ar->fw_testscript, ath6kl_fetch_testscript_file()
913 filename, ret); ath6kl_fetch_testscript_file()
948 char filename[100]; ath6kl_fetch_fw_apin() local
953 snprintf(filename, sizeof(filename), "%s/%s", ar->hw.fw.dir, name); ath6kl_fetch_fw_apin()
955 ret = request_firmware(&fw, filename, ar->dev); ath6kl_fetch_fw_apin()
/linux-4.1.27/drivers/usb/gadget/function/
H A Dstorage_common.c184 int fsg_lun_open(struct fsg_lun *curlun, const char *filename) fsg_lun_open() argument
199 filp = filp_open(filename, O_RDWR | O_LARGEFILE, 0); fsg_lun_open()
204 filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0); fsg_lun_open()
206 LINFO(curlun, "unable to open backing file: %s\n", filename); fsg_lun_open()
215 LINFO(curlun, "invalid file type: %s\n", filename); fsg_lun_open()
224 LINFO(curlun, "file not readable: %s\n", filename); fsg_lun_open()
232 LINFO(curlun, "unable to find file size: %s\n", filename); fsg_lun_open()
254 LINFO(curlun, "file too big: %s\n", filename); fsg_lun_open()
260 LINFO(curlun, "file too small: %s\n", filename); fsg_lun_open()
274 LDBG(curlun, "open backing file: %s\n", filename); fsg_lun_open()
H A Df_mass_storage.h98 const char *filename; member in struct:fsg_lun_config
H A Dstorage_common.h206 int fsg_lun_open(struct fsg_lun *curlun, const char *filename);
/linux-4.1.27/fs/udf/
H A Dunicode.c6 * Also handles filename mangling
355 struct ustr *filename, *unifilename; udf_get_filename() local
358 filename = kmalloc(sizeof(struct ustr), GFP_NOFS); udf_get_filename()
359 if (!filename) udf_get_filename()
370 if (!udf_CS0toUTF8(filename, unifilename)) { udf_get_filename()
376 if (!udf_CS0toNLS(UDF_SB(sb)->s_nls_map, filename, udf_get_filename()
386 filename->u_name, filename->u_len, udf_get_filename()
391 kfree(filename); udf_get_filename()
423 /* Number of chars we need to store generated CRC to make filename unique */
/linux-4.1.27/fs/ecryptfs/
H A Dcrypto.c1493 * ecryptfs_encrypt_filename - encrypt filename
1495 * CBC-encrypts the filename. We do not want to encrypt the same
1496 * filename with the same key and IV, which may happen with hard
1497 * links, so we prepend random bits to each filename.
1502 ecryptfs_encrypt_filename(struct ecryptfs_filename *filename, ecryptfs_encrypt_filename() argument
1508 filename->encrypted_filename = NULL; ecryptfs_encrypt_filename()
1509 filename->encrypted_filename_size = 0; ecryptfs_encrypt_filename()
1518 &filename->encrypted_filename_size, ecryptfs_encrypt_filename()
1520 filename->filename_size); ecryptfs_encrypt_filename()
1525 filename->encrypted_filename_size = 0; ecryptfs_encrypt_filename()
1528 filename->encrypted_filename = ecryptfs_encrypt_filename()
1529 kmalloc(filename->encrypted_filename_size, GFP_KERNEL); ecryptfs_encrypt_filename()
1530 if (!filename->encrypted_filename) { ecryptfs_encrypt_filename()
1533 filename->encrypted_filename_size); ecryptfs_encrypt_filename()
1537 remaining_bytes = filename->encrypted_filename_size; ecryptfs_encrypt_filename()
1538 rc = ecryptfs_write_tag_70_packet(filename->encrypted_filename, ecryptfs_encrypt_filename()
1542 filename->filename, ecryptfs_encrypt_filename()
1543 filename->filename_size); ecryptfs_encrypt_filename()
1548 kfree(filename->encrypted_filename); ecryptfs_encrypt_filename()
1549 filename->encrypted_filename = NULL; ecryptfs_encrypt_filename()
1550 filename->encrypted_filename_size = 0; ecryptfs_encrypt_filename()
1553 filename->encrypted_filename_size = packet_size; ecryptfs_encrypt_filename()
1555 printk(KERN_ERR "%s: No support for requested filename " ecryptfs_encrypt_filename()
1806 * @dst: Destination location for encoded filename
1807 * @dst_size: Size of the encoded filename in bytes
1808 * @src: Source location for the filename to encode
1937 * Encrypts and encodes a filename into something that constitutes a
1938 * valid filename for a filesystem, with printable characters.
1960 struct ecryptfs_filename *filename; ecryptfs_encrypt_and_encode_filename() local
1962 filename = kzalloc(sizeof(*filename), GFP_KERNEL); ecryptfs_encrypt_and_encode_filename()
1963 if (!filename) { ecryptfs_encrypt_and_encode_filename()
1966 sizeof(*filename)); ecryptfs_encrypt_and_encode_filename()
1970 filename->filename = (char *)name; ecryptfs_encrypt_and_encode_filename()
1971 filename->filename_size = name_size; ecryptfs_encrypt_and_encode_filename()
1972 rc = ecryptfs_encrypt_filename(filename, crypt_stat, ecryptfs_encrypt_and_encode_filename()
1976 "filename; rc = [%d]\n", __func__, rc); ecryptfs_encrypt_and_encode_filename()
1977 kfree(filename); ecryptfs_encrypt_and_encode_filename()
1982 filename->encrypted_filename, ecryptfs_encrypt_and_encode_filename()
1983 filename->encrypted_filename_size); ecryptfs_encrypt_and_encode_filename()
2002 kfree(filename->encrypted_filename); ecryptfs_encrypt_and_encode_filename()
2003 kfree(filename); ecryptfs_encrypt_and_encode_filename()
2018 filename->encrypted_filename, ecryptfs_encrypt_and_encode_filename()
2019 filename->encrypted_filename_size); ecryptfs_encrypt_and_encode_filename()
2029 "encrypted filename; rc = [%d]\n", __func__, ecryptfs_encrypt_and_encode_filename()
2035 kfree(filename->encrypted_filename); ecryptfs_encrypt_and_encode_filename()
2036 kfree(filename); ecryptfs_encrypt_and_encode_filename()
2051 * @name: The filename in cipher text
2054 * Decrypts and decodes the filename.
2100 "from filename; copying through filename " ecryptfs_decode_and_decrypt_filename()
2159 /* Worst case is that the filename is padded nearly a full block size */ ecryptfs_set_f_namelen()
H A Dkeystore.c613 * write_tag_70_packet - Write encrypted filename (EFN) packet against FNEK
614 * @filename: NULL-terminated filename string
616 * This is the simplest mechanism for achieving filename encryption in
617 * eCryptfs. It encrypts the given filename with the mount-wide
618 * filename encryption key (FNEK) and stores it in a packet to @dest,
626 char *filename, size_t filename_size) ecryptfs_write_tag_70_packet()
663 * and the plaintext filename */ ecryptfs_write_tag_70_packet()
675 * and block-aligned encrypted filename size) ecryptfs_write_tag_70_packet()
678 * Octets N3-N4: Block-aligned encrypted filename ecryptfs_write_tag_70_packet()
680 * separator, and then the filename */ ecryptfs_write_tag_70_packet()
734 * filename encryption */ ecryptfs_write_tag_70_packet()
813 memcpy(&s->block_aligned_filename[s->num_rand_bytes], filename, ecryptfs_write_tag_70_packet()
819 "convert filename memory to scatterlist; rc = [%d]. " ecryptfs_write_tag_70_packet()
828 "convert encrypted filename memory to scatterlist; " ecryptfs_write_tag_70_packet()
856 printk(KERN_ERR "%s: Error attempting to encrypt filename; " ecryptfs_write_tag_70_packet()
899 * @filename: This function kmalloc's the memory for the filename
901 * kmalloc'd for the filename
913 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size, ecryptfs_parse_tag_70_packet() argument
924 (*filename) = NULL; ecryptfs_parse_tag_70_packet()
942 * and block-aligned encrypted filename size) ecryptfs_parse_tag_70_packet()
945 * Octets N3-N4: Block-aligned encrypted filename ecryptfs_parse_tag_70_packet()
947 * separator, and then the filename */ ecryptfs_parse_tag_70_packet()
1009 "convert encrypted filename memory to scatterlist; " ecryptfs_parse_tag_70_packet()
1028 "convert decrypted filename memory to scatterlist; " ecryptfs_parse_tag_70_packet()
1040 * filename encryption */ ecryptfs_parse_tag_70_packet()
1064 printk(KERN_ERR "%s: Error attempting to decrypt filename; " ecryptfs_parse_tag_70_packet()
1075 "the filename\n", __func__); ecryptfs_parse_tag_70_packet()
1087 (*filename) = kmalloc(((*filename_size) + 1), GFP_KERNEL); ecryptfs_parse_tag_70_packet()
1088 if (!(*filename)) { ecryptfs_parse_tag_70_packet()
1095 memcpy((*filename), &s->decrypted_filename[s->i], (*filename_size)); ecryptfs_parse_tag_70_packet()
1096 (*filename)[(*filename_size)] = '\0'; ecryptfs_parse_tag_70_packet()
1105 (*filename) = NULL; ecryptfs_parse_tag_70_packet()
1616 (*packet_size) += 12; /* Ignore filename and modification date */ parse_tag_11_packet()
623 ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes, size_t *packet_size, struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *filename, size_t filename_size) ecryptfs_write_tag_70_packet() argument
H A Decryptfs_kernel.h147 #define ECRYPTFS_TAG_70_PACKET_TYPE 0x46 /* FNEK-encrypted filename
149 #define ECRYPTFS_TAG_71_PACKET_TYPE 0x47 /* FNEK-encrypted filename in
151 #define ECRYPTFS_TAG_72_PACKET_TYPE 0x48 /* FEK-encrypted filename as
153 #define ECRYPTFS_TAG_73_PACKET_TYPE 0x49 /* FEK-encrypted filename as
199 char *filename; member in struct:ecryptfs_filename
710 char *filename, size_t filename_size);
712 ecryptfs_parse_tag_70_packet(char **filename, size_t *filename_size,
/linux-4.1.27/arch/sparc/boot/
H A Dpiggyback.c111 static int get_start_end(const char *filename, unsigned int *start, get_start_end() argument
119 map = fopen(filename, "r"); get_start_end()
121 die(filename); get_start_end()
146 static off_t get_hdrs_offset(int kernelfd, const char *filename) get_hdrs_offset() argument
155 die(filename); get_hdrs_offset()
171 die(filename); get_hdrs_offset()
180 fprintf (stderr, "Couldn't find headers signature in %s\n", filename); get_hdrs_offset()
/linux-4.1.27/arch/tile/mm/
H A Delf.c125 * If we can't find the filename of the mapping, just use arch_setup_additional_pages()
126 * whatever was passed as the linux_binprm filename. arch_setup_additional_pages()
129 sim_notify_exec(bprm->filename); arch_setup_additional_pages()
/linux-4.1.27/include/linux/
H A Dbinfmts.h40 const char * filename; /* Name of binary as seen by procps */ member in struct:linux_binprm
42 of the time same as filename, but could be
56 /* filename of the binary will be inaccessible after exec */
H A Dsyscalls.h394 asmlinkage long sys_stat(const char __user *filename,
403 asmlinkage long sys_lstat(const char __user *filename,
407 asmlinkage long sys_newstat(const char __user *filename,
409 asmlinkage long sys_newlstat(const char __user *filename,
414 asmlinkage long sys_stat64(const char __user *filename,
417 asmlinkage long sys_lstat64(const char __user *filename,
419 asmlinkage long sys_fstatat64(int dfd, const char __user *filename,
473 asmlinkage long sys_chroot(const char __user *filename);
474 asmlinkage long sys_mknod(const char __user *filename, umode_t mode,
482 asmlinkage long sys_chmod(const char __user *filename, umode_t mode);
517 asmlinkage long sys_open(const char __user *filename,
520 asmlinkage long sys_access(const char __user *filename, int mode);
522 asmlinkage long sys_chown(const char __user *filename,
524 asmlinkage long sys_lchown(const char __user *filename,
528 asmlinkage long sys_chown16(const char __user *filename,
530 asmlinkage long sys_lchown16(const char __user *filename,
553 asmlinkage long sys_utime(char __user *filename,
555 asmlinkage long sys_utimes(char __user *filename,
582 asmlinkage long sys_chdir(const char __user *filename);
754 asmlinkage long sys_mknodat(int dfd, const char __user * filename, umode_t mode,
767 asmlinkage long sys_futimesat(int dfd, const char __user *filename,
769 asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode);
770 asmlinkage long sys_fchmodat(int dfd, const char __user * filename,
772 asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user,
774 asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
776 asmlinkage long sys_newfstatat(int dfd, const char __user *filename,
780 asmlinkage long sys_utimensat(int dfd, const char __user *filename,
842 asmlinkage long sys_execve(const char __user *filename,
883 asmlinkage long sys_execveat(int dfd, const char __user *filename,
H A Daudit.h108 struct filename;
128 extern struct filename *__audit_reusename(const __user char *uptr);
129 extern void __audit_getname(struct filename *name);
133 extern void __audit_inode(struct filename *name, const struct dentry *dentry,
168 static inline struct filename *audit_reusename(const __user char *name) audit_reusename()
174 static inline void audit_getname(struct filename *name) audit_getname()
179 static inline void audit_inode(struct filename *name, audit_inode()
194 static inline void audit_inode_parent_hidden(struct filename *name, audit_inode_parent_hidden()
348 static inline struct filename *audit_reusename(const __user char *name) audit_reusename()
352 static inline void audit_getname(struct filename *name) audit_getname()
354 static inline void __audit_inode(struct filename *name, __audit_inode()
362 static inline void audit_inode(struct filename *name, audit_inode()
369 static inline void audit_inode_parent_hidden(struct filename *name, audit_inode_parent_hidden()
H A Ddynamic_debug.h16 const char *filename; member in struct:_ddebug
68 .filename = __FILE__, \
H A Dcompat.h358 asmlinkage long compat_sys_execve(const char __user *filename, const compat_uptr_t __user *argv,
360 asmlinkage long compat_sys_execveat(int dfd, const char __user *filename,
455 asmlinkage long compat_sys_utime(const char __user *filename,
458 const char __user *filename,
479 const char __user *filename,
481 asmlinkage long compat_sys_utimes(const char __user *filename,
483 asmlinkage long compat_sys_newstat(const char __user *filename,
485 asmlinkage long compat_sys_newlstat(const char __user *filename,
488 const char __user *filename,
531 asmlinkage long compat_sys_open(const char __user *filename, int flags,
533 asmlinkage long compat_sys_openat(int dfd, const char __user *filename,
H A Drelay.h70 int has_base_filename; /* has a filename associated? */
71 char base_filename[NAME_MAX]; /* saved base filename */
122 * @filename: the name of the file to create
143 struct dentry *(*create_buf_file)(const char *filename,
H A Dfsnotify.h134 * fsnotify_nameremove - a filename was removed from a directory
316 * fsnotify_oldname_init - save off the old filename before we change it
H A Dstring.h153 * @path: path to extract the filename from.
/linux-4.1.27/arch/avr32/oprofile/
H A Dop_model_avr32.c104 char filename[4]; avr32_perf_counter_create_files() local
107 snprintf(filename, sizeof(filename), "%u", i); avr32_perf_counter_create_files()
108 dir = oprofilefs_mkdir(root, filename); avr32_perf_counter_create_files()
/linux-4.1.27/kernel/
H A Duid16.c19 SYSCALL_DEFINE3(chown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) SYSCALL_DEFINE3()
21 return sys_chown(filename, low2highuid(user), low2highgid(group)); SYSCALL_DEFINE3()
24 SYSCALL_DEFINE3(lchown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) SYSCALL_DEFINE3()
26 return sys_lchown(filename, low2highuid(user), low2highgid(group)); SYSCALL_DEFINE3()
/linux-4.1.27/lib/
H A Dearlycpio.c61 * filename (with the directory path cut off) of the found file.
62 * If you search for a filename and not for files in a directory,
63 * pass the absolute path of the filename in the cpio and make sure
64 * the match returned an empty filename string.
H A Ddecompress_inflate.c100 * possible asciz filename) __gunzip()
104 /* skip over asciz filename */ __gunzip()
108 * If the filename doesn't fit into the buffer, __gunzip()
H A Ddynamic_debug.c51 const char *filename; member in struct:ddebug_query
126 query->filename ? query->filename : "", vpr_info_dq()
159 /* match against the source filename */ ddebug_change()
160 if (query->filename && ddebug_change()
161 !match_wildcard(query->filename, dp->filename) && ddebug_change()
162 !match_wildcard(query->filename, ddebug_change()
163 kbasename(dp->filename)) && ddebug_change()
164 !match_wildcard(query->filename, ddebug_change()
165 trim_prefix(dp->filename))) ddebug_change()
193 trim_prefix(dp->filename), dp->lineno, ddebug_change()
302 * file <base-filename>
332 rc = check_set(&query->filename, words[i+1], "file"); ddebug_parse_query()
782 "# filename:lineno [module]function flags format\n"); ddebug_proc_show()
787 trim_prefix(dp->filename), dp->lineno, ddebug_proc_show()
989 + strlen(iter->filename) + strlen(iter->format); dynamic_debug_init()
H A Ddecompress_unlzo.c89 * At least mode, mtime_low, filename length, and checksum must parse_header()
92 * filename length. parse_header()
/linux-4.1.27/lib/zlib_inflate/
H A Dinfutil.c24 /* gzip header (1f,8b,08... 10 bytes total + possible asciz filename) zlib_inflate_blob()
/linux-4.1.27/scripts/gdb/linux/
H A Dsymbols.py120 gdb.write("loading @{addr}: {filename}\n".format(
121 addr=module_addr, filename=module_file))
122 cmdline = "add-symbol-file {filename} {addr}{sections}".format(
123 filename=module_file,
/linux-4.1.27/tools/thermal/tmon/
H A Dsysfs.c41 int sysfs_set_ulong(char *path, char *filename, unsigned long val) sysfs_set_ulong() argument
47 snprintf(filepath, 256, "%s/%s", path, filename); sysfs_set_ulong()
65 static int sysfs_get_ulong(char *path, char *filename, unsigned long *p_ulong) sysfs_get_ulong() argument
71 snprintf(filepath, 256, "%s/%s", path, filename); sysfs_get_ulong()
84 static int sysfs_get_string(char *path, char *filename, char *str) sysfs_get_string() argument
90 snprintf(filepath, 256, "%s/%s", path, filename); sysfs_get_string()
132 char filename[256]; get_trip_point_data() local
139 snprintf(filename, sizeof(filename), "trip_point_%d_type", tpid); get_trip_point_data()
140 sysfs_get_string(tz_path, filename, temp_str); get_trip_point_data()
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
H A Doslinuxtbl.c65 osl_table_name_from_file(char *filename, char *signature, u32 *instance);
70 osl_read_table_from_file(char *filename,
990 char *filename; osl_list_customized_tables() local
1002 while ((filename = acpi_os_get_next_filename(table_dir))) { osl_list_customized_tables()
1007 osl_table_name_from_file(filename, temp_name, &instance); osl_list_customized_tables()
1133 * PARAMETERS: filename - File that contains the desired table
1147 osl_table_name_from_file(char *filename, char *signature, u32 *instance) osl_table_name_from_file() argument
1152 if (strlen(filename) < ACPI_NAME_SIZE) { osl_table_name_from_file()
1158 if (isdigit((int)filename[ACPI_NAME_SIZE])) { osl_table_name_from_file()
1159 sscanf(&filename[ACPI_NAME_SIZE], "%u", instance); osl_table_name_from_file()
1160 } else if (strlen(filename) != ACPI_NAME_SIZE) { osl_table_name_from_file()
1168 ACPI_MOVE_NAME(signature, filename); osl_table_name_from_file()
1176 * PARAMETERS: filename - File that contains the desired table
1189 osl_read_table_from_file(char *filename, osl_read_table_from_file() argument
1202 table_file = fopen(filename, "rb"); osl_read_table_from_file()
1204 fprintf(stderr, "Could not open table file: %s\n", filename); osl_read_table_from_file()
1214 fprintf(stderr, "Could not read table header: %s\n", filename); osl_read_table_from_file()
1307 char *filename; osl_get_customized_table() local
1319 while ((filename = acpi_os_get_next_filename(table_dir))) { osl_get_customized_table()
1323 if (!ACPI_COMPARE_NAME(filename, signature)) { osl_get_customized_table()
1330 osl_table_name_from_file(filename, temp_name, osl_get_customized_table()
1353 if (!filename) { osl_get_customized_table()
/linux-4.1.27/kernel/gcov/
H A Dgcc_3_4.c63 * @filename: name of the associated gcov data file
76 const char *filename; member in struct:gcov_info
84 * gcov_info_filename - return info filename
89 return info->filename; gcov_info_filename()
255 /* Duplicate filename. */ gcov_info_dup()
256 dup->filename = kstrdup(info->filename, GFP_KERNEL); gcov_info_dup()
257 if (!dup->filename) gcov_info_dup()
295 kfree(info->filename); gcov_info_free()
H A Dgcc_4_7.c74 * @filename: name of the associated gcov data file
86 const char *filename; member in struct:gcov_info
93 * gcov_info_filename - return info filename
98 return info->filename; gcov_info_filename()
266 dup->filename = NULL; gcov_info_dup()
269 dup->filename = kstrdup(info->filename, GFP_KERNEL); gcov_info_dup()
270 if (!dup->filename) gcov_info_dup()
345 kfree(info->filename); gcov_info_free()
H A Dfs.c330 static char *get_link_target(const char *filename, const struct gcov_link *ext) get_link_target() argument
335 if (strncmp(filename, objtree, strlen(objtree)) == 0) { get_link_target()
336 rel = filename + strlen(objtree) + 1; get_link_target()
343 result = link_target(NULL, filename, ext->ext); get_link_target()
352 * For a filename .tmp_filename.ext return filename.ext. Needed to compensate
353 * for filename skewing caused by the mod-versioning mechanism.
573 char *filename; add_node() local
579 filename = kstrdup(gcov_info_filename(info), GFP_KERNEL); add_node()
580 if (!filename) add_node()
584 for (curr = filename; (next = strchr(curr, '/')); curr = next + 1) { add_node()
609 kfree(filename); add_node()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dtestmode.c144 char filename[100]; ath10k_tm_cmd_utf_start() local
168 snprintf(filename, sizeof(filename), "%s/%s", ath10k_tm_cmd_utf_start()
172 ret = request_firmware(&ar->testmode.utf, filename, ar->dev); ath10k_tm_cmd_utf_start()
175 filename, ret); ath10k_tm_cmd_utf_start()
H A Dcore.c173 char filename[100]; ath10k_fetch_fw_file() local
183 snprintf(filename, sizeof(filename), "%s/%s", dir, file); ath10k_fetch_fw_file()
184 ret = request_firmware(&fw, filename, ar->dev); ath10k_fetch_fw_file()
468 char filename[100]; ath10k_fetch_cal_file() local
471 scnprintf(filename, sizeof(filename), "cal-%s-%s.bin", ath10k_fetch_cal_file()
474 ar->cal_file = ath10k_fetch_fw_file(ar, ATH10K_FW_DIR, filename); ath10k_fetch_cal_file()
480 ATH10K_FW_DIR, filename); ath10k_fetch_cal_file()
/linux-4.1.27/fs/squashfs/
H A Dnamei.c25 * This file implements code to do filename lookup in directories.
44 * storing the index/filename mapping to the first directory header
46 * and at lookup the index is scanned linearly looking for the first filename
47 * alphabetically larger than the filename being looked up. At this point the
48 * location of the metadata block the filename is in has been found.
/linux-4.1.27/drivers/staging/comedi/kcomedilib/
H A Dkcomedilib_main.c36 struct comedi_device *comedi_open(const char *filename) comedi_open() argument
41 if (strncmp(filename, "/dev/comedi", 11) != 0) comedi_open()
44 if (kstrtouint(filename + 11, 0, &minor)) comedi_open()
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
H A Dlibiam.h75 int iam_creat(char *filename, enum iam_fmt_t fmt,
83 int iam_open(char *filename, struct iam_uapi_info *ua);
141 int iam_polymorph(char *filename, unsigned long mode);
/linux-4.1.27/include/trace/events/
H A Dsched.h293 __string( filename, bprm->filename )
299 __assign_str(filename, bprm->filename);
304 TP_printk("filename=%s pid=%d old_pid=%d", __get_str(filename),
/linux-4.1.27/drivers/mcb/
H A Dmcb-internal.h36 * @filename: Filename of FPGA bitstream
46 char filename[CHAMELEON_FILENAME_LEN]; member in struct:chameleon_fpga_header
H A Dmcb-parse.c124 pr_debug("header->filename = \"%.*s\"\n", CHAMELEON_FILENAME_LEN, chameleon_parse_cells()
125 header->filename); chameleon_parse_cells()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Ddir.c659 char *filename) ll_dir_setdirstripe()
668 op_data = ll_prep_md_op_data(NULL, dir, NULL, filename, ll_dir_setdirstripe()
669 strlen(filename), mode, LUSTRE_OPC_MKDIR, ll_dir_setdirstripe()
1220 ll_getname(const char __user *filename) ll_getname() argument
1228 len = strncpy_from_user(tmp, filename, PATH_MAX); ll_getname()
1241 #define ll_putname(filename) __putname(filename)
1287 char *filename; ll_dir_ioctl() local
1295 filename = data->ioc_inlbuf1; ll_dir_ioctl()
1296 namelen = strlen(filename); ll_dir_ioctl()
1299 CDEBUG(D_INFO, "IOC_MDC_LOOKUP missing filename\n"); ll_dir_ioctl()
1304 op_data = ll_prep_md_op_data(NULL, inode, NULL, filename, namelen, ll_dir_ioctl()
1326 char *filename; ll_dir_ioctl() local
1343 filename = data->ioc_inlbuf1; ll_dir_ioctl()
1347 CDEBUG(D_INFO, "IOC_MDC_LOOKUP missing filename\n"); ll_dir_ioctl()
1357 filename, lum->lum_magic, lumlen, -EFAULT); ll_dir_ioctl()
1366 rc = ll_dir_setdirstripe(inode, lum, filename); ll_dir_ioctl()
1444 char *filename = NULL; ll_dir_ioctl() local
1456 filename = ll_getname((const char *)arg); ll_dir_ioctl()
1457 if (IS_ERR(filename)) ll_dir_ioctl()
1458 return PTR_ERR(filename); ll_dir_ioctl()
1460 namelen = strlen(filename); ll_dir_ioctl()
1466 rc = ll_rmdir_entry(inode, filename, namelen); ll_dir_ioctl()
1468 if (filename) ll_dir_ioctl()
1469 ll_putname(filename); ll_dir_ioctl()
1484 char *filename = NULL; ll_dir_ioctl() local
1489 filename = ll_getname((const char *)arg); ll_dir_ioctl()
1490 if (IS_ERR(filename)) ll_dir_ioctl()
1491 return PTR_ERR(filename); ll_dir_ioctl()
1493 rc = ll_lov_getstripe_ea_info(inode, filename, &lmm, ll_dir_ioctl()
1560 if (filename) ll_dir_ioctl()
1561 ll_putname(filename); ll_dir_ioctl()
658 ll_dir_setdirstripe(struct inode *dir, struct lmv_user_md *lump, char *filename) ll_dir_setdirstripe() argument
/linux-4.1.27/arch/tile/kernel/
H A Dcompat.c35 COMPAT_SYSCALL_DEFINE4(truncate64, char __user *, filename, u32, dummy, COMPAT_SYSCALL_DEFINE4()
38 return sys_truncate(filename, ((loff_t)high << 32) | low); COMPAT_SYSCALL_DEFINE4()
H A Dpci.c87 char filename[32]; tile_pcie_open() local
90 sprintf(filename, "pcie/%d/config%d", controller_id, config_type); tile_pcie_open()
92 fd = hv_dev_open((HV_VirtAddr)filename, 0); tile_pcie_open()
103 char filename[32]; tile_init_irqs() local
109 sprintf(filename, "pcie/%d/ctl", controller_id); tile_init_irqs()
110 fd = hv_dev_open((HV_VirtAddr)filename, 0); tile_init_irqs()
112 pr_err("PCI: hv_dev_open(%s) failed\n", filename); tile_init_irqs()
/linux-4.1.27/drivers/bluetooth/
H A Dath3k.c392 char filename[ATH3K_NAME_LEN] = {0}; ath3k_load_patch() local
415 snprintf(filename, ATH3K_NAME_LEN, "ar3k/AthrBT_0x%08x.dfu", ath3k_load_patch()
418 ret = request_firmware(&firmware, filename, &udev->dev); ath3k_load_patch()
420 BT_ERR("Patch file not found %s", filename); ath3k_load_patch()
445 char filename[ATH3K_NAME_LEN] = {0}; ath3k_load_syscfg() local
478 snprintf(filename, ATH3K_NAME_LEN, "ar3k/ramps_0x%08x_%d%s", ath3k_load_syscfg()
481 ret = request_firmware(&firmware, filename, &udev->dev); ath3k_load_syscfg()
483 BT_ERR("Configuration file not found %s", filename); ath3k_load_syscfg()
/linux-4.1.27/drivers/net/wireless/b43/
H A Dmain.c2161 fw->filename = NULL; b43_do_release_fw()
2210 if (fw->filename) { b43_do_request_fw()
2212 (strcmp(fw->filename, name) == 0)) b43_do_request_fw()
2289 fw->filename = name; b43_do_request_fw()
2310 const char *filename; b43_try_request_fw() local
2314 filename = NULL; b43_try_request_fw()
2318 filename = "ucode42"; b43_try_request_fw()
2322 filename = "ucode40"; b43_try_request_fw()
2326 filename = "ucode33_lcn40"; b43_try_request_fw()
2330 filename = "ucode30_mimo"; b43_try_request_fw()
2334 filename = "ucode29_mimo"; b43_try_request_fw()
2338 filename = "ucode26_mimo"; b43_try_request_fw()
2343 filename = "ucode25_mimo"; b43_try_request_fw()
2345 filename = "ucode25_lcn"; b43_try_request_fw()
2349 filename = "ucode24_lcn"; b43_try_request_fw()
2353 filename = "ucode16_mimo"; b43_try_request_fw()
2357 filename = "ucode16_mimo"; b43_try_request_fw()
2359 filename = "ucode16_lp"; b43_try_request_fw()
2362 filename = "ucode15"; b43_try_request_fw()
2365 filename = "ucode14"; b43_try_request_fw()
2368 filename = "ucode13"; b43_try_request_fw()
2371 filename = "ucode11"; b43_try_request_fw()
2374 filename = "ucode5"; b43_try_request_fw()
2377 if (!filename) b43_try_request_fw()
2379 err = b43_do_request_fw(ctx, filename, &fw->ucode, true); b43_try_request_fw()
2385 filename = "pcm5"; b43_try_request_fw()
2387 filename = NULL; b43_try_request_fw()
2391 err = b43_do_request_fw(ctx, filename, &fw->pcm, false); b43_try_request_fw()
2400 filename = NULL; b43_try_request_fw()
2404 filename = "b0g0initvals13"; b43_try_request_fw()
2406 filename = "b0g0initvals5"; b43_try_request_fw()
2410 filename = "n16initvals30"; b43_try_request_fw()
2412 filename = "n0initvals25"; b43_try_request_fw()
2414 filename = "n0initvals24"; b43_try_request_fw()
2416 filename = "n0initvals16"; /* What about n0initvals22? */ b43_try_request_fw()
2418 filename = "n0initvals16"; b43_try_request_fw()
2420 filename = "n0initvals11"; b43_try_request_fw()
2424 filename = "lp0initvals16"; b43_try_request_fw()
2426 filename = "lp0initvals15"; b43_try_request_fw()
2428 filename = "lp0initvals14"; b43_try_request_fw()
2430 filename = "lp0initvals13"; b43_try_request_fw()
2434 filename = "ht0initvals29"; b43_try_request_fw()
2436 filename = "ht0initvals26"; b43_try_request_fw()
2440 filename = "lcn0initvals24"; b43_try_request_fw()
2444 filename = "lcn400initvals33"; b43_try_request_fw()
2448 filename = "ac1initvals42"; b43_try_request_fw()
2450 filename = "ac0initvals40"; b43_try_request_fw()
2453 if (!filename) b43_try_request_fw()
2455 err = b43_do_request_fw(ctx, filename, &fw->initvals, false); b43_try_request_fw()
2460 filename = NULL; b43_try_request_fw()
2464 filename = "b0g0bsinitvals13"; b43_try_request_fw()
2466 filename = "b0g0bsinitvals5"; b43_try_request_fw()
2470 filename = "n16bsinitvals30"; b43_try_request_fw()
2472 filename = "n0bsinitvals25"; b43_try_request_fw()
2474 filename = "n0bsinitvals24"; b43_try_request_fw()
2476 filename = "n0bsinitvals16"; /* What about n0bsinitvals22? */ b43_try_request_fw()
2478 filename = "n0bsinitvals16"; b43_try_request_fw()
2480 filename = "n0bsinitvals11"; b43_try_request_fw()
2484 filename = "lp0bsinitvals16"; b43_try_request_fw()
2486 filename = "lp0bsinitvals15"; b43_try_request_fw()
2488 filename = "lp0bsinitvals14"; b43_try_request_fw()
2490 filename = "lp0bsinitvals13"; b43_try_request_fw()
2494 filename = "ht0bsinitvals29"; b43_try_request_fw()
2496 filename = "ht0bsinitvals26"; b43_try_request_fw()
2500 filename = "lcn0bsinitvals24"; b43_try_request_fw()
2504 filename = "lcn400bsinitvals33"; b43_try_request_fw()
2508 filename = "ac1bsinitvals42"; b43_try_request_fw()
2510 filename = "ac0bsinitvals40"; b43_try_request_fw()
2513 if (!filename) b43_try_request_fw()
2515 err = b43_do_request_fw(ctx, filename, &fw->initvals_band, false); b43_try_request_fw()
/linux-4.1.27/drivers/staging/gs_fpgaboot/
H A Dgs_fpgaboot.h50 char filename[MAX_STR]; member in struct:fpgaimage
H A Dgs_fpgaboot.c128 pr_info("file: %s\n", fimage->filename); gs_print_header()
144 readinfo_bitstream(bitdata, fimage->filename, &offset); gs_read_bitstream()
/linux-4.1.27/drivers/s390/char/
H A Dhmcdrv_ftp.h44 * @fname: filename (ASCII), null-terminated
H A Dhmcdrv_ftp.c106 * @cmd: FTP command string "<cmd> <filename>"
227 * @cmd: FTP command string "<cmd> <filename>"
/linux-4.1.27/drivers/acpi/acpica/
H A Dutfileio.c285 * PARAMETERS: filename - File where table is located
295 acpi_ut_read_table_from_file(char *filename, struct acpi_table_header ** table) acpi_ut_read_table_from_file() argument
304 file = fopen(filename, "rb"); acpi_ut_read_table_from_file()
319 filename, file_size, file_size); acpi_ut_read_table_from_file()
H A Dacapps.h116 char *filename, char *prefix, char **out_filename);
130 acpi_status ad_display_tables(char *filename, struct acpi_table_header *table);
H A Dacdebug.h231 acpi_status acpi_db_load_acpi_table(char *filename);
234 acpi_db_get_table_from_file(char *filename, struct acpi_table_header **table);
/linux-4.1.27/arch/cris/include/arch-v10/arch/
H A Dbug.h26 unsigned char *filename; member in struct:bug_frame
/linux-4.1.27/fs/efs/
H A Ddir.c89 /* copy filename and data in dirslot */ efs_readdir()
/linux-4.1.27/mm/kasan/
H A Dkasan.h40 const char *filename; member in struct:kasan_source_location
/linux-4.1.27/sound/oss/
H A Dhex2hex.c82 fprintf(stderr,"hex2hex: [-i] filename\n"); main()
/linux-4.1.27/sound/
H A Dsound_firmware.c52 * @fn: filename
/linux-4.1.27/tools/testing/selftests/exec/
H A Dexecveat.c125 static int open_or_die(const char *filename, int flags) open_or_die() argument
127 int fd = open(filename, flags); open_or_die()
131 "check prerequisites are available\n", filename); open_or_die()
158 /* Create a filename close to PATH_MAX in length */ check_execveat_pathmax()
178 * a script or not (because the interpreter sees a filename like check_execveat_pathmax()
183 printf("Invoke copy of '%s' via filename of length %zu:\n", check_execveat_pathmax()
187 printf("Failed to open length %zu filename, errno=%d (%s)\n", check_execveat_pathmax()
/linux-4.1.27/include/acpi/
H A Dacoutput.h302 #define ACPI_DO_DEBUG_PRINT(function, level, line, filename, modulename, component, ...) \
306 function (level, line, filename, modulename, component, __VA_ARGS__); \
310 #define ACPI_ACTUAL_DEBUG(level, line, filename, modulename, component, ...) \
312 filename, modulename, component, __VA_ARGS__)
314 #define ACPI_ACTUAL_DEBUG_RAW(level, line, filename, modulename, component, ...) \
316 filename, modulename, component, __VA_ARGS__)
/linux-4.1.27/arch/arm/kernel/
H A Dsys_oabi-compat.c144 asmlinkage long sys_oabi_stat64(const char __user * filename, sys_oabi_stat64() argument
148 int error = vfs_stat(filename, &stat); sys_oabi_stat64()
154 asmlinkage long sys_oabi_lstat64(const char __user * filename, sys_oabi_lstat64() argument
158 int error = vfs_lstat(filename, &stat); sys_oabi_lstat64()
175 const char __user *filename, sys_oabi_fstatat64()
182 error = vfs_fstatat(dfd, filename, &stat, flag); sys_oabi_fstatat64()
174 sys_oabi_fstatat64(int dfd, const char __user *filename, struct oldabi_stat64 __user *statbuf, int flag) sys_oabi_fstatat64() argument
/linux-4.1.27/kernel/trace/
H A Dtrace_uprobe.c57 char *filename; member in struct:trace_uprobe
287 kfree(tu->filename); free_trace_uprobe()
359 char *arg, *event, *group, *filename; create_trace_uprobe() local
431 pr_info("probe point must be have a filename.\n"); create_trace_uprobe()
441 filename = argv[1]; create_trace_uprobe()
442 ret = kern_path(filename, LOOKUP_FOLLOW, &path); create_trace_uprobe()
466 tail = kstrdup(kbasename(filename), GFP_KERNEL); create_trace_uprobe()
489 tu->filename = kstrdup(filename, GFP_KERNEL); create_trace_uprobe()
491 if (!tu->filename) { create_trace_uprobe()
492 pr_info("Failed to allocate filename.\n"); create_trace_uprobe()
604 seq_printf(m, " %s:0x%p", tu->filename, (void *)tu->offset); probes_seq_show()
653 seq_printf(m, " %s %-44s %15lu\n", tu->filename, probes_profile_seq_show()
/linux-4.1.27/drivers/fmc/
H A Dfmc-write-eeprom.c126 pr_err("%s: no filename for device index %i\n", fwe_probe()
132 pr_err("%s: no filename for \"%s\" not programming\n", fwe_probe()
H A Dfmc-trivial.c60 /* Reprogram, if asked to. ESRCH == no filename specified */ t_probe()
/linux-4.1.27/arch/powerpc/kernel/
H A Drtas_flash.c659 const char *filename; member in struct:rtas_flash_file
667 .filename = "powerpc/rtas/" FIRMWARE_FLASH_NAME,
676 .filename = "powerpc/rtas/" FIRMWARE_UPDATE_NAME,
685 .filename = "powerpc/rtas/" VALIDATE_FLASH_NAME,
694 .filename = "powerpc/rtas/" MANAGE_FLASH_NAME,
730 if (!proc_create(f->filename, S_IRUSR | S_IWUSR, NULL, &f->fops)) rtas_flash_init()
750 remove_proc_entry(f->filename, NULL); rtas_flash_init()
772 remove_proc_entry(f->filename, NULL); rtas_flash_cleanup()
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Dopera1.c446 const char *filename) opera1_xilinx_load_firmware()
452 info("start downloading fpga firmware %s",filename); opera1_xilinx_load_firmware()
454 if ((ret = request_firmware(&fw, filename, &dev->dev)) != 0) { opera1_xilinx_load_firmware()
457 filename); opera1_xilinx_load_firmware()
445 opera1_xilinx_load_firmware(struct usb_device *dev, const char *filename) opera1_xilinx_load_firmware() argument
/linux-4.1.27/fs/omfs/
H A Domfs_fs.h66 char i_name[OMFS_NAMELEN]; /* filename */
/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/
H A Ddrx_driver_version.h11 * filename last modified re-use
/linux-4.1.27/scripts/basic/
H A Dfixdep.c134 * Print out the commandline prefixed with cmd_<target filename> :=
281 static void do_config_file(const char *filename) do_config_file() argument
287 fd = open(filename, O_RDONLY); do_config_file()
290 perror(filename); do_config_file()
344 /* Save this token/filename */ parse_dep_file()
/linux-4.1.27/usr/
H A Dgen_init_cpio.c527 const char *filename; main() local
557 filename = argv[optind]; main()
558 if (!strcmp(filename, "-")) main()
560 else if (!(cpio_list = fopen(filename, "r"))) { main()
562 filename, strerror(errno)); main()
/linux-4.1.27/fs/ext4/
H A Dcrypto_fname.c6 * This contains functions for filename crypto management in ext4
54 * This function encrypts the input filename, and returns the length of the
130 * This function decrypts the input filename, and returns
420 /* Since our crypto objectives for filename encryption ext4_get_fname_crypto_ctx()
530 * ext4_fname_disk_to_usr() - converts a filename from disk space to user space
584 * ext4_fname_usr_to_disk() - converts a filename from user space to disk space
615 * Calculate the htree hash from a filename from user space
H A Dext4_crypto.h147 * store a filename of length l in encrypted symlink format.
H A Ddir.c342 * directories, where the "offset" is in terms of the filename hash
420 * When filename encryption is enabled, the dirent will hold the
421 * encrypted filename, while the htree will hold decrypted filename.
422 * The decrypted filename is passed in via ent_name. parameter.
/linux-4.1.27/fs/cachefiles/
H A Dnamei.c818 char *filename) cachefiles_check_active()
827 // dir, filename); cachefiles_check_active()
833 victim = lookup_one_len(filename, dir, strlen(filename)); cachefiles_check_active()
904 char *filename) cachefiles_cull()
909 _enter(",%pd/,%s", dir, filename); cachefiles_cull()
911 victim = cachefiles_check_active(cache, dir, filename); cachefiles_cull()
963 char *filename) cachefiles_check_in_use()
968 // dir, filename); cachefiles_check_in_use()
970 victim = cachefiles_check_active(cache, dir, filename); cachefiles_check_in_use()
816 cachefiles_check_active(struct cachefiles_cache *cache, struct dentry *dir, char *filename) cachefiles_check_active() argument
903 cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir, char *filename) cachefiles_cull() argument
962 cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir, char *filename) cachefiles_check_in_use() argument
/linux-4.1.27/scripts/kconfig/
H A Dmconf.c216 "Enter a filename to which this configuration should be saved "
296 static char filename[PATH_MAX+1]; set_config_filename() variable
308 size = snprintf(filename, sizeof(filename), "%s", config_filename); set_config_filename()
309 if (size >= sizeof(filename)) set_config_filename()
310 filename[sizeof(filename)-1] = '\0'; set_config_filename()
908 11, 55, filename); conf_load()
935 11, 55, filename); conf_save()
974 if (conf_write(filename)) { handle_exit()
H A Dnconf.c197 "Enter a filename to which this configuration should be saved\n"
626 static char filename[PATH_MAX+1]; variable
637 size = snprintf(filename, sizeof(filename), "%s", config_filename); set_config_filename()
638 if (size >= sizeof(filename)) set_config_filename()
639 filename[sizeof(filename)-1] = '\0'; set_config_filename()
667 res = conf_write(filename); do_exit()
1399 filename, conf_load()
1430 filename, conf_save()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00firmware.c44 "Invalid firmware filename\n" rt2x00lib_request_firmware()
/linux-4.1.27/arch/microblaze/
H A DMakefile64 # defines filename extension depending memory management type
/linux-4.1.27/fs/qnx4/
H A Dnamei.c20 * check if the filename is correct. For some obscure reason, qnx writes a
/linux-4.1.27/drivers/media/dvb-frontends/
H A Dtda10071_priv.h80 /* firmware filename */
/linux-4.1.27/arch/mips/kernel/
H A Dbinfmt_elfn32.c90 char pr_fname[16]; /* filename of executable */
H A Dbinfmt_elfo32.c111 char pr_fname[16]; /* filename of executable */
/linux-4.1.27/arch/parisc/kernel/
H A Dbinfmt_elf32.c74 char pr_fname[16]; /* filename of executable */
/linux-4.1.27/fs/efivarfs/
H A Dinode.c43 * Return true if 'str' is a valid efivarfs filename of the form,
/linux-4.1.27/fs/fat/
H A Dfat.h33 char *iocharset; /* Charset used for filename input/display */
42 dotsOK:1, /* set = hidden and system files are named '.filename' */
43 isvfat:1, /* 0=no vfat long filename support, 1=vfat support */
134 int nr_slots; /* number of slots + 1(de) in filename */
/linux-4.1.27/net/netfilter/
H A Dnf_nat_irc.c77 * F: filename (min 1 d ) help()
/linux-4.1.27/sound/pci/emu10k1/
H A Demu10k1_main.c737 const char *filename = NULL; emu1010_firmware_thread() local
740 filename = DOCK_FILENAME; emu1010_firmware_thread()
743 filename = MICRO_DOCK_FILENAME; emu1010_firmware_thread()
746 filename = MICRO_DOCK_FILENAME; emu1010_firmware_thread()
749 if (filename) { emu1010_firmware_thread()
751 filename, emu1010_firmware_thread()
885 const char *filename; snd_emu10k1_emu1010_init() local
888 filename = HANA_FILENAME; snd_emu10k1_emu1010_init()
891 filename = EMU1010B_FILENAME; snd_emu10k1_emu1010_init()
894 filename = EMU1010_NOTEBOOK_FILENAME; snd_emu10k1_emu1010_init()
897 filename = EMU0404_FILENAME; snd_emu10k1_emu1010_init()
903 err = request_firmware(&emu->firmware, filename, &emu->pci->dev); snd_emu10k1_emu1010_init()
907 filename, err); snd_emu10k1_emu1010_init()
912 filename, emu->firmware->size); snd_emu10k1_emu1010_init()
/linux-4.1.27/fs/notify/fanotify/
H A Dfanotify_user.c439 static int fanotify_find_path(int dfd, const char __user *filename, fanotify_find_path() argument
444 pr_debug("%s: dfd=%d filename=%p flags=%x\n", __func__, fanotify_find_path()
445 dfd, filename, flags); fanotify_find_path()
447 if (filename == NULL) { fanotify_find_path()
472 ret = user_path_at(dfd, filename, lookup_flags, path); fanotify_find_path()
/linux-4.1.27/fs/f2fs/
H A Ddir.c136 !memcmp(d->filename[bit_pos], name->name, name->len)) find_target_dentry()
329 memcpy(d->filename[0], ".", 1); do_make_empty_dir()
336 memcpy(d->filename[1], "..", 2); do_make_empty_dir()
484 memcpy(d->filename[bit_pos], name->name, name->len); f2fs_update_dentry()
750 if (!dir_emit(ctx, d->filename[bit_pos], f2fs_fill_dentries()
/linux-4.1.27/drivers/pcmcia/
H A Dds.c726 * @filename: requested filename in /lib/firmware/
732 static int pcmcia_load_firmware(struct pcmcia_device *dev, char * filename) pcmcia_load_firmware() argument
740 if (!filename) pcmcia_load_firmware()
743 dev_dbg(&dev->dev, "trying to load CIS file %s\n", filename); pcmcia_load_firmware()
745 if (request_firmware(&fw, filename, &dev->dev) == 0) { pcmcia_load_firmware()
784 static inline int pcmcia_load_firmware(struct pcmcia_device *dev, char * filename) pcmcia_load_firmware() argument
/linux-4.1.27/drivers/net/wireless/iwlwifi/
H A Diwl-config.h232 * @fw_name_pre: Firmware filename prefix. The api version and extension
233 * (.ucode) will be added to filename before loading from disk. The
234 * filename is constructed as fw_name_pre<api>.ucode.
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-debug.c83 LASSERTF(file != NULL, "called on a null filename\n"); libcfs_run_debug_log_upcall()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dmkregtable.c621 static int parser_auth(struct table *t, const char *filename) parser_auth() argument
641 file = fopen(filename, "r"); parser_auth()
643 fprintf(stderr, "Failed to open: %s\n", filename); parser_auth()
676 r, filename); parser_auth()
/linux-4.1.27/fs/sysfs/
H A Ddir.c30 WARN(1, KERN_WARNING "sysfs: cannot create duplicate filename '%s/%s'\n", sysfs_warn_dup()
/linux-4.1.27/arch/powerpc/include/asm/
H A Delf.h132 /* Notes used in ET_CORE. Note name is "SPU/<fd>/<filename>". */

Completed in 5728 milliseconds

12