Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 24 of 24) sorted by relevance

/net/dccp/ccids/lib/
Dloss_interval.c28 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()
34 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval()
35 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval()
43 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next()
44 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next()
46 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next()
54 for (lh->counter = 0; lh->counter < LIH_SIZE; lh->counter++) in tfrc_lh_cleanup()
55 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup()
57 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup()
58 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()
[all …]
Dloss_interval.h47 u8 counter; member
58 return lh->counter > 0; in tfrc_lh_is_initialised()
63 return min(lh->counter, (u8)LIH_SIZE); in tfrc_lh_length()
/net/netfilter/ipvs/
Dip_vs_lblc.c112 int counter; /* counter for no expire */ member
314 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblc_check_expire()
317 tbl->counter = 1; in ip_vs_lblc_check_expire()
322 tbl->counter++; in ip_vs_lblc_check_expire()
377 tbl->counter = 1; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c292 int counter; /* counter for no expire */ member
482 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblcr_check_expire()
485 tbl->counter = 1; in ip_vs_lblcr_check_expire()
490 tbl->counter++; in ip_vs_lblcr_check_expire()
544 tbl->counter = 1; in ip_vs_lblcr_init_svc()
/net/netfilter/ipset/
Dip_set_hash_ip.c53 struct ip_set_counter counter; member
58 struct ip_set_counter counter; member
195 struct ip_set_counter counter; member
200 struct ip_set_counter counter; member
Dip_set_bitmap_port.c212 struct ip_set_counter counter; member
219 struct ip_set_counter counter; member
288 offsetof(struct bitmap_portct_elem, counter); in bitmap_port_create()
301 offsetof(struct bitmap_portc_elem, counter); in bitmap_port_create()
Dip_set_hash_net.c62 struct ip_set_counter counter; member
70 struct ip_set_counter counter; member
253 struct ip_set_counter counter; member
261 struct ip_set_counter counter; member
Dip_set_bitmap_ip.c221 struct ip_set_counter counter; member
228 struct ip_set_counter counter; member
348 offsetof(struct bitmap_ipct_elem, counter); in bitmap_ip_create()
364 offsetof(struct bitmap_ipc_elem, counter); in bitmap_ip_create()
Dip_set_hash_ipport.c62 struct ip_set_counter counter; member
70 struct ip_set_counter counter; member
247 struct ip_set_counter counter; member
255 struct ip_set_counter counter; member
Dip_set_bitmap_ipmac.c311 struct ip_set_counter counter; member
322 struct ip_set_counter counter; member
411 offsetof(struct bitmap_ipmacct_elem, counter); in bitmap_ipmac_create()
425 offsetof(struct bitmap_ipmacc_elem, counter); in bitmap_ipmac_create()
Dip_set_hash_ipportip.c65 struct ip_set_counter counter; member
74 struct ip_set_counter counter; member
259 struct ip_set_counter counter; member
268 struct ip_set_counter counter; member
Dip_set_hash_netport.c74 struct ip_set_counter counter; member
83 struct ip_set_counter counter; member
315 struct ip_set_counter counter; member
324 struct ip_set_counter counter; member
Dip_set_hash_netiface.c174 struct ip_set_counter counter; member
184 struct ip_set_counter counter; member
438 struct ip_set_counter counter; member
448 struct ip_set_counter counter; member
Dip_set_hash_ipportnet.c78 struct ip_set_counter counter; member
88 struct ip_set_counter counter; member
359 struct ip_set_counter counter; member
369 struct ip_set_counter counter; member
Dip_set_list_set.c42 struct ip_set_counter counter; member
49 struct ip_set_counter counter; member
673 offsetof(struct setct_elem, counter); in list_set_create()
681 offsetof(struct setc_elem, counter); in list_set_create()
Dip_set_hash_gen.h1041 counter); in TOKEN()
1052 counter); in TOKEN()
1062 counter); in TOKEN()
1068 counter); in TOKEN()
/net/netfilter/
Dxt_set.c326 match_counter(u64 counter, const struct ip_set_counter_match *info) in match_counter() argument
332 return counter == info->value; in match_counter()
334 return counter != info->value; in match_counter()
336 return counter < info->value; in match_counter()
338 return counter > info->value; in match_counter()
DKconfig845 tristate '"connbytes" per-connection counter match support'
1149 byte counter.
1159 byte counter correctly and not per CPU.
/net/sched/
Dsch_netem.c84 u32 counter; member
428 q->counter < q->gap - 1 || /* inside last reordering gap */ in netem_enqueue()
456 ++q->counter; in netem_enqueue()
464 q->counter = 0; in netem_enqueue()
750 q->counter = 0; in netem_change()
/net/sctp/
Dobjcnt.c92 atomic_read(sctp_dbg_objcnt[i].counter), &len); in sctp_objcnt_seq_show()
/net/batman-adv/
Dtypes.h766 atomic_t counter; member
Dtranslation-table.c2174 if (!batadv_atomic_dec_not_zero(&tt_roam_node->counter)) in batadv_tt_check_roam_count()
2187 atomic_set(&tt_roam_node->counter, in batadv_tt_check_roam_count()
/net/
Dsocket.c2678 int counter = 0; in socket_seq_show() local
2681 counter += per_cpu(sockets_in_use, cpu); in socket_seq_show()
2684 if (counter < 0) in socket_seq_show()
2685 counter = 0; in socket_seq_show()
2687 seq_printf(seq, "sockets: used %d\n", counter); in socket_seq_show()
/net/ipv4/
Dping.c292 pr_debug("isk->refcnt = %d\n", sk->sk_refcnt.counter); in ping_close()