Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 141) sorted by relevance

123456

/linux-2.4.37.9/drivers/hotplug/
Dibmphp_res.c392 static int add_range (int type, struct range_node *range, struct bus_node *bus_cur) in add_range() argument
416 if (range->start < range_cur->start) in add_range()
426 bus_cur->rangeMem = range; in add_range()
429 bus_cur->rangePFMem = range; in add_range()
432 bus_cur->rangeIO = range; in add_range()
435 range->next = range_cur; in add_range()
436 range->rangeno = 1; in add_range()
440 range->next = NULL; in add_range()
441 range_prev->next = range; in add_range()
442 range->rangeno = range_prev->rangeno + 1; in add_range()
[all …]
/linux-2.4.37.9/net/ipv4/netfilter/
Dip_nat_proto_tcp.c30 const struct ip_nat_range *range, in tcp_unique_tuple() argument
44 if (!(range->flags & IP_NAT_RANGE_PROTO_SPECIFIED)) { in tcp_unique_tuple()
64 min = ntohs(range->min.tcp.port); in tcp_unique_tuple()
65 range_size = ntohs(range->max.tcp.port) - min + 1; in tcp_unique_tuple()
129 tcp_print_range(char *buffer, const struct ip_nat_range *range) in tcp_print_range() argument
131 if (range->min.tcp.port != 0 || range->max.tcp.port != 0xFFFF) { in tcp_print_range()
132 if (range->min.tcp.port == range->max.tcp.port) in tcp_print_range()
134 ntohs(range->min.tcp.port)); in tcp_print_range()
137 ntohs(range->min.tcp.port), in tcp_print_range()
138 ntohs(range->max.tcp.port)); in tcp_print_range()
Dip_nat_proto_udp.c31 const struct ip_nat_range *range, in udp_unique_tuple() argument
45 if (!(range->flags & IP_NAT_RANGE_PROTO_SPECIFIED)) { in udp_unique_tuple()
64 min = ntohs(range->min.udp.port); in udp_unique_tuple()
65 range_size = ntohs(range->max.udp.port) - min + 1; in udp_unique_tuple()
122 udp_print_range(char *buffer, const struct ip_nat_range *range) in udp_print_range() argument
124 if (range->min.udp.port != 0 || range->max.udp.port != 0xFFFF) { in udp_print_range()
125 if (range->min.udp.port == range->max.udp.port) in udp_print_range()
127 ntohs(range->min.udp.port)); in udp_print_range()
130 ntohs(range->min.udp.port), in udp_print_range()
131 ntohs(range->max.udp.port)); in udp_print_range()
Dip_nat_proto_icmp.c24 const struct ip_nat_range *range, in icmp_unique_tuple() argument
32 range_size = ntohs(range->max.icmp.id) - ntohs(range->min.icmp.id) + 1; in icmp_unique_tuple()
34 if (!(range->flags & IP_NAT_RANGE_PROTO_SPECIFIED)) in icmp_unique_tuple()
38 tuple->src.u.icmp.id = htons(ntohs(range->min.icmp.id) + in icmp_unique_tuple()
82 icmp_print_range(char *buffer, const struct ip_nat_range *range) in icmp_print_range() argument
84 if (range->min.icmp.id != 0 || range->max.icmp.id != 0xFFFF) in icmp_print_range()
86 ntohs(range->min.icmp.id), in icmp_print_range()
87 ntohs(range->max.icmp.id)); in icmp_print_range()
Dip_nat_core.c150 if (mr->range[i].flags & IP_NAT_RANGE_MAP_IPS) { in in_range()
151 if (ntohl(newtuple.src.ip) < ntohl(mr->range[i].min_ip) in in_range()
153 > ntohl(mr->range[i].max_ip))) in in_range()
160 if ((mr->range[i].flags & IP_NAT_RANGE_PROTO_SPECIFIED) in in_range()
162 &mr->range[i].min, &mr->range[i].max)) in in_range()
271 const struct ip_nat_range *range; in find_best_ips_proto() member
297 if (mr->range[i].flags & IP_NAT_RANGE_FULL) { in find_best_ips_proto()
301 if (mr->range[i].flags & IP_NAT_RANGE_MAP_IPS) { in find_best_ips_proto()
302 minip = ntohl(mr->range[i].min_ip); in find_best_ips_proto()
303 maxip = ntohl(mr->range[i].max_ip); in find_best_ips_proto()
[all …]
Dip_nat_tftp.c116 mr.range[0].flags = IP_NAT_RANGE_MAP_IPS; in tftp_nat_expected()
119 mr.range[0].min_ip = mr.range[0].max_ip = orig->dst.ip; in tftp_nat_expected()
126 mr.range[0].min_ip = mr.range[0].max_ip = orig->src.ip; in tftp_nat_expected()
127 mr.range[0].min.udp.port = mr.range[0].max.udp.port = in tftp_nat_expected()
129 mr.range[0].flags |= IP_NAT_RANGE_PROTO_SPECIFIED; in tftp_nat_expected()
Dip_nat_amanda.c56 mr.range[0].flags = IP_NAT_RANGE_MAP_IPS; in amanda_nat_expected()
57 mr.range[0].min_ip = mr.range[0].max_ip = newip; in amanda_nat_expected()
61 mr.range[0].flags |= IP_NAT_RANGE_PROTO_SPECIFIED; in amanda_nat_expected()
62 mr.range[0].min = mr.range[0].max in amanda_nat_expected()
Dipt_REDIRECT.c43 if (mr->range[0].flags & IP_NAT_RANGE_MAP_IPS) { in redirect_check()
91 { 1, { { mr->range[0].flags | IP_NAT_RANGE_MAP_IPS, in redirect_target()
93 mr->range[0].min, mr->range[0].max } } }); in redirect_target()
Dipt_MASQUERADE.c47 if (mr->range[0].flags & IP_NAT_RANGE_MAP_IPS) { in masquerade_check()
119 { 1, { { mr->range[0].flags | IP_NAT_RANGE_MAP_IPS, in masquerade_target()
121 mr->range[0].min, mr->range[0].max } } }); in masquerade_target()
Dip_nat_ftp.c73 mr.range[0].flags = IP_NAT_RANGE_MAP_IPS; in ftp_nat_expected()
74 mr.range[0].min_ip = mr.range[0].max_ip = newip; in ftp_nat_expected()
79 mr.range[0].flags |= IP_NAT_RANGE_PROTO_SPECIFIED; in ftp_nat_expected()
80 mr.range[0].min = mr.range[0].max in ftp_nat_expected()
Dip_nat_proto_unknown.c23 const struct ip_nat_range *range, in unknown_unique_tuple() argument
49 unknown_print_range(char *buffer, const struct ip_nat_range *range) in unknown_print_range() argument
Dip_nat_irc.c83 mr.range[0].flags = IP_NAT_RANGE_MAP_IPS; in irc_nat_expected()
84 mr.range[0].min_ip = mr.range[0].max_ip = newip; in irc_nat_expected()
/linux-2.4.37.9/arch/ppc64/kernel/
DpSeries_pci.c247 struct pci_range64 range; in find_and_init_phbs() local
319 range = *((struct pci_range64 *)(ranges + i)); in find_and_init_phbs()
324 range.parent_addr = in find_and_init_phbs()
326 range.size = in find_and_init_phbs()
330 range.parent_addr = in find_and_init_phbs()
333 range.size = in find_and_init_phbs()
339 range.parent_addr); in find_and_init_phbs()
341 range.child_addr.a_hi); in find_and_init_phbs()
343 range.child_addr.a_mid); in find_and_init_phbs()
345 range.child_addr.a_lo); in find_and_init_phbs()
[all …]
/linux-2.4.37.9/drivers/s390/block/
Ddasd.c234 dasd_range_t *range = NULL; in dasd_create_range() local
236 range = (dasd_range_t *) kmalloc (sizeof (dasd_range_t), GFP_KERNEL); in dasd_create_range()
237 if (range == NULL) in dasd_create_range()
239 memset (range, 0, sizeof (dasd_range_t)); in dasd_create_range()
240 range->from = from; in dasd_create_range()
241 range->to = to; in dasd_create_range()
242 range->features = features; in dasd_create_range()
243 return range; in dasd_create_range()
253 dasd_destroy_range (dasd_range_t * range) in dasd_destroy_range() argument
255 kfree (range); in dasd_destroy_range()
[all …]
/linux-2.4.37.9/drivers/net/wireless/
Dorinoco.c2574 struct iw_range range; in orinoco_ioctl_getiwrange() local
2581 err = verify_area(VERIFY_WRITE, rrq->pointer, sizeof(range)); in orinoco_ioctl_getiwrange()
2585 rrq->length = sizeof(range); in orinoco_ioctl_getiwrange()
2594 memset(&range, 0, sizeof(range)); in orinoco_ioctl_getiwrange()
2599 range.we_version_compiled = WIRELESS_EXT; in orinoco_ioctl_getiwrange()
2600 range.we_version_source = 11; in orinoco_ioctl_getiwrange()
2603 range.min_nwid = range.max_nwid = 0; /* We don't use nwids */ in orinoco_ioctl_getiwrange()
2606 range.num_channels = NUM_CHANNELS; in orinoco_ioctl_getiwrange()
2610 range.freq[k].i = i + 1; in orinoco_ioctl_getiwrange()
2611 range.freq[k].m = channel_frequency[i] * 100000; in orinoco_ioctl_getiwrange()
[all …]
Datmel.c2042 struct iw_range *range = (struct iw_range *) extra; in atmel_get_range() local
2046 memset(range, 0, sizeof(range)); in atmel_get_range()
2047 range->min_nwid = 0x0000; in atmel_get_range()
2048 range->max_nwid = 0x0000; in atmel_get_range()
2049 range->num_channels = 0; in atmel_get_range()
2052 range->num_channels = channel_table[j].max - channel_table[j].min + 1; in atmel_get_range()
2055 if (range->num_channels != 0) { in atmel_get_range()
2057 range->freq[k].i = i; /* List index */ in atmel_get_range()
2058 range->freq[k].m = frequency_list[i-1] * 100000; in atmel_get_range()
2059 range->freq[k++].e = 1; /* Values in table in MHz -> * 10^5 * 10 */ in atmel_get_range()
[all …]
/linux-2.4.37.9/drivers/block/paride/
Dparide.c272 { int best, range; in pi_probe_mode() local
276 range = 3; in pi_probe_mode()
277 if (pi->mode >= pi->proto->epp_first) range = 8; in pi_probe_mode()
278 if ((range == 8) && (pi->port % 8)) return 0; in pi_probe_mode()
279 pi->reserved = range; in pi_probe_mode()
284 range = 3; in pi_probe_mode()
285 if (pi->mode >= pi->proto->epp_first) range = 8; in pi_probe_mode()
286 if ((range == 8) && (pi->port % 8)) break; in pi_probe_mode()
287 pi->reserved = range; in pi_probe_mode()
/linux-2.4.37.9/drivers/net/pcmcia/
Dnetwave_cs.c757 struct iw_range range; local
763 memset(&range, 0, sizeof(range));
767 range.we_version_compiled = WIRELESS_EXT;
768 range.we_version_source = 9; /* Nothing for us in v10 and v11 */
772 range.throughput = 450 * 1000; /* don't argue on this ! */
773 range.min_nwid = 0x0000;
774 range.max_nwid = 0x01FF;
776 range.num_channels = range.num_frequency = 0;
778 range.sensitivity = 0x3F;
779 range.max_qual.qual = 255;
[all …]
/linux-2.4.37.9/fs/proc/
Dproc_tty.c38 char range[20], deftype[20]; in tty_drivers_read_proc() local
43 sprintf(range, "%d-%d", p->minor_start, in tty_drivers_read_proc()
46 sprintf(range, "%d", p->minor_start); in tty_drivers_read_proc()
82 p->name, p->major, range, type); in tty_drivers_read_proc()
/linux-2.4.37.9/drivers/char/mwave/
DREADME23 If the dsp io range has not been setup and stored in bios by the
25 io range used by the dsp to be configured.
33 If the uart io range has not been setup and stored in bios by the
35 io range used by the mwave uart to be configured.
/linux-2.4.37.9/drivers/net/wireless/prism54/
Disl_ioctl.c407 struct iw_range *range = (struct iw_range *) extra; in prism54_get_range() local
414 memset(range, 0, sizeof (struct iw_range)); in prism54_get_range()
418 range->we_version_source = SUPPORTED_WIRELESS_EXT; in prism54_get_range()
419 range->we_version_compiled = WIRELESS_EXT; in prism54_get_range()
422 range->num_encoding_sizes = 3; in prism54_get_range()
424 range->encoding_size[0] = 5; in prism54_get_range()
426 range->encoding_size[1] = 13; in prism54_get_range()
428 range->encoding_size[2] = 32; in prism54_get_range()
430 range->max_encoding_tokens = 4; in prism54_get_range()
433 range->max_qual.level = 0; in prism54_get_range()
[all …]
/linux-2.4.37.9/include/linux/netfilter_ipv4/
Dip_nat_protocol.h37 const struct ip_nat_range *range,
46 const struct ip_nat_range *range);
/linux-2.4.37.9/Documentation/networking/
Dpktgen.txt31 pgset "src_mac_count 1" Sets the number of MACs we'll range through. The
33 pgset "dst_mac_count 1" Sets the number of MACs we'll range through. The
40 cycle through the port range.
43 cycle through the port range.
/linux-2.4.37.9/arch/arm/lib/
Ddelay.S21 #error NDELAY_FACTOR out of range
24 #error UDELAY_FACTOR out of range
/linux-2.4.37.9/drivers/net/
Dwavelan.c2028 struct iw_range range; in wavelan_ioctl() local
2036 memset(&range, 0, sizeof(range)); in wavelan_ioctl()
2039 range.we_version_compiled = WIRELESS_EXT; in wavelan_ioctl()
2040 range.we_version_source = 9; in wavelan_ioctl()
2043 range.throughput = 1.6 * 1000 * 1000; /* don't argue on this ! */ in wavelan_ioctl()
2044 range.min_nwid = 0x0000; in wavelan_ioctl()
2045 range.max_nwid = 0xFFFF; in wavelan_ioctl()
2050 range.num_channels = 10; in wavelan_ioctl()
2051 range.num_frequency = in wavelan_ioctl()
2052 wv_frequency_list(ioaddr, range.freq, in wavelan_ioctl()
[all …]

123456