Lines Matching refs:addr

75 static inline u8 __raw_readb(const volatile void __iomem *addr)  in __raw_readb()  argument
77 return *(const volatile u8 __force *)addr; in __raw_readb()
83 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
85 return *(const volatile u16 __force *)addr; in __raw_readw()
91 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
93 return *(const volatile u32 __force *)addr; in __raw_readl()
100 static inline u64 __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
102 return *(const volatile u64 __force *)addr; in __raw_readq()
109 static inline void __raw_writeb(u8 value, volatile void __iomem *addr) in __raw_writeb() argument
111 *(volatile u8 __force *)addr = value; in __raw_writeb()
117 static inline void __raw_writew(u16 value, volatile void __iomem *addr) in __raw_writew() argument
119 *(volatile u16 __force *)addr = value; in __raw_writew()
125 static inline void __raw_writel(u32 value, volatile void __iomem *addr) in __raw_writel() argument
127 *(volatile u32 __force *)addr = value; in __raw_writel()
134 static inline void __raw_writeq(u64 value, volatile void __iomem *addr) in __raw_writeq() argument
136 *(volatile u64 __force *)addr = value; in __raw_writeq()
148 static inline u8 readb(const volatile void __iomem *addr) in readb() argument
153 val = __raw_readb(addr); in readb()
161 static inline u16 readw(const volatile void __iomem *addr) in readw() argument
166 val = __le16_to_cpu((__le16 __force)__raw_readw(addr)); in readw()
174 static inline u32 readl(const volatile void __iomem *addr) in readl() argument
179 val = __le32_to_cpu((__le32 __force)__raw_readl(addr)); in readl()
188 static inline u64 readq(const volatile void __iomem *addr) in readq() argument
193 val = __le64_to_cpu(__raw_readq(addr)); in readq()
202 static inline void writeb(u8 value, volatile void __iomem *addr) in writeb() argument
205 __raw_writeb(value, addr); in writeb()
212 static inline void writew(u16 value, volatile void __iomem *addr) in writew() argument
215 __raw_writew((u16 __force)cpu_to_le16(value), addr); in writew()
222 static inline void writel(u32 value, volatile void __iomem *addr) in writel() argument
225 __raw_writel((u32 __force)__cpu_to_le32(value), addr); in writel()
233 static inline void writeq(u64 value, volatile void __iomem *addr) in writeq() argument
236 __raw_writeq(__cpu_to_le64(value), addr); in writeq()
249 static inline u8 readb_relaxed(const volatile void __iomem *addr) in readb_relaxed() argument
251 return __raw_readb(addr); in readb_relaxed()
257 static inline u16 readw_relaxed(const volatile void __iomem *addr) in readw_relaxed() argument
259 return __le16_to_cpu(__raw_readw(addr)); in readw_relaxed()
265 static inline u32 readl_relaxed(const volatile void __iomem *addr) in readl_relaxed() argument
267 return __le32_to_cpu(__raw_readl(addr)); in readl_relaxed()
273 static inline u64 readq_relaxed(const volatile void __iomem *addr) in readq_relaxed() argument
275 return __le64_to_cpu(__raw_readq(addr)); in readq_relaxed()
281 static inline void writeb_relaxed(u8 value, volatile void __iomem *addr) in writeb_relaxed() argument
283 __raw_writeb(value, addr); in writeb_relaxed()
289 static inline void writew_relaxed(u16 value, volatile void __iomem *addr) in writew_relaxed() argument
291 __raw_writew(cpu_to_le16(value), addr); in writew_relaxed()
297 static inline void writel_relaxed(u32 value, volatile void __iomem *addr) in writel_relaxed() argument
299 __raw_writel(__cpu_to_le32(value), addr); in writel_relaxed()
305 static inline void writeq_relaxed(u64 value, volatile void __iomem *addr) in writeq_relaxed() argument
307 __raw_writeq(__cpu_to_le64(value), addr); in writeq_relaxed()
317 static inline void readsb(const volatile void __iomem *addr, void *buffer, in readsb() argument
324 u8 x = __raw_readb(addr); in readsb()
333 static inline void readsw(const volatile void __iomem *addr, void *buffer, in readsw() argument
340 u16 x = __raw_readw(addr); in readsw()
349 static inline void readsl(const volatile void __iomem *addr, void *buffer, in readsl() argument
356 u32 x = __raw_readl(addr); in readsl()
366 static inline void readsq(const volatile void __iomem *addr, void *buffer, in readsq() argument
373 u64 x = __raw_readq(addr); in readsq()
383 static inline void writesb(volatile void __iomem *addr, const void *buffer, in writesb() argument
390 __raw_writeb(*buf++, addr); in writesb()
398 static inline void writesw(volatile void __iomem *addr, const void *buffer, in writesw() argument
405 __raw_writew(*buf++, addr); in writesw()
413 static inline void writesl(volatile void __iomem *addr, const void *buffer, in writesl() argument
420 __raw_writel(*buf++, addr); in writesl()
429 static inline void writesq(volatile void __iomem *addr, const void *buffer, in writesq() argument
436 __raw_writeq(*buf++, addr); in writesq()
459 static inline u8 _inb(unsigned long addr) in _inb() argument
464 val = __raw_readb(PCI_IOBASE + addr); in _inb()
472 static inline u16 _inw(unsigned long addr) in _inw() argument
477 val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); in _inw()
485 static inline u32 _inl(unsigned long addr) in _inl() argument
490 val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); in _inl()
498 static inline void _outb(u8 value, unsigned long addr) in _outb() argument
501 __raw_writeb(value, PCI_IOBASE + addr); in _outb()
508 static inline void _outw(u16 value, unsigned long addr) in _outw() argument
511 __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); in _outw()
518 static inline void _outl(u32 value, unsigned long addr) in _outl() argument
521 __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); in _outl()
554 static inline u8 inb_p(unsigned long addr) in inb_p() argument
556 return inb(addr); in inb_p()
562 static inline u16 inw_p(unsigned long addr) in inw_p() argument
564 return inw(addr); in inw_p()
570 static inline u32 inl_p(unsigned long addr) in inl_p() argument
572 return inl(addr); in inl_p()
578 static inline void outb_p(u8 value, unsigned long addr) in outb_p() argument
580 outb(value, addr); in outb_p()
586 static inline void outw_p(u16 value, unsigned long addr) in outw_p() argument
588 outw(value, addr); in outw_p()
594 static inline void outl_p(u32 value, unsigned long addr) in outl_p() argument
596 outl(value, addr); in outl_p()
607 static inline void insb(unsigned long addr, void *buffer, unsigned int count) in insb() argument
609 readsb(PCI_IOBASE + addr, buffer, count); in insb()
615 static inline void insw(unsigned long addr, void *buffer, unsigned int count) in insw() argument
617 readsw(PCI_IOBASE + addr, buffer, count); in insw()
623 static inline void insl(unsigned long addr, void *buffer, unsigned int count) in insl() argument
625 readsl(PCI_IOBASE + addr, buffer, count); in insl()
631 static inline void outsb(unsigned long addr, const void *buffer, in outsb() argument
634 writesb(PCI_IOBASE + addr, buffer, count); in outsb()
640 static inline void outsw(unsigned long addr, const void *buffer, in outsw() argument
643 writesw(PCI_IOBASE + addr, buffer, count); in outsw()
649 static inline void outsl(unsigned long addr, const void *buffer, in outsl() argument
652 writesl(PCI_IOBASE + addr, buffer, count); in outsl()
658 static inline void insb_p(unsigned long addr, void *buffer, unsigned int count) in insb_p() argument
660 insb(addr, buffer, count); in insb_p()
666 static inline void insw_p(unsigned long addr, void *buffer, unsigned int count) in insw_p() argument
668 insw(addr, buffer, count); in insw_p()
674 static inline void insl_p(unsigned long addr, void *buffer, unsigned int count) in insl_p() argument
676 insl(addr, buffer, count); in insl_p()
682 static inline void outsb_p(unsigned long addr, const void *buffer, in outsb_p() argument
685 outsb(addr, buffer, count); in outsb_p()
691 static inline void outsw_p(unsigned long addr, const void *buffer, in outsw_p() argument
694 outsw(addr, buffer, count); in outsw_p()
700 static inline void outsl_p(unsigned long addr, const void *buffer, in outsl_p() argument
703 outsl(addr, buffer, count); in outsl_p()
710 static inline u8 ioread8(const volatile void __iomem *addr) in ioread8() argument
712 return readb(addr); in ioread8()
718 static inline u16 ioread16(const volatile void __iomem *addr) in ioread16() argument
720 return readw(addr); in ioread16()
726 static inline u32 ioread32(const volatile void __iomem *addr) in ioread32() argument
728 return readl(addr); in ioread32()
735 static inline u64 ioread64(const volatile void __iomem *addr) in ioread64() argument
737 return readq(addr); in ioread64()
744 static inline void iowrite8(u8 value, volatile void __iomem *addr) in iowrite8() argument
746 writeb(value, addr); in iowrite8()
752 static inline void iowrite16(u16 value, volatile void __iomem *addr) in iowrite16() argument
754 writew(value, addr); in iowrite16()
760 static inline void iowrite32(u32 value, volatile void __iomem *addr) in iowrite32() argument
762 writel(value, addr); in iowrite32()
769 static inline void iowrite64(u64 value, volatile void __iomem *addr) in iowrite64() argument
771 writeq(value, addr); in iowrite64()
778 static inline u16 ioread16be(const volatile void __iomem *addr) in ioread16be() argument
780 return swab16(readw(addr)); in ioread16be()
786 static inline u32 ioread32be(const volatile void __iomem *addr) in ioread32be() argument
788 return swab32(readl(addr)); in ioread32be()
795 static inline u64 ioread64be(const volatile void __iomem *addr) in ioread64be() argument
797 return swab64(readq(addr)); in ioread64be()
804 static inline void iowrite16be(u16 value, void volatile __iomem *addr) in iowrite16be() argument
806 writew(swab16(value), addr); in iowrite16be()
812 static inline void iowrite32be(u32 value, volatile void __iomem *addr) in iowrite32be() argument
814 writel(swab32(value), addr); in iowrite32be()
821 static inline void iowrite64be(u64 value, volatile void __iomem *addr) in iowrite64be() argument
823 writeq(swab64(value), addr); in iowrite64be()
830 static inline void ioread8_rep(const volatile void __iomem *addr, void *buffer, in ioread8_rep() argument
833 readsb(addr, buffer, count); in ioread8_rep()
839 static inline void ioread16_rep(const volatile void __iomem *addr, in ioread16_rep() argument
842 readsw(addr, buffer, count); in ioread16_rep()
848 static inline void ioread32_rep(const volatile void __iomem *addr, in ioread32_rep() argument
851 readsl(addr, buffer, count); in ioread32_rep()
858 static inline void ioread64_rep(const volatile void __iomem *addr, in ioread64_rep() argument
861 readsq(addr, buffer, count); in ioread64_rep()
868 static inline void iowrite8_rep(volatile void __iomem *addr, in iowrite8_rep() argument
872 writesb(addr, buffer, count); in iowrite8_rep()
878 static inline void iowrite16_rep(volatile void __iomem *addr, in iowrite16_rep() argument
882 writesw(addr, buffer, count); in iowrite16_rep()
888 static inline void iowrite32_rep(volatile void __iomem *addr, in iowrite32_rep() argument
892 writesl(addr, buffer, count); in iowrite32_rep()
899 static inline void iowrite64_rep(volatile void __iomem *addr, in iowrite64_rep() argument
903 writesq(addr, buffer, count); in iowrite64_rep()
960 static inline void iounmap(volatile void __iomem *addr) in iounmap() argument
967 void __iomem *ioremap_prot(phys_addr_t addr, size_t size, unsigned long prot);
968 void iounmap(volatile void __iomem *addr);
970 static inline void __iomem *ioremap(phys_addr_t addr, size_t size) in ioremap() argument
973 return ioremap_prot(addr, size, _PAGE_IOREMAP); in ioremap()
1049 static inline void *xlate_dev_mem_ptr(phys_addr_t addr) in xlate_dev_mem_ptr() argument
1051 return __va(addr); in xlate_dev_mem_ptr()
1057 static inline void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr) in unxlate_dev_mem_ptr() argument
1086 static inline void memset_io(volatile void __iomem *addr, int value, in memset_io() argument
1089 memset(__io_virt(addr), value, size); in memset_io()
1104 const volatile void __iomem *addr, in memcpy_fromio() argument
1107 memcpy(buffer, __io_virt(addr), size); in memcpy_fromio()
1121 static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer, in memcpy_toio() argument
1124 memcpy(__io_virt(addr), buffer, size); in memcpy_toio()