Searched refs:mask (Results 1 - 25 of 122) sorted by relevance

12345

/darwin-on-arm/xnu/libsyscall/wrappers/
H A Dsigsuspend-base.c33 sigset_t mask; local
36 mask = *sigmask_p;
38 sigemptyset(&mask);
39 return __SIGSUSPEND(mask);
/darwin-on-arm/xnu/bsd/libkern/
H A Dlocc.c71 register u_char *cp, *end, mask; local
73 mask = mask0;
75 for (end = &cp[size]; cp < end && *cp != mask; ++cp);
H A Dscanc.c69 u_char mask; local
71 mask = mask0;
72 for (end = &cp[size]; cp != end && (table[*cp] & mask) == 0; ++cp);
H A Dskpc.c68 register u_char *cp, *end, mask; local
70 mask = mask0;
72 for (end = &cp[size]; cp < end && *cp == mask; ++cp);
H A Drandom.c77 u_int32_t mask = (u_int32_t)-1 >> ((sizeof(u_int32_t) * 8) - 31); local
78 return (mask & RandomULong());
/darwin-on-arm/xnu/osfmk/kern/
H A Dbits.c113 int offset, mask; local
117 for (mask = 1; mask; mask <<= 1, ++offset)
118 if (mask & *s)
H A Dsimple_lock.h116 uint32_t mask);
120 uint32_t mask);
128 uint32_t mask);
133 uint32_t mask);
148 uint32_t mask);
H A Ddebug.h207 #define DEBUG_KPRINT_SYSCALL_PREDICATE_INTERNAL(mask, namep) \
208 ( (debug_kprint_syscall & (mask)) && debug_kprint_current_process(namep) )
209 #define DEBUG_KPRINT_SYSCALL_MASK(mask, fmt, args...) do { \
211 if (DEBUG_KPRINT_SYSCALL_PREDICATE_INTERNAL(mask, &dks_name)) { \
217 #define DEBUG_KPRINT_SYSCALL_PREDICATE_INTERNAL(mask, namep) (0)
218 #define DEBUG_KPRINT_SYSCALL_MASK(mask, fmt, args...) do { } while (0) /* kprintf(fmt, args) */
228 #define DEBUG_KPRINT_SYSCALL_PREDICATE(mask) \
229 DEBUG_KPRINT_SYSCALL_PREDICATE_INTERNAL(mask, NULL)
H A Dnorma_protos.h71 mach_vm_offset_t mask,
/darwin-on-arm/xnu/libkern/gen/
H A DOSAtomicOperations.c83 UInt32 OSBitAndAtomic(UInt32 mask, volatile UInt32 * value) argument
85 return OSBitwiseAtomic(mask, 0, 0, value);
89 UInt32 OSBitOrAtomic(UInt32 mask, volatile UInt32 * value) argument
91 return OSBitwiseAtomic((UInt32) -1, mask, 0, value);
95 UInt32 OSBitXorAtomic(UInt32 mask, volatile UInt32 * value) argument
97 return OSBitwiseAtomic((UInt32) -1, 0, mask, value);
102 UInt32 mask = 0x000000ff; local
110 mask <<= shift;
113 oldValue = (oldValue & ~mask) | (oldValue8 << shift);
114 newValue = (oldValue & ~mask) | (newValue
121 UInt8 mask = 1; local
203 OSBitAndAtomic8(UInt32 mask, volatile UInt8 * value) argument
208 OSBitOrAtomic8(UInt32 mask, volatile UInt8 * value) argument
213 OSBitXorAtomic8(UInt32 mask, volatile UInt8 * value) argument
220 UInt32 mask = 0x0000ffff; local
273 OSBitAndAtomic16(UInt32 mask, volatile UInt16 * value) argument
278 OSBitOrAtomic16(UInt32 mask, volatile UInt16 * value) argument
283 OSBitXorAtomic16(UInt32 mask, volatile UInt16 * value) argument
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_lro.h77 #define LRO_HASH(faddr, laddr, fport, lport, mask) \
78 (((faddr) ^ ((laddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask))
H A Din_dhcp.h41 const struct in_addr * mask,
/darwin-on-arm/xnu/libkern/c++/
H A DOSCollection.cpp81 unsigned OSCollection::setOptions(unsigned options, unsigned mask, void *) argument
85 if (mask)
86 fOptions = (old & ~mask) | (options & mask);
/darwin-on-arm/xnu/libkern/libkern/
H A DOSAtomic.h379 * The OSBitAndAtomic function logically ands the bits of the specified mask into the value at the specified address and returns the original value.
382 * @param mask The mask to logically and with the value.
387 UInt32 mask,
399 * The OSBitAndAtomic16 function logically ands the bits of the specified mask into the value at the specified address and returns the original value.
402 * @param mask The mask to logically and with the value.
407 UInt32 mask,
417 * The OSBitAndAtomic8 function logically ands the bits of the specified mask into the value at the specified address and returns the original value.
420 * @param mask Th
[all...]
/darwin-on-arm/xnu/osfmk/arm64/
H A Dmemcmp.s55 #define mask x13 define
90 mov mask, #~0
92 lsr mask, mask, limit
94 lsl mask, mask, limit
96 bic data1, data1, mask
97 bic data2, data2, mask
99 orr diff, diff, mask
122 alignment boundary. Round down the addresses and then mask of
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dradix.h82 char rn_bmask; /* node: mask for bit test*/
123 caddr_t rmu_mask; /* the mask */
150 (void *v, void *mask,
153 (void *v, void *mask,
156 (void *v, void *mask, struct radix_node_head *head);
158 (void *v, void *mask, struct radix_node_head *head);
166 (void *v, void *mask, struct radix_node_head *head);
167 /* locate based on sockaddr, mask and rn_matchf_t() */
169 (void *v, void *mask, struct radix_node_head *head,
H A Dif_media.c93 int flags, int mask);
386 ifmedia_match(ifm, target, mask)
389 int mask;
394 mask = ~mask;
397 if ((next->ifm_media & mask) == (target & mask)) {
401 "0x%x/0x%x\n", target, mask);
/darwin-on-arm/xnu/bsd/uxkern/
H A Dux_exception.c294 int mask; local
314 mask = sigmask(ux_signal);
316 if ((p->p_sigignore & mask) ||
317 (ut->uu_sigwait & mask) ||
318 (ut->uu_sigmask & mask) ||
320 (! (ps->ps_sigonstack & mask))) {
321 p->p_sigignore &= ~mask;
322 p->p_sigcatch &= ~mask;
324 ut->uu_sigwait &= ~mask;
325 ut->uu_sigmask &= ~mask;
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_sig.c669 int nc, mask; local
693 mask = sigmask(nc);
694 p->p_sigcatch &= ~mask;
697 p->p_sigignore |= mask;
698 ut->uu_siglist &= ~mask;
717 * Manipulate signal mask.
718 * Note that we receive new mask, not pointer,
719 * and return old mask as return value;
733 if (uap->mask == USER_ADDR_NULL) {
734 /* just want old mask */
1231 sigset_t mask; local
1627 int mask; local
1660 sigset_t mask = sigmask(signum); local
1717 int mask; local
2210 int signum, mask, prop, sigbits; local
2511 int signum, mask, prop, sigbits; local
2659 int mask, returnmask; local
3020 proc_pendingsignals(proc_t p, sigset_t mask) argument
3051 thread_issignal(proc_t p, thread_t th, sigset_t mask) argument
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dquota.h217 #define dqhash1(id, shift, mask) \
218 ((((id) * 2654435761U) >> (shift)) & (mask))
220 #define dqhash2(id, mask) \
221 (dqhash1((id), 11, (mask)>>1) | 1)
/darwin-on-arm/xnu/bsd/netat/
H A Dadsp_Control.c175 short mask = 0; local
196 mask = B_CTL_OREQ;
200 mask = B_CTL_OACK;
204 mask = B_CTL_OREQACK;
209 mask = B_CTL_ODENY;
233 mask = B_CTL_CLOSE;
236 mask = B_CTL_PROBE;
240 mask = B_CTL_FRESET;
245 mask = B_CTL_FRESETACK;
249 mask
[all...]
/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_kern.h79 vm_offset_t mask,
97 vm_offset_t mask,
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Dblist.c335 u_daddr_t mask; local
339 mask = (u_daddr_t)-1 >> (BLIST_BMAP_RADIX/2);
342 if ((orig & mask) == 0) {
347 mask >>= j;
366 u_daddr_t mask; local
368 mask = (u_daddr_t)-1 >> n;
371 if ((orig & mask) == mask) {
372 scan->u.bmu_bitmap &= ~mask;
375 mask
488 u_daddr_t mask; local
[all...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/
H A DBTreeAllocate.c127 u_int16_t mask; local
170 mask = 0x8000;
173 if ( (freeWord & mask) == 0)
175 mask >>= 1;
193 *pos |= SWAP_BE16 (mask); // set the map bit for the node
635 u_int16_t mask; local
670 for (bitNumber = 0, mask = 0x8000;
672 ++bitNumber, mask >>= 1)
674 if (word & mask)
/darwin-on-arm/xnu/libkern/zlib/
H A Dinftrees.c79 unsigned mask; /* mask for low root bits */ local
236 mask = used - 1; /* mask for comparing low */
287 if (len > root && (huff & mask) != low) {
311 low = huff & mask;
330 if (drop != 0 && (huff & mask) != low) {

Completed in 188 milliseconds

12345