Searched refs:LIH_INDEX (Results 1 – 1 of 1) sorted by relevance
16 static inline u8 LIH_INDEX(const u8 ctr) in LIH_INDEX() function24 return lh->counter ? lh->ring[LIH_INDEX(lh->counter - 1)] : NULL; in tfrc_lh_peek()31 return lh->ring[LIH_INDEX(lh->counter - i - 1)]->li_length; in tfrc_lh_get_interval()39 if (lh->ring[LIH_INDEX(lh->counter)] == NULL) in tfrc_lh_demand_next()40 lh->ring[LIH_INDEX(lh->counter)] = kmem_cache_alloc(tfrc_lh_slab, in tfrc_lh_demand_next()42 return lh->ring[LIH_INDEX(lh->counter)]; in tfrc_lh_demand_next()51 if (lh->ring[LIH_INDEX(lh->counter)] != NULL) { in tfrc_lh_cleanup()53 lh->ring[LIH_INDEX(lh->counter)]); in tfrc_lh_cleanup()54 lh->ring[LIH_INDEX(lh->counter)] = NULL; in tfrc_lh_cleanup()