Home
last modified time | relevance | path

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

12345678910>>...76

/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 …]
Dunaligned-emul.h8 #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 …]
/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
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 …]
/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 …]
Dcore_lca.h225 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 …]
Dcore_cia.h347 unsigned long addr = (unsigned long) xaddr; in cia_ioread8() local
350 if (addr >= CIA_DENSE_MEM) in cia_ioread8()
357 addr &= CIA_MEM_R1_MASK; in cia_ioread8()
358 result = *(vip) ((addr << 5) + base_and_type); in cia_ioread8()
359 return __kernel_extbl(result, addr & 3); in cia_ioread8()
364 unsigned long addr = (unsigned long) xaddr; in cia_iowrite8() local
367 if (addr >= CIA_DENSE_MEM) in cia_iowrite8()
372 addr &= CIA_MEM_R1_MASK; in cia_iowrite8()
373 w = __kernel_insbl(b, addr & 3); in cia_iowrite8()
374 *(vuip) ((addr << 5) + base_and_type) = w; in cia_iowrite8()
[all …]
/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 …]
/arch/sparc/include/asm/
Dswift.h31 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 …]
Dturbosparc.h63 static inline void turbosparc_inv_insn_tag(unsigned long addr) in turbosparc_inv_insn_tag() argument
67 : "r" (addr), "i" (ASI_M_TXTC_TAG) in turbosparc_inv_insn_tag()
72 static inline void turbosparc_inv_data_tag(unsigned long addr) in turbosparc_inv_data_tag() argument
76 : "r" (addr), "i" (ASI_M_DATAC_TAG) in turbosparc_inv_data_tag()
82 unsigned long addr; in turbosparc_flush_icache() local
84 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_icache()
85 turbosparc_inv_insn_tag(addr); in turbosparc_flush_icache()
90 unsigned long addr; in turbosparc_flush_dcache() local
92 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_dcache()
93 turbosparc_inv_data_tag(addr); in turbosparc_flush_dcache()
[all …]
Duaccess_64.h30 static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit) in __chk_range_not_ok() argument
33 return addr > limit - size; in __chk_range_not_ok()
35 addr += size; in __chk_range_not_ok()
36 if (addr < size) in __chk_range_not_ok()
39 return addr > limit; in __chk_range_not_ok()
42 #define __range_not_ok(addr, size, limit) \ argument
44 __chk_user_ptr(addr); \
45 __chk_range_not_ok((unsigned long __force)(addr), size, limit); \
79 type *addr = (type __force *)(dst); \
83 case 1: __put_kernel_asm(data, b, addr, __pu_ret); break; \
[all …]
/arch/m68k/include/asm/
Dio_no.h16 #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 …]
/arch/parisc/include/asm/
Dbitops.h21 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 …]
/arch/powerpc/boot/
Dio.h12 static inline int in_8(const volatile unsigned char *addr) in in_8() argument
17 : "=r" (ret) : "m" (*addr)); in in_8()
21 static inline void out_8(volatile unsigned char *addr, int val) in out_8() argument
24 : "=m" (*addr) : "r" (val)); in out_8()
27 static inline unsigned in_le16(const volatile u16 *addr) in in_le16() argument
32 : "=r" (ret) : "r" (addr), "m" (*addr)); in in_le16()
37 static inline unsigned in_be16(const volatile u16 *addr) in in_be16() argument
42 : "=r" (ret) : "m" (*addr)); in in_be16()
46 static inline void out_le16(volatile u16 *addr, int val) in out_le16() argument
48 __asm__ __volatile__("sthbrx %1,0,%2; sync" : "=m" (*addr) in out_le16()
[all …]
/arch/powerpc/include/asm/
Dio.h98 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 …]
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 …]
/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 …]
Dbitops.h36 #define __test_and_op_bit_ord(op, mod, nr, addr, ord) \ argument
42 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \
48 #define __op_bit_ord(op, mod, nr, addr, ord) \ argument
51 : "+A" (addr[BIT_WORD(nr)]) \
55 #define __test_and_op_bit(op, mod, nr, addr) \ argument
56 __test_and_op_bit_ord(op, mod, nr, addr, .aqrl)
57 #define __op_bit(op, mod, nr, addr) \ argument
58 __op_bit_ord(op, mod, nr, addr, )
71 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() argument
73 return __test_and_op_bit(or, __NOP, nr, addr); in test_and_set_bit()
[all …]
/arch/arm/mm/
Dmmap.c16 #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 …]
Didmap.c24 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument
31 pmd = pmd_alloc_one(&init_mm, addr); in idmap_add_pmd()
44 pmd += pmd_index(addr); in idmap_add_pmd()
46 pmd = pmd_offset(pud, addr); in idmap_add_pmd()
49 next = pmd_addr_end(addr, end); in idmap_add_pmd()
50 *pmd = __pmd((addr & PMD_MASK) | prot); in idmap_add_pmd()
52 } while (pmd++, addr = next, addr != end); in idmap_add_pmd()
55 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument
58 pmd_t *pmd = pmd_offset(pud, addr); in idmap_add_pmd()
60 addr = (addr & PMD_MASK) | prot; in idmap_add_pmd()
[all …]
/arch/hexagon/include/asm/
Dbitops.h31 static inline int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument
43 : "r" (addr), "r" (nr) in test_and_clear_bit()
55 static inline int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument
67 : "r" (addr), "r" (nr) in test_and_set_bit()
81 static inline int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument
93 : "r" (addr), "r" (nr) in test_and_change_bit()
106 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument
108 test_and_clear_bit(nr, addr); in clear_bit()
111 static inline void set_bit(int nr, volatile void *addr) in set_bit() argument
113 test_and_set_bit(nr, addr); in set_bit()
[all …]
/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 …]
/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 …]
/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 …]
/arch/alpha/kernel/
Dcore_irongate.c85 unsigned long addr; in mk_conf_addr() local
94 addr = (bus << 16) | (device_fn << 8) | where; in mk_conf_addr()
95 addr |= IRONGATE_CONF; in mk_conf_addr()
97 *pci_addr = addr; in mk_conf_addr()
98 DBG_CFG(("mk_conf_addr: returning pci_addr 0x%lx\n", addr)); in mk_conf_addr()
106 unsigned long addr; in irongate_read_config() local
109 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) in irongate_read_config()
114 *value = __kernel_ldbu(*(vucp)addr); in irongate_read_config()
117 *value = __kernel_ldwu(*(vusp)addr); in irongate_read_config()
120 *value = *(vuip)addr; in irongate_read_config()
[all …]
/arch/openrisc/mm/
Dtlb.c35 #define DTLB_OFFSET(addr) (((addr) >> PAGE_SHIFT) & (NUM_DTLB_SETS-1)) argument
36 #define ITLB_OFFSET(addr) (((addr) >> PAGE_SHIFT) & (NUM_ITLB_SETS-1)) argument
75 #define flush_dtlb_page_eir(addr) mtspr(SPR_DTLBEIR, addr) argument
76 #define flush_dtlb_page_no_eir(addr) \ argument
77 mtspr_off(SPR_DTLBMR_BASE(0), DTLB_OFFSET(addr), 0);
79 #define flush_itlb_page_eir(addr) mtspr(SPR_ITLBEIR, addr) argument
80 #define flush_itlb_page_no_eir(addr) \ argument
81 mtspr_off(SPR_ITLBMR_BASE(0), ITLB_OFFSET(addr), 0);
83 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long addr) in local_flush_tlb_page() argument
86 flush_dtlb_page_eir(addr); in local_flush_tlb_page()
[all …]

12345678910>>...76