Searched refs:nr_el (Results 1 – 1 of 1) sorted by relevance
231 int nr_el; in get_nr_avail_ring_elements() local234 nr_el = ((ring->rp - ring->wp) / ring->el_size) - 1; in get_nr_avail_ring_elements()236 nr_el = (ring->rp - ring->base) / ring->el_size; in get_nr_avail_ring_elements()237 nr_el += ((ring->base + ring->len - ring->wp) / in get_nr_avail_ring_elements()241 return nr_el; in get_nr_avail_ring_elements()1484 int nr_el = get_nr_avail_ring_elements(mhi_cntrl, in mhi_prepare_channel() local1488 while (nr_el--) { in mhi_prepare_channel()