/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | libbitmask.c | 35 unsigned long *maskp; member 62 return (bmp->maskp[n / bitsperlong] >> (n % bitsperlong)) & 1; in _getbit() 72 bmp->maskp[n / bitsperlong] |= 1UL << (n % bitsperlong); in _setbit() 74 bmp->maskp[n / bitsperlong] &= in _setbit() 92 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc() 93 if (bmp->maskp == 0) { in bitmask_alloc() 105 free(bmp->maskp); in bitmask_free() 106 bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */ in bitmask_free() 391 return bmp->maskp; in bitmask_mask()
|
/external/ltp/testcases/kernel/syscalls/mbind/ |
D | mbind01.c | 124 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default() 182 TEST(get_mempolicy(&policy, getnodemask->maskp, in do_test() 198 tst_res_hexd(TINFO, exp_mask->maskp, in do_test() 200 tst_res_hexd(TINFO, getnodemask->maskp, in do_test()
|
D | mbind02.c | 69 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, MPOL_MF_STRICT)); in verify_policy()
|
D | mbind03.c | 66 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
|
D | mbind04.c | 57 TEST(mbind(ptr, size, mode, bm->maskp, bm->size + 1, flag)); in verify_policy()
|
/external/iptables/extensions/ |
D | libebt_ip.c | 472 struct in_addr *addrp, *maskp; in brip_print() local 479 maskp = (struct in_addr *)&info->smsk; in brip_print() 481 xtables_ipmask_to_numeric(maskp)); in brip_print() 488 maskp = (struct in_addr *)&info->dmsk; in brip_print() 490 xtables_ipmask_to_numeric(maskp)); in brip_print() 643 struct in_addr *addrp, *maskp; in brip_xlate_nh() local 652 maskp = (struct in_addr *)&info->smsk; in brip_xlate_nh() 657 maskp = (struct in_addr *)&info->dmsk; in brip_xlate_nh() 667 xtables_ipmask_to_numeric(maskp)); in brip_xlate_nh()
|
D | libebt_ip6.c | 496 struct in6_addr *addrp, *maskp; in brip_xlate_nh() local 505 maskp = (struct in6_addr *)&info->smsk; in brip_xlate_nh() 510 maskp = (struct in6_addr *)&info->dmsk; in brip_xlate_nh() 520 xtables_ip6mask_to_numeric(maskp)); in brip_xlate_nh()
|
/external/ltp/testcases/kernel/syscalls/get_mempolicy/ |
D | get_mempolicy01.c | 244 nodemask->maskp, nodemask->size)); in do_test() 262 nodemask->maskp, nodemask->size, 0)); in do_test() 280 TEST(ret = ltp_syscall(__NR_get_mempolicy, &policy, getnodemask->maskp, in do_test()
|
/external/libpcap/ |
D | pcap-null.c | 51 bpf_u_int32 *maskp _U_, char *errbuf) in pcap_lookupnet()
|
D | pcap-npf.c | 2339 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, in pcap_lookupnet() argument 2352 *netp = *maskp = 0; in pcap_lookupnet() 2363 *maskp = t_addr->sin_addr.S_un.S_addr; in pcap_lookupnet() 2365 *netp &= *maskp; in pcap_lookupnet() 2371 *netp = *maskp = 0; in pcap_lookupnet()
|
D | pcap.c | 1571 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, argument 1607 *netp = *maskp = 0; 1649 *maskp = sin4->sin_addr.s_addr; 1650 if (*maskp == 0) { 1652 *maskp = IN_CLASSA_NET; 1654 *maskp = IN_CLASSB_NET; 1656 *maskp = IN_CLASSC_NET; 1663 *netp &= *maskp;
|
/external/ltp/testcases/kernel/mem/vma/ |
D | vma04.c | 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 | 98 err = mbind(addr + pagesize, pagesize, MPOL_BIND, nmask->maskp, in main()
|
/external/iptables/libxtables/ |
D | xtables.c | 1701 struct in_addr *maskp, unsigned int *naddrs) in xtables_ipparse_any() argument 1715 memcpy(maskp, addrp, sizeof(*maskp)); in xtables_ipparse_any() 1718 if (maskp->s_addr == 0U) in xtables_ipparse_any() 1724 addrp[j++].s_addr &= maskp->s_addr; in xtables_ipparse_any() 1991 struct in6_addr *maskp, unsigned int *naddrs) in xtables_ip6parse_any() argument 2006 memcpy(maskp, addrp, sizeof(*maskp)); in xtables_ip6parse_any() 2009 if (memcmp(maskp, &zero_addr, sizeof(zero_addr)) == 0) in xtables_ip6parse_any() 2016 addrp[j].s6_addr32[k] &= maskp->s6_addr32[k]; in xtables_ip6parse_any()
|
/external/ltp/testcases/kernel/syscalls/set_mempolicy/ |
D | set_mempolicy03.c | 52 TEST(set_mempolicy(mode, bm->maskp, bm->size+1)); in verify_mempolicy()
|
D | set_mempolicy01.c | 53 TEST(set_mempolicy(mode, bm->maskp, bm->size+1)); in verify_mempolicy()
|
D | set_mempolicy02.c | 88 TEST(set_mempolicy(MPOL_INTERLEAVE, bm->maskp, bm->size+1)); in verify_set_mempolicy()
|
D | set_mempolicy04.c | 112 TEST(set_mempolicy(MPOL_INTERLEAVE, bm->maskp, bm->size+1)); in verify_set_mempolicy()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 224 ret = mbind(mem, size, MPOL_BIND, bm->maskp, bm->size + 1, 0); in alloc_free_huge_on_node()
|