Lines Matching refs:nframes
98 if (((wr_count - rd_count) > ivc->nframes) || (wr_count == rd_count)) { in ivc_channel_empty()
117 return ((wr_count - rd_count) >= ivc->nframes); in ivc_channel_full()
141 if (ivc->w_pos == (ivc->nframes - (uint32_t)1U)) { in ivc_advance_tx()
152 if (ivc->r_pos == (ivc->nframes - (uint32_t)1U)) { in ivc_advance_rx()
225 assert(frame < ivc->nframes); in ivc_frame_pointer()
270 if (ivc_channel_avail_count(ivc, ivc->rx_channel) == (ivc->nframes - (uint32_t)1U)) { in tegra_ivc_read()
317 if (ivc_channel_avail_count(ivc, ivc->rx_channel) == (ivc->nframes - (uint32_t)1U)) { in tegra_ivc_read_advance()
568 uint32_t nframes, uint32_t frame_size) in check_ivc_params() argument
576 if (((uint64_t)nframes * (uint64_t)frame_size) >= 0x100000000ULL) { in check_ivc_params()
601 if ((queue_base1 + ((uint64_t)frame_size * nframes)) > queue_base2) { in check_ivc_params()
604 frame_size * nframes); in check_ivc_params()
608 if ((queue_base2 + ((uint64_t)frame_size * nframes)) > queue_base1) { in check_ivc_params()
611 frame_size * nframes); in check_ivc_params()
620 uint32_t nframes, uint32_t frame_size, in tegra_ivc_init() argument
630 result = check_ivc_params(rx_base, tx_base, nframes, frame_size); in tegra_ivc_init()
647 ivc->nframes = nframes; in tegra_ivc_init()