Home
last modified time | relevance | path

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

12345678910>>...233

/Linux-v6.1/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 …]
/Linux-v6.1/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
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()
[all …]
/Linux-v6.1/include/asm-generic/
Dio.h82 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-v6.1/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()
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 …]
Dio.h144 static inline TYPE generic_##NAME(QUAL void __iomem *addr) \
146 return alpha_mv.mv_##NAME(addr); \
150 static inline void generic_##NAME(TYPE b, QUAL void __iomem *addr) \
152 alpha_mv.mv_##NAME(b, addr); \
256 extern u8 readb(const volatile void __iomem *addr);
257 extern u16 readw(const volatile void __iomem *addr);
258 extern u32 readl(const volatile void __iomem *addr);
259 extern u64 readq(const volatile void __iomem *addr);
260 extern void writeb(u8 b, volatile void __iomem *addr);
261 extern void writew(u16 b, volatile void __iomem *addr);
[all …]
/Linux-v6.1/lib/
Diomap.c52 #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-v6.1/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 …]
/Linux-v6.1/net/core/
Ddev_addr_lists_test.c68 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_EQ(test, 0, memcmp(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_EQ(test, 0, memcmp(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-v6.1/arch/powerpc/include/asm/
Dio.h101 static inline u##size name(const volatile u##size __iomem *addr) \
105 : "=r" (ret) : "Z" (*addr) : "memory"); \
110 static inline void name(volatile u##size __iomem *addr, u##size val) \
113 : "=Z" (*addr) : "r" (val) : "memory"); \
118 static inline u##size name(const volatile u##size __iomem *addr) \
122 : "=r" (ret) : "m<>" (*addr) : "memory"); \
127 static inline void name(volatile u##size __iomem *addr, u##size val) \
130 : "=m<>" (*addr) : "r" (val) : "memory"); \
167 static inline u64 in_le64(const volatile u64 __iomem *addr) in in_le64() argument
169 return swab64(in_be64(addr)); in in_le64()
[all …]
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 …]
/Linux-v6.1/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 …]
/Linux-v6.1/mm/kasan/
Dinit.c92 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 …]
Dkasan.h280 static inline bool addr_has_metadata(const void *addr) in addr_has_metadata() argument
282 return (kasan_reset_tag(addr) >= in addr_has_metadata()
288 * @addr: the accessed address
294 bool kasan_check_range(unsigned long addr, size_t size, bool write,
299 static inline bool addr_has_metadata(const void *addr) in addr_has_metadata() argument
301 return (is_vmalloc_addr(addr) || virt_addr_valid(addr)); in addr_has_metadata()
306 void *kasan_find_first_bad_addr(void *addr, size_t size);
311 void kasan_print_tags(u8 addr_tag, const void *addr);
313 static inline void kasan_print_tags(u8 addr_tag, const void *addr) { } in kasan_print_tags() argument
317 void kasan_print_address_stack_frame(const void *addr);
[all …]
/Linux-v6.1/arch/powerpc/lib/
Dtest-code-patching.c11 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-v6.1/drivers/net/wireless/realtek/rtw88/
Dhci.h25 u8 (*read8)(struct rtw_dev *rtwdev, u32 addr);
26 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr);
27 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr);
28 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val);
29 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val);
30 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val);
87 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument
89 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8()
92 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument
94 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
/Linux-v6.1/arch/sparc/include/asm/
Dbitops_32.h22 unsigned long sp32___set_bit(unsigned long *addr, unsigned long mask);
23 unsigned long sp32___clear_bit(unsigned long *addr, unsigned long mask);
24 unsigned long sp32___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 sp32___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 …]
/Linux-v6.1/net/ceph/
Ddecode.c11 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_versioned() argument
26 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned()
28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned()
31 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned()
34 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned()
36 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned()
38 addr->in_addr.ss_family = in ceph_decode_entity_addr_versioned()
39 le16_to_cpu((__force __le16)addr->in_addr.ss_family); in ceph_decode_entity_addr_versioned()
51 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_legacy() argument
62 addr->type = CEPH_ENTITY_ADDR_TYPE_LEGACY; in ceph_decode_entity_addr_legacy()
[all …]
/Linux-v6.1/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()
135 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
[all …]
/Linux-v6.1/tools/testing/selftests/vm/
Dmadv_populate.c40 char *addr; in sense_support() local
43 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
45 if (!addr) in sense_support()
48 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support()
52 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support()
56 munmap(addr, pagesize); in sense_support()
61 char *addr; in test_prot_read() local
66 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
67 if (addr == MAP_FAILED) in test_prot_read()
70 ret = madvise(addr, SIZE, MADV_POPULATE_READ); in test_prot_read()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/arch/riscv/include/asm/
Dio.h62 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-v6.1/arch/parisc/mm/
Dhugetlbpage.c25 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument
36 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area()
39 if (addr) in hugetlb_get_unmapped_area()
40 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
43 return arch_get_unmapped_area(file, addr, len, pgoff, flags); in hugetlb_get_unmapped_area()
48 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument
61 addr &= HPAGE_MASK; in huge_pte_alloc()
63 pgd = pgd_offset(mm, addr); in huge_pte_alloc()
64 p4d = p4d_offset(pgd, addr); in huge_pte_alloc()
65 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc()
[all …]
/Linux-v6.1/include/asm-generic/bitops/
Dinstrumented-non-atomic.h19 * @addr: the address to start counting from
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()
35 * @addr: the address to start counting from
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()
51 * @addr: the address to start counting from
58 ___change_bit(unsigned long nr, volatile unsigned long *addr) in ___change_bit() argument
[all …]

12345678910>>...233