/arch/mips/include/asm/ |
D | asm-eva.h | 19 #define kernel_ll(reg, addr) "ll " reg ", " addr "\n" argument 20 #define kernel_sc(reg, addr) "sc " reg ", " addr "\n" argument 21 #define kernel_lw(reg, addr) "lw " reg ", " addr "\n" argument 22 #define kernel_lwl(reg, addr) "lwl " reg ", " addr "\n" argument 23 #define kernel_lwr(reg, addr) "lwr " reg ", " addr "\n" argument 24 #define kernel_lh(reg, addr) "lh " reg ", " addr "\n" argument 25 #define kernel_lb(reg, addr) "lb " reg ", " addr "\n" argument 26 #define kernel_lbu(reg, addr) "lbu " reg ", " addr "\n" argument 27 #define kernel_sw(reg, addr) "sw " reg ", " addr "\n" argument 28 #define kernel_swl(reg, addr) "swl " reg ", " addr "\n" argument [all …]
|
D | unaligned-emul.h | 8 #define _LoadHW(addr, value, res, type) \ argument 27 : "r" (addr), "i" (-EFAULT)); \ 31 #define _LoadW(addr, value, res, type) \ argument 48 : "r" (addr), "i" (-EFAULT)); \ 53 #define _LoadW(addr, value, res, type) \ argument 83 : "r" (addr), "i" (-EFAULT)); \ 88 #define _LoadHWU(addr, value, res, type) \ argument 109 : "r" (addr), "i" (-EFAULT)); \ 113 #define _LoadWU(addr, value, res, type) \ argument 132 : "r" (addr), "i" (-EFAULT)); \ [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 70 #define ADDR2PORT(addr) ((unsigned long __force)(addr) & 0xffffff) argument 72 static unsigned int ioport_read8(const void __iomem *addr) in ioport_read8() argument 74 return inb(ADDR2PORT(addr)); in ioport_read8() 77 static unsigned int ioport_read16(const void __iomem *addr) in ioport_read16() argument 79 return inw(ADDR2PORT(addr)); in ioport_read16() 82 static unsigned int ioport_read32(const 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 …]
|
D | io.h | 142 static inline TYPE generic_##NAME(QUAL void __iomem *addr) \ 144 return alpha_mv.mv_##NAME(addr); \ 148 static inline void generic_##NAME(TYPE b, QUAL void __iomem *addr) \ 150 alpha_mv.mv_##NAME(b, addr); \ 246 extern u8 readb(const volatile void __iomem *addr); 247 extern u16 readw(const volatile void __iomem *addr); 248 extern u32 readl(const volatile void __iomem *addr); 249 extern u64 readq(const volatile void __iomem *addr); 250 extern void writeb(u8 b, volatile void __iomem *addr); 251 extern void writew(u16 b, volatile void __iomem *addr); [all …]
|
/arch/powerpc/kernel/ |
D | iomap.c | 18 unsigned int ioread8(const void __iomem *addr) in ioread8() argument 20 return readb(addr); in ioread8() 22 unsigned int ioread16(const void __iomem *addr) in ioread16() argument 24 return readw(addr); in ioread16() 26 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument 28 return readw_be(addr); in ioread16be() 30 unsigned int ioread32(const void __iomem *addr) in ioread32() argument 32 return readl(addr); in ioread32() 34 unsigned int ioread32be(const void __iomem *addr) in ioread32be() argument 36 return readl_be(addr); in ioread32be() [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 | 21 static __inline__ void set_bit(int nr, volatile unsigned long * addr) in set_bit() argument 26 addr += BIT_WORD(nr); in set_bit() 27 _atomic_spin_lock_irqsave(addr, flags); in set_bit() 28 *addr |= mask; in set_bit() 29 _atomic_spin_unlock_irqrestore(addr, flags); in set_bit() 32 static __inline__ void clear_bit(int nr, volatile unsigned long * addr) in clear_bit() argument 37 addr += BIT_WORD(nr); in clear_bit() 38 _atomic_spin_lock_irqsave(addr, flags); in clear_bit() 39 *addr &= ~mask; in clear_bit() 40 _atomic_spin_unlock_irqrestore(addr, flags); in clear_bit() [all …]
|
/arch/sh/kernel/ |
D | iomap.c | 11 unsigned int ioread8(const void __iomem *addr) in ioread8() argument 13 return readb(addr); in ioread8() 17 unsigned int ioread16(const void __iomem *addr) in ioread16() argument 19 return readw(addr); in ioread16() 23 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument 25 return be16_to_cpu(__raw_readw(addr)); in ioread16be() 29 unsigned int ioread32(const void __iomem *addr) in ioread32() argument 31 return readl(addr); in ioread32() 35 unsigned int ioread32be(const void __iomem *addr) in ioread32be() argument 37 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/m68k/include/asm/ |
D | io_no.h | 16 #define __raw_readb(addr) \ argument 17 ({ u8 __v = (*(__force volatile u8 *) (addr)); __v; }) 18 #define __raw_readw(addr) \ argument 19 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; }) 20 #define __raw_readl(addr) \ argument 21 ({ u32 __v = (*(__force volatile u32 *) (addr)); __v; }) 23 #define __raw_writeb(b, addr) (void)((*(__force volatile u8 *) (addr)) = (b)) argument 24 #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b)) argument 25 #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b)) argument 48 static int __cf_internalio(unsigned long addr) in __cf_internalio() argument [all …]
|
/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/hexagon/include/asm/ |
D | bitops.h | 31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument 43 : "r" (addr), "r" (nr) in test_and_clear_bit() 55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument 67 : "r" (addr), "r" (nr) in test_and_set_bit() 81 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument 93 : "r" (addr), "r" (nr) in test_and_change_bit() 106 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument 108 test_and_clear_bit(nr, addr); in clear_bit() 111 static inline void set_bit(int nr, volatile void *addr) in set_bit() argument 113 test_and_set_bit(nr, addr); in set_bit() [all …]
|
/arch/powerpc/include/asm/ |
D | io.h | 104 static inline u##size name(const volatile u##size __iomem *addr) \ 108 : "=r" (ret) : "Z" (*addr) : "memory"); \ 113 static inline void name(volatile u##size __iomem *addr, u##size val) \ 116 : "=Z" (*addr) : "r" (val) : "memory"); \ 121 static inline u##size name(const volatile u##size __iomem *addr) \ 125 : "=r" (ret) : "m" (*addr) : "memory"); \ 130 static inline void name(volatile u##size __iomem *addr, u##size val) \ 133 : "=m" (*addr) : "r" (val) : "memory"); \ 170 static inline u64 in_le64(const volatile u64 __iomem *addr) in in_le64() argument 172 return swab64(in_be64(addr)); in in_le64() [all …]
|
D | io-defs.h | 5 DEF_PCI_AC_RET(readb, u8, (const PCI_IO_ADDR addr), (addr), mem, addr) 6 DEF_PCI_AC_RET(readw, u16, (const PCI_IO_ADDR addr), (addr), mem, addr) 7 DEF_PCI_AC_RET(readl, u32, (const PCI_IO_ADDR addr), (addr), mem, addr) 8 DEF_PCI_AC_RET(readw_be, u16, (const PCI_IO_ADDR addr), (addr), mem, addr) 9 DEF_PCI_AC_RET(readl_be, u32, (const PCI_IO_ADDR addr), (addr), mem, addr) 10 DEF_PCI_AC_NORET(writeb, (u8 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 11 DEF_PCI_AC_NORET(writew, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 12 DEF_PCI_AC_NORET(writel, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 13 DEF_PCI_AC_NORET(writew_be, (u16 val, PCI_IO_ADDR addr), (val, addr), mem, addr) 14 DEF_PCI_AC_NORET(writel_be, (u32 val, PCI_IO_ADDR addr), (val, addr), mem, addr) [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 | mmap.c | 16 #define COLOUR_ALIGN(addr,pgoff) \ argument 17 ((((addr)+SHMLBA-1)&~(SHMLBA-1)) + \ 30 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 51 (addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)) in arch_get_unmapped_area() 53 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 …]
|
D | idmap.c | 24 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument 31 pmd = pmd_alloc_one(&init_mm, addr); in idmap_add_pmd() 44 pmd += pmd_index(addr); in idmap_add_pmd() 46 pmd = pmd_offset(pud, addr); in idmap_add_pmd() 49 next = pmd_addr_end(addr, end); in idmap_add_pmd() 50 *pmd = __pmd((addr & PMD_MASK) | prot); in idmap_add_pmd() 52 } while (pmd++, addr = next, addr != end); in idmap_add_pmd() 55 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument 58 pmd_t *pmd = pmd_offset(pud, addr); in idmap_add_pmd() 60 addr = (addr & PMD_MASK) | prot; in idmap_add_pmd() [all …]
|
/arch/powerpc/lib/ |
D | code-patching.c | 38 int raw_patch_instruction(struct ppc_inst *addr, struct ppc_inst instr) in raw_patch_instruction() argument 40 return __patch_instruction(addr, instr, addr); in raw_patch_instruction() 88 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument 93 if (is_vmalloc_or_module_addr(addr)) in map_patch_area() 94 pfn = vmalloc_to_pfn(addr); in map_patch_area() 96 pfn = __pa_symbol(addr) >> PAGE_SHIFT; in map_patch_area() 107 static inline int unmap_patch_area(unsigned long addr) in unmap_patch_area() argument 115 pgdp = pgd_offset_k(addr); in unmap_patch_area() 119 p4dp = p4d_offset(pgdp, addr); in unmap_patch_area() 123 pudp = pud_offset(p4dp, addr); in unmap_patch_area() [all …]
|
/arch/parisc/mm/ |
D | hugetlbpage.c | 25 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument 36 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area() 39 if (addr) in hugetlb_get_unmapped_area() 40 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area() 43 return arch_get_unmapped_area(file, addr, len, pgoff, flags); in hugetlb_get_unmapped_area() 48 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument 61 addr &= HPAGE_MASK; in huge_pte_alloc() 63 pgd = pgd_offset(mm, addr); in huge_pte_alloc() 64 p4d = p4d_offset(pgd, addr); in huge_pte_alloc() 65 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc() [all …]
|
/arch/riscv/mm/ |
D | fault.c | 22 static inline void no_context(struct pt_regs *regs, unsigned long addr) in no_context() argument 34 (addr < PAGE_SIZE) ? "NULL pointer dereference" : in no_context() 35 "paging request", addr); in no_context() 40 static inline void mm_fault_error(struct pt_regs *regs, unsigned long addr, vm_fault_t fault) in mm_fault_error() argument 48 no_context(regs, addr); in mm_fault_error() 56 no_context(regs, addr); in mm_fault_error() 59 do_trap(regs, SIGBUS, BUS_ADRERR, addr); in mm_fault_error() 65 …atic inline void bad_area(struct pt_regs *regs, struct mm_struct *mm, int code, unsigned long addr) in bad_area() argument 74 do_trap(regs, SIGSEGV, code, addr); in bad_area() 78 no_context(regs, addr); in bad_area() [all …]
|
/arch/riscv/include/asm/ |
D | bitops.h | 37 #define __test_and_op_bit_ord(op, mod, nr, addr, ord) \ argument 43 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \ 49 #define __op_bit_ord(op, mod, nr, addr, ord) \ argument 52 : "+A" (addr[BIT_WORD(nr)]) \ 56 #define __test_and_op_bit(op, mod, nr, addr) \ argument 57 __test_and_op_bit_ord(op, mod, nr, addr, .aqrl) 58 #define __op_bit(op, mod, nr, addr) \ argument 59 __op_bit_ord(op, mod, nr, addr, ) 72 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() argument 74 return __test_and_op_bit(or, __NOP, nr, addr); in test_and_set_bit() [all …]
|
/arch/powerpc/mm/book3s64/ |
D | subpage_prot.c | 25 unsigned long i, j, addr; in subpage_prot_free() local 37 addr = 0; in subpage_prot_free() 43 for (j = 0; j < SBP_L2_COUNT && addr < spt->maxaddr; in subpage_prot_free() 44 ++j, addr += PAGE_SIZE) in subpage_prot_free() 53 static void hpte_flush_range(struct mm_struct *mm, unsigned long addr, in hpte_flush_range() argument 63 pgd = pgd_offset(mm, addr); in hpte_flush_range() 64 p4d = p4d_offset(pgd, addr); in hpte_flush_range() 67 pud = pud_offset(p4d, addr); in hpte_flush_range() 70 pmd = pmd_offset(pud, addr); in hpte_flush_range() 73 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in hpte_flush_range() [all …]
|