/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/mm/kasan/ |
D | kasan.h | 148 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 …]
|
D | init.c | 96 static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() argument 99 pte_t *pte = pte_offset_kernel(pmd, addr); in zero_pte_populate() 106 while (addr + PAGE_SIZE <= end) { in zero_pte_populate() 107 set_pte_at(&init_mm, addr, pte, zero_pte); in zero_pte_populate() 108 addr += PAGE_SIZE; in zero_pte_populate() 109 pte = pte_offset_kernel(pmd, addr); in zero_pte_populate() 113 static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, in zero_pmd_populate() argument 116 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() 120 next = pmd_addr_end(addr, end); in zero_pmd_populate() 122 if (IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in zero_pmd_populate() [all …]
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | io.h | 75 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/ |
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 …]
|
/kernel/linux/linux-5.10/lib/ |
D | iomap.c | 51 #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-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/common_modules/pac/include/ |
D | pointer_auth_common.h | 9 #define is_addr_error(addr) (((addr) >> 48) ^ 0xffff) argument 11 #define pauth_sign(type, key, addr, mod) \ argument 12 pauth_common(pac, type, key, addr, mod) 14 #define pauth_validate(type, key, addr, mod) \ argument 15 pauth_common(aut, type, key, addr, mod) 17 #define pauth_strip(type, addr) \ argument 19 const void *__addr = (addr); \ 22 (typeof (addr))__addr; \ 25 #define pauth_hash(addr, mod) ((unsigned int) (pauth_pacga(addr, mod) >> 32)) argument 27 #define pauth_common(prefix, type, key, addr, mod) \ argument [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/mm/ |
D | ioremap.c | 64 static int ioremap_pte_range(pmd_t *pmd, unsigned long addr, in ioremap_pte_range() argument 72 pte = pte_alloc_kernel_track(pmd, addr, mask); in ioremap_pte_range() 77 set_pte_at(&init_mm, addr, pte, pfn_pte(pfn, prot)); in ioremap_pte_range() 79 } while (pte++, addr += PAGE_SIZE, addr != end); in ioremap_pte_range() 84 static int ioremap_try_huge_pmd(pmd_t *pmd, unsigned long addr, in ioremap_try_huge_pmd() argument 91 if ((end - addr) != PMD_SIZE) in ioremap_try_huge_pmd() 94 if (!IS_ALIGNED(addr, PMD_SIZE)) in ioremap_try_huge_pmd() 100 if (pmd_present(*pmd) && !pmd_free_pte_page(pmd, addr)) in ioremap_try_huge_pmd() 106 static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr, in ioremap_pmd_range() argument 113 pmd = pmd_alloc_track(&init_mm, pud, addr, mask); in ioremap_pmd_range() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/kernel/ |
D | extable.c | 46 struct exception_table_entry *search_kernel_exception_table(unsigned long addr) in search_kernel_exception_table() argument 49 __stop___ex_table - __start___ex_table, addr); in search_kernel_exception_table() 53 const struct exception_table_entry *search_exception_tables(unsigned long addr) in search_exception_tables() argument 57 e = search_kernel_exception_table(addr); in search_exception_tables() 59 e = search_module_extables(addr); in search_exception_tables() 61 e = search_bpf_extables(addr); in search_exception_tables() 65 int init_kernel_text(unsigned long addr) in init_kernel_text() argument 67 if (addr >= (unsigned long)_sinittext && in init_kernel_text() 68 addr < (unsigned long)_einittext) in init_kernel_text() 73 int notrace core_kernel_text(unsigned long addr) in core_kernel_text() argument [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | map_fixed_noreplace.c | 30 void *addr; in find_base_addr() local 34 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr() 35 if (addr == MAP_FAILED) { in find_base_addr() 40 if (munmap(addr, size) != 0) { in find_base_addr() 44 return (unsigned long)addr; in find_base_addr() 50 unsigned long flags, addr, size, page_size; in main() local 67 addr = base_addr; in main() 69 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 71 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() 80 if (munmap((void *)addr, 5 * page_size) != 0) { in main() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/include/asm-generic/bitops/ |
D | le.h | 12 static inline unsigned long find_next_zero_bit_le(const void *addr, in find_next_zero_bit_le() argument 15 return find_next_zero_bit(addr, size, offset); in find_next_zero_bit_le() 18 static inline unsigned long find_next_bit_le(const void *addr, in find_next_bit_le() argument 21 return find_next_bit(addr, size, offset); in find_next_bit_le() 24 static inline unsigned long find_first_zero_bit_le(const void *addr, in find_first_zero_bit_le() argument 27 return find_first_zero_bit(addr, size); in find_first_zero_bit_le() 35 extern unsigned long find_next_zero_bit_le(const void *addr, 40 extern unsigned long find_next_bit_le(const void *addr, 45 #define find_first_zero_bit_le(addr, size) \ argument 46 find_next_zero_bit_le((addr), (size), 0) [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | bridge.h | 15 const unsigned char *addr, u16 vid, u16 nlh_flags), 17 TP_ARGS(ndm, dev, addr, vid, nlh_flags), 22 __array(unsigned char, addr, ETH_ALEN) 29 memcpy(__entry->addr, addr, ETH_ALEN); 36 __get_str(dev), __entry->addr[0], __entry->addr[1], 37 __entry->addr[2], __entry->addr[3], __entry->addr[4], 38 __entry->addr[5], __entry->vid, 45 const unsigned char *addr, u16 vid), 47 TP_ARGS(br, p, addr, vid), 52 __array(unsigned char, addr, ETH_ALEN) [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | in.h | 38 static inline bool ipv4_is_loopback(__be32 addr) in ipv4_is_loopback() argument 40 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback() 43 static inline bool ipv4_is_multicast(__be32 addr) in ipv4_is_multicast() argument 45 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast() 48 static inline bool ipv4_is_local_multicast(__be32 addr) in ipv4_is_local_multicast() argument 50 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast() 53 static inline bool ipv4_is_lbcast(__be32 addr) in ipv4_is_lbcast() argument 56 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast() 59 static inline bool ipv4_is_all_snoopers(__be32 addr) in ipv4_is_all_snoopers() argument 61 return addr == htonl(INADDR_ALLSNOOPERS_GROUP); in ipv4_is_all_snoopers() [all …]
|
/kernel/linux/linux-5.10/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 …]
|