Lines Matching refs:bdr
82 static inline void enetc_bdr_idx_inc(struct enetc_bdr *bdr, int *i)
84 if (unlikely(++*i == bdr->bd_count))
88 static inline int enetc_bd_unused(struct enetc_bdr *bdr)
90 if (bdr->next_to_clean > bdr->next_to_use)
91 return bdr->next_to_clean - bdr->next_to_use - 1;
93 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1;