cregit-Linux how code gets into the kernel

Release 4.14 arch/ia64/lib/io.c

Directory: arch/ia64/lib
// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <linux/types.h>

#include <asm/io.h>

/*
 * Copy data from IO memory space to "real" memory space.
 * This needs to be optimized.
 */

void memcpy_fromio(void *to, const volatile void __iomem *from, long count) { char *dst = to; while (count) { count--; *dst++ = readb(from++); } }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2965.91%125.00%
David Mosberger-Tang1329.55%250.00%
Matthew Wilcox24.55%125.00%
Total44100.00%4100.00%

EXPORT_SYMBOL(memcpy_fromio); /* * Copy data from "real" memory space to IO memory space. * This needs to be optimized. */
void memcpy_toio(volatile void __iomem *to, const void *from, long count) { const char *src = from; while (count) { count--; writeb(*src++, to++); } }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2964.44%125.00%
David Mosberger-Tang1328.89%250.00%
Matthew Wilcox36.67%125.00%
Total45100.00%4100.00%

EXPORT_SYMBOL(memcpy_toio); /* * "memset" on IO memory space. * This needs to be optimized. */
void memset_io(volatile void __iomem *dst, int c, long count) { unsigned char ch = (char)(c & 0xff); while (count) { count--; writeb(ch, dst); dst++; } }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)4387.76%133.33%
David Mosberger-Tang48.16%133.33%
Matthew Wilcox24.08%133.33%
Total49100.00%3100.00%

EXPORT_SYMBOL(memset_io); #ifdef CONFIG_IA64_GENERIC #undef __ia64_inb #undef __ia64_inw #undef __ia64_inl #undef __ia64_outb #undef __ia64_outw #undef __ia64_outl #undef __ia64_readb #undef __ia64_readw #undef __ia64_readl #undef __ia64_readq #undef __ia64_readb_relaxed #undef __ia64_readw_relaxed #undef __ia64_readl_relaxed #undef __ia64_readq_relaxed #undef __ia64_writeb #undef __ia64_writew #undef __ia64_writel #undef __ia64_writeq #undef __ia64_mmiowb
unsigned int __ia64_inb (unsigned long port) { return ___ia64_inb(port); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1487.50%150.00%
David Mosberger-Tang212.50%150.00%
Total16100.00%2100.00%


unsigned int __ia64_inw (unsigned long port) { return ___ia64_inw(port); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1487.50%150.00%
David Mosberger-Tang212.50%150.00%
Total16100.00%2100.00%


unsigned int __ia64_inl (unsigned long port) { return ___ia64_inl(port); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1487.50%150.00%
David Mosberger-Tang212.50%150.00%
Total16100.00%2100.00%


void __ia64_outb (unsigned char val, unsigned long port) { ___ia64_outb(val, port); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1890.00%150.00%
David Mosberger-Tang210.00%150.00%
Total20100.00%2100.00%


void __ia64_outw (unsigned short val, unsigned long port) { ___ia64_outw(val, port); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1890.00%150.00%
David Mosberger-Tang210.00%150.00%
Total20100.00%2100.00%


void __ia64_outl (unsigned int val, unsigned long port) { ___ia64_outl(val, port); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1890.00%150.00%
David Mosberger-Tang210.00%150.00%
Total20100.00%2100.00%


unsigned char __ia64_readb (void __iomem *addr) { return ___ia64_readb (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Jesse Barnes1376.47%125.00%
David Mosberger-Tang317.65%250.00%
Björn Helgaas15.88%125.00%
Total17100.00%4100.00%


unsigned short __ia64_readw (void __iomem *addr) { return ___ia64_readw (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Jesse Barnes1058.82%125.00%
Björn Helgaas423.53%125.00%
David Mosberger-Tang317.65%250.00%
Total17100.00%4100.00%


unsigned int __ia64_readl (void __iomem *addr) { return ___ia64_readl (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Jesse Barnes1482.35%133.33%
David Mosberger-Tang317.65%266.67%
Total17100.00%3100.00%


unsigned long __ia64_readq (void __iomem *addr) { return ___ia64_readq (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Jesse Barnes1164.71%120.00%
David Mosberger-Tang529.41%360.00%
Björn Helgaas15.88%120.00%
Total17100.00%5100.00%


unsigned char __ia64_readb_relaxed (void __iomem *addr) { return ___ia64_readb (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton1694.12%150.00%
David Mosberger-Tang15.88%150.00%
Total17100.00%2100.00%


unsigned short __ia64_readw_relaxed (void __iomem *addr) { return ___ia64_readw (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton1694.12%150.00%
David Mosberger-Tang15.88%150.00%
Total17100.00%2100.00%


unsigned int __ia64_readl_relaxed (void __iomem *addr) { return ___ia64_readl (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton1694.12%150.00%
David Mosberger-Tang15.88%150.00%
Total17100.00%2100.00%


unsigned long __ia64_readq_relaxed (void __iomem *addr) { return ___ia64_readq (addr); }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton1694.12%150.00%
David Mosberger-Tang15.88%150.00%
Total17100.00%2100.00%


void __ia64_mmiowb(void) { ___ia64_mmiowb(); }

Contributors

PersonTokensPropCommitsCommitProp
Jesse Barnes10100.00%1100.00%
Total10100.00%1100.00%

#endif /* CONFIG_IA64_GENERIC */

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)21243.89%215.38%
David Mosberger-Tang11724.22%538.46%
Andrew Morton7615.73%17.69%
Jesse Barnes6112.63%215.38%
Matthew Wilcox102.07%17.69%
Björn Helgaas61.24%17.69%
Greg Kroah-Hartman10.21%17.69%
Total483100.00%13100.00%
Directory: arch/ia64/lib
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.