Lines Matching full:count
19 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) in memcpy_toio() argument
26 count--; in memcpy_toio()
28 while (count > 3) { in memcpy_toio()
32 count -= 4; in memcpy_toio()
35 while (count--) { in memcpy_toio()
54 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) in memcpy_fromio() argument
57 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) in memcpy_fromio()
60 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) in memcpy_fromio()
68 count--; in memcpy_fromio()
69 if (count < 2) goto bytecopy; in memcpy_fromio()
76 count -= 2; in memcpy_fromio()
79 while (count > 3) { in memcpy_fromio()
83 count -= 4; in memcpy_fromio()
87 while (count > 1) { in memcpy_fromio()
91 count -= 2; in memcpy_fromio()
95 while (count--) { in memcpy_fromio()
106 void memset_io(volatile void __iomem *addr, unsigned char val, int count) in memset_io() argument
111 count--; in memset_io()
113 while (count > 3) { in memset_io()
116 count -= 4; in memset_io()
118 while (count--) { in memset_io()
124 * Read COUNT 8-bit bytes from port PORT into memory starting at
127 void insb (unsigned long port, void *dst, unsigned long count) in insb() argument
134 if (!count) in insb()
136 count--; in insb()
141 while (count >= 4) { in insb()
143 count -= 4; in insb()
152 while (count) { in insb()
153 --count; in insb()
161 * Read COUNT 16-bit words from port PORT into memory starting at
167 void insw (unsigned long port, void *dst, unsigned long count) in insw() argument
174 if (!count) in insw()
180 while (count>=2) { in insw()
182 count -= 2; in insw()
188 if (count) { in insw()
196 count--; in insw()
197 while (count>=2) { in insw()
199 count -= 2; in insw()
205 if (count) { in insw()
214 --count; in insw()
219 while (count--) in insw()
234 * Read COUNT 32-bit words from port PORT into memory starting at
239 void insl (unsigned long port, void *dst, unsigned long count) in insl() argument
246 if (!count) in insl()
252 while (count--) in insl()
260 --count; in insl()
266 while (count--) in insl()
276 --count; in insl()
283 while (count--) in insl()
293 --count; in insl()
298 while (count--) in insl()
319 void outsb(unsigned long port, const void * src, unsigned long count) in outsb() argument
324 while (count) { in outsb()
325 count--; in outsb()
337 void outsw (unsigned long port, const void *src, unsigned long count) in outsw() argument
344 if (!count) in outsw()
350 while (count>=2) { in outsw()
351 count -= 2; in outsw()
357 if (count) { in outsw()
366 count--; in outsw()
368 while (count>=2) { in outsw()
369 count -= 2; in outsw()
375 if (count) { in outsw()
386 count--; in outsw()
387 while (count) in outsw()
389 count--; in outsw()
409 void outsl (unsigned long port, const void *src, unsigned long count) in outsl() argument
416 if (!count) in outsl()
422 while (count--) in outsl()
430 --count; in outsl()
435 while (count--) in outsl()
446 --count; in outsl()
453 while (count--) in outsl()
464 --count; in outsl()
469 while (count--) in outsl()