Lines Matching refs:ns
91 uint32_t ns; in write() local
103 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
106 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
109 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
112 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
115 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
118 ns = written * (1750000000 / Format_sampleRate(mFormat)); in write()
121 ns = count * (1350000000 / Format_sampleRate(mFormat)); in write()
123 if (ns > 999999999) { in write()
124 ns = 999999999; in write()
140 if ((long) ns > nsec) { in write()
141 ns -= nsec; in write()
143 ns = 0; in write()
147 if (ns > 0) { in write()
148 const struct timespec req = {0, static_cast<long>(ns)}; in write()
154 if ((mWriteTs.tv_nsec += ns) >= 1000000000) { in write()