• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/alpha/kernel/

Lines Matching refs:count

213 void ioread8_rep(void __iomem *port, void *dst, unsigned long count)
216 if (!count)
218 count--;
223 while (count >= 4) {
225 count -= 4;
234 while (count) {
235 --count;
241 void insb(unsigned long port, void *dst, unsigned long count)
243 ioread8_rep(ioport_map(port, 1), dst, count);
256 void ioread16_rep(void __iomem *port, void *dst, unsigned long count)
259 if (!count)
262 count--;
267 while (count >= 2) {
269 count -= 2;
276 if (count) {
281 void insw(unsigned long port, void *dst, unsigned long count)
283 ioread16_rep(ioport_map(port, 2), dst, count);
296 void ioread32_rep(void __iomem *port, void *dst, unsigned long count)
299 while (count--) {
306 while (count--) {
313 void insl(unsigned long port, void *dst, unsigned long count)
315 ioread32_rep(ioport_map(port, 4), dst, count);
328 void iowrite8_rep(void __iomem *port, const void *xsrc, unsigned long count)
331 while (count--)
335 void outsb(unsigned long port, const void *src, unsigned long count)
337 iowrite8_rep(ioport_map(port, 1), src, count);
350 void iowrite16_rep(void __iomem *port, const void *src, unsigned long count)
353 if (!count)
358 --count;
361 while (count >= 2) {
363 count -= 2;
370 if (count) {
375 void outsw(unsigned long port, const void *src, unsigned long count)
377 iowrite16_rep(ioport_map(port, 2), src, count);
390 void iowrite32_rep(void __iomem *port, const void *src, unsigned long count)
393 while (count--) {
400 while (count--) {
407 void outsl(unsigned long port, const void *src, unsigned long count)
409 iowrite32_rep(ioport_map(port, 4), src, count);
420 void memcpy_fromio(void *to, const volatile void __iomem *from, long count)
425 if (count >= 8 && ((u64)to & 7) == ((u64)from & 7)) {
426 count -= 8;
429 count -= 8;
432 } while (count >= 0);
433 count += 8;
436 if (count >= 4 && ((u64)to & 3) == ((u64)from & 3)) {
437 count -= 4;
440 count -= 4;
443 } while (count >= 0);
444 count += 4;
447 if (count >= 2 && ((u64)to & 1) == ((u64)from & 1)) {
448 count -= 2;
451 count -= 2;
454 } while (count >= 0);
455 count += 2;
458 while (count > 0) {
460 count--;
474 void memcpy_toio(volatile void __iomem *to, const void *from, long count)
479 if (count >= 8 && ((u64)to & 7) == ((u64)from & 7)) {
480 count -= 8;
483 count -= 8;
486 } while (count >= 0);
487 count += 8;
490 if (count >= 4 && ((u64)to & 3) == ((u64)from & 3)) {
491 count -= 4;
494 count -= 4;
497 } while (count >= 0);
498 count += 4;
501 if (count >= 2 && ((u64)to & 1) == ((u64)from & 1)) {
502 count -= 2;
505 count -= 2;
508 } while (count >= 0);
509 count += 2;
512 while (count > 0) {
514 count--;
527 void _memset_c_io(volatile void __iomem *to, unsigned long c, long count)
530 if (count > 0 && ((u64)to & 1)) {
533 count--;
537 if (count >= 2 && ((u64)to & 2)) {
540 count -= 2;
544 if (count >= 4 && ((u64)to & 4)) {
547 count -= 4;
551 (or have a small count) */
552 count -= 8;
553 if (count >= 0) {
557 count -= 8;
558 } while (count >= 0);
560 count += 8;
562 /* The tail is word-aligned if we still have count >= 4 */
563 if (count >= 4) {
566 count -= 4;
569 /* The tail is half-word aligned if we have count >= 2 */
570 if (count >= 2) {
573 count -= 2;
577 if (count) {
589 scr_memcpyw(u16 *d, const u16 *s, unsigned int count)
599 count /= 2;
600 while (count--) {
606 memcpy_fromio(d, ios, count);
609 memcpy_toio(iod, s, count);
611 memcpy(d, s, count);