Home
last modified time | relevance | path

Searched refs:fd_w (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/io/direct_io/
Ddiotest3.c91 int runtest(int fd_r, int fd_w, int childnum, int action) in runtest() argument
112 if (lseek(fd_w, seekoff, SEEK_SET) < 0) { in runtest()
116 if (write(fd_w, buf1, bufsize) < bufsize) { in runtest()
122 if (fsync(fd_w) < 0) { in runtest()
150 int fd_w, fd_r; in child_function() local
154 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in child_function()
164 close(fd_w); in child_function()
167 if (runtest(fd_r, fd_w, childnum, action) == -1) { in child_function()
170 close(fd_w); in child_function()
176 if ((fd_w = in child_function()
[all …]
Ddiotest6.c85 int runtest(int fd_r, int fd_w, int childnum, int action) in runtest() argument
125 if (lseek(fd_w, seekoff, SEEK_SET) < 0) { in runtest()
130 n = writev(fd_w, iov_w, nvector); in runtest()
137 if (fsync(fd_w) < 0) { in runtest()
176 int fd_w, fd_r; in child_function() local
180 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in child_function()
188 close(fd_w); in child_function()
192 if (runtest(fd_r, fd_w, childnum, action) == -1) { in child_function()
195 close(fd_w); in child_function()
201 if ((fd_w = in child_function()
[all …]
Ddiotest2.c81 int runtest(int fd_r, int fd_w, int iter, off64_t offset, int action) in runtest() argument
100 if (lseek(fd_w, offset + iter * bufsize, SEEK_SET) < 0) { in runtest()
105 if (write(fd_w, buf1, bufsize) < bufsize) { in runtest()
140 int i, action, fd_r, fd_w; in main() local
182 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main()
188 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { in main()
194 close(fd_w); in main()
201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
207 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { in main()
213 close(fd_w); in main()
[all …]
Ddiotest5.c85 int runtest(int fd_r, int fd_w, int iter, off64_t offset, int action) in runtest() argument
122 if (lseek(fd_w, offset, SEEK_SET) < 0) { in runtest()
127 if (writev(fd_w, iov1, nvector) < 0) { in runtest()
170 int i, action, fd_r, fd_w; in main() local
217 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) { in main()
225 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { in main()
234 close(fd_w); in main()
239 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main()
247 if (runtest(fd_r, fd_w, iter, offset, action) < 0) { in main()
255 close(fd_w); in main()
[all …]
/external/valgrind/none/tests/mips32/
Dround.c98 fd_w = 0; \
102 : "=r" (fcsr), "=r"(fd_w) \
107 fd_w = 0; \
111 : "=r" (fcsr), "=r"(fd_w) \
166 int fd_w = 0; in directedRoundingMode() local
176 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
181 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode()
186 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
191 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode()
196 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
[all …]
/external/valgrind/none/tests/mips64/
Dround.c7 int fd_w = 0; in directedRoundingMode() local
16 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
21 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode()
26 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
31 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode()
36 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
41 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode()
46 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode()
51 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode()
106 int fd_w = 0; in FCSRRoundingMode() local
[all …]
Dmacro_fpu.h93 fd_w = 0; \
98 : "=r" (fcsr), "=r"(fd_w) \
104 fd_w = 0; \
109 : "=r" (fcsr), "=r"(fd_w) \