Home
last modified time | relevance | path

Searched full:addr (Results 1 – 25 of 5891) sorted by relevance

12345678910>>...236

/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.c32 * Technically, this should be 'if (VMALLOC_START < addr < VMALLOC_END),
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()
[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-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 …]
Dio.h142 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/
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/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-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/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()
157 * @addr: the accessed address
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
[all …]
Dinit.c96 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/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/mm/
Dioremap.c64 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/include/trace/events/
Dbridge.h15 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);
35 TP_printk("dev %s addr %02x:%02x:%02x:%02x:%02x:%02x vid %u nlh_flags %04x ndm_flags %02x",
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),
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dio-defs.h5 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 …]
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-5.10/drivers/net/wireless/realtek/rtw88/
Dhci.h24 u8 (*read8)(struct rtw_dev *rtwdev, u32 addr);
25 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr);
26 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr);
27 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val);
28 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val);
29 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val);
86 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument
88 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8()
91 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument
93 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/include/mach/
Dio.h17 extern int (*ixp4xx_pci_read)(u32 addr, u32 cmd, u32* data);
18 extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data);
49 static inline int is_pci_memory(u32 addr) in is_pci_memory() argument
51 return (addr >= pcibios_min_mem) && (addr <= 0x4FFFFFFF); in is_pci_memory()
80 u32 addr = (u32)p; in __indirect_writeb() local
83 if (!is_pci_memory(addr)) { in __indirect_writeb()
88 n = addr % 4; in __indirect_writeb()
91 ixp4xx_pci_write(addr, byte_enables | NP_CMD_MEMWRITE, data); in __indirect_writeb()
105 u32 addr = (u32)p; in __indirect_writew() local
108 if (!is_pci_memory(addr)) { in __indirect_writew()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/lib/
Dcode-patching.c38 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()
100 pr_devel("Mapped addr %lx with pfn %lx:%d\n", text_poke_addr, pfn, err); 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()
[all …]
/kernel/liteos_m/utils/
Dlos_reg.h50 * Read a UINT8 value from addr and store in value.
52 #define READ_UINT8(value, addr) ((value) = *((volatile UINT8 *)(addr))) argument
55 * Read a UINT16 value from addr and store in addr.
57 #define READ_UINT16(value, addr) ((value) = *((volatile UINT16 *)(addr))) argument
60 * Read a UINT32 value from addr and store in value.
62 #define READ_UINT32(value, addr) ((value) = *((volatile UINT32 *)(addr))) argument
65 * Read a UINT64 value from addr and store in value.
67 #define READ_UINT64(value, addr) ((value) = *((volatile UINT64 *)(addr))) argument
71 * Get a UINT8 value from addr.
73 #define GET_UINT8(addr) (*((volatile UINT8 *)(addr))) argument
[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-5.10/include/asm-generic/bitops/
Dle.h12 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/arch/sparc/mm/
Dhugetlbpage.c27 unsigned long addr, in hugetlb_get_unmapped_area_bottomup() argument
45 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup()
47 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in hugetlb_get_unmapped_area_bottomup()
48 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_bottomup()
51 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup()
54 return addr; in hugetlb_get_unmapped_area_bottomup()
65 unsigned long addr = addr0; in hugetlb_get_unmapped_area_topdown() local
77 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
85 if (addr & ~PAGE_MASK) { in hugetlb_get_unmapped_area_topdown()
86 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dsubpage_prot.c25 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 …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dbitops_32.h22 unsigned long ___set_bit(unsigned long *addr, unsigned long mask);
23 unsigned long ___clear_bit(unsigned long *addr, unsigned long mask);
24 unsigned long ___change_bit(unsigned long *addr, unsigned long mask);
27 * Set bit 'nr' in 32-bit quantity at address 'addr' where bit '0'
32 static inline int test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in test_and_set_bit() argument
34 unsigned long *ADDR, mask; in test_and_set_bit() local
36 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_set_bit()
39 return ___set_bit(ADDR, mask) != 0; in test_and_set_bit()
42 static inline void set_bit(unsigned long nr, volatile unsigned long *addr) in set_bit() argument
44 unsigned long *ADDR, mask; in set_bit() local
[all …]
/kernel/linux/linux-5.10/arch/um/kernel/
Dtlb.c22 unsigned long addr; member
29 unsigned long addr; member
33 unsigned long addr; member
73 ret = map(&hvc->mm->context.id, op->u.mmap.addr, in do_ops()
79 map_memory(op->u.mmap.addr, op->u.mmap.offset, in do_ops()
85 op->u.munmap.addr, in do_ops()
90 (void *) op->u.munmap.addr, in do_ops()
97 op->u.mprotect.addr, in do_ops()
103 (void *) op->u.mprotect.addr, in do_ops()
138 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
[all …]

12345678910>>...236