/external/fio/lib/ |
D | lfsr.c | 84 static inline void __lfsr_next(struct fio_lfsr *fl, unsigned int spin) in __lfsr_next() argument 91 case 15: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 92 case 14: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 93 case 13: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 94 case 12: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 95 case 11: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 96 case 10: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 97 case 9: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 98 case 8: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() 99 case 7: __LFSR_NEXT(fl, fl->last_val); in __lfsr_next() [all …]
|
/external/libopus/celt/ |
D | laplace.c | 53 unsigned fl; in ec_laplace_encode() local 55 fl = 0; in ec_laplace_encode() 62 fl = fs; in ec_laplace_encode() 68 fl += fs+2*LAPLACE_MINP; in ec_laplace_encode() 76 ndi_max = (32768-fl+LAPLACE_MINP-1)>>LAPLACE_LOG_MINP; in ec_laplace_encode() 79 fl += (2*di+1+s)*LAPLACE_MINP; in ec_laplace_encode() 80 fs = IMIN(LAPLACE_MINP, 32768-fl); in ec_laplace_encode() 86 fl += fs&~s; in ec_laplace_encode() 88 celt_assert(fl+fs<=32768); in ec_laplace_encode() 91 ec_encode_bin(enc, fl, fl+fs, 15); in ec_laplace_encode() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | lock.c | 18 struct flock fl; in do_lock_exclusive() local 21 memset((void *)&fl, 0, sizeof(fl)); in do_lock_exclusive() 23 fl.l_type = F_WRLCK; in do_lock_exclusive() 24 fl.l_whence = fl.l_start = 0; in do_lock_exclusive() 25 fl.l_len = 0; /* 0 means "to end of file" */ in do_lock_exclusive() 27 res = fcntl(fd, F_SETLK, &fl); in do_lock_exclusive() 37 struct flock fl; in do_unlock() local 39 memset((void *)&fl, 0, sizeof(fl)); in do_unlock() 41 fl.l_type = F_UNLCK; in do_unlock() 42 fl.l_whence = fl.l_start = 0; in do_unlock() [all …]
|
/external/selinux/libselinux/src/ |
D | matchpathcon.c | 193 file_spec_t *prevfl, *fl; in matchpathcon_filespec_add() local 205 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in matchpathcon_filespec_add() 206 prevfl = fl, fl = fl->next) { in matchpathcon_filespec_add() 207 if (ino == fl->ino) { in matchpathcon_filespec_add() 208 ret = lstat(fl->file, &sb); in matchpathcon_filespec_add() 210 fl->specind = specind; in matchpathcon_filespec_add() 211 free(fl->file); in matchpathcon_filespec_add() 212 fl->file = malloc(strlen(file) + 1); in matchpathcon_filespec_add() 213 if (!fl->file) in matchpathcon_filespec_add() 215 strcpy(fl->file, file); in matchpathcon_filespec_add() [all …]
|
D | selinux_restorecon.c | 415 file_spec_t *prevfl, *fl; in filespec_add() local 427 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in filespec_add() 428 prevfl = fl, fl = fl->next) { in filespec_add() 429 if (ino == fl->ino) { in filespec_add() 430 ret = lstat64(fl->file, &sb); in filespec_add() 432 freecon(fl->con); in filespec_add() 433 free(fl->file); in filespec_add() 434 fl->file = strdup(file); in filespec_add() 435 if (!fl->file) in filespec_add() 437 fl->con = strdup(con); in filespec_add() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl19.c | 130 struct flock fl; in do_child() local 135 child_get(&fl); in do_child() 136 if (fcntl(fd, F_GETLK, &fl) < 0) in do_child() 138 child_put(&fl); in do_child() 144 struct flock fl; in do_lock() local 146 fl.l_type = type; in do_lock() 147 fl.l_whence = whence; in do_lock() 148 fl.l_start = start; in do_lock() 149 fl.l_len = len; in do_lock() 150 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
D | fcntl20.c | 127 struct flock fl; in do_child() local 132 child_get(&fl); in do_child() 133 if (fcntl(fd, F_GETLK, &fl) < 0) { in do_child() 137 child_put(&fl); in do_child() 143 struct flock fl; in do_lock() local 145 fl.l_type = type; in do_lock() 146 fl.l_whence = whence; in do_lock() 147 fl.l_start = start; in do_lock() 148 fl.l_len = len; in do_lock() 149 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
D | fcntl11.c | 116 struct flock fl; in do_child() local 121 child_get(&fl); in do_child() 122 if (fcntl(fd, F_GETLK, &fl) < 0) in do_child() 124 child_put(&fl); in do_child() 130 struct flock fl; in do_lock() local 132 fl.l_type = type; in do_lock() 133 fl.l_whence = whence; in do_lock() 134 fl.l_start = start; in do_lock() 135 fl.l_len = len; in do_lock() 136 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
D | fcntl21.c | 134 struct flock fl; in do_child() local 139 child_get(&fl); in do_child() 140 if (fcntl(fd, F_GETLK, &fl) < 0) { in do_child() 145 child_put(&fl); in do_child() 151 struct flock fl; in do_lock() local 153 fl.l_type = type; in do_lock() 154 fl.l_whence = whence; in do_lock() 155 fl.l_start = start; in do_lock() 156 fl.l_len = len; in do_lock() 157 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
/external/fio/t/ |
D | lfsr-test.c | 31 struct fio_lfsr *fl; in main() local 54 fl = malloc(sizeof(struct fio_lfsr)); in main() 55 if (!fl) { in main() 60 r = lfsr_init(fl, numbers, seed, spin); in main() 69 printf("Size is %u\n", 64 - __builtin_clzl(fl->cached_bit)); in main() 70 printf("Max val is %lu\n", (unsigned long) fl->max_val); in main() 71 printf("XOR-mask is 0x%lX\n", (unsigned long) fl->xormask); in main() 72 printf("Seed is %lu\n", (unsigned long) fl->last_val); in main() 73 printf("Spin is %u\n", fl->spin); in main() 74 printf("Cycle length is %lu\n", (unsigned long) fl->cycle_length); in main() [all …]
|
/external/aac/libFDK/src/ |
D | mdct.cpp | 201 int fl = *pfl, nl = *pnl; in imdct_adapt_parameters() local 205 hMdct->prev_fr = fl; in imdct_adapt_parameters() 206 hMdct->prev_nr = (noOutSamples-fl)>>1; in imdct_adapt_parameters() 212 window_diff = (hMdct->prev_fr - fl)>>1; in imdct_adapt_parameters() 225 if (fl < hMdct->prev_fr) { in imdct_adapt_parameters() 237 hMdct->prev_fr = fl; in imdct_adapt_parameters() 241 fl = hMdct->prev_fr; in imdct_adapt_parameters() 244 *pfl = fl; in imdct_adapt_parameters() 257 INT fl, in imdct_block() argument 270 nl = (tl - fl)>>1; in imdct_block() [all …]
|
/external/strace/tests/ |
D | fcntl64.c | 42 struct_kernel_flock64 fl = { in test_flock64_einval() local 47 invoke_test_syscall(cmd, &fl); in test_flock64_einval() 50 (intmax_t) fl.l_start, (intmax_t) fl.l_len, EINVAL_STR); in test_flock64_einval() 63 struct_kernel_flock64 fl = { in test_flock64() local 67 long rc = invoke_test_syscall(F_SETLK64, &fl); in test_flock64() 75 invoke_test_syscall(F_GETLK64, &fl); in test_flock64() 80 invoke_test_syscall(F_SETLK64, &fl); in test_flock64()
|
D | struct_flock.c | 56 struct_kernel_flock fl = { in test_flock_einval() local 61 invoke_test_syscall(cmd, &fl); in test_flock_einval() 64 (intmax_t) fl.l_start, (intmax_t) fl.l_len, EINVAL_STR); in test_flock_einval() 73 struct_kernel_flock fl = { in test_flock() local 77 long rc = invoke_test_syscall(F_SETLK, &fl); in test_flock() 84 invoke_test_syscall(F_GETLK, &fl); in test_flock() 89 invoke_test_syscall(F_SETLK, &fl); in test_flock()
|
/external/strace/tests-mx32/ |
D | fcntl64.c | 42 struct_kernel_flock64 fl = { in test_flock64_einval() local 47 invoke_test_syscall(cmd, &fl); in test_flock64_einval() 50 (intmax_t) fl.l_start, (intmax_t) fl.l_len, EINVAL_STR); in test_flock64_einval() 63 struct_kernel_flock64 fl = { in test_flock64() local 67 long rc = invoke_test_syscall(F_SETLK64, &fl); in test_flock64() 75 invoke_test_syscall(F_GETLK64, &fl); in test_flock64() 80 invoke_test_syscall(F_SETLK64, &fl); in test_flock64()
|
D | struct_flock.c | 56 struct_kernel_flock fl = { in test_flock_einval() local 61 invoke_test_syscall(cmd, &fl); in test_flock_einval() 64 (intmax_t) fl.l_start, (intmax_t) fl.l_len, EINVAL_STR); in test_flock_einval() 73 struct_kernel_flock fl = { in test_flock() local 77 long rc = invoke_test_syscall(F_SETLK, &fl); in test_flock() 84 invoke_test_syscall(F_GETLK, &fl); in test_flock() 89 invoke_test_syscall(F_SETLK, &fl); in test_flock()
|
/external/strace/tests-m32/ |
D | fcntl64.c | 42 struct_kernel_flock64 fl = { in test_flock64_einval() local 47 invoke_test_syscall(cmd, &fl); in test_flock64_einval() 50 (intmax_t) fl.l_start, (intmax_t) fl.l_len, EINVAL_STR); in test_flock64_einval() 63 struct_kernel_flock64 fl = { in test_flock64() local 67 long rc = invoke_test_syscall(F_SETLK64, &fl); in test_flock64() 75 invoke_test_syscall(F_GETLK64, &fl); in test_flock64() 80 invoke_test_syscall(F_SETLK64, &fl); in test_flock64()
|
D | struct_flock.c | 56 struct_kernel_flock fl = { in test_flock_einval() local 61 invoke_test_syscall(cmd, &fl); in test_flock_einval() 64 (intmax_t) fl.l_start, (intmax_t) fl.l_len, EINVAL_STR); in test_flock_einval() 73 struct_kernel_flock fl = { in test_flock() local 77 long rc = invoke_test_syscall(F_SETLK, &fl); in test_flock() 84 invoke_test_syscall(F_GETLK, &fl); in test_flock() 89 invoke_test_syscall(F_SETLK, &fl); in test_flock()
|
/external/chromium-trace/catapult/telemetry/third_party/altgraph/altgraph_tests/ |
D | test_object_graph.py | 172 fl = list(graph.flatten()) 173 self.assertTrue(n1 in fl) 174 self.assertTrue(n2 in fl) 175 self.assertTrue(n3 in fl) 176 self.assertTrue(n4 in fl) 177 self.assertTrue(n5 in fl) 178 self.assertTrue(n6 in fl) 179 self.assertTrue(n7 in fl) 180 self.assertFalse(n8 in fl) 182 fl = list(graph.flatten(start=n2)) [all …]
|
/external/ltp/testcases/kernel/syscalls/eventfd2/ |
D | eventfd2_02.c | 121 int fd, fl; in main() local 134 fl = fcntl(fd, F_GETFL); in main() 135 if (fl == -1) { in main() 138 if (fl & O_NONBLOCK) { in main() 147 fl = fcntl(fd, F_GETFL); in main() 148 if (fl == -1) { in main() 151 if ((fl & O_NONBLOCK) == 0) { in main()
|
/external/strace/ |
D | fcntl.c | 43 print_struct_flock64(const struct_kernel_flock64 *fl, const int getlk) in print_struct_flock64() argument 46 printxval(lockfcmds, (unsigned short) fl->l_type, "F_???"); in print_struct_flock64() 48 printxval(whence_codes, (unsigned short) fl->l_whence, "SEEK_???"); in print_struct_flock64() 50 (int64_t) fl->l_start, (int64_t) fl->l_len); in print_struct_flock64() 52 tprintf(", l_pid=%lu", (unsigned long) fl->l_pid); in print_struct_flock64() 59 struct_kernel_flock64 fl; in printflock64() local 61 if (fetch_struct_flock64(tcp, addr, &fl)) in printflock64() 62 print_struct_flock64(&fl, getlk); in printflock64() 68 struct_kernel_flock64 fl; in printflock() local 70 if (fetch_struct_flock(tcp, addr, &fl)) in printflock() [all …]
|
/external/ltp/testcases/kernel/syscalls/socketpair/ |
D | socketpair02.c | 117 int fds[2], fl, i; in main() local 129 fl = fcntl(fds[i], F_GETFL); in main() 130 if (fl == -1) { in main() 133 if (fl & O_NONBLOCK) { in main() 145 fl = fcntl(fds[i], F_GETFL); in main() 146 if (fl == -1) { in main() 149 if ((fl & O_NONBLOCK) == 0) { in main()
|
/external/ltp/testcases/kernel/syscalls/socket/ |
D | socket03.c | 119 int fd, fl; in main() local 137 fl = fcntl(fd, F_GETFL); in main() 138 if (fl == -1) { in main() 141 if (fl & O_NONBLOCK) { in main() 153 fl = fcntl(fd, F_GETFL); in main() 154 if (fl == -1) { in main() 157 if ((fl & O_NONBLOCK) == 0) { in main()
|
/external/valgrind/none/tests/ |
D | mmap_fcntl_bug.c | 18 struct flock fl; in main() local 38 fl.l_type = F_WRLCK; in main() 39 fl.l_whence = SEEK_SET; in main() 40 fl.l_start = 0; in main() 41 fl.l_len = 1; in main() 44 if (fcntl(fd, F_SETLK, &fl) != 0) in main() 56 if (fcntl(fd, F_SETLK, &fl) == 0) in main()
|
/external/ltp/testcases/kernel/syscalls/inotify_init/ |
D | inotify_init1_02.c | 121 int fd, fl; in main() local 141 fl = fcntl(fd, F_GETFL); in main() 142 if (fl == -1) { in main() 146 if (fl & O_NONBLOCK) { in main() 158 fl = fcntl(fd, F_GETFL); in main() 159 if (fl == -1) { in main() 163 if ((fl & O_NONBLOCK) == 0) { in main()
|
/external/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd03.c | 123 int fd, fl; in main() local 143 fl = fcntl(fd, F_GETFL); in main() 144 if (fl == -1) { in main() 147 if (fl & O_NONBLOCK) { in main() 161 fl = fcntl(fd, F_GETFL); in main() 162 if (fl == -1) { in main() 165 if ((fl & O_NONBLOCK) == 0) { in main()
|