Lines Matching refs:addr

74 __raw_readb(const volatile void *addr)
76 return (*(const volatile uint8_t *)addr);
78 #define __raw_readb(addr) __raw_readb(addr)
81 __raw_writeb(uint8_t v, volatile void *addr)
83 *(volatile uint8_t *)addr = v;
85 #define __raw_writeb(v, addr) __raw_writeb(v, addr)
88 __raw_readw(const volatile void *addr)
90 return (*(const volatile uint16_t *)addr);
92 #define __raw_readw(addr) __raw_readw(addr)
95 __raw_writew(uint16_t v, volatile void *addr)
97 *(volatile uint16_t *)addr = v;
99 #define __raw_writew(v, addr) __raw_writew(v, addr)
102 __raw_readl(const volatile void *addr)
104 return (*(const volatile uint32_t *)addr);
106 #define __raw_readl(addr) __raw_readl(addr)
109 __raw_writel(uint32_t v, volatile void *addr)
111 *(volatile uint32_t *)addr = v;
113 #define __raw_writel(v, addr) __raw_writel(v, addr)
117 __raw_readq(const volatile void *addr)
119 return (*(const volatile uint64_t *)addr);
121 #define __raw_readq(addr) __raw_readq(addr)
124 __raw_writeq(uint64_t v, volatile void *addr)
126 *(volatile uint64_t *)addr = v;
128 #define __raw_writeq(v, addr) __raw_writeq(v, addr)
137 readb(const volatile void *addr)
142 v = *(const volatile uint8_t *)addr;
146 #define readb(addr) readb(addr)
150 writeb(uint8_t v, volatile void *addr)
153 *(volatile uint8_t *)addr = v;
156 #define writeb(v, addr) writeb(v, addr)
160 readw(const volatile void *addr)
165 v = le16toh(__raw_readw(addr));
169 #define readw(addr) readw(addr)
173 writew(uint16_t v, volatile void *addr)
176 __raw_writew(htole16(v), addr);
179 #define writew(v, addr) writew(v, addr)
183 readl(const volatile void *addr)
188 v = le32toh(__raw_readl(addr));
192 #define readl(addr) readl(addr)
196 writel(uint32_t v, volatile void *addr)
199 __raw_writel(htole32(v), addr);
202 #define writel(v, addr) writel(v, addr)
208 readq(const volatile void *addr)
213 v = le64toh(__raw_readq(addr));
217 #define readq(addr) readq(addr)
220 writeq(uint64_t v, volatile void *addr)
223 __raw_writeq(htole64(v), addr);
226 #define writeq(v, addr) writeq(v, addr)
233 readb_relaxed(const volatile void *addr)
235 return (__raw_readb(addr));
237 #define readb_relaxed(addr) readb_relaxed(addr)
241 writeb_relaxed(uint8_t v, volatile void *addr)
243 __raw_writeb(v, addr);
245 #define writeb_relaxed(v, addr) writeb_relaxed(v, addr)
249 readw_relaxed(const volatile void *addr)
251 return (le16toh(__raw_readw(addr)));
253 #define readw_relaxed(addr) readw_relaxed(addr)
257 writew_relaxed(uint16_t v, volatile void *addr)
259 __raw_writew(htole16(v), addr);
261 #define writew_relaxed(v, addr) writew_relaxed(v, addr)
265 readl_relaxed(const volatile void *addr)
267 return (le32toh(__raw_readl(addr)));
269 #define readl_relaxed(addr) readl_relaxed(addr)
273 writel_relaxed(uint32_t v, volatile void *addr)
275 __raw_writel(htole32(v), addr);
277 #define writel_relaxed(v, addr) writel_relaxed(v, addr)
283 readq_relaxed(const volatile void *addr)
285 return (le64toh(__raw_readq(addr)));
287 #define readq_relaxed(addr) readq_relaxed(addr)
290 writeq_relaxed(uint64_t v, volatile void *addr)
292 __raw_writeq(htole64(v), addr);
294 #define writeq_relaxed(v, addr) writeq_relaxed(v, addr)
301 ioread8(const volatile void *addr)
303 return (readb(addr));
305 #define ioread8(addr) ioread8(addr)
309 ioread16(const volatile void *addr)
311 return (readw(addr));
313 #define ioread16(addr) ioread16(addr)
317 ioread16be(const volatile void *addr)
322 v = (be16toh(__raw_readw(addr)));
327 #define ioread16be(addr) ioread16be(addr)
331 ioread32(const volatile void *addr)
333 return (readl(addr));
335 #define ioread32(addr) ioread32(addr)
339 ioread32be(const volatile void *addr)
344 v = (be32toh(__raw_readl(addr)));
349 #define ioread32be(addr) ioread32be(addr)
353 iowrite8(uint8_t v, volatile void *addr)
355 writeb(v, addr);
357 #define iowrite8(v, addr) iowrite8(v, addr)
361 iowrite16(uint16_t v, volatile void *addr)
363 writew(v, addr);
369 iowrite32(uint32_t v, volatile void *addr)
371 writel(v, addr);
373 #define iowrite32(v, addr) iowrite32(v, addr)
377 iowrite32be(uint32_t v, volatile void *addr)
380 __raw_writel(htobe32(v), addr);
383 #define iowrite32be(v, addr) iowrite32be(v, addr)
400 #define ioremap_nocache(addr, size) \
401 _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)
402 #define ioremap_wt(addr, size) \
403 _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)
404 #define ioremap(addr, size) \
405 _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)
407 #define ioremap_nocache(addr, size) \
408 _ioremap_attr((addr), (size), VM_MEMATTR_UNCACHEABLE)
409 #define ioremap_wt(addr, size) \
410 _ioremap_attr((addr), (size), VM_MEMATTR_WRITE_THROUGH)
411 #define ioremap(addr, size) \
412 _ioremap_attr((addr), (size), VM_MEMATTR_UNCACHEABLE)
414 #define ioremap_wc(addr, size) \
415 _ioremap_attr((addr), (size), VM_MEMATTR_WRITE_COMBINING)
416 #define ioremap_wb(addr, size) \
417 _ioremap_attr((addr), (size), VM_MEMATTR_WRITE_BACK)
418 void iounmap(void *addr);
459 void *addr = NULL;
462 (addr = ioremap_wb(offset, size)) != NULL)
465 (addr = ioremap_wt(offset, size)) != NULL)
468 (addr = ioremap_wc(offset, size)) != NULL)
471 return (addr);
475 memunmap(void *addr)
478 iounmap(addr);