Home
last modified time | relevance | path

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

/net/dccp/ccids/lib/
Dloss_interval.c30 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()
36 BUG_ON(i >= lh->counter); in tfrc_lh_get_interval()
37 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval()
45 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next()
46 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next()
48 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next()
56 for (lh->counter = 0; lh->counter < LIH_SIZE; lh->counter++) in tfrc_lh_cleanup()
57 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup()
59 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup()
60 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()
[all …]
Dloss_interval.h49 u8 counter; member
60 return lh->counter > 0; in tfrc_lh_is_initialised()
65 return min(lh->counter, (u8)LIH_SIZE); in tfrc_lh_length()
/net/netfilter/ipvs/
Dip_vs_lblc.c105 int counter; /* counter for no expire */ member
286 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblc_check_expire()
289 tbl->counter = 1; in ip_vs_lblc_check_expire()
294 tbl->counter++; in ip_vs_lblc_check_expire()
350 tbl->counter = 1; in ip_vs_lblc_init_svc()
Dip_vs_lblcr.c284 int counter; /* counter for no expire */ member
463 if ((tbl->counter % COUNT_FOR_FULL_EXPIRATION) == 0) { in ip_vs_lblcr_check_expire()
466 tbl->counter = 1; in ip_vs_lblcr_check_expire()
471 tbl->counter++; in ip_vs_lblcr_check_expire()
526 tbl->counter = 1; in ip_vs_lblcr_init_svc()
/net/sched/
Dsch_netem.c60 u32 counter; member
214 || q->counter < q->gap /* inside last reordering gap */ in netem_enqueue()
224 ++q->counter; in netem_enqueue()
232 q->counter = 0; in netem_enqueue()
410 q->counter = 0; in netem_change()
/net/sctp/
Dobjcnt.c90 atomic_read(sctp_dbg_objcnt[i].counter), &len); in sctp_objcnt_seq_show()
/net/
Dsocket.c2251 int counter = 0; in socket_seq_show() local
2254 counter += per_cpu(sockets_in_use, cpu); in socket_seq_show()
2257 if (counter < 0) in socket_seq_show()
2258 counter = 0; in socket_seq_show()
2260 seq_printf(seq, "sockets: used %d\n", counter); in socket_seq_show()
/net/netfilter/
DKconfig502 tristate '"connbytes" per-connection counter match support'
712 byte counter.