Lines Matching refs:nframes
92 BUG_ON(frame >= ivc->nframes); in tegra_ivc_frame_addr()
142 if (w_count - r_count > ivc->nframes) in tegra_ivc_channel_empty()
156 ivc->nframes; in tegra_ivc_channel_full()
164 if (ivc->r_pos == ivc->nframes - 1) in tegra_ivc_advance_rx()
175 if (ivc->w_pos == ivc->nframes - 1) in tegra_ivc_advance_tx()
282 ivc->nframes - 1) in tegra_ivc_read_advance()
483 static int check_ivc_params(ulong qbase1, ulong qbase2, uint32_t nframes, in check_ivc_params() argument
495 if ((uint64_t)nframes * (uint64_t)frame_size >= 0x100000000) { in check_ivc_params()
516 if (qbase1 + frame_size * nframes > qbase2) in check_ivc_params()
519 if (qbase2 + frame_size * nframes > qbase1) in check_ivc_params()
532 uint32_t nframes, uint32_t frame_size, in tegra_ivc_init() argument
540 ret = check_ivc_params(rx_base, tx_base, nframes, frame_size); in tegra_ivc_init()
548 ivc->nframes = nframes; in tegra_ivc_init()