Searched refs:max (Results 1 - 25 of 97) sorted by relevance

1234

/net/phonet/
H A Dsysctl.c51 void phonet_get_local_port_range(int *min, int *max) argument
59 if (max)
60 *max = local_port_range[1];
/net/ipv4/netfilter/
H A Dipt_ah.c23 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
27 invert ? '!' : ' ', min, spi, max);
28 r=(spi >= min && spi <= max) ^ invert;
H A Dnf_nat_proto_icmp.c24 const union nf_conntrack_man_proto *max)
27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id);
21 icmp_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
/net/netfilter/
H A Dxt_esp.c29 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
33 invert ? '!' : ' ', min, spi, max);
34 r = (spi >= min && spi <= max) ^ invert;
H A Dnf_nat_proto_unknown.c23 const union nf_conntrack_man_proto *max)
20 unknown_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type manip_type, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
H A Dxt_length.c29 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert;
39 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert;
H A Dnf_nat_proto_common.c23 const union nf_conntrack_man_proto *max)
33 ntohs(port) <= ntohs(max->all);
20 nf_nat_l4proto_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
H A Dnf_conntrack_extend.c128 enum nf_ct_ext_id min = 0, max = NF_CT_EXT_NUM - 1; local
133 max = type->id;
138 for (i = min; i <= max; i++) {
/net/sctp/
H A Dchunk.c176 int max, whole, i, offset, over, err; local
207 max = asoc->frag_point;
220 /* Now, check if we need to reduce our max */
221 if (max > max_data)
222 max = max_data;
225 first_len = max;
236 msg_len > max)
255 whole += msg_len / max;
256 over = msg_len % max;
305 len = max;
[all...]
/net/ipv6/netfilter/
H A Dip6t_ah.c28 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument
33 invert ? '!' : ' ', min, spi, max);
34 r = (spi >= min && spi <= max) ^ invert;
H A Dip6t_mh.c30 type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert) argument
32 return (type >= min && type <= max) ^ invert;
H A Dip6t_frag.c27 id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) argument
31 min, id, max);
32 r = (id >= min && id <= max) ^ invert;
H A Dnf_nat_proto_icmpv6.c26 const union nf_conntrack_man_proto *max)
29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id);
23 icmpv6_in_range(const struct nf_conntrack_tuple *tuple, enum nf_nat_manip_type maniptype, const union nf_conntrack_man_proto *min, const union nf_conntrack_man_proto *max) argument
H A Dip6t_rt.c29 segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) argument
33 invert ? '!' : ' ', min, id, max);
34 r = (id >= min && id <= max) ^ invert;
/net/ipv4/
H A Dtcp_scalable.c34 return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U);
H A Dtcp_yeah.c167 tp->snd_cwnd = max(tp->snd_cwnd,
174 yeah->reno_count = max(tp->snd_cwnd>>1, 2U);
216 reduction = min( reduction, max(tp->snd_cwnd>>1, 2U) );
218 reduction = max( reduction, tp->snd_cwnd >> TCP_YEAH_DELTA);
220 reduction = max(tp->snd_cwnd>>1, 2U);
223 yeah->reno_count = max(yeah->reno_count>>1, 2U);
H A Dtcp_veno.c198 return max(tp->snd_cwnd * 4 / 5, 2U);
201 return max(tp->snd_cwnd >> 1U, 2U);
H A Dtcp_highspeed.c157 return max(tp->snd_cwnd - ((tp->snd_cwnd * hstcp_aimd_vals[ca->ai].md) >> 8), 2U);
H A Dtcp_bic.c26 * go to point (max+min)/N
182 return max(tp->snd_cwnd >> 1U, 2U);
184 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U);
191 return max(tp->snd_cwnd, ca->loss_cwnd);
/net/wireless/
H A Dwext-priv.c68 int max = args & IW_PRIV_SIZE_MASK; local
72 if (max < num)
73 num = max;
/net/dccp/ccids/
H A Dccid3.c79 * X_init = min(4 * s, max(2 * s, 4380 bytes)) / RTT
139 min_rate = max(min_rate, 2 * hc->tx_x_recv);
145 hc->tx_x = max(hc->tx_x, (((__u64)hc->tx_s) << 6) / TFRC_T_MBI);
150 hc->tx_x = max(hc->tx_x,
229 hc->tx_x = max(hc->tx_x / 2,
237 * X_recv = max(X_recv / 2, s / (2 * t_mbi));
245 max(hc->tx_x_recv / 2,
263 t_nfb = max(hc->tx_t_rto, 2 * hc->tx_t_ipi);
453 * max(t_RTO, 2 * s/X) = max(t_RT
[all...]
H A Dccid2.c199 win_used = max(hc->tx_cwnd_used, init_win);
202 hc->tx_ssthresh = max(hc->tx_ssthresh,
219 hc->tx_ssthresh = max(hc->tx_ssthresh, (cwnd >> 1) + (cwnd >> 2));
224 hc->tx_cwnd = max(cwnd, restart_cwnd);
366 hc->tx_mdev_max = max(hc->tx_mdev, tcp_rto_min(sk));
484 hc->tx_ssthresh = max(hc->tx_cwnd, 2U);
716 /* RFC 4341, 5: initialise ssthresh to arbitrarily high (max) value */
/net/sched/
H A Dsch_sfb.c61 u32 max; member in struct:sfb_sched_data
199 * compute max qlen, max p_mark, and avg p_mark
348 if (unlikely(minqlen >= q->max)) {
481 .max = 25,
529 q->max = ctl->max;
563 .max = q->max,
/net/ceph/
H A Dosdmap.c622 * adjust max osd value. reallocate arrays.
624 static int osdmap_set_max_osd(struct ceph_osdmap *map, int max) argument
630 state = kcalloc(max, sizeof(*state), GFP_NOFS);
631 addr = kcalloc(max, sizeof(*addr), GFP_NOFS);
632 weight = kcalloc(max, sizeof(*weight), GFP_NOFS);
653 map->max_osd = max;
664 u32 len, max, i; local
692 ceph_decode_32_safe(p, end, max, bad);
693 while (max--) {
718 max
814 __s32 new_flags, max; local
[all...]
/net/bridge/
H A Dbr_multicast.c58 return jhash_2words((__force u32)ip, vid, mdb->secret) & (mdb->max - 1);
67 mdb->secret) & (mdb->max - 1);
185 for (i = 0; i < old->max; i++)
194 for (i = 0; i < new->max; i++) {
298 static int br_mdb_rehash(struct net_bridge_mdb_htable __rcu **mdbp, int max, argument
309 mdb->max = max;
312 mdb->mhash = kzalloc(max * sizeof(*mdb->mhash), GFP_ATOMIC);
514 unsigned int max; local
526 max
[all...]

Completed in 245 milliseconds

1234