/external/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/ |
D | cpuset_syscall_test.c | 172 struct bitmask *nmask; in test_get_mempolicy() local 182 nmask = bitmask_alloc(nbits); in test_get_mempolicy() 183 if (nmask == NULL) { in test_get_mempolicy() 189 ret = get_mempolicy(NULL, bitmask_mask(nmask), bitmask_nbits(nmask), 0, in test_get_mempolicy() 196 bitmask_displaylist(str, 256, nmask); in test_get_mempolicy()
|
/external/ltp/testcases/kernel/mem/vma/ |
D | vma04.c | 63 static struct bitmask *nmask; variable 92 nmask = numa_allocate_nodemask(); in main() 102 numa_bitmask_setbit(nmask, node); in main() 151 MPOL_BIND, nmask->maskp, nmask->size, 0) != 0) { in mem_bind() 164 MPOL_INTERLEAVE, nmask->maskp, nmask->size, 0) != 0) { in mem_interleave()
|
D | vma02.c | 70 struct bitmask *nmask = numa_allocate_nodemask(); in main() local 84 numa_bitmask_setbit(nmask, node); in main() 98 err = mbind(addr + pagesize, pagesize, MPOL_BIND, nmask->maskp, in main() 99 nmask->size, MPOL_MF_MOVE_ALL); in main()
|
/external/ltp/testcases/kernel/mem/ksm/ |
D | ksm02.c | 90 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in main() local 96 set_node(nmask, node); in main() 104 if (set_mempolicy(MPOL_BIND, nmask, MAXNODES) == -1) { in main()
|
D | ksm04.c | 90 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in main() local 96 set_node(nmask, node); in main() 106 if (set_mempolicy(MPOL_BIND, nmask, MAXNODES) == -1) { in main()
|
/external/ltp/testcases/kernel/syscalls/sigaction/ |
D | sigaction01.c | 93 sigset_t nmask, omask; in handler() local 108 sigemptyset(&nmask); in handler() 110 err = sigprocmask(SIG_BLOCK, &nmask, &omask); in handler()
|
/external/ltp/testcases/kernel/mem/cpuset/ |
D | cpuset01.c | 92 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in testcpuset() local 108 set_node(nmask, nodes[i]); in testcpuset() 110 if (set_mempolicy(MPOL_BIND, nmask, MAXNODES) == -1) in testcpuset()
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 174 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in set_global_mempolicy() local 191 set_node(nmask, nodes[1]); in set_global_mempolicy() 202 set_node(nmask, nodes[1]); in set_global_mempolicy() 203 set_node(nmask, nodes[2]); in set_global_mempolicy() 209 if (set_mempolicy(mempolicy, nmask, MAXNODES) == -1) in set_global_mempolicy() 584 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in test_ksm_merge_across_nodes() local 612 clean_node(nmask); in test_ksm_merge_across_nodes() 613 set_node(nmask, nodes[i]); in test_ksm_merge_across_nodes() 618 ret = mbind(memory[i], length, MPOL_BIND, nmask, MAXNODES, 0); in test_ksm_merge_across_nodes()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1495 #define __sanitizer_syscall_pre_set_mempolicy(mode, nmask, maxnode) \ argument 1496 __sanitizer_syscall_pre_impl_set_mempolicy((long)(mode), (long)(nmask), \ 1498 #define __sanitizer_syscall_post_set_mempolicy(res, mode, nmask, maxnode) \ argument 1500 (long)(nmask), (long)(maxnode)) 1517 #define __sanitizer_syscall_pre_mbind(start, len, mode, nmask, maxnode, flags) \ argument 1519 (long)(nmask), (long)(maxnode), \ 1521 #define __sanitizer_syscall_post_mbind(res, start, len, mode, nmask, maxnode, \ argument 1524 (long)(mode), (long)(nmask), \ 1526 #define __sanitizer_syscall_pre_get_mempolicy(policy, nmask, maxnode, addr, \ argument 1528 __sanitizer_syscall_pre_impl_get_mempolicy((long)(policy), (long)(nmask), \ [all …]
|
/external/ppp/pppd/ |
D | sys-solaris.c | 2397 u_int32_t mask, nmask, ina; local 2404 nmask = IN_CLASSA_NET; 2406 nmask = IN_CLASSB_NET; 2408 nmask = IN_CLASSC_NET; 2410 mask = netmask | htonl(nmask); 2436 if ((ntohl(ina) & nmask) != (addr & nmask))
|
D | sys-linux.c | 1907 u_int32_t mask, nmask, ina; in GetMask() local 1915 nmask = IN_CLASSA_NET; in GetMask() 1917 nmask = IN_CLASSB_NET; in GetMask() 1919 nmask = IN_CLASSC_NET; in GetMask() 1922 mask = netmask | htonl(nmask); in GetMask() 1942 if (((ntohl(ina) ^ addr) & nmask) != 0) in GetMask()
|
/external/syslinux/core/lwip/src/netif/ppp/ |
D | ppp.c | 1261 u32_t mask, nmask; in GetMask() local 1265 nmask = IP_CLASSA_NET; in GetMask() 1267 nmask = IP_CLASSB_NET; in GetMask() 1269 nmask = IP_CLASSC_NET; in GetMask() 1273 mask = subnetMask | htonl(nmask); in GetMask()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2385 PRE_SYSCALL(set_mempolicy)(long mode, void *nmask, long maxnode) {} 2387 POST_SYSCALL(set_mempolicy)(long res, long mode, void *nmask, long maxnode) { 2389 if (nmask) POST_WRITE(nmask, sizeof(long)); 2415 PRE_SYSCALL(mbind)(long start, long len, long mode, void *nmask, long maxnode, 2418 POST_SYSCALL(mbind)(long res, long start, long len, long mode, void *nmask, 2421 if (nmask) POST_WRITE(nmask, sizeof(long)); 2425 PRE_SYSCALL(get_mempolicy)(void *policy, void *nmask, long maxnode, long addr, 2428 POST_SYSCALL(get_mempolicy)(long res, void *policy, void *nmask, long maxnode, 2432 if (nmask) POST_WRITE(nmask, sizeof(long));
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | libcpuset.c | 3093 static int get_mempolicy(int *policy, unsigned long *nmask, in get_mempolicy() argument 3096 return ltp_syscall(__NR_get_mempolicy, policy, nmask, maxnode, in get_mempolicy() 3102 static int set_mempolicy(int mode, unsigned long *nmask, unsigned long maxnode) in set_mempolicy() argument 3104 return ltp_syscall(__NR_set_mempolicy, mode, nmask, maxnode); in set_mempolicy()
|
/external/valgrind/VEX/priv/ |
D | guest_arm64_toIR.c | 9248 ULong nmask = (ULong)(((Long)0x8000000000000000ULL) >> (sh-1)); in dis_AdvSIMD_scalar_shift_by_imm() local 9249 IRExpr* nmaskV = binop(Iop_64HLtoV128, mkU64(nmask), mkU64(nmask)); in dis_AdvSIMD_scalar_shift_by_imm() 9280 ULong nmask = (1ULL << sh) - 1; in dis_AdvSIMD_scalar_shift_by_imm() local 9281 IRExpr* nmaskV = binop(Iop_64HLtoV128, mkU64(nmask), mkU64(nmask)); in dis_AdvSIMD_scalar_shift_by_imm() 10478 IRExpr* nmask = binop(mkVecSHLN(size), in dis_AdvSIMD_shift_by_immediate() local 10483 binop(Iop_AndV128, getQReg128(dd), nmask))); in dis_AdvSIMD_shift_by_immediate() 10525 IRExpr* nmask = binop(mkVecSHRN(size), in dis_AdvSIMD_shift_by_immediate() local 10530 binop(Iop_AndV128, getQReg128(dd), nmask))); in dis_AdvSIMD_shift_by_immediate()
|