Lines Matching defs:count
60 #define handshake(count, maxio, timeout, ENABLE, f) \
63 while (count > 0) { \
64 m = min_t(unsigned long, count, maxio); \
72 count -= m; \
181 static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count,
195 if (!count) return 0;
201 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
209 count /= 2;
211 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
217 count /= 3;
218 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
228 count /= 4;
230 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_RECEIVE,
244 static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count,
257 if (!count) return 0;
263 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
271 count /= 2;
273 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
279 count /= 3;
280 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,
290 count /= 4;
292 handshake(count, dsp56k.maxio, dsp56k.timeout, DSP56K_TRANSMIT,