Lines Matching defs:num_frames
110 if (tx - rx > ivc->num_frames)
126 return tx - rx >= ivc->num_frames;
149 if (ivc->tx.position == ivc->num_frames - 1)
160 if (ivc->rx.position == ivc->num_frames - 1)
221 if (WARN_ON(frame >= ivc->num_frames))
244 if (!ivc->peer || WARN_ON(frame >= ivc->num_frames))
258 if (!ivc->peer || WARN_ON(frame >= ivc->num_frames))
323 if (tegra_ivc_available(ivc, ivc->rx.channel) == ivc->num_frames - 1)
562 unsigned int num_frames, size_t frame_size)
571 if ((uint64_t)num_frames * (uint64_t)frame_size >= 0x100000000UL) {
572 pr_err("num_frames * frame_size overflows\n");
596 if (rx + frame_size * num_frames > tx) {
598 rx, frame_size * num_frames, tx);
602 if (tx + frame_size * num_frames > rx) {
604 tx, frame_size * num_frames, rx);
614 unsigned int num_frames, size_t frame_size,
632 num_frames, frame_size);
636 queue_size = tegra_ivc_total_queue_size(num_frames * frame_size);
662 ivc->num_frames = num_frames;
678 size_t size = tegra_ivc_total_queue_size(ivc->num_frames *