Home
last modified time | relevance | path

Searched refs:maskp (Results 1 – 16 of 16) sorted by relevance

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c35 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/
Dmbind01.c136 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default()
194 TEST(get_mempolicy(&policy, getnodemask->maskp, in do_test()
210 tst_res_hexd(TINFO, exp_mask->maskp, in do_test()
212 tst_res_hexd(TINFO, getnodemask->maskp, in do_test()
/external/iptables/extensions/
Dlibebt_ip.c241 struct in_addr *addrp, *maskp; in brip_print() local
248 maskp = (struct in_addr *)&info->smsk; in brip_print()
250 xtables_ipmask_to_numeric(maskp)); in brip_print()
257 maskp = (struct in_addr *)&info->dmsk; in brip_print()
259 xtables_ipmask_to_numeric(maskp)); in brip_print()
/external/ltp/testcases/kernel/syscalls/get_mempolicy/
Dget_mempolicy01.c244 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/iptables/libxtables/
Dxtables.c1523 struct in_addr *maskp, unsigned int *naddrs) in xtables_ipparse_any() argument
1537 memcpy(maskp, addrp, sizeof(*maskp)); in xtables_ipparse_any()
1540 if (maskp->s_addr == 0U) in xtables_ipparse_any()
1546 addrp[j++].s_addr &= maskp->s_addr; in xtables_ipparse_any()
1817 struct in6_addr *maskp, unsigned int *naddrs) in xtables_ip6parse_any() argument
1832 memcpy(maskp, addrp, sizeof(*maskp)); in xtables_ip6parse_any()
1835 if (memcmp(maskp, &zero_addr, sizeof(zero_addr)) == 0) in xtables_ip6parse_any()
1842 addrp[j].s6_addr32[k] &= maskp->s6_addr32[k]; in xtables_ip6parse_any()
/external/ltp/testcases/kernel/mem/vma/
Dvma04.c151 MPOL_BIND, nmask->maskp, nmask->size, 0) != 0) { in mem_bind()
164 MPOL_INTERLEAVE, nmask->maskp, nmask->size, 0) != 0) { in mem_interleave()
Dvma02.c98 err = mbind(addr + pagesize, pagesize, MPOL_BIND, nmask->maskp, in main()
/external/libpcap/
Dpcap-null.c51 bpf_u_int32 *maskp _U_, char *errbuf) in pcap_lookupnet()
Dpcap-npf.c1959 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp, in pcap_lookupnet() argument
1972 *netp = *maskp = 0; in pcap_lookupnet()
1983 *maskp = t_addr->sin_addr.S_un.S_addr; in pcap_lookupnet()
1985 *netp &= *maskp; in pcap_lookupnet()
1991 *netp = *maskp = 0; in pcap_lookupnet()
Dpcap.c1321 pcap_lookupnet(const char *device, bpf_u_int32 *netp, bpf_u_int32 *maskp,
1354 *netp = *maskp = 0;
1396 *maskp = sin4->sin_addr.s_addr;
1397 if (*maskp == 0) {
1399 *maskp = IN_CLASSA_NET;
1401 *maskp = IN_CLASSB_NET;
1403 *maskp = IN_CLASSC_NET;
1410 *netp &= *maskp;
/external/u-boot/drivers/gpio/
Dsh_pfc.c110 unsigned long *maskp, in config_reg_helper() argument
118 *maskp = (1 << crp->field_width) - 1; in config_reg_helper()
121 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in config_reg_helper()
/external/u-boot/drivers/pinctrl/rockchip/
Dpinctrl_rk3288.c646 uint *maskp) in rk3288_pinctrl_get_pin_info() argument
667 *maskp = 0xf; in rk3288_pinctrl_get_pin_info()
674 *maskp = 3; in rk3288_pinctrl_get_pin_info()
679 *maskp, *shiftp); in rk3288_pinctrl_get_pin_info()
Dpinctrl_rk3188.c795 uint *maskp) in rk3188_pinctrl_get_pin_info() argument
812 *maskp = 3; in rk3188_pinctrl_get_pin_info()
816 *maskp, *shiftp); in rk3188_pinctrl_get_pin_info()
/external/u-boot/drivers/pinctrl/renesas/
Dpfc.c141 void __iomem **mapped_regp, u32 *maskp, in sh_pfc_config_reg_helper() argument
149 *maskp = (1 << crp->field_width) - 1; in sh_pfc_config_reg_helper()
152 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in sh_pfc_config_reg_helper()
/external/iptables/iptables/
Dxtables-arp.c676 struct in_addr *maskp, unsigned int *naddrs) in parse_hostnetworkmask() argument
689 inaddrcpy(maskp, addrp); in parse_hostnetworkmask()
692 if (maskp->s_addr == 0L) in parse_hostnetworkmask()
698 addrp[j++].s_addr &= maskp->s_addr; in parse_hostnetworkmask()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c162 ret = mbind(mem, size, MPOL_BIND, bm->maskp, bm->size + 1, 0); in alloc_free_huge_on_node()