Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 7475) sorted by relevance

12345678910>>...299

/kernel/linux/linux-4.19/arch/mips/include/asm/
Dasm-eva.h18 #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 …]
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dasm-eva.h19 #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 …]
/kernel/linux/linux-5.10/arch/parisc/lib/
Diomap.c36 #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 …]
/kernel/linux/linux-4.19/arch/parisc/lib/
Diomap.c36 #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 …]
/kernel/linux/linux-4.19/arch/alpha/include/asm/
Djensen.h92 __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 …]
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Djensen.h92 __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 …]
/kernel/linux/linux-4.19/arch/ia64/include/asm/sn/
Dio.h42 #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 …]
/kernel/linux/linux-4.19/arch/parisc/include/asm/
Dio.h13 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 …]
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dio.h13 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 …]
/kernel/linux/linux-5.10/mm/kasan/
Dkasan.h148 static inline bool addr_has_shadow(const void *addr) in addr_has_shadow() argument
150 return (addr >= kasan_shadow_to_mem((void *)KASAN_SHADOW_START)); in addr_has_shadow()
163 bool check_memory_region(unsigned long addr, size_t size, bool write,
166 void *find_first_bad_addr(void *addr, size_t size);
169 bool kasan_report(unsigned long addr, size_t size,
173 struct page *kasan_addr_to_page(const void *addr);
195 void print_tags(u8 addr_tag, const void *addr);
201 static inline void print_tags(u8 addr_tag, const void *addr) { } in print_tags() argument
211 static inline const void *arch_kasan_set_tag(const void *addr, u8 tag) in arch_kasan_set_tag() argument
213 return addr; in arch_kasan_set_tag()
[all …]
/kernel/linux/linux-5.10/include/asm-generic/
Dio.h75 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
77 return *(const volatile u8 __force *)addr; in __raw_readb()
83 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
85 return *(const volatile u16 __force *)addr; in __raw_readw()
91 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
93 return *(const volatile u32 __force *)addr; in __raw_readl()
100 static inline u64 __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
102 return *(const volatile u64 __force *)addr; in __raw_readq()
109 static inline void __raw_writeb(u8 value, volatile void __iomem *addr) in __raw_writeb() argument
111 *(volatile u8 __force *)addr = value; in __raw_writeb()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Diomap.c18 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 …]
/kernel/linux/linux-4.19/arch/powerpc/kernel/
Diomap.c18 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 …]
/kernel/linux/linux-4.19/include/asm-generic/
Dio.h82 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
84 return *(const volatile u8 __force *)addr; in __raw_readb()
90 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
92 return *(const volatile u16 __force *)addr; in __raw_readw()
98 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
100 return *(const volatile u32 __force *)addr; in __raw_readl()
107 static inline u64 __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
109 return *(const volatile u64 __force *)addr; in __raw_readq()
116 static inline void __raw_writeb(u8 value, volatile void __iomem *addr) in __raw_writeb() argument
118 *(volatile u8 __force *)addr = value; in __raw_writeb()
[all …]
/kernel/linux/linux-5.10/lib/
Diomap.c51 #define IO_COND(addr, is_pio, is_mmio) do { \ argument
52 unsigned long port = (unsigned long __force)addr; \
68 #define mmio_read16be(addr) swab16(readw(addr)) argument
69 #define mmio_read32be(addr) swab32(readl(addr)) argument
70 #define mmio_read64be(addr) swab64(readq(addr)) argument
73 unsigned int ioread8(const void __iomem *addr) in ioread8() argument
75 IO_COND(addr, return inb(port), return readb(addr)); in ioread8()
78 unsigned int ioread16(const void __iomem *addr) in ioread16() argument
80 IO_COND(addr, return inw(port), return readw(addr)); in ioread16()
83 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument
[all …]
/kernel/linux/linux-4.19/arch/powerpc/lib/
Dcode-patching.c41 int raw_patch_instruction(unsigned int *addr, unsigned int instr) in raw_patch_instruction() argument
43 return __patch_instruction(addr, instr, addr); in raw_patch_instruction()
91 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument
96 if (is_vmalloc_addr(addr)) in map_patch_area()
97 pfn = vmalloc_to_pfn(addr); in map_patch_area()
99 pfn = __pa_symbol(addr) >> PAGE_SHIFT; in map_patch_area()
111 static inline int unmap_patch_area(unsigned long addr) in unmap_patch_area() argument
118 pgdp = pgd_offset_k(addr); in unmap_patch_area()
122 pudp = pud_offset(pgdp, addr); in unmap_patch_area()
126 pmdp = pmd_offset(pudp, addr); in unmap_patch_area()
[all …]
/kernel/linux/linux-4.19/lib/
Diomap.c51 #define IO_COND(addr, is_pio, is_mmio) do { \ argument
52 unsigned long port = (unsigned long __force)addr; \
68 #define mmio_read16be(addr) be16_to_cpu(__raw_readw(addr)) argument
69 #define mmio_read32be(addr) be32_to_cpu(__raw_readl(addr)) argument
72 unsigned int ioread8(void __iomem *addr) in ioread8() argument
74 IO_COND(addr, return inb(port), return readb(addr)); in ioread8()
77 unsigned int ioread16(void __iomem *addr) in ioread16() argument
79 IO_COND(addr, return inw(port), return readw(addr)); in ioread16()
82 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument
84 IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr)); in ioread16be()
[all …]
Dioremap.c61 static int ioremap_pte_range(pmd_t *pmd, unsigned long addr, in ioremap_pte_range() argument
68 pte = pte_alloc_kernel(pmd, addr); in ioremap_pte_range()
73 set_pte_at(&init_mm, addr, pte, pfn_pte(pfn, prot)); in ioremap_pte_range()
75 } while (pte++, addr += PAGE_SIZE, addr != end); in ioremap_pte_range()
79 static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr, in ioremap_pmd_range() argument
85 phys_addr -= addr; in ioremap_pmd_range()
86 pmd = pmd_alloc(&init_mm, pud, addr); in ioremap_pmd_range()
90 next = pmd_addr_end(addr, end); in ioremap_pmd_range()
93 ((next - addr) == PMD_SIZE) && in ioremap_pmd_range()
94 IS_ALIGNED(phys_addr + addr, PMD_SIZE) && in ioremap_pmd_range()
[all …]
/kernel/linux/linux-4.19/arch/sh/kernel/
Diomap.c14 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 …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Diomap.c11 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 …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dio.h104 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 …]
/kernel/linux/linux-4.19/arch/mips/lib/
Diomap.c29 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 …]
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-generic/
Dide.h39 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 …]
/kernel/linux/linux-4.19/arch/mips/include/asm/mach-generic/
Dide.h39 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 …]
/kernel/linux/linux-4.19/arch/powerpc/include/asm/
Dio.h114 static inline u##size name(const volatile u##size __iomem *addr) \
118 : "=r" (ret) : "r" (addr), "m" (*addr) : "memory"); \
123 static inline void name(volatile u##size __iomem *addr, u##size val) \
126 : "=m" (*addr) : "r" (val), "r" (addr) : "memory"); \
131 static inline u##size name(const volatile u##size __iomem *addr) \
135 : "=r" (ret) : "Z" (*addr) : "memory"); \
140 static inline void name(volatile u##size __iomem *addr, u##size val) \
143 : "=Z" (*addr) : "r" (val) : "memory"); \
149 static inline u##size name(const volatile u##size __iomem *addr) \
153 : "=r" (ret) : "m" (*addr) : "memory"); \
[all …]

12345678910>>...299