Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 75) sorted by relevance

123

/bionic/libc/kernel/uapi/linux/iio/
Devents.h28 #define IIO_EVENT_CODE_EXTRACT_TYPE(mask) ((mask >> 56) & 0xFF) argument
29 #define IIO_EVENT_CODE_EXTRACT_DIR(mask) ((mask >> 48) & 0x7F) argument
30 #define IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(mask) ((mask >> 32) & 0xFF) argument
31 #define IIO_EVENT_CODE_EXTRACT_CHAN(mask) ((__s16) (mask & 0xFFFF)) argument
32 #define IIO_EVENT_CODE_EXTRACT_CHAN2(mask) ((__s16) (((mask) >> 16) & 0xFFFF)) argument
33 #define IIO_EVENT_CODE_EXTRACT_MODIFIER(mask) ((mask >> 40) & 0xFF) argument
34 #define IIO_EVENT_CODE_EXTRACT_DIFF(mask) (((mask) >> 55) & 0x1) argument
/bionic/tests/
Dsys_signalfd_test.cpp57 sigset_t mask = {}; in TEST() local
58 sigaddset(&mask, SIGALRM); in TEST()
59 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, &mask, nullptr)); in TEST()
61 TestSignalFd(signalfd(-1, &mask, SFD_CLOEXEC), SIGALRM); in TEST()
68 sigset64_t mask = {}; in TEST() local
69 sigaddset64(&mask, SIGRTMIN); in TEST()
70 ASSERT_EQ(0, sigprocmask64(SIG_SETMASK, &mask, nullptr)); in TEST()
72 TestSignalFd(signalfd64(-1, &mask, SFD_CLOEXEC), SIGRTMIN); in TEST()
Dsys_stat_test.cpp173 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO; in AssertFileModeEquals() local
174 ASSERT_EQ(expected_mode & mask, static_cast<mode_t>(sb.st_mode) & mask); in AssertFileModeEquals()
230 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO; in AssertSymlinkModeEquals() local
231 ASSERT_EQ(expected_mode & mask, static_cast<mode_t>(sb.st_mode) & mask); in AssertSymlinkModeEquals()
/bionic/libc/bionic/
Dsys_signalfd.cpp35 int signalfd(int fd, const sigset_t* mask, int flags) { in signalfd() argument
37 set.sigset = *mask; in signalfd()
41 int signalfd64(int fd, const sigset64_t* mask, int flags) { in signalfd64() argument
42 return __signalfd4(fd, mask, sizeof(*mask), flags); in signalfd64()
Dabort.cpp40 sigset64_t mask; in abort() local
41 sigfillset64(&mask); in abort()
42 sigdelset64(&mask, SIGABRT); in abort()
44 sigprocmask64(SIG_SETMASK, &mask, nullptr); in abort()
52 sigprocmask64(SIG_SETMASK, &mask, nullptr); in abort()
Dmbrtoc32.cpp71 int mask; in mbrtoc32() local
84 mask = 0x7f; in mbrtoc32()
88 mask = 0x1f; in mbrtoc32()
92 mask = 0x0f; in mbrtoc32()
96 mask = 0x07; in mbrtoc32()
120 char32_t c32 = mbstate_get_byte(state, 0) & mask; in mbrtoc32()
Dspawn.cpp214 int posix_spawnattr_setsigmask(posix_spawnattr_t* attr, const sigset_t* mask) { in posix_spawnattr_setsigmask() argument
215 (*attr)->sigmask.sigset = *mask; in posix_spawnattr_setsigmask()
219 int posix_spawnattr_setsigmask64(posix_spawnattr_t* attr, const sigset64_t* mask) { in posix_spawnattr_setsigmask64() argument
220 (*attr)->sigmask.sigset64 = *mask; in posix_spawnattr_setsigmask64()
224 int posix_spawnattr_getsigmask(const posix_spawnattr_t* attr, sigset_t* mask) { in posix_spawnattr_getsigmask() argument
225 *mask = (*attr)->sigmask.sigset; in posix_spawnattr_getsigmask()
229 int posix_spawnattr_getsigmask64(const posix_spawnattr_t* attr, sigset64_t* mask) { in posix_spawnattr_getsigmask64() argument
230 *mask = (*attr)->sigmask.sigset64; in posix_spawnattr_getsigmask64()
234 int posix_spawnattr_setsigdefault(posix_spawnattr_t* attr, const sigset_t* mask) { in posix_spawnattr_setsigdefault() argument
235 (*attr)->sigdefault.sigset = *mask; in posix_spawnattr_setsigdefault()
[all …]
Dpause.cpp33 sigset64_t mask = {}; in pause() local
34 return sigsuspend64(&mask); in pause()
/bionic/libc/include/bits/fortify/
Dpoll.h59 …onst fds __pass_object_size, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask) in ppoll() argument
67 return __ppoll_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll()
70 return __call_bypassing_fortify(ppoll)(fds, fd_count, timeout, mask); in ppoll()
76 …st fds __pass_object_size, nfds_t fd_count, const struct timespec* timeout, const sigset64_t* mask) in ppoll64() argument
84 return __ppoll64_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll64()
87 return __call_bypassing_fortify(ppoll64)(fds, fd_count, timeout, mask); in ppoll64()
/bionic/libm/amd64/
Dfenv.c371 feenableexcept(int mask) in feenableexcept() argument
376 mask &= FE_ALL_EXCEPT; in feenableexcept()
382 control &= ~mask; in feenableexcept()
385 mxcsr &= ~(mask << SSE_MASK_SHIFT); in feenableexcept()
392 fedisableexcept(int mask) in fedisableexcept() argument
397 mask &= FE_ALL_EXCEPT; in fedisableexcept()
403 control |= mask; in fedisableexcept()
406 mxcsr |= mask << SSE_MASK_SHIFT; in fedisableexcept()
/bionic/libm/i387/
Dfenv.c233 feenableexcept(int mask) in feenableexcept() argument
238 mask &= FE_ALL_EXCEPT; in feenableexcept()
246 if (mask) { in feenableexcept()
247 control &= ~mask; in feenableexcept()
250 mxcsr &= ~(mask << _SSE_EMASK_SHIFT); in feenableexcept()
258 fedisableexcept(int mask) in fedisableexcept() argument
263 mask &= FE_ALL_EXCEPT; in fedisableexcept()
271 if (mask) { in fedisableexcept()
272 control |= mask; in fedisableexcept()
275 mxcsr |= mask << _SSE_EMASK_SHIFT; in fedisableexcept()
/bionic/libc/kernel/uapi/linux/
Dconst.h34 #define __ALIGN_KERNEL_MASK(x,mask) (((x) + (mask)) & ~(mask)) argument
Dfsi.h26 __u64 mask; member
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_mark.h23 __u32 mark, mask; member
26 __u32 mark, mask; member
Dxt_realm.h24 __u32 mask; member
Dxt_connlimit.h30 union nf_inet_addr mask; member
Dxt_connmark.h40 __u32 mark, mask; member
Dnf_conntrack_tcp.h50 __u8 mask; member
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregex2.h159 uch mask; /* bit within array */ member
165 #define CHadd(cs, c) ((cs)->ptr[(uch)(c)] |= (cs)->mask, (cs)->hash += (c))
166 #define CHsub(cs, c) ((cs)->ptr[(uch)(c)] &= ~(cs)->mask, (cs)->hash -= (c))
167 #define CHIN(cs, c) ((cs)->ptr[(uch)(c)] & (cs)->mask)
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debt_mark_m.h26 unsigned long mark, mask; member
/bionic/libc/kernel/uapi/linux/tc_act/
Dtc_nat.h36 __be32 mask; member
/bionic/libc/kernel/uapi/linux/tc_ematch/
Dtc_em_cmp.h25 __u32 mask; member
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Deventlib.h63 typedef struct { unsigned char mask[256/8]; } evByteMask; member
67 ((bm).mask[EV_BYTEMASK_BYTE(b)] |= EV_BYTEMASK_MASK(b))
69 ((bm).mask[EV_BYTEMASK_BYTE(b)] &= ~EV_BYTEMASK_MASK(b))
71 ((bm).mask[EV_BYTEMASK_BYTE(b)] & EV_BYTEMASK_MASK(b))
/bionic/libc/dns/resolv/
Dres_private.h13 } addr, mask; member
/bionic/benchmarks/linker_relocation/
Drun_bench_with_ninja.sh39 --cpu-mask MASK MASK is a hex mask of CPU affinity passed to taskset

123