Lines Matching refs:count
121 int count = 0; in msnd_fifo_write_io() local
123 while ((count < len) && (f->len != f->n)) { in msnd_fifo_write_io()
128 nwritten = len - count; in msnd_fifo_write_io()
134 if (nwritten > len - count) in msnd_fifo_write_io()
135 nwritten = len - count; in msnd_fifo_write_io()
140 count += nwritten; in msnd_fifo_write_io()
147 return count; in msnd_fifo_write_io()
152 int count = 0; in msnd_fifo_write() local
154 while ((count < len) && (f->len != f->n)) { in msnd_fifo_write()
159 nwritten = len - count; in msnd_fifo_write()
165 if (nwritten > len - count) in msnd_fifo_write()
166 nwritten = len - count; in msnd_fifo_write()
171 count += nwritten; in msnd_fifo_write()
178 return count; in msnd_fifo_write()
183 int count = 0; in msnd_fifo_read_io() local
185 while ((count < len) && (f->len > 0)) { in msnd_fifo_read_io()
190 nread = len - count; in msnd_fifo_read_io()
196 if (nread > len - count) in msnd_fifo_read_io()
197 nread = len - count; in msnd_fifo_read_io()
202 count += nread; in msnd_fifo_read_io()
209 return count; in msnd_fifo_read_io()
214 int count = 0; in msnd_fifo_read() local
216 while ((count < len) && (f->len > 0)) { in msnd_fifo_read()
221 nread = len - count; in msnd_fifo_read()
227 if (nread > len - count) in msnd_fifo_read()
228 nread = len - count; in msnd_fifo_read()
233 count += nread; in msnd_fifo_read()
240 return count; in msnd_fifo_read()