/net/sctp/ |
D | chunk.c | 159 int max, whole, i, offset, over, err; in sctp_datamsg_from_user() local 182 max = asoc->frag_point; in sctp_datamsg_from_user() 192 max -= WORD_ROUND(sizeof(sctp_auth_chunk_t) + in sctp_datamsg_from_user() 197 first_len = max; in sctp_datamsg_from_user() 201 whole = msg_len / (max - SCTP_ARBITRARY_COOKIE_ECHO_LEN); in sctp_datamsg_from_user() 205 first_len = max - SCTP_ARBITRARY_COOKIE_ECHO_LEN; in sctp_datamsg_from_user() 212 whole += msg_len / max; in sctp_datamsg_from_user() 213 over = msg_len % max; in sctp_datamsg_from_user() 250 len = max; in sctp_datamsg_from_user()
|
D | transport.c | 502 transport->ssthresh = max(transport->cwnd/2, in sctp_transport_lower_cwnd() 527 transport->ssthresh = max(transport->cwnd/2, in sctp_transport_lower_cwnd() 547 transport->ssthresh = max(transport->cwnd/2, in sctp_transport_lower_cwnd() 564 transport->cwnd = max(transport->cwnd/2, in sctp_transport_lower_cwnd()
|
/net/ipv4/netfilter/ |
D | nf_nat_proto_common.c | 23 const union nf_conntrack_man_proto *max) in nf_nat_proto_in_range() argument 33 ntohs(port) <= ntohs(max->all); in nf_nat_proto_in_range() 73 range_size = ntohs(range->max.all) - min + 1; in nf_nat_proto_unique_tuple() 101 NLA_PUT_BE16(skb, CTA_PROTONAT_PORT_MAX, range->max.all); in nf_nat_proto_range_to_nlattr() 114 range->max.all = range->min.tcp.port; in nf_nat_proto_nlattr_to_range() 118 range->max.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MAX]); in nf_nat_proto_nlattr_to_range()
|
D | ipt_ah.c | 29 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 33 min,spi,max); in spi_match() 34 r=(spi >= min && spi <= max) ^ invert; in spi_match()
|
D | nf_nat_proto_icmp.c | 24 const union nf_conntrack_man_proto *max) in icmp_in_range() argument 27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmp_in_range() 40 range_size = ntohs(range->max.icmp.id) - ntohs(range->min.icmp.id) + 1; in icmp_unique_tuple()
|
D | nf_nat_proto_unknown.c | 24 const union nf_conntrack_man_proto *max) in unknown_in_range() argument
|
D | ipt_REDIRECT.c | 82 mr->range[0].min, mr->range[0].max }); in redirect_tg()
|
/net/ipv4/ |
D | tcp_yeah.c | 174 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid() 181 yeah->reno_count = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_cong_avoid() 223 reduction = min( reduction, max(tp->snd_cwnd>>1, 2U) ); in tcp_yeah_ssthresh() 225 reduction = max( reduction, tp->snd_cwnd >> TCP_YEAH_DELTA); in tcp_yeah_ssthresh() 227 reduction = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_ssthresh() 230 yeah->reno_count = max(yeah->reno_count>>1, 2U); in tcp_yeah_ssthresh()
|
D | tcp_bic.c | 188 return max(tp->snd_cwnd >> 1U, 2U); in bictcp_recalc_ssthresh() 190 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 197 return max(tp->snd_cwnd, ca->last_max_cwnd); in bictcp_undo_cwnd()
|
D | tcp_veno.c | 204 return max(tp->snd_cwnd * 4 / 5, 2U); in tcp_veno_ssthresh() 207 return max(tp->snd_cwnd >> 1U, 2U); in tcp_veno_ssthresh()
|
D | tcp_htcp.c | 79 return max(tp->snd_cwnd, (tp->snd_ssthresh << 7) / ca->beta); in htcp_cwnd_undo() 188 scale = min(max(scale, 1U << 2), 10U << 3); in htcp_alpha_update() 228 return max((tp->snd_cwnd * ca->beta) >> 7, 2U); in htcp_recalc_ssthresh()
|
D | tcp_scalable.c | 40 return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U); in tcp_scalable_ssthresh()
|
/net/phonet/ |
D | sysctl.c | 47 void phonet_get_local_port_range(int *min, int *max) in phonet_get_local_port_range() argument 54 if (max) in phonet_get_local_port_range() 55 *max = local_port_range[1]; in phonet_get_local_port_range()
|
/net/netfilter/ |
D | xt_esp.c | 35 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 39 min, spi, max); in spi_match() 40 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
D | xt_hashlimit.c | 156 if (ht->cfg.max && ht->count >= ht->cfg.max) { in dsthash_alloc_init() 161 ht->cfg.max); in dsthash_alloc_init() 217 hinfo->cfg.max = minfo->cfg.max; in htable_create_v0() 227 if (!hinfo->cfg.max) in htable_create_v0() 228 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create_v0() 229 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create_v0() 230 hinfo->cfg.max = hinfo->cfg.size; in htable_create_v0() 288 if (hinfo->cfg.max == 0) in htable_create() 289 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create() 290 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create() [all …]
|
D | xt_length.c | 29 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt() 39 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt6()
|
D | nf_conntrack_extend.c | 129 enum nf_ct_ext_id min = 0, max = NF_CT_EXT_NUM - 1; in update_alloc_size() local 134 max = type->id; in update_alloc_size() 139 for (i = min; i <= max; i++) { in update_alloc_size()
|
D | xt_tcpudp.c | 31 port_match(u_int16_t min, u_int16_t max, u_int16_t port, bool invert) in port_match() argument 33 return (port >= min && port <= max) ^ invert; in port_match()
|
/net/ipv6/netfilter/ |
D | ip6t_ah.c | 28 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 33 invert ? '!' : ' ', min, spi, max); in spi_match() 34 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
D | ip6t_frag.c | 27 id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in id_match() argument 31 min, id, max); in id_match() 32 r = (id >= min && id <= max) ^ invert; in id_match()
|
D | ip6t_mh.c | 35 type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert) in type_match() argument 37 return (type >= min && type <= max) ^ invert; in type_match()
|
D | ip6t_rt.c | 29 segsleft_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in segsleft_match() argument 33 invert ? '!' : ' ', min, id, max); in segsleft_match() 34 r = (id >= min && id <= max) ^ invert; in segsleft_match()
|
/net/tipc/ |
D | core.h | 214 static inline int delimit(int val, int min, int max) in delimit() argument 216 if (val > max) in delimit() 217 return max; in delimit()
|
/net/dccp/ccids/ |
D | ccid3.c | 148 min_rate = max(min_rate, 2 * hctx->ccid3hctx_x_recv); in ccid3_hc_tx_update_x() 155 hctx->ccid3hctx_x = max(hctx->ccid3hctx_x, in ccid3_hc_tx_update_x() 163 hctx->ccid3hctx_x = max(hctx->ccid3hctx_x, in ccid3_hc_tx_update_x() 239 hctx->ccid3hctx_x = max(hctx->ccid3hctx_x / 2, in ccid3_hc_tx_no_feedback_timer() 258 max(hctx->ccid3hctx_x_recv / 2, in ccid3_hc_tx_no_feedback_timer() 277 t_nfb = max(hctx->ccid3hctx_t_rto, 2 * hctx->ccid3hctx_t_ipi); in ccid3_hc_tx_no_feedback_timer() 498 t_nfb = max(hctx->ccid3hctx_t_rto, 2 * hctx->ccid3hctx_t_ipi); in ccid3_hc_tx_packet_recv()
|
/net/rxrpc/ |
D | ar-output.c | 565 size_t size, chunk, max, space; in rxrpc_send_data() local 580 max = call->conn->trans->peer->maxdata; in rxrpc_send_data() 581 max -= call->conn->security_size; in rxrpc_send_data() 582 max &= ~(call->conn->size_align - 1UL); in rxrpc_send_data() 584 chunk = max; in rxrpc_send_data()
|