Lines Matching refs:rbi
1720 struct hv_ring_buffer_info *rbi = &channel->outbound; in out_mask_show() local
1723 mutex_lock(&rbi->ring_buffer_mutex); in out_mask_show()
1724 if (!rbi->ring_buffer) { in out_mask_show()
1725 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1729 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in out_mask_show()
1730 mutex_unlock(&rbi->ring_buffer_mutex); in out_mask_show()
1737 struct hv_ring_buffer_info *rbi = &channel->inbound; in in_mask_show() local
1740 mutex_lock(&rbi->ring_buffer_mutex); in in_mask_show()
1741 if (!rbi->ring_buffer) { in in_mask_show()
1742 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show()
1746 ret = sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); in in_mask_show()
1747 mutex_unlock(&rbi->ring_buffer_mutex); in in_mask_show()
1754 struct hv_ring_buffer_info *rbi = &channel->inbound; in read_avail_show() local
1757 mutex_lock(&rbi->ring_buffer_mutex); in read_avail_show()
1758 if (!rbi->ring_buffer) { in read_avail_show()
1759 mutex_unlock(&rbi->ring_buffer_mutex); in read_avail_show()
1763 ret = sprintf(buf, "%u\n", hv_get_bytes_to_read(rbi)); in read_avail_show()
1764 mutex_unlock(&rbi->ring_buffer_mutex); in read_avail_show()
1771 struct hv_ring_buffer_info *rbi = &channel->outbound; in write_avail_show() local
1774 mutex_lock(&rbi->ring_buffer_mutex); in write_avail_show()
1775 if (!rbi->ring_buffer) { in write_avail_show()
1776 mutex_unlock(&rbi->ring_buffer_mutex); in write_avail_show()
1780 ret = sprintf(buf, "%u\n", hv_get_bytes_to_write(rbi)); in write_avail_show()
1781 mutex_unlock(&rbi->ring_buffer_mutex); in write_avail_show()