Lines Matching refs:addr

75 __raw_readb(const volatile void *addr)
77 return (*(const volatile uint8_t *)addr);
79 #define __raw_readb(addr) __raw_readb(addr)
82 __raw_writeb(uint8_t v, volatile void *addr)
84 *(volatile uint8_t *)addr = v;
86 #define __raw_writeb(v, addr) __raw_writeb(v, addr)
89 __raw_readw(const volatile void *addr)
91 return (*(const volatile uint16_t *)addr);
93 #define __raw_readw(addr) __raw_readw(addr)
96 __raw_writew(uint16_t v, volatile void *addr)
98 *(volatile uint16_t *)addr = v;
100 #define __raw_writew(v, addr) __raw_writew(v, addr)
103 __raw_readl(const volatile void *addr)
105 return (*(const volatile uint32_t *)addr);
107 #define __raw_readl(addr) __raw_readl(addr)
110 __raw_writel(uint32_t v, volatile void *addr)
112 *(volatile uint32_t *)addr = v;
114 #define __raw_writel(v, addr) __raw_writel(v, addr)
118 __raw_readq(const volatile void *addr)
120 return (*(const volatile uint64_t *)addr);
122 #define __raw_readq(addr) __raw_readq(addr)
125 __raw_writeq(uint64_t v, volatile void *addr)
127 *(volatile uint64_t *)addr = v;
129 #define __raw_writeq(v, addr) __raw_writeq(v, addr)
138 readb(const volatile void *addr)
143 v = *(const volatile uint8_t *)addr;
147 #define readb(addr) readb(addr)
151 writeb(uint8_t v, volatile void *addr)
154 *(volatile uint8_t *)addr = v;
157 #define writeb(v, addr) writeb(v, addr)
161 readw(const volatile void *addr)
166 v = le16toh(__raw_readw(addr));
170 #define readw(addr) readw(addr)
174 writew(uint16_t v, volatile void *addr)
177 __raw_writew(htole16(v), addr);
180 #define writew(v, addr) writew(v, addr)
184 readl(const volatile void *addr)
189 v = le32toh(__raw_readl(addr));
193 #define readl(addr) readl(addr)
197 writel(uint32_t v, volatile void *addr)
200 __raw_writel(htole32(v), addr);
203 #define writel(v, addr) writel(v, addr)
209 readq(const volatile void *addr)
214 v = le64toh(__raw_readq(addr));
218 #define readq(addr) readq(addr)
221 writeq(uint64_t v, volatile void *addr)
224 __raw_writeq(htole64(v), addr);
227 #define writeq(v, addr) writeq(v, addr)
234 readb_relaxed(const volatile void *addr)
236 return (__raw_readb(addr));
238 #define readb_relaxed(addr) readb_relaxed(addr)
242 writeb_relaxed(uint8_t v, volatile void *addr)
244 __raw_writeb(v, addr);
246 #define writeb_relaxed(v, addr) writeb_relaxed(v, addr)
250 readw_relaxed(const volatile void *addr)
252 return (le16toh(__raw_readw(addr)));
254 #define readw_relaxed(addr) readw_relaxed(addr)
258 writew_relaxed(uint16_t v, volatile void *addr)
260 __raw_writew(htole16(v), addr);
262 #define writew_relaxed(v, addr) writew_relaxed(v, addr)
266 readl_relaxed(const volatile void *addr)
268 return (le32toh(__raw_readl(addr)));
270 #define readl_relaxed(addr) readl_relaxed(addr)
274 writel_relaxed(uint32_t v, volatile void *addr)
276 __raw_writel(htole32(v), addr);
278 #define writel_relaxed(v, addr) writel_relaxed(v, addr)
284 readq_relaxed(const volatile void *addr)
286 return (le64toh(__raw_readq(addr)));
288 #define readq_relaxed(addr) readq_relaxed(addr)
291 writeq_relaxed(uint64_t v, volatile void *addr)
293 __raw_writeq(htole64(v), addr);
295 #define writeq_relaxed(v, addr) writeq_relaxed(v, addr)
302 ioread8(const volatile void *addr)
304 return (readb(addr));
306 #define ioread8(addr) ioread8(addr)
310 ioread16(const volatile void *addr)
312 return (readw(addr));
314 #define ioread16(addr) ioread16(addr)
318 ioread16be(const volatile void *addr)
323 v = (be16toh(__raw_readw(addr)));
328 #define ioread16be(addr) ioread16be(addr)
332 ioread32(const volatile void *addr)
334 return (readl(addr));
336 #define ioread32(addr) ioread32(addr)
340 ioread32be(const volatile void *addr)
345 v = (be32toh(__raw_readl(addr)));
350 #define ioread32be(addr) ioread32be(addr)
354 iowrite8(uint8_t v, volatile void *addr)
356 writeb(v, addr);
358 #define iowrite8(v, addr) iowrite8(v, addr)
362 iowrite16(uint16_t v, volatile void *addr)
364 writew(v, addr);
370 iowrite32(uint32_t v, volatile void *addr)
372 writel(v, addr);
374 #define iowrite32(v, addr) iowrite32(v, addr)
378 iowrite32be(uint32_t v, volatile void *addr)
381 __raw_writel(htobe32(v), addr);
384 #define iowrite32be(v, addr) iowrite32be(v, addr)
401 #define ioremap_nocache(addr, size) \
402 _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)
403 #define ioremap_wt(addr, size) \
404 _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)
405 #define ioremap(addr, size) \
406 _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)
408 #define ioremap_nocache(addr, size) \
409 _ioremap_attr((addr), (size), VM_MEMATTR_UNCACHEABLE)
410 #define ioremap_wt(addr, size) \
411 _ioremap_attr((addr), (size), VM_MEMATTR_WRITE_THROUGH)
412 #define ioremap(addr, size) \
413 _ioremap_attr((addr), (size), VM_MEMATTR_UNCACHEABLE)
415 #define ioremap_wc(addr, size) \
416 _ioremap_attr((addr), (size), VM_MEMATTR_WRITE_COMBINING)
417 #define ioremap_wb(addr, size) \
418 _ioremap_attr((addr), (size), VM_MEMATTR_WRITE_BACK)
419 void iounmap(void *addr);
460 void *addr = NULL;
463 (addr = ioremap_wb(offset, size)) != NULL)
466 (addr = ioremap_wt(offset, size)) != NULL)
469 (addr = ioremap_wc(offset, size)) != NULL)
472 return (addr);
476 memunmap(void *addr)
479 iounmap(addr);