Lines Matching refs:write_limit
321 unsigned int write_limit, in get_stream_limit() argument
342 if (avail < write_limit) { in get_stream_limit()
343 write_limit = avail; in get_stream_limit()
348 return write_limit; in get_stream_limit()
649 size_t write_limit) in write_streams() argument
656 unsigned int drain_limit = write_limit; in write_streams()
687 write_limit = MIN((size_t)dev_frames, write_limit); in write_streams()
693 write_limit = drain_limit; in write_streams()
695 if (write_limit > max_offset) in write_streams()
697 (write_limit - max_offset) * frame_bytes); in write_streams()
699 ATLOG(atlog, AUDIO_THREAD_WRITE_STREAMS_MIX, write_limit, max_offset, in write_streams()
710 if (offset >= write_limit) in write_streams()
714 write_limit - offset); in write_streams()
724 write_limit = cras_iodev_all_streams_written(odev); in write_streams()
726 ATLOG(atlog, AUDIO_THREAD_WRITE_STREAMS_MIXED, write_limit, 0, 0); in write_streams()
728 return write_limit; in write_streams()