Home
last modified time | relevance | path

Searched refs:fl (Results 1 – 25 of 455) sorted by relevance

12345678910>>...19

/external/libopus/celt/
Dlaplace.c53 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/
Dlock.c18 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/strace/tests-m32/
Dfcntl-common.c64 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock, fl); in test_flock_einval()
65 memset(fl, 0, sizeof(*fl)); in test_flock_einval()
66 fl->l_type = F_RDLCK; in test_flock_einval()
67 fl->l_start = (TYPEOF_FLOCK_OFF_T) 0xdefaced1facefeedULL; in test_flock_einval()
68 fl->l_len = (TYPEOF_FLOCK_OFF_T) 0xdefaced2cafef00dULL; in test_flock_einval()
70 invoke_test_syscall(0, cmd, fl); in test_flock_einval()
73 (intmax_t) fl->l_start, (intmax_t) fl->l_len, errstr); in test_flock_einval()
75 void *const bad_addr = (void *) fl + 1; in test_flock_einval()
88 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_einval()
89 memset(fl, 0, sizeof(*fl)); in test_flock64_einval()
[all …]
Dfcntl64.c44 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_lk64()
45 memset(fl, 0, sizeof(*fl)); in test_flock64_lk64()
46 fl->l_type = F_RDLCK; in test_flock64_lk64()
47 fl->l_len = FILE_LEN; in test_flock64_lk64()
49 long rc = invoke_test_syscall(0, F_SETLK64, fl); in test_flock64_lk64()
57 invoke_test_syscall(0, F_GETLK64, fl); in test_flock64_lk64()
62 invoke_test_syscall(0, F_SETLKW64, fl); in test_flock64_lk64()
/external/strace/tests-mx32/
Dfcntl-common.c64 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock, fl); in test_flock_einval()
65 memset(fl, 0, sizeof(*fl)); in test_flock_einval()
66 fl->l_type = F_RDLCK; in test_flock_einval()
67 fl->l_start = (TYPEOF_FLOCK_OFF_T) 0xdefaced1facefeedULL; in test_flock_einval()
68 fl->l_len = (TYPEOF_FLOCK_OFF_T) 0xdefaced2cafef00dULL; in test_flock_einval()
70 invoke_test_syscall(0, cmd, fl); in test_flock_einval()
73 (intmax_t) fl->l_start, (intmax_t) fl->l_len, errstr); in test_flock_einval()
75 void *const bad_addr = (void *) fl + 1; in test_flock_einval()
88 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_einval()
89 memset(fl, 0, sizeof(*fl)); in test_flock64_einval()
[all …]
Dfcntl64.c44 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_lk64()
45 memset(fl, 0, sizeof(*fl)); in test_flock64_lk64()
46 fl->l_type = F_RDLCK; in test_flock64_lk64()
47 fl->l_len = FILE_LEN; in test_flock64_lk64()
49 long rc = invoke_test_syscall(0, F_SETLK64, fl); in test_flock64_lk64()
57 invoke_test_syscall(0, F_GETLK64, fl); in test_flock64_lk64()
62 invoke_test_syscall(0, F_SETLKW64, fl); in test_flock64_lk64()
/external/strace/tests/
Dfcntl-common.c64 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock, fl); in test_flock_einval()
65 memset(fl, 0, sizeof(*fl)); in test_flock_einval()
66 fl->l_type = F_RDLCK; in test_flock_einval()
67 fl->l_start = (TYPEOF_FLOCK_OFF_T) 0xdefaced1facefeedULL; in test_flock_einval()
68 fl->l_len = (TYPEOF_FLOCK_OFF_T) 0xdefaced2cafef00dULL; in test_flock_einval()
70 invoke_test_syscall(0, cmd, fl); in test_flock_einval()
73 (intmax_t) fl->l_start, (intmax_t) fl->l_len, errstr); in test_flock_einval()
75 void *const bad_addr = (void *) fl + 1; in test_flock_einval()
88 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_einval()
89 memset(fl, 0, sizeof(*fl)); in test_flock64_einval()
[all …]
Dfcntl64.c44 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_lk64()
45 memset(fl, 0, sizeof(*fl)); in test_flock64_lk64()
46 fl->l_type = F_RDLCK; in test_flock64_lk64()
47 fl->l_len = FILE_LEN; in test_flock64_lk64()
49 long rc = invoke_test_syscall(0, F_SETLK64, fl); in test_flock64_lk64()
57 invoke_test_syscall(0, F_GETLK64, fl); in test_flock64_lk64()
62 invoke_test_syscall(0, F_SETLKW64, fl); in test_flock64_lk64()
/external/selinux/libselinux/src/
Dmatchpathcon.c193 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 …]
Dselinux_restorecon.c425 file_spec_t *prevfl, *fl; in filespec_add() local
437 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in filespec_add()
438 prevfl = fl, fl = fl->next) { in filespec_add()
439 if (ino == fl->ino) { in filespec_add()
440 ret = lstat64(fl->file, &sb); in filespec_add()
442 freecon(fl->con); in filespec_add()
443 free(fl->file); in filespec_add()
444 fl->file = strdup(file); in filespec_add()
445 if (!fl->file) in filespec_add()
447 fl->con = strdup(con); in filespec_add()
[all …]
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl20.c127 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 …]
Dfcntl19.c130 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 …]
Dfcntl11.c116 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 …]
Dfcntl21.c134 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/aac/libFDK/src/
Dmdct.cpp146 int fl, nl, nr; in mdct_block() local
176 fl = hMdct->prev_fr; in mdct_block()
177 nl = (tl - fl) >> 1; in mdct_block()
208 for (i = 0; i < fl / 2; i++) { in mdct_block()
374 int fl = *pfl, nl = *pnl; in imdct_adapt_parameters() local
378 hMdct->prev_fr = fl; in imdct_adapt_parameters()
379 hMdct->prev_nr = (noOutSamples - fl) >> 1; in imdct_adapt_parameters()
385 window_diff = (hMdct->prev_fr - fl) >> 1; in imdct_adapt_parameters()
400 if (fl < hMdct->prev_fr) { in imdct_adapt_parameters()
410 hMdct->prev_fr = fl; in imdct_adapt_parameters()
[all …]
/external/libffi/testsuite/libffi.call/
Dreturn_fl.c10 static float return_fl(float fl) in return_fl() argument
12 return 2 * fl; in return_fl()
19 float fl, rfl; in main() local
22 values[0] = &fl; in main()
28 for (fl = -127.0; fl < 127; fl++) in main()
31 printf ("%f vs %f\n", rfl, return_fl(fl)); in main()
32 CHECK(rfl == 2 * fl); in main()
/external/python/cpython2/Modules/_ctypes/libffi/testsuite/libffi.call/
Dreturn_fl.c10 static float return_fl(float fl) in return_fl() argument
12 return 2 * fl; in return_fl()
19 float fl, rfl; in main() local
22 values[0] = &fl; in main()
28 for (fl = -127.0; fl < 127; fl++) in main()
31 printf ("%f vs %f\n", rfl, return_fl(fl)); in main()
32 CHECK(rfl == 2 * fl); in main()
/external/aac/libAACdec/src/
Dusacdec_fac.cpp279 int i, fl, nrSamples = 0; in CLpd_FAC_Mdct2Acelp() local
283 fl = fac_length * 2; in CLpd_FAC_Mdct2Acelp()
285 pWindow = FDKgetWindowSlope(fl, prevWindowShape); in CLpd_FAC_Mdct2Acelp()
288 if (hMdct->prev_fr != fl) { in CLpd_FAC_Mdct2Acelp()
290 imdct_adapt_parameters(hMdct, &fl, &nl, fac_length, pWindow, nrOutSamples); in CLpd_FAC_Mdct2Acelp()
306 hMdct->ov_offset += hMdct->prev_nr + fl / 2; in CLpd_FAC_Mdct2Acelp()
309 nrSamples += hMdct->prev_nr + fl / 2; in CLpd_FAC_Mdct2Acelp()
341 for (; i < fl / 2; i++) { in CLpd_FAC_Mdct2Acelp()
351 for (; i < fl / 2; i++) { in CLpd_FAC_Mdct2Acelp()
363 FIXP_DBL *pOut = pOut0 - fl / 2; /* fl/2 == fac_length */ in CLpd_FAC_Mdct2Acelp()
[all …]
/external/python/cpython2/Demo/turtle/
Dtdemo_penrose.py26 fl = f * l
30 fd(fl)
32 fd(fl)
38 fl = f * l
42 fd(fl)
44 fd(fl)
55 fl = f * l
57 inflatedart(fl, n-1)
60 inflatekite(fl, n-1)
64 inflatekite(fl, n-1)
[all …]
/external/python/cpython3/Lib/turtledemo/
Dpenrose.py26 fl = f * l
30 fd(fl)
32 fd(fl)
38 fl = f * l
42 fd(fl)
44 fd(fl)
55 fl = f * l
57 inflatedart(fl, n-1)
60 inflatekite(fl, n-1)
64 inflatekite(fl, n-1)
[all …]
/external/u-boot/scripts/kconfig/
Dkxgettext.c137 struct file_line *fl = file_line__new(file, lineno); in message__add_file_line() local
139 if (fl == NULL) in message__add_file_line()
142 fl->next = self->files; in message__add_file_line()
143 self->files = fl; in message__add_file_line()
191 struct file_line *fl = self->files; in message__print_file_lineno() local
197 printf("#: %s:%d", fl->file, fl->lineno); in message__print_file_lineno()
198 fl = fl->next; in message__print_file_lineno()
200 while (fl != NULL) { in message__print_file_lineno()
201 printf(", %s:%d", fl->file, fl->lineno); in message__print_file_lineno()
202 fl = fl->next; in message__print_file_lineno()
/external/strace/
Dfcntl.c43 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/adhd/cras/src/common/
Dcras_util.c75 int fl; in cras_make_fd_nonblocking() local
77 fl = fcntl(fd, F_GETFL); in cras_make_fd_nonblocking()
78 if (fl < 0) in cras_make_fd_nonblocking()
79 return fl; in cras_make_fd_nonblocking()
80 if (fl & O_NONBLOCK) in cras_make_fd_nonblocking()
82 return fcntl(fd, F_SETFL, fl | O_NONBLOCK); in cras_make_fd_nonblocking()
87 int fl; in cras_make_fd_blocking() local
89 fl = fcntl(fd, F_GETFL); in cras_make_fd_blocking()
90 if (fl < 0) in cras_make_fd_blocking()
91 return fl; in cras_make_fd_blocking()
[all …]
/external/ltp/testcases/kernel/syscalls/eventfd2/
Deventfd2_02.c82 int fd, fl; in main() local
97 fl = fcntl(fd, F_GETFL); in main()
98 if (fl == -1) { in main()
101 if (fl & O_NONBLOCK) { in main()
110 fl = fcntl(fd, F_GETFL); in main()
111 if (fl == -1) { in main()
114 if ((fl & O_NONBLOCK) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd03.c123 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()

12345678910>>...19