Home
last modified time | relevance | path

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

12345678910>>...22

/include/linux/
Din.h38 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 …]
Ddebugobjects.h57 void *(*debug_hint)(void *addr);
58 bool (*is_static_object)(void *addr);
59 bool (*fixup_init)(void *addr, enum debug_obj_state state);
60 bool (*fixup_activate)(void *addr, enum debug_obj_state state);
61 bool (*fixup_destroy)(void *addr, enum debug_obj_state state);
62 bool (*fixup_free)(void *addr, enum debug_obj_state state);
63 bool (*fixup_assert_init)(void *addr, enum debug_obj_state state);
67 extern void debug_object_init (void *addr, const struct debug_obj_descr *descr);
69 debug_object_init_on_stack(void *addr, const struct debug_obj_descr *descr);
70 extern int debug_object_activate (void *addr, const struct debug_obj_descr *descr);
[all …]
Detherdevice.h35 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 …]
Dio-64-nonatomic-lo-hi.h8 static inline __u64 lo_hi_readq(const volatile void __iomem *addr) in lo_hi_readq() argument
10 const volatile u32 __iomem *p = addr; in lo_hi_readq()
19 static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr) in lo_hi_writeq() argument
21 writel(val, addr); in lo_hi_writeq()
22 writel(val >> 32, addr + 4); in lo_hi_writeq()
25 static inline __u64 lo_hi_readq_relaxed(const volatile void __iomem *addr) in lo_hi_readq_relaxed() argument
27 const volatile u32 __iomem *p = addr; in lo_hi_readq_relaxed()
36 static inline void lo_hi_writeq_relaxed(__u64 val, volatile void __iomem *addr) in lo_hi_writeq_relaxed() argument
38 writel_relaxed(val, addr); in lo_hi_writeq_relaxed()
39 writel_relaxed(val >> 32, addr + 4); in lo_hi_writeq_relaxed()
[all …]
Dio-64-nonatomic-hi-lo.h8 static inline __u64 hi_lo_readq(const volatile void __iomem *addr) in hi_lo_readq() argument
10 const volatile u32 __iomem *p = addr; in hi_lo_readq()
19 static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr) in hi_lo_writeq() argument
21 writel(val >> 32, addr + 4); in hi_lo_writeq()
22 writel(val, addr); in hi_lo_writeq()
25 static inline __u64 hi_lo_readq_relaxed(const volatile void __iomem *addr) in hi_lo_readq_relaxed() argument
27 const volatile u32 __iomem *p = addr; in hi_lo_readq_relaxed()
36 static inline void hi_lo_writeq_relaxed(__u64 val, volatile void __iomem *addr) in hi_lo_writeq_relaxed() argument
38 writel_relaxed(val >> 32, addr + 4); in hi_lo_writeq_relaxed()
39 writel_relaxed(val, addr); in hi_lo_writeq_relaxed()
[all …]
Diopoll.h134 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument
135 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr)
154 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument
155 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr)
157 #define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument
158 readx_poll_timeout(readb, addr, val, cond, delay_us, timeout_us)
160 #define readb_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \ argument
161 readx_poll_timeout_atomic(readb, addr, val, cond, delay_us, timeout_us)
163 #define readw_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument
164 readx_poll_timeout(readw, addr, val, cond, delay_us, timeout_us)
[all …]
Dkallsyms.h27 static inline int is_kernel_text(unsigned long addr) in is_kernel_text() argument
29 if (__is_kernel_text(addr)) in is_kernel_text()
31 return in_gate_area_no_mm(addr); in is_kernel_text()
34 static inline int is_kernel(unsigned long addr) in is_kernel() argument
36 if (__is_kernel(addr)) in is_kernel()
38 return in_gate_area_no_mm(addr); in is_kernel()
41 static inline int is_ksym_addr(unsigned long addr) in is_ksym_addr() argument
44 return is_kernel(addr); in is_ksym_addr()
46 return is_kernel_text(addr) || is_kernel_inittext(addr); in is_ksym_addr()
81 extern int kallsyms_lookup_size_offset(unsigned long addr,
[all …]
Dbit_spinlock.h16 static inline void bit_spin_lock(int bitnum, unsigned long *addr) in bit_spin_lock() argument
27 while (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_lock()
31 } while (test_bit(bitnum, addr)); in bit_spin_lock()
41 static inline int bit_spin_trylock(int bitnum, unsigned long *addr) in bit_spin_trylock() argument
45 if (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_trylock()
57 static inline void bit_spin_unlock(int bitnum, unsigned long *addr) in bit_spin_unlock() argument
60 BUG_ON(!test_bit(bitnum, addr)); in bit_spin_unlock()
63 clear_bit_unlock(bitnum, addr); in bit_spin_unlock()
74 static inline void __bit_spin_unlock(int bitnum, unsigned long *addr) in __bit_spin_unlock() argument
77 BUG_ON(!test_bit(bitnum, addr)); in __bit_spin_unlock()
[all …]
Dfind.h19 unsigned long _find_next_zero_bit(const unsigned long *addr, unsigned long nbits,
21 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size);
22 unsigned long __find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n);
32 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size);
33 extern unsigned long _find_last_bit(const unsigned long *addr, unsigned long size);
36 unsigned long _find_first_zero_bit_le(const unsigned long *addr, unsigned long size);
37 unsigned long _find_next_zero_bit_le(const unsigned long *addr, unsigned
39 unsigned long _find_next_bit_le(const unsigned long *addr, unsigned
54 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument
63 val = *addr & GENMASK(size - 1, offset); in find_next_bit()
[all …]
Dlogic_pio.h31 u32 (*in)(void *hostdata, unsigned long addr, size_t dwidth);
32 void (*out)(void *hostdata, unsigned long addr, u32 val,
34 u32 (*ins)(void *hostdata, unsigned long addr, void *buffer,
36 void (*outs)(void *hostdata, unsigned long addr, const void *buffer,
41 u8 logic_inb(unsigned long addr);
42 void logic_outb(u8 value, unsigned long addr);
43 void logic_outw(u16 value, unsigned long addr);
44 void logic_outl(u32 value, unsigned long addr);
45 u16 logic_inw(unsigned long addr);
46 u32 logic_inl(unsigned long addr);
[all …]
Dkfence.h51 static __always_inline bool is_kfence_address(const void *addr) in is_kfence_address() argument
58 return unlikely((unsigned long)((char *)addr - __kfence_pool) < KFENCE_POOL_SIZE && __kfence_pool); in is_kfence_address()
144 size_t kfence_ksize(const void *addr);
158 void *kfence_object_start(const void *addr);
168 void __kfence_free(void *addr);
183 static __always_inline __must_check bool kfence_free(void *addr) in kfence_free() argument
185 if (!is_kfence_address(addr)) in kfence_free()
187 __kfence_free(addr); in kfence_free()
206 bool __must_check kfence_handle_page_fault(unsigned long addr, bool is_write, struct pt_regs *regs);
226 static inline bool is_kfence_address(const void *addr) { return false; } in is_kfence_address() argument
[all …]
Dbitops.h48 #define bitop(op, nr, addr) \ argument
50 __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \
51 (uintptr_t)(addr) != (uintptr_t)NULL && \
52 __builtin_constant_p(*(const unsigned long *)(addr))) ? \
53 const##op(nr, addr) : op(nr, addr))
55 #define __set_bit(nr, addr) bitop(___set_bit, nr, addr) argument
56 #define __clear_bit(nr, addr) bitop(___clear_bit, nr, addr) argument
57 #define __change_bit(nr, addr) bitop(___change_bit, nr, addr) argument
58 #define __test_and_set_bit(nr, addr) bitop(___test_and_set_bit, nr, addr) argument
59 #define __test_and_clear_bit(nr, addr) bitop(___test_and_clear_bit, nr, addr) argument
[all …]
Dset_memory.h11 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
12 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
13 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
14 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
18 static inline int set_memory_rox(unsigned long addr, int numpages) in set_memory_rox() argument
20 int ret = set_memory_ro(addr, numpages); in set_memory_rox()
23 return set_memory_x(addr, numpages); in set_memory_rox()
70 static inline int set_memory_encrypted(unsigned long addr, int numpages) in set_memory_encrypted() argument
75 static inline int set_memory_decrypted(unsigned long addr, int numpages) in set_memory_decrypted() argument
/include/asm-generic/bitops/
Dinstrumented-non-atomic.h26 ___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 …]
Dinstrumented-atomic.h26 static __always_inline void set_bit(long nr, volatile unsigned long *addr) in set_bit() argument
28 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in set_bit()
29 arch_set_bit(nr, addr); in set_bit()
39 static __always_inline void clear_bit(long nr, volatile unsigned long *addr) in clear_bit() argument
41 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in clear_bit()
42 arch_clear_bit(nr, addr); in clear_bit()
55 static __always_inline void change_bit(long nr, volatile unsigned long *addr) in change_bit() argument
57 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in change_bit()
58 arch_change_bit(nr, addr); in change_bit()
68 static __always_inline bool test_and_set_bit(long nr, volatile unsigned long *addr) in test_and_set_bit() argument
[all …]
Dle.h19 static inline int test_bit_le(int nr, const void *addr) in test_bit_le() argument
21 return test_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_bit_le()
24 static inline void set_bit_le(int nr, void *addr) in set_bit_le() argument
26 set_bit(nr ^ BITOP_LE_SWIZZLE, addr); in set_bit_le()
29 static inline void clear_bit_le(int nr, void *addr) in clear_bit_le() argument
31 clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); in clear_bit_le()
34 static inline void __set_bit_le(int nr, void *addr) in __set_bit_le() argument
36 __set_bit(nr ^ BITOP_LE_SWIZZLE, addr); in __set_bit_le()
39 static inline void __clear_bit_le(int nr, void *addr) in __clear_bit_le() argument
41 __clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); in __clear_bit_le()
[all …]
Dinstrumented-lock.h23 static inline void clear_bit_unlock(long nr, volatile unsigned long *addr) in clear_bit_unlock() argument
26 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in clear_bit_unlock()
27 arch_clear_bit_unlock(nr, addr); in clear_bit_unlock()
39 static inline void __clear_bit_unlock(long nr, volatile unsigned long *addr) in __clear_bit_unlock() argument
42 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in __clear_bit_unlock()
43 arch___clear_bit_unlock(nr, addr); in __clear_bit_unlock()
55 static inline bool test_and_set_bit_lock(long nr, volatile unsigned long *addr) in test_and_set_bit_lock() argument
57 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_set_bit_lock()
58 return arch_test_and_set_bit_lock(nr, addr); in test_and_set_bit_lock()
74 clear_bit_unlock_is_negative_byte(long nr, volatile unsigned long *addr) in clear_bit_unlock_is_negative_byte() argument
[all …]
Dgeneric-non-atomic.h28 generic___set_bit(unsigned long nr, volatile unsigned long *addr) in generic___set_bit() argument
31 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___set_bit()
37 generic___clear_bit(unsigned long nr, volatile unsigned long *addr) in generic___clear_bit() argument
40 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___clear_bit()
55 generic___change_bit(unsigned long nr, volatile unsigned long *addr) in generic___change_bit() argument
58 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___change_bit()
73 generic___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in generic___test_and_set_bit() argument
76 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_set_bit()
93 generic___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr) in generic___test_and_clear_bit() argument
96 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_clear_bit()
[all …]
/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 …]
Dsections.h71 unsigned long addr; member
157 static inline bool is_kernel_core_data(unsigned long addr) in is_kernel_core_data() argument
159 if (addr >= (unsigned long)_sdata && addr < (unsigned long)_edata) in is_kernel_core_data()
162 if (addr >= (unsigned long)__bss_start && in is_kernel_core_data()
163 addr < (unsigned long)__bss_stop) in is_kernel_core_data()
177 static inline bool is_kernel_rodata(unsigned long addr) in is_kernel_rodata() argument
179 return addr >= (unsigned long)__start_rodata && in is_kernel_rodata()
180 addr < (unsigned long)__end_rodata; in is_kernel_rodata()
191 static inline bool is_kernel_inittext(unsigned long addr) in is_kernel_inittext() argument
193 return addr >= (unsigned long)_sinittext && in is_kernel_inittext()
[all …]
Dfb.h44 static inline u8 fb_readb(const volatile void __iomem *addr) in fb_readb() argument
46 return __raw_readb(addr); in fb_readb()
52 static inline u16 fb_readw(const volatile void __iomem *addr) in fb_readw() argument
54 return __raw_readw(addr); in fb_readw()
60 static inline u32 fb_readl(const volatile void __iomem *addr) in fb_readl() argument
62 return __raw_readl(addr); in fb_readl()
69 static inline u64 fb_readq(const volatile void __iomem *addr) in fb_readq() argument
71 return __raw_readq(addr); in fb_readq()
78 static inline void fb_writeb(u8 b, volatile void __iomem *addr) in fb_writeb() argument
80 __raw_writeb(b, addr); in fb_writeb()
[all …]
/include/trace/events/
Dthp.h13 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 …]
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);
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 …]
Drwmmio.h16 volatile void __iomem *addr),
18 TP_ARGS(caller, caller0, val, width, addr),
23 __field(unsigned long, addr)
32 __entry->addr = (unsigned long)addr;
38 __entry->val, __entry->addr)
43 volatile void __iomem *addr),
44 TP_ARGS(caller, caller0, val, width, addr)
49 volatile void __iomem *addr),
50 TP_ARGS(caller, caller0, val, width, addr)
56 const volatile void __iomem *addr),
[all …]
Dspmi.h16 TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf),
17 TP_ARGS(opcode, sid, addr, len, buf),
22 __field ( u16, addr )
30 __entry->addr = addr;
37 (int)__entry->addr, (int)__entry->len,
42 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret),
43 TP_ARGS(opcode, sid, addr, ret),
48 __field ( u16, addr )
55 __entry->addr = addr;
61 (int)__entry->addr, __entry->ret)
[all …]

12345678910>>...22