Lines Matching refs:count
60 #define handshake(count, maxio, timeout, ENABLE, f) \
63 while (count > 0) { \
64 m = min_t(unsigned long, count, maxio); \
72 count -= m; \
183 static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count,
197 if (!count) return 0;
203 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
211 count /= 2;
213 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
219 count /= 3;
220 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
230 count /= 4;
232 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
246 static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count,
259 if (!count) return 0;
265 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
273 count /= 2;
275 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
281 count /= 3;
282 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
292 count /= 4;
294 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,