Home
last modified time | relevance | path

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

/linux-2.6.39/net/ipv4/netfilter/
Dnf_nat_proto_common.c43 unsigned int range_size, min, i; in nf_nat_proto_unique_tuple() local
62 range_size = 511 - min + 1; in nf_nat_proto_unique_tuple()
65 range_size = 1023 - min + 1; in nf_nat_proto_unique_tuple()
69 range_size = 65535 - 1024 + 1; in nf_nat_proto_unique_tuple()
73 range_size = ntohs(range->max.all) - min + 1; in nf_nat_proto_unique_tuple()
85 *portptr = htons(min + off % range_size); in nf_nat_proto_unique_tuple()
86 if (++i != range_size && nf_nat_used_tuple(tuple, ct)) in nf_nat_proto_unique_tuple()
Dnf_nat_proto_gre.c48 unsigned int min, i, range_size; in gre_unique_tuple() local
63 range_size = 0xffff; in gre_unique_tuple()
66 range_size = ntohs(range->max.gre.key) - min + 1; in gre_unique_tuple()
69 pr_debug("min = %u, range_size = %u\n", min, range_size); in gre_unique_tuple()
72 *keyptr = htons(min + key % range_size); in gre_unique_tuple()
73 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in gre_unique_tuple()
Dnf_nat_proto_icmp.c37 unsigned int range_size; in icmp_unique_tuple() local
40 range_size = ntohs(range->max.icmp.id) - ntohs(range->min.icmp.id) + 1; in icmp_unique_tuple()
43 range_size = 0xFFFF; in icmp_unique_tuple()
47 (id % range_size)); in icmp_unique_tuple()
48 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in icmp_unique_tuple()
/linux-2.6.39/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-2.6.39/arch/powerpc/platforms/cell/
Diommu.c897 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local
922 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address()
929 for (i = 0, best = -1, best_size = 0; i < len; i += range_size) { in cell_iommu_get_fixed_address()