Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 81) sorted by relevance

1234

/tools/libs/light/
A Dgentest.py59 for f in [f for f in ty.fields if not f.const]:
99 f = open(impl, "w") variable
100 f.write("""
236 f.write("""
244 f.write("""
294 f.write("\n")
330 f.write("\n")
342 f.write("\n")
353 f.write("\n")
365 f.write("\n")
[all …]
A Dgentypes.py52 x = libxl_C_instance_of(f.type, f.name)
94 for f in [f for f in ty.fields if not f.const]:
139 for f in [f for f in ty.fields if not f.const and not f.type.private]:
164 return [f for f in ty.fields if not f.const and isinstance(f.type,idl.KeyedUnion)]
201 for f in [f for f in ty.fields if not f.const]:
286 for f in [f for f in field.type.fields if not f.const]:
296 for f in [f for f in field.type.fields if not f.const]:
402 for f in [f for f in ty.fields if not f.const and not f.type.private]:
504 for f in [f for f in ty.fields if not f.const and not f.type.private]:
648 f.close()
[all …]
A Didl.py218 for f in fields:
220 if len(f) == 2:
221 n,t = f
223 elif len(f) == 3:
224 n,t,kw = f
238 def member(self, v, f, isref): argument
244 if f.name is None: # Anonymous
278 for f in fields:
280 e, ty = f
350 def parse(f): argument
[all …]
A Dlibxl_utils.c328 FILE *f = 0; in libxl_read_file_contents() local
336 if (!f) { in libxl_read_file_contents()
367 if (ferror(f)) in libxl_read_file_contents()
378 if (fclose(f)) { in libxl_read_file_contents()
379 f = 0; in libxl_read_file_contents()
394 if (f) fclose(f); in libxl_read_file_contents()
402 FILE *f = 0; in libxl__read_sysfs_file_contents() local
410 if (!f) { in libxl__read_sysfs_file_contents()
454 if (fclose(f)) { in libxl__read_sysfs_file_contents()
455 f = 0; in libxl__read_sysfs_file_contents()
[all …]
/tools/include/xen-foreign/
A Dmkchecker.py10 f = open(outfile, "w"); variable
11 f.write('''
29 f.write('\tprintf("\\n");');
33 f.write('\tprintf("\\n");');
35 f.write('\tprintf("\\n");');
55 f.write('\t);\n')
56 f.write("#else\n");
61 f.write("#endif\n");
66 f.write('\texit(0);\n');
67 f.write('}\n');
[all …]
A Dmkheader.py120 f = open(name, "r") variable
123 line = f.readline()
129 input += f.read()
130 f.close()
230 with open(outfile, "w") as f:
231 f.write(output)
/tools/golang/xenlight/
A Dgengotypes.py56 f.write(tdef)
57 f.write('\n')
116 for f in ty.fields:
138 r = xenlight_golang_define_union(f.type, ty.typename, f.name)
172 for f in ty.fields:
219 f.write('/*\n')
223 f.write('\n')
226 f.write(s)
263 for f in ty.fields:
277 r = xenlight_golang_union_from_C(f.type, f.name, ty.typename)
[all …]
/tools/libfsimage/ext2fs-lib/
A Dext2fs-lib.c74 ext2_file_t *f; in ext2lib_open() local
86 f = malloc(sizeof (*f)); in ext2lib_open()
87 if (f == NULL) in ext2lib_open()
93 free(f); in ext2lib_open()
98 file = fsip_file_alloc(fsi, f); in ext2lib_open()
100 free(f); in ext2lib_open()
107 ext2_file_t *f = fsip_file_data(file); in ext2lib_read() local
123 ext2_file_t *f = fsip_file_data(file); in ext2lib_pread() local
153 ext2_file_t *f = fsip_file_data(file); in ext2lib_close() local
154 ext2fs_file_close(*f); in ext2lib_close()
[all …]
/tools/tests/x86_emulator/
A Devex-disp8.c117 INSN(comisd, 66, 0f, 2f, el, q, el),
118 INSN(comiss, , 0f, 2f, el, d, el),
190 INSN_FP(max, 0f, 5f),
197 INSN(movdqa32, 66, 0f, 6f, vl, d_nb, vl),
198 INSN(movdqa32, 66, 0f, 7f, vl, d_nb, vl),
199 INSN(movdqa64, 66, 0f, 6f, vl, q_nb, vl),
200 INSN(movdqa64, 66, 0f, 7f, vl, q_nb, vl),
374 INSN(movdqu8, f2, 0f, 6f, vl, b, vl),
375 INSN(movdqu8, f2, 0f, 7f, vl, b, vl),
376 INSN(movdqu16, f2, 0f, 6f, vl, w, vl),
[all …]
A Dopmask.S43 jne 0f
47 je 1f
85 jnbe 1f
92 jz 1f
99 jc 1f
119 jnbe 1f
126 jz 1f
133 jc 1f
/tools/libs/toollog/
A Dxtl_logger_stdio.c34 FILE *f; member
72 fprintf(lg->f, "[%lu] ", (unsigned long)getpid()); in stdiostream_vmessage()
75 fprintf(lg->f, "%s: ", context); in stdiostream_vmessage()
77 fprintf(lg->f, "%s: ", xtl_level_to_string(level)); in stdiostream_vmessage()
79 vfprintf(lg->f, format, al); in stdiostream_vmessage()
82 fprintf(lg->f, ": %s", strerror(errnoval)); in stdiostream_vmessage()
84 putc('\n', lg->f); in stdiostream_vmessage()
85 fflush(lg->f); in stdiostream_vmessage()
133 putc('\r', lg->f); in stdiostream_progress()
142 fprintf(lg->f, "%*s\r", extra_erase, ""); in stdiostream_progress()
[all …]
/tools/hotplug/Linux/
A Dblock-tap95 local f
103 f=$(xenstore_read_default "$base_path/$dom/$dev/params" "")
104 f=$(echo "$f" | cut -d ":" -f 2)
106 if [ -n "$f" ] && [ "$file" = $f ] ; then
132 local f=$(xenstore_read_default "$base_path/$dom/$dev/params" "")
133 f=$(echo "$f" | cut -d ":" -f 2)
135 if [ -n "$f" ] && [ "$file" = "$f" ] ; then
138 echo "guest $f"
148 echo "guest $f"
/tools/misc/
A Dxen-detect.c146 FILE *f; in check_dir() local
150 f = fopen(filename, "r"); in check_dir()
151 if ( !f ) in check_dir()
153 res = !fstat(fileno(f), &stab) && S_ISDIR(stab.st_mode); in check_dir()
154 fclose(f); in check_dir()
161 FILE *f; in read_file_content() local
166 f = fopen(filename, "r"); in read_file_content()
167 if ( !f ) in read_file_content()
182 datalen = fread(content, 1, stab.st_size, f); in read_file_content()
184 if ( ferror(f) ) in read_file_content()
[all …]
A Dxencov.c49 FILE *f; in cov_read() local
69 f = stdout; in cov_read()
71 f = fopen(fn, "w"); in cov_read()
73 if (!f) in cov_read()
76 if (fwrite(p, 1, total_len, f) != total_len) in cov_read()
79 if (f != stdout) in cov_read()
80 fclose(f); in cov_read()
A Dxencov_split21 f = open(input_file, "rb")
24 s = f.read(4)
31 content = f.read()
33 f.close()
64 f = open(full_path, "wb")
65 f.write(payload)
66 f.close()
A Dxen-ucode.c23 static void show_curr_cpu(FILE *f) in show_curr_cpu() argument
29 int exit_code = (f == stderr) ? 2 : 1; in show_curr_cpu()
57 fprintf(f, in show_curr_cpu()
65 fprintf(f, in show_curr_cpu()
72 fprintf(f, "Unsupported CPU vendor: %s\n", cpu_ver.vendor_id); in show_curr_cpu()
/tools/flask/utils/
A Dlabel-pci.c44 FILE *f; in main() local
70 f = fopen(buf, "r"); in main()
71 if (!f) { in main()
86 while (fscanf(f, "0x%"SCNx64" 0x%"SCNx64" 0x%"SCNx64"\n", &start, &end, &flags) == 3) { in main()
107 fclose(f); in main()
111 f = fopen(buf, "r"); in main()
112 if (!f) in main()
114 if (fscanf(f, "%" SCNu64, &start) != 1) in main()
124 fclose(f); in main()
/tools/firmware/xen-dir/
A DMakefile60 find $(d) ! -type l -type f $(addprefix ! -name ,$(LINK_EXCLUDES)) \
63 $(foreach f, $(LINK_FILES), \
64 echo $(f) >> linkfarm.stamp.tmp ;)
67 cat linkfarm.stamp.tmp | while read f; \
68 do rm -f "$(D)/$$f"; ln -s "$(XEN_ROOT)/$$f" "$(D)/$$f"; done; \
/tools/ocaml/xenstored/
A Dconfig.ml86 let parse ~err_msg parser v f =
89 | Some r -> f r
96 | Unit f -> f ()
97 | Bool f -> parse ~err_msg:"expect bool arg" bool_of_string_opt v f
98 | String f -> f v
99 | Int f -> parse ~err_msg:"expect int arg" int_of_string_opt v f
100 | Float f -> parse ~err_msg:"expect float arg" float_of_string_opt v f
A Dtrie.ml73 let rec iter f tree =
75 f key node.Node.value;
76 iter f node.Node.children
80 let rec map f tree =
85 | Some value -> f value
87 { node with Node.value = value; Node.children = map f node.Node.children }
92 let rec fold f tree acc =
94 fold f node.Node.children (f key node.Node.value accu)
129 let rec iter_path f tree = function
135 f node.Node.key node.Node.value;
[all …]
A Dtrie.mli43 (** [iter f t] applies the function [f] to every node of the trie [t].
45 [f] is an option type. *)
48 (** [iter_path f t p] iterates [f] over nodes associated with the path [p] in the trie [t].
52 (** [fold f t x] fold [f] over every nodes of [t], with [x] as initial value. *)
55 (** [map f t] maps [f] over every values stored in [t]. The return value of [f] is of type 'c option
A Dstdext.ml30 (match !exnhook with None -> () | Some f -> f exn);
35 (** if v is not none, apply f on it and return some value else return none. *)
36 let may f v =
37 match v with Some x -> Some (f x) | None -> None
43 (** apply f on v if not none *)
44 let maybe f v =
45 match v with None -> () | Some x -> f x
60 let update k f t =
62 let r' = f r in
86 let fold_left f accu string =
[all …]
/tools/libfsimage/zfs/
A Dzfs_sha256.c73 uint32_t a, b, c, d, e, f, g, h, t, T1, T2, W[64]; in SHA256Transform() local
83 e = H[4]; f = H[5]; g = H[6]; h = H[7]; in SHA256Transform()
86 T1 = h + SIGMA1(e) + Ch(e, f, g) + SHA256_K[t] + W[t]; in SHA256Transform()
88 h = g; g = f; f = e; e = d + T1; in SHA256Transform()
93 H[4] += e; H[5] += f; H[6] += g; H[7] += h; in SHA256Transform()
/tools/xcutils/
A Dreadnotes.c177 const char *f; in main() local
194 f = argv[1]; in main()
198 fd = open(f, O_RDONLY); in main()
201 fprintf(stderr, "Unable to open %s: %s\n", f, strerror(errno)); in main()
207 f, strerror(errno)); in main()
214 fprintf(stderr, "Unable to map %s: %s\n", f, strerror(errno)); in main()
262 fprintf(stderr, "File %s is not an ELF image\n", f); in main()
/tools/pygrub/examples/
A Dfedora-19.grub271 search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 5001334f-de37-4b0b-bd2b-c1cea036f293
73 search --no-floppy --fs-uuid --set=root 5001334f-de37-4b0b-bd2b-c1cea036f293
85 search --no-floppy --fs-uuid --set=root --hint='hd0,msdos1' 5001334f-de37-4b0b-bd2b-c1cea036f293
87 search --no-floppy --fs-uuid --set=root 5001334f-de37-4b0b-bd2b-c1cea036f293
112 if [ -f ${config_directory}/custom.cfg ]; then
114 elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then

Completed in 81 milliseconds

1234