Lines Matching refs:r_count
66 uint32_t r_count; member
129 uint32_t r_count = ACCESS_ONCE(ch->r_count); in tegra_ivc_channel_empty() local
141 if (w_count - r_count > ivc->nframes) in tegra_ivc_channel_empty()
144 return w_count == r_count; in tegra_ivc_channel_empty()
154 return (ACCESS_ONCE(ch->w_count) - ACCESS_ONCE(ch->r_count)) >= in tegra_ivc_channel_full()
160 ACCESS_ONCE(ivc->rx_channel->r_count) = in tegra_ivc_advance_rx()
161 ACCESS_ONCE(ivc->rx_channel->r_count) + 1; in tegra_ivc_advance_rx()
219 offset = offsetof(struct tegra_ivc_channel_header, r_count); in tegra_ivc_check_write()
233 return ACCESS_ONCE(ch->w_count) - ACCESS_ONCE(ch->r_count); in tegra_ivc_channel_avail_count()
269 offset = offsetof(struct tegra_ivc_channel_header, r_count); in tegra_ivc_read_advance()
323 offset = offsetof(struct tegra_ivc_channel_header, r_count); in tegra_ivc_write_advance()
374 ivc->rx_channel->r_count = 0; in tegra_ivc_channel_notified()
411 ivc->rx_channel->r_count = 0; in tegra_ivc_channel_notified()
489 BUG_ON(offsetof(struct tegra_ivc_channel_header, r_count) & in check_ivc_params()