/arch/mips/include/asm/ |
D | asm-eva.h | 18 #define kernel_ll(reg, addr) "ll " reg ", " addr "\n" argument 19 #define kernel_sc(reg, addr) "sc " reg ", " addr "\n" argument 20 #define kernel_lw(reg, addr) "lw " reg ", " addr "\n" argument 21 #define kernel_lwl(reg, addr) "lwl " reg ", " addr "\n" argument 22 #define kernel_lwr(reg, addr) "lwr " reg ", " addr "\n" argument 23 #define kernel_lh(reg, addr) "lh " reg ", " addr "\n" argument 24 #define kernel_lb(reg, addr) "lb " reg ", " addr "\n" argument 25 #define kernel_lbu(reg, addr) "lbu " reg ", " addr "\n" argument 26 #define kernel_sw(reg, addr) "sw " reg ", " addr "\n" argument 27 #define kernel_swl(reg, addr) "swl " reg ", " addr "\n" argument [all …]
|
/arch/parisc/lib/ |
D | iomap.c | 36 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<63) != 0) argument 37 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 60) & 7) argument 40 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<31) != 0) argument 41 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 28) & 7) argument 66 #define ADDR2PORT(addr) ((unsigned long __force)(addr) & 0xffffff) argument 68 static unsigned int ioport_read8(void __iomem *addr) in ioport_read8() argument 70 return inb(ADDR2PORT(addr)); in ioport_read8() 73 static unsigned int ioport_read16(void __iomem *addr) in ioport_read16() argument 75 return inw(ADDR2PORT(addr)); in ioport_read16() 78 static unsigned int ioport_read32(void __iomem *addr) in ioport_read32() argument [all …]
|
/arch/alpha/include/asm/ |
D | jensen.h | 92 __EXTERN_INLINE void jensen_set_hae(unsigned long addr) in jensen_set_hae() argument 95 addr >>= 25; in jensen_set_hae() 96 if (addr != alpha_mv.hae_cache) in jensen_set_hae() 97 set_hae(addr); in jensen_set_hae() 114 static inline unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument 116 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb() 119 static inline void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument 121 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb() 125 static inline unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument 130 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb() [all …]
|
/arch/ia64/include/asm/sn/ |
D | io.h | 42 #define __sn_setq_relaxed(addr, val) \ argument 43 writeq((__sn_readq_relaxed(addr) | (val)), (addr)) 44 #define __sn_clrq_relaxed(addr, val) \ argument 45 writeq((__sn_readq_relaxed(addr) & ~(val)), (addr)) 59 volatile unsigned char *addr; in ___sn_inb() local 62 if ((addr = sn_io_addr(port))) { in ___sn_inb() 63 ret = *addr; in ___sn_inb() 65 sn_dma_flush((unsigned long)addr); in ___sn_inb() 73 volatile unsigned short *addr; in ___sn_inw() local 76 if ((addr = sn_io_addr(port))) { in ___sn_inw() [all …]
|
/arch/parisc/include/asm/ |
D | io.h | 13 static inline unsigned long isa_bus_to_virt(unsigned long addr) { in isa_bus_to_virt() argument 18 static inline unsigned long isa_virt_to_bus(void *addr) { in isa_virt_to_bus() argument 32 static inline unsigned char gsc_readb(unsigned long addr) in gsc_readb() argument 41 : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); in gsc_readb() 46 static inline unsigned short gsc_readw(unsigned long addr) in gsc_readw() argument 55 : "=&r" (flags), "=r" (ret) : "r" (addr), "i" (PSW_SM_D) ); in gsc_readw() 60 static inline unsigned int gsc_readl(unsigned long addr) in gsc_readl() argument 66 : "=r" (ret) : "r" (addr) ); in gsc_readl() 71 static inline unsigned long long gsc_readq(unsigned long addr) in gsc_readq() argument 78 : "=r" (ret) : "r" (addr) ); in gsc_readq() [all …]
|
D | bitops.h | 36 static __inline__ void set_bit(int nr, volatile unsigned long * addr) in set_bit() argument 41 addr += (nr >> SHIFT_PER_LONG); in set_bit() 42 _atomic_spin_lock_irqsave(addr, flags); in set_bit() 43 *addr |= mask; in set_bit() 44 _atomic_spin_unlock_irqrestore(addr, flags); in set_bit() 47 static __inline__ void clear_bit(int nr, volatile unsigned long * addr) in clear_bit() argument 52 addr += (nr >> SHIFT_PER_LONG); in clear_bit() 53 _atomic_spin_lock_irqsave(addr, flags); in clear_bit() 54 *addr &= mask; in clear_bit() 55 _atomic_spin_unlock_irqrestore(addr, flags); in clear_bit() [all …]
|
/arch/tile/include/asm/ |
D | io.h | 49 extern void iounmap(volatile void __iomem *addr); 52 #define iounmap(addr) ((void)0) argument 64 #define mm_ptov(addr) ((void *)phys_to_virt(addr)) argument 65 #define mm_vtop(addr) ((unsigned long)virt_to_phys(addr)) argument 79 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 81 return *(const volatile u8 __force *)addr; in __raw_readb() 84 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument 87 asm volatile("ld2u %0, %1" : "=r" (ret) : "r" (addr)); in __raw_readw() 92 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument 96 asm volatile("ld4s %0, %1" : "=r" (ret) : "r" (addr)); in __raw_readl() [all …]
|
/arch/powerpc/kernel/ |
D | iomap.c | 18 unsigned int ioread8(void __iomem *addr) in ioread8() argument 20 return readb(addr); in ioread8() 22 unsigned int ioread16(void __iomem *addr) in ioread16() argument 24 return readw(addr); in ioread16() 26 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 28 return readw_be(addr); in ioread16be() 30 unsigned int ioread32(void __iomem *addr) in ioread32() argument 32 return readl(addr); in ioread32() 34 unsigned int ioread32be(void __iomem *addr) in ioread32be() argument 36 return readl_be(addr); in ioread32be() [all …]
|
/arch/sh/kernel/ |
D | iomap.c | 14 unsigned int ioread8(void __iomem *addr) in ioread8() argument 16 return readb(addr); in ioread8() 20 unsigned int ioread16(void __iomem *addr) in ioread16() argument 22 return readw(addr); in ioread16() 26 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 28 return be16_to_cpu(__raw_readw(addr)); in ioread16be() 32 unsigned int ioread32(void __iomem *addr) in ioread32() argument 34 return readl(addr); in ioread32() 38 unsigned int ioread32be(void __iomem *addr) in ioread32be() argument 40 return be32_to_cpu(__raw_readl(addr)); in ioread32be() [all …]
|
/arch/mips/include/asm/mach-generic/ |
D | ide.h | 39 static inline void __ide_flush_dcache_range(unsigned long addr, unsigned long size) in __ide_flush_dcache_range() argument 42 unsigned long end = addr + size; in __ide_flush_dcache_range() 44 while (addr < end) { in __ide_flush_dcache_range() 45 local_flush_data_cache_page((void *)addr); in __ide_flush_dcache_range() 46 addr += PAGE_SIZE; in __ide_flush_dcache_range() 59 static inline void __ide_insw(unsigned long port, void *addr, in __ide_insw() argument 63 insw(port, addr, count); in __ide_insw() 64 __ide_flush_dcache_range((unsigned long)addr, count * 2); in __ide_insw() 68 static inline void __ide_insl(unsigned long port, void *addr, unsigned int count) in __ide_insl() argument 71 insl(port, addr, count); in __ide_insl() [all …]
|
/arch/sparc/include/asm/ |
D | swift.h | 31 static inline void swift_inv_insn_tag(unsigned long addr) in swift_inv_insn_tag() argument 35 : "r" (addr), "i" (ASI_M_TXTC_TAG) in swift_inv_insn_tag() 40 static inline void swift_inv_data_tag(unsigned long addr) in swift_inv_data_tag() argument 44 : "r" (addr), "i" (ASI_M_DATAC_TAG) in swift_inv_data_tag() 50 unsigned long addr; in swift_flush_dcache() local 52 for (addr = 0; addr < 0x2000; addr += 0x10) in swift_flush_dcache() 53 swift_inv_data_tag(addr); in swift_flush_dcache() 58 unsigned long addr; in swift_flush_icache() local 60 for (addr = 0; addr < 0x4000; addr += 0x20) in swift_flush_icache() 61 swift_inv_insn_tag(addr); in swift_flush_icache() [all …]
|
D | turbosparc.h | 63 static inline void turbosparc_inv_insn_tag(unsigned long addr) in turbosparc_inv_insn_tag() argument 67 : "r" (addr), "i" (ASI_M_TXTC_TAG) in turbosparc_inv_insn_tag() 72 static inline void turbosparc_inv_data_tag(unsigned long addr) in turbosparc_inv_data_tag() argument 76 : "r" (addr), "i" (ASI_M_DATAC_TAG) in turbosparc_inv_data_tag() 82 unsigned long addr; in turbosparc_flush_icache() local 84 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_icache() 85 turbosparc_inv_insn_tag(addr); in turbosparc_flush_icache() 90 unsigned long addr; in turbosparc_flush_dcache() local 92 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_dcache() 93 turbosparc_inv_data_tag(addr); in turbosparc_flush_dcache() [all …]
|
/arch/mn10300/include/asm/ |
D | io.h | 28 static inline u8 readb(const volatile void __iomem *addr) in readb() argument 30 return *(const volatile u8 *) addr; in readb() 33 static inline u16 readw(const volatile void __iomem *addr) in readw() argument 35 return *(const volatile u16 *) addr; in readw() 38 static inline u32 readl(const volatile void __iomem *addr) in readl() argument 40 return *(const volatile u32 *) addr; in readl() 51 static inline void writeb(u8 b, volatile void __iomem *addr) in writeb() argument 53 *(volatile u8 *) addr = b; in writeb() 56 static inline void writew(u16 b, volatile void __iomem *addr) in writew() argument 58 *(volatile u16 *) addr = b; in writew() [all …]
|
/arch/powerpc/lib/ |
D | code-patching.c | 42 int raw_patch_instruction(unsigned int *addr, unsigned int instr) in raw_patch_instruction() argument 44 return __patch_instruction(addr, instr, addr); in raw_patch_instruction() 92 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument 97 if (is_vmalloc_addr(addr)) in map_patch_area() 98 pfn = vmalloc_to_pfn(addr); in map_patch_area() 100 pfn = __pa_symbol(addr) >> PAGE_SHIFT; in map_patch_area() 112 static inline int unmap_patch_area(unsigned long addr) in unmap_patch_area() argument 119 pgdp = pgd_offset_k(addr); in unmap_patch_area() 123 pudp = pud_offset(pgdp, addr); in unmap_patch_area() 127 pmdp = pmd_offset(pudp, addr); in unmap_patch_area() [all …]
|
/arch/mips/lib/ |
D | iomap.c | 29 unsigned int ioread8(void __iomem *addr) in ioread8() argument 31 return readb(addr); in ioread8() 36 unsigned int ioread16(void __iomem *addr) in ioread16() argument 38 return readw(addr); in ioread16() 43 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 45 return be16_to_cpu(__raw_readw(addr)); in ioread16be() 50 unsigned int ioread32(void __iomem *addr) in ioread32() argument 52 return readl(addr); in ioread32() 57 unsigned int ioread32be(void __iomem *addr) in ioread32be() argument 59 return be32_to_cpu(__raw_readl(addr)); in ioread32be() [all …]
|
/arch/frv/include/asm/ |
D | io.h | 46 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 48 return __builtin_read8((volatile void __iomem *)addr); in __raw_readb() 51 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument 53 return __builtin_read16((volatile void __iomem *)addr); in __raw_readw() 56 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument 58 return __builtin_read32((volatile void __iomem *)addr); in __raw_readl() 61 #define __raw_writeb(datum, addr) __builtin_write8(addr, datum) argument 62 #define __raw_writew(datum, addr) __builtin_write16(addr, datum) argument 63 #define __raw_writel(datum, addr) __builtin_write32(addr, datum) argument 65 static inline void io_outsb(unsigned int addr, const void *buf, int len) in io_outsb() argument [all …]
|
/arch/tile/include/gxio/ |
D | common.h | 29 #define __gxio_mmio_read8(addr) readb(addr) argument 30 #define __gxio_mmio_read16(addr) readw(addr) argument 31 #define __gxio_mmio_read32(addr) readl(addr) argument 32 #define __gxio_mmio_read64(addr) readq(addr) argument 33 #define __gxio_mmio_write8(addr, val) writeb((val), (addr)) argument 34 #define __gxio_mmio_write16(addr, val) writew((val), (addr)) argument 35 #define __gxio_mmio_write32(addr, val) writel((val), (addr)) argument 36 #define __gxio_mmio_write64(addr, val) writeq((val), (addr)) argument 37 #define __gxio_mmio_read(addr) __gxio_mmio_read64(addr) argument 38 #define __gxio_mmio_write(addr, val) __gxio_mmio_write64((addr), (val)) argument
|
/arch/powerpc/boot/ |
D | io.h | 12 static inline int in_8(const volatile unsigned char *addr) in in_8() argument 17 : "=r" (ret) : "m" (*addr)); in in_8() 21 static inline void out_8(volatile unsigned char *addr, int val) in out_8() argument 24 : "=m" (*addr) : "r" (val)); in out_8() 27 static inline unsigned in_le16(const volatile u16 *addr) in in_le16() argument 32 : "=r" (ret) : "r" (addr), "m" (*addr)); in in_le16() 37 static inline unsigned in_be16(const volatile u16 *addr) in in_be16() argument 42 : "=r" (ret) : "m" (*addr)); in in_be16() 46 static inline void out_le16(volatile u16 *addr, int val) in out_le16() argument 48 __asm__ __volatile__("sthbrx %1,0,%2; sync" : "=m" (*addr) in out_le16() [all …]
|
/arch/metag/include/asm/ |
D | io.h | 18 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 23 : "da" (addr) in __raw_readb() 29 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument 34 : "da" (addr) in __raw_readw() 40 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument 45 : "da" (addr) in __raw_readl() 51 static inline u64 __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument 56 : "da" (addr) in __raw_readq() 62 static inline void __raw_writeb(u8 b, volatile void __iomem *addr) in __raw_writeb() argument 66 : "da" (addr), in __raw_writeb() [all …]
|
/arch/hexagon/include/asm/ |
D | bitops.h | 45 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument 57 : "r" (addr), "r" (nr) in test_and_clear_bit() 69 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument 81 : "r" (addr), "r" (nr) in test_and_set_bit() 95 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument 107 : "r" (addr), "r" (nr) in test_and_change_bit() 120 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument 122 test_and_clear_bit(nr, addr); in clear_bit() 125 static inline void set_bit(int nr, volatile void *addr) in set_bit() argument 127 test_and_set_bit(nr, addr); in set_bit() [all …]
|
/arch/m68k/include/asm/ |
D | io_no.h | 39 #define readb(addr) \ argument 40 ({ unsigned char __v = (*(volatile unsigned char *) (addr)); __v; }) 41 #define readw(addr) \ argument 42 ({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; }) 43 #define readl(addr) \ argument 44 ({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; }) 46 #define writeb(b,addr) (void)((*(volatile unsigned char *) (addr)) = (b)) argument 47 #define writew(b,addr) (void)((*(volatile unsigned short *) (addr)) = (b)) argument 48 #define writel(b,addr) (void)((*(volatile unsigned int *) (addr)) = (b)) argument 57 static inline void io_outsb(unsigned int addr, const void *buf, int len) in io_outsb() argument [all …]
|
/arch/powerpc/include/asm/ |
D | io.h | 116 static inline u##size name(const volatile u##size __iomem *addr) \ 120 : "=r" (ret) : "r" (addr), "m" (*addr) : "memory"); \ 125 static inline void name(volatile u##size __iomem *addr, u##size val) \ 128 : "=m" (*addr) : "r" (val), "r" (addr) : "memory"); \ 133 static inline u##size name(const volatile u##size __iomem *addr) \ 137 : "=r" (ret) : "Z" (*addr) : "memory"); \ 142 static inline void name(volatile u##size __iomem *addr, u##size val) \ 145 : "=Z" (*addr) : "r" (val) : "memory"); \ 151 static inline u##size name(const volatile u##size __iomem *addr) \ 155 : "=r" (ret) : "m" (*addr) : "memory"); \ [all …]
|
/arch/sh/mm/ |
D | mmap.c | 25 static inline unsigned long COLOUR_ALIGN(unsigned long addr, in COLOUR_ALIGN() argument 28 unsigned long base = (addr + shm_align_mask) & ~shm_align_mask; in COLOUR_ALIGN() 34 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 47 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area() 49 return addr; in arch_get_unmapped_area() 59 if (addr) { in arch_get_unmapped_area() 61 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area() 63 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 65 vma = find_vma(mm, addr); in arch_get_unmapped_area() 66 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() [all …]
|
/arch/arm/mm/ |
D | idmap.c | 23 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument 30 pmd = pmd_alloc_one(&init_mm, addr); in idmap_add_pmd() 43 pmd += pmd_index(addr); in idmap_add_pmd() 45 pmd = pmd_offset(pud, addr); in idmap_add_pmd() 48 next = pmd_addr_end(addr, end); in idmap_add_pmd() 49 *pmd = __pmd((addr & PMD_MASK) | prot); in idmap_add_pmd() 51 } while (pmd++, addr = next, addr != end); in idmap_add_pmd() 54 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument 57 pmd_t *pmd = pmd_offset(pud, addr); in idmap_add_pmd() 59 addr = (addr & PMD_MASK) | prot; in idmap_add_pmd() [all …]
|
/arch/x86/kernel/ |
D | sys_x86_64.c | 57 unsigned long align_vdso_addr(unsigned long addr) in align_vdso_addr() argument 60 addr = (addr + align_mask) & ~align_mask; in align_vdso_addr() 61 return addr | get_align_bits(); in align_vdso_addr() 91 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument 100 error = sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); in SYSCALL_DEFINE6() 105 static void find_start_end(unsigned long addr, unsigned long flags, in find_start_end() argument 128 *end = task_size_64bit(addr > DEFAULT_MAP_WINDOW); in find_start_end() 132 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 140 addr = mpx_unmapped_area_check(addr, len, flags); in arch_get_unmapped_area() 141 if (IS_ERR_VALUE(addr)) in arch_get_unmapped_area() [all …]
|