Home
last modified time | relevance | path

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

/openbmc/linux/drivers/bus/mhi/ep/
H A Dring.c112 u32 num_free_elem; in mhi_ep_ring_add_element() local
123 num_free_elem = (ring->wr_offset - ring->rd_offset) - 1; in mhi_ep_ring_add_element()
125 num_free_elem = ((ring->ring_size - ring->rd_offset) + ring->wr_offset) - 1; in mhi_ep_ring_add_element()
128 if (!num_free_elem) { in mhi_ep_ring_add_element()