/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/alpha/include/asm/ |
D | jensen.h | 91 __EXTERN_INLINE void jensen_set_hae(unsigned long addr) in jensen_set_hae() argument 94 addr >>= 25; in jensen_set_hae() 95 if (addr != alpha_mv.hae_cache) in jensen_set_hae() 96 set_hae(addr); in jensen_set_hae() 113 static inline unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument 115 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb() 118 static inline void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument 120 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb() 124 static inline unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument 129 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb() [all …]
|
/arch/parisc/lib/ |
D | iomap.c | 35 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<63) != 0) argument 36 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 60) & 7) argument 39 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<31) != 0) argument 40 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 28) & 7) argument 65 #define ADDR2PORT(addr) ((unsigned long __force)(addr) & 0xffffff) argument 67 static unsigned int ioport_read8(void __iomem *addr) in ioport_read8() argument 69 return inb(ADDR2PORT(addr)); in ioport_read8() 72 static unsigned int ioport_read16(void __iomem *addr) in ioport_read16() argument 74 return inw(ADDR2PORT(addr)); in ioport_read16() 77 static unsigned int ioport_read32(void __iomem *addr) in ioport_read32() argument [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 | 12 static inline unsigned long isa_bus_to_virt(unsigned long addr) { in isa_bus_to_virt() argument 17 static inline unsigned long isa_virt_to_bus(void *addr) { in isa_virt_to_bus() argument 31 static inline unsigned char gsc_readb(unsigned long addr) in gsc_readb() argument 40 : "=&r" (flags), "=r" (ret) : "r" (addr) ); in gsc_readb() 45 static inline unsigned short gsc_readw(unsigned long addr) in gsc_readw() argument 54 : "=&r" (flags), "=r" (ret) : "r" (addr) ); in gsc_readw() 59 static inline unsigned int gsc_readl(unsigned long addr) in gsc_readl() argument 65 : "=r" (ret) : "r" (addr) ); in gsc_readl() 70 static inline unsigned long long gsc_readq(unsigned long addr) in gsc_readq() argument 77 : "=r" (ret) : "r" (addr) ); in gsc_readq() [all …]
|
D | bitops.h | 29 static __inline__ void set_bit(int nr, volatile unsigned long * addr) in set_bit() argument 34 addr += (nr >> SHIFT_PER_LONG); in set_bit() 35 _atomic_spin_lock_irqsave(addr, flags); in set_bit() 36 *addr |= mask; in set_bit() 37 _atomic_spin_unlock_irqrestore(addr, flags); in set_bit() 40 static __inline__ void clear_bit(int nr, volatile unsigned long * addr) in clear_bit() argument 45 addr += (nr >> SHIFT_PER_LONG); in clear_bit() 46 _atomic_spin_lock_irqsave(addr, flags); in clear_bit() 47 *addr &= mask; in clear_bit() 48 _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 63 #define mm_ptov(addr) ((void *)phys_to_virt(addr)) argument 64 #define mm_vtop(addr) ((unsigned long)virt_to_phys(addr)) argument 78 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 80 return *(const volatile u8 __force *)addr; in __raw_readb() 83 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument 86 asm volatile("ld2u %0, %1" : "=r" (ret) : "r" (addr)); in __raw_readw() 91 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument 95 asm volatile("ld4s %0, %1" : "=r" (ret) : "r" (addr)); in __raw_readl() [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/sparc/include/asm/ |
D | swift.h | 30 static inline void swift_inv_insn_tag(unsigned long addr) in swift_inv_insn_tag() argument 34 : "r" (addr), "i" (ASI_M_TXTC_TAG) in swift_inv_insn_tag() 39 static inline void swift_inv_data_tag(unsigned long addr) in swift_inv_data_tag() argument 43 : "r" (addr), "i" (ASI_M_DATAC_TAG) in swift_inv_data_tag() 49 unsigned long addr; in swift_flush_dcache() local 51 for (addr = 0; addr < 0x2000; addr += 0x10) in swift_flush_dcache() 52 swift_inv_data_tag(addr); in swift_flush_dcache() 57 unsigned long addr; in swift_flush_icache() local 59 for (addr = 0; addr < 0x4000; addr += 0x20) in swift_flush_icache() 60 swift_inv_insn_tag(addr); in swift_flush_icache() [all …]
|
D | turbosparc.h | 62 static inline void turbosparc_inv_insn_tag(unsigned long addr) in turbosparc_inv_insn_tag() argument 66 : "r" (addr), "i" (ASI_M_TXTC_TAG) in turbosparc_inv_insn_tag() 71 static inline void turbosparc_inv_data_tag(unsigned long addr) in turbosparc_inv_data_tag() argument 75 : "r" (addr), "i" (ASI_M_DATAC_TAG) in turbosparc_inv_data_tag() 81 unsigned long addr; in turbosparc_flush_icache() local 83 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_icache() 84 turbosparc_inv_insn_tag(addr); in turbosparc_flush_icache() 89 unsigned long addr; in turbosparc_flush_dcache() local 91 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_dcache() 92 turbosparc_inv_data_tag(addr); in turbosparc_flush_dcache() [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/powerpc/kernel/ |
D | iomap.c | 16 unsigned int ioread8(void __iomem *addr) in ioread8() argument 18 return readb(addr); in ioread8() 20 unsigned int ioread16(void __iomem *addr) in ioread16() argument 22 return readw(addr); in ioread16() 24 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 26 return readw_be(addr); in ioread16be() 28 unsigned int ioread32(void __iomem *addr) in ioread32() argument 30 return readl(addr); in ioread32() 32 unsigned int ioread32be(void __iomem *addr) in ioread32be() argument 34 return readl_be(addr); in ioread32be() [all …]
|
/arch/m68k/include/asm/ |
D | io_no.h | 36 #define readb(addr) \ argument 37 ({ unsigned char __v = (*(volatile unsigned char *) (addr)); __v; }) 38 #define readw(addr) \ argument 39 ({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; }) 40 #define readl(addr) \ argument 41 ({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; }) 43 #define readb_relaxed(addr) readb(addr) argument 44 #define readw_relaxed(addr) readw(addr) argument 45 #define readl_relaxed(addr) readl(addr) argument 47 #define writeb(b,addr) (void)((*(volatile unsigned char *) (addr)) = (b)) argument [all …]
|
/arch/metag/include/asm/ |
D | io.h | 16 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 21 : "da" (addr) in __raw_readb() 27 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument 32 : "da" (addr) in __raw_readw() 38 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument 43 : "da" (addr) in __raw_readl() 49 static inline u64 __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument 54 : "da" (addr) in __raw_readq() 60 static inline void __raw_writeb(u8 b, volatile void __iomem *addr) in __raw_writeb() argument 64 : "da" (addr), in __raw_writeb() [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/mips/lib/ |
D | iomap.c | 28 unsigned int ioread8(void __iomem *addr) in ioread8() argument 30 return readb(addr); in ioread8() 35 unsigned int ioread16(void __iomem *addr) in ioread16() argument 37 return readw(addr); in ioread16() 42 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 44 return be16_to_cpu(__raw_readw(addr)); in ioread16be() 49 unsigned int ioread32(void __iomem *addr) in ioread32() argument 51 return readl(addr); in ioread32() 56 unsigned int ioread32be(void __iomem *addr) in ioread32be() argument 58 return be32_to_cpu(__raw_readl(addr)); in ioread32be() [all …]
|
/arch/powerpc/boot/ |
D | io.h | 11 static inline int in_8(const volatile unsigned char *addr) in in_8() argument 16 : "=r" (ret) : "m" (*addr)); in in_8() 20 static inline void out_8(volatile unsigned char *addr, int val) in out_8() argument 23 : "=m" (*addr) : "r" (val)); in out_8() 26 static inline unsigned in_le16(const volatile u16 *addr) in in_le16() argument 31 : "=r" (ret) : "r" (addr), "m" (*addr)); in in_le16() 36 static inline unsigned in_be16(const volatile u16 *addr) in in_be16() argument 41 : "=r" (ret) : "m" (*addr)); in in_be16() 45 static inline void out_le16(volatile u16 *addr, int val) in out_le16() argument 47 __asm__ __volatile__("sthbrx %1,0,%2; sync" : "=m" (*addr) in out_le16() [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/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/um/sys-ppc/ |
D | ptrace.c | 11 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument 13 if ((addr & 3) || addr < 0) in poke_user() 16 if (addr < MAX_REG_OFFSET) in poke_user() 17 return putreg(child, addr, data); in poke_user() 19 else if((addr >= offsetof(struct user, u_debugreg[0])) && in poke_user() 20 (addr <= offsetof(struct user, u_debugreg[7]))){ in poke_user() 21 addr -= offsetof(struct user, u_debugreg[0]); in poke_user() 22 addr = addr >> 2; in poke_user() 23 if((addr == 4) || (addr == 5)) return -EIO; in poke_user() 24 child->thread.arch.debugregs[addr] = data; in poke_user() [all …]
|
/arch/powerpc/lib/ |
D | code-patching.c | 19 int patch_instruction(unsigned int *addr, unsigned int instr) in patch_instruction() argument 23 __put_user_size(instr, addr, 4, err); in patch_instruction() 26 asm ("dcbst 0, %0; sync; icbi 0,%0; sync; isync" : : "r" (addr)); in patch_instruction() 30 int patch_branch(unsigned int *addr, unsigned long target, int flags) in patch_branch() argument 32 return patch_instruction(addr, create_branch(addr, target, flags)); in patch_branch() 35 unsigned int create_branch(const unsigned int *addr, in create_branch() argument 43 offset = offset - (unsigned long)addr; in create_branch() 55 unsigned int create_cond_branch(const unsigned int *addr, in create_cond_branch() argument 63 offset = offset - (unsigned long)addr; in create_cond_branch() 140 int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr) in instr_is_branch_to_addr() argument [all …]
|
/arch/cris/include/asm/ |
D | io.h | 11 u32 (*read_mem)(void *addr, int size); 12 void (*write_mem)(u32 val, int size, void *addr); 13 u32 (*read_io)(u32 port, void *addr, int size, int count); 14 void (*write_io)(u32 port, void *addr, int size, int count); 45 extern void iounmap(volatile void * __iomem addr); 66 static inline unsigned char readb(const volatile void __iomem *addr) in readb() argument 68 if (PCI_SPACE(addr) && cris_iops) in readb() 69 return cris_iops->read_mem((void*)addr, 1); in readb() 71 return *(volatile unsigned char __force *) addr; in readb() 73 static inline unsigned short readw(const volatile void __iomem *addr) in readw() argument [all …]
|
/arch/sh/mm/ |
D | mmap.c | 24 static inline unsigned long COLOUR_ALIGN(unsigned long addr, in COLOUR_ALIGN() argument 27 unsigned long base = (addr + shm_align_mask) & ~shm_align_mask; in COLOUR_ALIGN() 33 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 46 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area() 48 return addr; in arch_get_unmapped_area() 58 if (addr) { in arch_get_unmapped_area() 60 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area() 62 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 64 vma = find_vma(mm, addr); in arch_get_unmapped_area() 65 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() [all …]
|
/arch/sparc/mm/ |
D | hugetlbpage.c | 25 unsigned long addr, in hugetlb_get_unmapped_area_bottomup() argument 42 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup() 44 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in hugetlb_get_unmapped_area_bottomup() 45 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_bottomup() 48 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup() 51 return addr; in hugetlb_get_unmapped_area_bottomup() 61 unsigned long addr = addr0; in hugetlb_get_unmapped_area_topdown() local 73 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown() 81 if (addr & ~PAGE_MASK) { in hugetlb_get_unmapped_area_topdown() 82 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown() [all …]
|
/arch/x86/include/asm/ |
D | bitops.h | 46 #define ADDR BITOP_ADDR(addr) 53 #define CONST_MASK_ADDR(nr, addr) BITOP_ADDR((void *)(addr) + ((nr)>>3)) argument 72 set_bit(long nr, volatile unsigned long *addr) in set_bit() argument 76 : CONST_MASK_ADDR(nr, addr) in set_bit() 81 : BITOP_ADDR(addr) : "Ir" (nr) : "memory"); in set_bit() 94 static inline void __set_bit(long nr, volatile unsigned long *addr) in __set_bit() argument 110 clear_bit(long nr, volatile unsigned long *addr) in clear_bit() argument 114 : CONST_MASK_ADDR(nr, addr) in clear_bit() 118 : BITOP_ADDR(addr) in clear_bit() 131 static inline void clear_bit_unlock(long nr, volatile unsigned long *addr) in clear_bit_unlock() argument [all …]
|