Lines Matching refs:nframes
91 BUG_ON(frame >= ivc->nframes); in tegra_ivc_frame_addr()
141 if (w_count - r_count > ivc->nframes) in tegra_ivc_channel_empty()
155 ivc->nframes; in tegra_ivc_channel_full()
163 if (ivc->r_pos == ivc->nframes - 1) in tegra_ivc_advance_rx()
174 if (ivc->w_pos == ivc->nframes - 1) in tegra_ivc_advance_tx()
281 ivc->nframes - 1) in tegra_ivc_read_advance()
482 static int check_ivc_params(ulong qbase1, ulong qbase2, uint32_t nframes, in check_ivc_params() argument
494 if ((uint64_t)nframes * (uint64_t)frame_size >= 0x100000000) { in check_ivc_params()
515 if (qbase1 + frame_size * nframes > qbase2) in check_ivc_params()
518 if (qbase2 + frame_size * nframes > qbase1) in check_ivc_params()
531 uint32_t nframes, uint32_t frame_size, in tegra_ivc_init() argument
539 ret = check_ivc_params(rx_base, tx_base, nframes, frame_size); in tegra_ivc_init()
547 ivc->nframes = nframes; in tegra_ivc_init()