Lines Matching refs:write_limit
220 unsigned int write_limit, in get_stream_limit() argument
241 if (avail < write_limit) { in get_stream_limit()
242 write_limit = avail; in get_stream_limit()
247 return write_limit; in get_stream_limit()
491 size_t write_limit) in write_streams() argument
498 unsigned int drain_limit = write_limit; in write_streams()
529 write_limit = MIN((size_t)dev_frames, write_limit); in write_streams()
535 write_limit = drain_limit; in write_streams()
537 if (write_limit > max_offset) in write_streams()
539 (write_limit - max_offset) * frame_bytes); in write_streams()
542 write_limit, max_offset, 0); in write_streams()
549 if (offset >= write_limit) in write_streams()
553 write_limit - offset); in write_streams()
563 write_limit = cras_iodev_all_streams_written(odev); in write_streams()
565 ATLOG(atlog, AUDIO_THREAD_WRITE_STREAMS_MIXED, write_limit, 0, 0); in write_streams()
567 return write_limit; in write_streams()