/net/sctp/ |
D | chunk.c | 176 int max, whole, i, offset, over, err; in sctp_datamsg_from_user() local 207 max = asoc->frag_point; in sctp_datamsg_from_user() 221 if (max > max_data) in sctp_datamsg_from_user() 222 max = max_data; in sctp_datamsg_from_user() 225 first_len = max; in sctp_datamsg_from_user() 236 msg_len > max) in sctp_datamsg_from_user() 255 whole += msg_len / max; in sctp_datamsg_from_user() 256 over = msg_len % max; in sctp_datamsg_from_user() 305 len = max; in sctp_datamsg_from_user()
|
/net/ipv4/ |
D | tcp_yeah.c | 167 tp->snd_cwnd = max(tp->snd_cwnd, in tcp_yeah_cong_avoid() 174 yeah->reno_count = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_cong_avoid() 216 reduction = min( reduction, max(tp->snd_cwnd>>1, 2U) ); in tcp_yeah_ssthresh() 218 reduction = max( reduction, tp->snd_cwnd >> TCP_YEAH_DELTA); in tcp_yeah_ssthresh() 220 reduction = max(tp->snd_cwnd>>1, 2U); in tcp_yeah_ssthresh() 223 yeah->reno_count = max(yeah->reno_count>>1, 2U); in tcp_yeah_ssthresh()
|
D | tcp_bic.c | 182 return max(tp->snd_cwnd >> 1U, 2U); in bictcp_recalc_ssthresh() 184 return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U); in bictcp_recalc_ssthresh() 191 return max(tp->snd_cwnd, ca->loss_cwnd); in bictcp_undo_cwnd()
|
/net/phonet/ |
D | sysctl.c | 51 void phonet_get_local_port_range(int *min, int *max) in phonet_get_local_port_range() argument 59 if (max) in phonet_get_local_port_range() 60 *max = local_port_range[1]; in phonet_get_local_port_range()
|
/net/ipv4/netfilter/ |
D | ipt_ah.c | 23 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 27 invert ? '!' : ' ', min, spi, max); in spi_match() 28 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()
|
/net/netfilter/ |
D | xt_esp.c | 29 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 | 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 | 128 enum nf_ct_ext_id min = 0, max = NF_CT_EXT_NUM - 1; in update_alloc_size() local 133 max = type->id; in update_alloc_size() 138 for (i = min; i <= max; i++) { in update_alloc_size()
|
D | nf_nat_proto_common.c | 23 const union nf_conntrack_man_proto *max) in nf_nat_l4proto_in_range() argument 33 ntohs(port) <= ntohs(max->all); in nf_nat_l4proto_in_range()
|
D | xt_hashlimit.c | 184 if (ht->cfg.max && ht->count >= ht->cfg.max) { in dsthash_alloc_init() 186 net_err_ratelimited("max count of %u reached\n", ht->cfg.max); in dsthash_alloc_init() 246 if (hinfo->cfg.max == 0) in htable_create() 247 hinfo->cfg.max = 8 * hinfo->cfg.size; in htable_create() 248 else if (hinfo->cfg.max < hinfo->cfg.size) in htable_create() 249 hinfo->cfg.max = hinfo->cfg.size; in htable_create()
|
/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 | 30 type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert) in type_match() argument 32 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()
|
D | nf_nat_proto_icmpv6.c | 26 const union nf_conntrack_man_proto *max) in icmpv6_in_range() argument 29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmpv6_in_range()
|
/net/bridge/ |
D | br_multicast.c | 58 return jhash_2words((__force u32)ip, vid, mdb->secret) & (mdb->max - 1); in __br_ip4_hash() 67 mdb->secret) & (mdb->max - 1); in __br_ip6_hash() 185 for (i = 0; i < old->max; i++) in br_mdb_copy() 194 for (i = 0; i < new->max; i++) { in br_mdb_copy() 298 static int br_mdb_rehash(struct net_bridge_mdb_htable __rcu **mdbp, int max, in br_mdb_rehash() argument 309 mdb->max = max; in br_mdb_rehash() 312 mdb->mhash = kzalloc(max * sizeof(*mdb->mhash), GFP_ATOMIC); in br_mdb_rehash() 514 unsigned int max; in br_multicast_get_group() local 526 max = mdb->max; in br_multicast_get_group() 537 if (mdb->size >= max) { in br_multicast_get_group() [all …]
|
/net/ceph/ |
D | osdmap.c | 624 static int osdmap_set_max_osd(struct ceph_osdmap *map, int max) in osdmap_set_max_osd() argument 630 state = kcalloc(max, sizeof(*state), GFP_NOFS); in osdmap_set_max_osd() 631 addr = kcalloc(max, sizeof(*addr), GFP_NOFS); in osdmap_set_max_osd() 632 weight = kcalloc(max, sizeof(*weight), GFP_NOFS); in osdmap_set_max_osd() 653 map->max_osd = max; in osdmap_set_max_osd() 664 u32 len, max, i; in osdmap_decode() local 692 ceph_decode_32_safe(p, end, max, bad); in osdmap_decode() 693 while (max--) { in osdmap_decode() 718 max = ceph_decode_32(p); in osdmap_decode() 721 err = osdmap_set_max_osd(map, max); in osdmap_decode() [all …]
|
/net/batman-adv/ |
D | distributed-arp-table.c | 416 batadv_dat_addr_t max, in batadv_is_orig_node_eligible() argument 437 if (tmp_max < max) in batadv_is_orig_node_eligible() 442 if ((tmp_max == max) && max_orig_node && in batadv_is_orig_node_eligible() 464 batadv_dat_addr_t max = 0, tmp_max = 0; in batadv_choose_next_candidate() local 488 tmp_max, max, in batadv_choose_next_candidate() 496 max = tmp_max; in batadv_choose_next_candidate() 509 max); in batadv_choose_next_candidate() 511 *last_max = max; in batadv_choose_next_candidate()
|
D | sysfs.c | 181 unsigned int min, unsigned int max, in batadv_store_uint_attr() argument 200 if (uint_val > max) { in batadv_store_uint_attr() 202 attr_name, uint_val, max); in batadv_store_uint_attr() 218 int min, int max, in __batadv_store_uint_attr() argument 225 ret = batadv_store_uint_attr(buff, count, net_dev, attr->name, min, max, in __batadv_store_uint_attr()
|
/net/sched/ |
D | sch_sfb.c | 61 u32 max; member 348 if (unlikely(minqlen >= q->max)) { in sfb_enqueue() 481 .max = 25, 529 q->max = ctl->max; in sfb_change() 563 .max = q->max, in sfb_dump()
|
/net/dccp/ccids/ |
D | ccid3.c | 139 min_rate = max(min_rate, 2 * hc->tx_x_recv); in ccid3_hc_tx_update_x() 145 hc->tx_x = max(hc->tx_x, (((__u64)hc->tx_s) << 6) / TFRC_T_MBI); in ccid3_hc_tx_update_x() 150 hc->tx_x = max(hc->tx_x, in ccid3_hc_tx_update_x() 229 hc->tx_x = max(hc->tx_x / 2, in ccid3_hc_tx_no_feedback_timer() 245 max(hc->tx_x_recv / 2, in ccid3_hc_tx_no_feedback_timer() 263 t_nfb = max(hc->tx_t_rto, 2 * hc->tx_t_ipi); in ccid3_hc_tx_no_feedback_timer() 455 t_nfb = max(hc->tx_t_rto, 2 * hc->tx_t_ipi); in ccid3_hc_tx_packet_recv()
|
D | ccid2.c | 199 win_used = max(hc->tx_cwnd_used, init_win); in ccid2_cwnd_application_limited() 202 hc->tx_ssthresh = max(hc->tx_ssthresh, in ccid2_cwnd_application_limited() 219 hc->tx_ssthresh = max(hc->tx_ssthresh, (cwnd >> 1) + (cwnd >> 2)); in ccid2_cwnd_restart() 224 hc->tx_cwnd = max(cwnd, restart_cwnd); in ccid2_cwnd_restart() 366 hc->tx_mdev_max = max(hc->tx_mdev, tcp_rto_min(sk)); in ccid2_rtt_estimator() 484 hc->tx_ssthresh = max(hc->tx_cwnd, 2U); in ccid2_congestion_event()
|
/net/wireless/ |
D | wext-priv.c | 68 int max = args & IW_PRIV_SIZE_MASK; in adjust_priv_size() local 72 if (max < num) in adjust_priv_size() 73 num = max; in adjust_priv_size()
|
/net/netfilter/ipset/ |
D | ip_set_core.c | 142 #define find_set_type_minmax(name, family, min, max) \ argument 143 __find_set_type_minmax(name, family, min, max, false) 146 __find_set_type_minmax(const char *name, u8 family, u8 *min, u8 *max, in __find_set_type_minmax() argument 155 *min = 255; *max = 0; in __find_set_type_minmax() 164 if (type->revision_max > *max) in __find_set_type_minmax() 165 *max = type->revision_max; in __find_set_type_minmax() 172 __find_set_type_minmax(name, family, min, max, true); in __find_set_type_minmax() 1147 ip_set_id_t index = IPSET_INVALID_ID, max; in ip_set_dump_start() local 1171 max = dump_type == DUMP_ONE ? cb->args[1] + 1 : ip_set_max; in ip_set_dump_start() 1175 for (; cb->args[1] < max; cb->args[1]++) { in ip_set_dump_start() [all …]
|