Lines Matching +full:data +full:- +full:addr
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
30 extern void iounmap(const volatile void __iomem *addr);
33 extern void __raw_readsw(const void __iomem *addr, void *data, int wordlen);
34 extern void __raw_writesw(void __iomem *addr, const void *data, int wordlen);
36 extern void __raw_readsl(const void __iomem *addr, void *data, int wordlen);
37 extern void __raw_writesl(void __iomem *addr, const void *data, int wordlen);
46 * virt_to_phys - map virtual address to physical
55 * phys_to_virt - map physical address to virtual
79 * readb - read byte from memory mapped device
80 * @addr: pointer to memory
84 static inline u8 readb(const volatile void __iomem *addr) in readb() argument
90 : "r" (addr) in readb()
95 static inline u16 readw(const volatile void __iomem *addr) in readw() argument
101 : "r" (addr) in readw()
106 static inline u32 readl(const volatile void __iomem *addr) in readl() argument
112 : "r" (addr) in readl()
118 * writeb - write a byte to a memory location
119 * @data: data to write to
120 * @addr: pointer to memory
123 static inline void writeb(u8 data, volatile void __iomem *addr) in writeb() argument
128 : "r" (addr), "r" (data) in writeb()
133 static inline void writew(u16 data, volatile void __iomem *addr) in writew() argument
138 : "r" (addr), "r" (data) in writew()
144 static inline void writel(u32 data, volatile void __iomem *addr) in writel() argument
149 : "r" (addr), "r" (data) in writel()
192 static inline void memset_io(volatile void __iomem *addr, int value, in memset_io() argument
195 memset((void __force *)addr, value, size); in memset_io()
201 * inb - read byte from I/O port or something
222 * outb - write a byte to a memory location
223 * @data: data to write to
224 * @addr: address in I/O space
226 static inline void outb(u8 data, unsigned long port) in outb() argument
228 writeb(data, _IO_BASE + (port & IO_SPACE_LIMIT)); in outb()
231 static inline void outw(u16 data, unsigned long port) in outw() argument
233 writew(data, _IO_BASE + (port & IO_SPACE_LIMIT)); in outw()
236 static inline void outl(u32 data, unsigned long port) in outl() argument
238 writel(data, _IO_BASE + (port & IO_SPACE_LIMIT)); in outl()
256 } while (--count); in insb()
267 } while (--count); in insw()
278 } while (--count); in insl()
288 } while (--count); in outsb()
298 } while (--count); in outsw()
308 } while (--count); in outsl()