Home
last modified time | relevance | path

Searched refs:range_size (Results 1 – 9 of 9) sorted by relevance

/linux-4.4.14/net/netfilter/
Dnf_nat_proto_common.c44 unsigned int range_size, min, i; in nf_nat_l4proto_unique_tuple() local
63 range_size = 511 - min + 1; in nf_nat_l4proto_unique_tuple()
66 range_size = 1023 - min + 1; in nf_nat_l4proto_unique_tuple()
70 range_size = 65535 - 1024 + 1; in nf_nat_l4proto_unique_tuple()
74 range_size = ntohs(range->max_proto.all) - min + 1; in nf_nat_l4proto_unique_tuple()
88 *portptr = htons(min + off % range_size); in nf_nat_l4proto_unique_tuple()
89 if (++i != range_size && nf_nat_used_tuple(tuple, ct)) in nf_nat_l4proto_unique_tuple()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_nat_proto_gre.c50 unsigned int min, i, range_size; in gre_unique_tuple() local
65 range_size = 0xffff; in gre_unique_tuple()
68 range_size = ntohs(range->max_proto.gre.key) - min + 1; in gre_unique_tuple()
71 pr_debug("min = %u, range_size = %u\n", min, range_size); in gre_unique_tuple()
74 *keyptr = htons(min + key % range_size); in gre_unique_tuple()
75 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in gre_unique_tuple()
Dnf_nat_proto_icmp.c38 unsigned int range_size; in icmp_unique_tuple() local
41 range_size = ntohs(range->max_proto.icmp.id) - in icmp_unique_tuple()
45 range_size = 0xFFFF; in icmp_unique_tuple()
49 (id % range_size)); in icmp_unique_tuple()
50 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in icmp_unique_tuple()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_nat_proto_icmpv6.c40 unsigned int range_size; in icmpv6_unique_tuple() local
43 range_size = ntohs(range->max_proto.icmp.id) - in icmpv6_unique_tuple()
47 range_size = 0xffff; in icmpv6_unique_tuple()
51 (id % range_size)); in icmpv6_unique_tuple()
52 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in icmpv6_unique_tuple()
/linux-4.4.14/drivers/staging/android/
Dashmem.c103 #define range_size(range) \ macro
137 lru_count += range_size(range); in lru_add()
150 lru_count -= range_size(range); in lru_del()
215 size_t pre = range_size(range); in range_shrink()
221 lru_count -= pre - range_size(range); in range_shrink()
455 freed += range_size(range); in ashmem_shrink_scan()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dopal-prd.c65 uint64_t range_addr, range_size, range_end; in opal_prd_range_is_valid() local
69 addrp = of_get_address(node, 0, &range_size, NULL); in opal_prd_range_is_valid()
72 range_end = range_addr + range_size; in opal_prd_range_is_valid()
/linux-4.4.14/arch/powerpc/boot/
Ddevtree.c214 u32 range_size[MAX_ADDR_CELLS]; in find_range() local
217 copy_val(range_size, ranges + i + nregaddr + naddr, nsize); in find_range()
219 if (compare_reg(reg, range_addr, range_size)) in find_range()
/linux-4.4.14/arch/powerpc/sysdev/
Dfsl_rio.c442 u64 range_start, range_size; in fsl_rio_setup() local
600 range_size = of_read_number(dt_range + aw + paw, sw); in fsl_rio_setup()
603 np->full_name, range_start, range_size); in fsl_rio_setup()
621 port->iores.end = port->iores.start + range_size - 1; in fsl_rio_setup()
/linux-4.4.14/arch/powerpc/platforms/cell/
Diommu.c906 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local
931 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address()
938 for (i = 0, best = -1, best_size = 0; i < len; i += range_size) { in cell_iommu_get_fixed_address()