/linux-6.6.21/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 …]
|
/linux-6.6.21/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 74 #define ADDR2PORT(addr) ((unsigned long __force)(addr) & 0xffffff) argument 76 static unsigned int ioport_read8(const void __iomem *addr) in ioport_read8() argument 78 return inb(ADDR2PORT(addr)); in ioport_read8() 81 static unsigned int ioport_read16(const void __iomem *addr) in ioport_read16() argument 83 return inw(ADDR2PORT(addr)); in ioport_read16() 86 static unsigned int ioport_read32(const void __iomem *addr) in ioport_read32() argument [all …]
|
/linux-6.6.21/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() 115 __EXTERN_INLINE unsigned int jensen_local_inb(unsigned long addr) in jensen_local_inb() argument 117 return 0xff & *(vuip)((addr << 9) + EISA_VL82C106); in jensen_local_inb() 120 __EXTERN_INLINE void jensen_local_outb(u8 b, unsigned long addr) in jensen_local_outb() argument 122 *(vuip)((addr << 9) + EISA_VL82C106) = b; in jensen_local_outb() 126 __EXTERN_INLINE unsigned int jensen_bus_inb(unsigned long addr) in jensen_bus_inb() argument 131 result = *(volatile int *)((addr << 7) + EISA_IO + 0x00); in jensen_bus_inb() [all …]
|
D | core_lca.h | 225 if (addr >= (1UL << 24)) { \ 226 unsigned long msb = addr & 0xf8000000; \ 227 addr -= msb; \ 235 unsigned long addr = (unsigned long) xaddr; in lca_ioread8() local 238 if (addr >= LCA_DENSE_MEM) { in lca_ioread8() 239 addr -= LCA_DENSE_MEM; in lca_ioread8() 243 addr -= LCA_IO; in lca_ioread8() 247 result = *(vip) ((addr << 5) + base_and_type); in lca_ioread8() 248 return __kernel_extbl(result, addr & 3); in lca_ioread8() 253 unsigned long addr = (unsigned long) xaddr; in lca_iowrite8() local [all …]
|
D | io.h | 140 static inline TYPE generic_##NAME(QUAL void __iomem *addr) \ 142 return alpha_mv.mv_##NAME(addr); \ 146 static inline void generic_##NAME(TYPE b, QUAL void __iomem *addr) \ 148 alpha_mv.mv_##NAME(b, addr); \ 252 extern u8 readb(const volatile void __iomem *addr); 253 extern u16 readw(const volatile void __iomem *addr); 254 extern u32 readl(const volatile void __iomem *addr); 255 extern u64 readq(const volatile void __iomem *addr); 256 extern void writeb(u8 b, volatile void __iomem *addr); 257 extern void writew(u16 b, volatile void __iomem *addr); [all …]
|
/linux-6.6.21/include/asm-generic/ |
D | io.h | 82 void log_write_mmio(u64 val, u8 width, volatile void __iomem *addr, 84 void log_post_write_mmio(u64 val, u8 width, volatile void __iomem *addr, 86 void log_read_mmio(u8 width, const volatile void __iomem *addr, 88 void log_post_read_mmio(u64 val, u8 width, const volatile void __iomem *addr, 93 static inline void log_write_mmio(u64 val, u8 width, volatile void __iomem *addr, in log_write_mmio() argument 95 static inline void log_post_write_mmio(u64 val, u8 width, volatile void __iomem *addr, in log_post_write_mmio() argument 97 static inline void log_read_mmio(u8 width, const volatile void __iomem *addr, in log_read_mmio() argument 99 static inline void log_post_read_mmio(u64 val, u8 width, const volatile void __iomem *addr, in log_post_read_mmio() argument 114 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument 116 return *(const volatile u8 __force *)addr; in __raw_readb() [all …]
|
/linux-6.6.21/lib/ |
D | iomap.c | 52 #define IO_COND(addr, is_pio, is_mmio) do { \ argument 53 unsigned long port = (unsigned long __force)addr; \ 69 #define mmio_read16be(addr) swab16(readw(addr)) argument 70 #define mmio_read32be(addr) swab32(readl(addr)) argument 71 #define mmio_read64be(addr) swab64(readq(addr)) argument 79 unsigned int ioread8(const void __iomem *addr) in ioread8() argument 81 IO_COND(addr, return inb(port), return readb(addr)); in ioread8() 85 unsigned int ioread16(const void __iomem *addr) in ioread16() argument 87 IO_COND(addr, return inw(port), return readw(addr)); in ioread16() 91 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | io.h | 98 static inline u##size name(const volatile u##size __iomem *addr) \ 102 : "=r" (ret) : "r" (addr) : "memory"); \ 107 static inline void name(volatile u##size __iomem *addr, u##size val) \ 110 : : "r" (addr), "r" (val) : "memory"); \ 115 static inline u##size name(const volatile u##size __iomem *addr) \ 119 : "=r" (ret) : "b" (addr) : "memory"); \ 124 static inline void name(volatile u##size __iomem *addr, u##size val) \ 127 : : "b" (addr), "r" (val) : "memory"); \ 132 static inline u##size name(const volatile u##size __iomem *addr) \ 136 : "=r" (ret) : "Z" (*addr) : "memory"); \ [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/net/core/ |
D | dev_addr_lists_test.c | 68 u8 addr[ETH_ALEN]; in dev_addr_test_basic() local 72 memset(addr, 2, sizeof(addr)); in dev_addr_test_basic() 73 eth_hw_addr_set(netdev, addr); in dev_addr_test_basic() 74 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 76 memset(addr, 3, sizeof(addr)); in dev_addr_test_basic() 77 dev_addr_set(netdev, addr); in dev_addr_test_basic() 78 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 85 u8 addr[ETH_ALEN]; in dev_addr_test_sync_one() local 89 memset(addr, 1, sizeof(addr)); in dev_addr_test_sync_one() 90 eth_hw_addr_set(netdev, addr); in dev_addr_test_sync_one() [all …]
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | map_fixed_noreplace.c | 26 void *addr; in find_base_addr() local 30 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr() 31 if (addr == MAP_FAILED) { in find_base_addr() 36 if (munmap(addr, size) != 0) { in find_base_addr() 40 return (unsigned long)addr; in find_base_addr() 46 unsigned long flags, addr, size, page_size; in main() local 63 addr = base_addr; in main() 65 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 67 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() 76 if (munmap((void *)addr, 5 * page_size) != 0) { in main() [all …]
|
D | madv_populate.c | 32 char *addr; in sense_support() local 35 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support() 37 if (!addr) in sense_support() 40 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support() 44 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support() 48 munmap(addr, pagesize); in sense_support() 53 char *addr; in test_prot_read() local 58 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read() 59 if (addr == MAP_FAILED) in test_prot_read() 62 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read() [all …]
|
/linux-6.6.21/mm/kasan/ |
D | init.c | 92 static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() argument 95 pte_t *pte = pte_offset_kernel(pmd, addr); in zero_pte_populate() 102 while (addr + PAGE_SIZE <= end) { in zero_pte_populate() 103 set_pte_at(&init_mm, addr, pte, zero_pte); in zero_pte_populate() 104 addr += PAGE_SIZE; in zero_pte_populate() 105 pte = pte_offset_kernel(pmd, addr); in zero_pte_populate() 109 static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, in zero_pmd_populate() argument 112 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() 116 next = pmd_addr_end(addr, end); in zero_pmd_populate() 118 if (IS_ALIGNED(addr, PMD_SIZE) && end - addr >= PMD_SIZE) { in zero_pmd_populate() [all …]
|
/linux-6.6.21/arch/powerpc/lib/ |
D | test-code-patching.c | 11 static int __init instr_is_branch_to_addr(const u32 *instr, unsigned long addr) in instr_is_branch_to_addr() argument 15 return branch_target(instr) == addr; in instr_is_branch_to_addr() 36 unsigned long addr = (unsigned long)tmp; in test_branch_iform() local 64 check(instr_is_branch_to_addr(iptr, addr + 0x1FFFFFC)); in test_branch_iform() 67 check(instr_is_branch_to_addr(iptr, addr - 4)); in test_branch_iform() 70 check(instr_is_branch_to_addr(iptr, addr - 0x2000000)); in test_branch_iform() 73 err = create_branch(&instr, iptr, addr, BRANCH_SET_LINK); in test_branch_iform() 75 check(instr_is_branch_to_addr(iptr, addr)); in test_branch_iform() 78 err = create_branch(&instr, iptr, addr - 0x100, BRANCH_SET_LINK); in test_branch_iform() 80 check(instr_is_branch_to_addr(iptr, addr - 0x100)); in test_branch_iform() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | io.h | 62 static inline void __ ## port ## len(const volatile void __iomem *addr, \ 71 ctype x = __raw_read ## len(addr); \ 79 static inline void __ ## port ## len(volatile void __iomem *addr, \ 88 __raw_write ## len(*buf++, addr); \ 94 __io_reads_ins(reads, u8, b, __io_br(), __io_ar(addr)) 95 __io_reads_ins(reads, u16, w, __io_br(), __io_ar(addr)) 96 __io_reads_ins(reads, u32, l, __io_br(), __io_ar(addr)) 97 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 98 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 99 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument [all …]
|
/linux-6.6.21/include/asm-generic/bitops/ |
D | instrumented-non-atomic.h | 26 ___set_bit(unsigned long nr, volatile unsigned long *addr) in ___set_bit() argument 28 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___set_bit() 29 arch___set_bit(nr, addr); in ___set_bit() 42 ___clear_bit(unsigned long nr, volatile unsigned long *addr) in ___clear_bit() argument 44 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___clear_bit() 45 arch___clear_bit(nr, addr); in ___clear_bit() 58 ___change_bit(unsigned long nr, volatile unsigned long *addr) in ___change_bit() argument 60 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___change_bit() 61 arch___change_bit(nr, addr); in ___change_bit() 64 static __always_inline void __instrument_read_write_bitop(long nr, volatile unsigned long *addr) in __instrument_read_write_bitop() argument [all …]
|
/linux-6.6.21/arch/parisc/include/asm/ |
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 …]
|
/linux-6.6.21/include/linux/ |
D | etherdevice.h | 35 int device_get_mac_address(struct device *dev, char *addr); 37 int fwnode_get_mac_address(struct fwnode_handle *fwnode, char *addr); 83 static inline bool is_link_local_ether_addr(const u8 *addr) in is_link_local_ether_addr() argument 85 __be16 *a = (__be16 *)addr; in is_link_local_ether_addr() 90 return (((*(const u32 *)addr) ^ (*(const u32 *)b)) | in is_link_local_ether_addr() 105 static inline bool is_zero_ether_addr(const u8 *addr) in is_zero_ether_addr() argument 108 return ((*(const u32 *)addr) | (*(const u16 *)(addr + 4))) == 0; in is_zero_ether_addr() 110 return (*(const u16 *)(addr + 0) | in is_zero_ether_addr() 111 *(const u16 *)(addr + 2) | in is_zero_ether_addr() 112 *(const u16 *)(addr + 4)) == 0; in is_zero_ether_addr() [all …]
|
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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/include/trace/events/ |
D | thp.h | 13 TP_PROTO(unsigned long addr, unsigned long pte), 14 TP_ARGS(addr, pte), 16 __field(unsigned long, addr) 21 __entry->addr = addr; 25 TP_printk("Set page table entry with 0x%lx with 0x%lx", __entry->addr, __entry->pte) 29 TP_PROTO(unsigned long addr, unsigned long pmd), 30 TP_ARGS(addr, pmd) 34 TP_PROTO(unsigned long addr, unsigned long pud), 35 TP_ARGS(addr, pud) 40 TP_PROTO(unsigned long addr, unsigned long pte, unsigned long clr, unsigned long set), [all …]
|