Lines Matching refs:bd_count
6 int enetc_setup_cbdr(struct device *dev, struct enetc_hw *hw, int bd_count,
9 int size = bd_count * sizeof(struct enetc_cbd);
26 cbdr->bd_count = bd_count;
38 enetc_wr(hw, ENETC_SICBDRLENR, ENETC_RTBLENR_LEN(cbdr->bd_count));
51 int size = cbdr->bd_count * sizeof(struct enetc_cbd);
117 i = (i + 1) % ring->bd_count;
125 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) %
126 r->bd_count;
147 i = (i + 1) % ring->bd_count;