Home
last modified time | relevance | path

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

1234567891011

/include/asm-generic/
Dio.h36 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
38 return *(const volatile u8 __force *) addr; in __raw_readb()
43 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
45 return *(const volatile u16 __force *) addr; in __raw_readw()
50 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
52 return *(const volatile u32 __force *) addr; in __raw_readl()
57 #define readw(addr) __le16_to_cpu(__raw_readw(addr)) argument
58 #define readl(addr) __le32_to_cpu(__raw_readl(addr)) argument
61 static inline void __raw_writeb(u8 b, volatile void __iomem *addr) in __raw_writeb() argument
63 *(volatile u8 __force *) addr = b; in __raw_writeb()
[all …]
Dide_iops.h8 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) in __ide_mm_insw() argument
11 *(u16 *)addr = readw(port); in __ide_mm_insw()
12 addr += 2; in __ide_mm_insw()
16 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) in __ide_mm_insl() argument
19 *(u32 *)addr = readl(port); in __ide_mm_insl()
20 addr += 4; in __ide_mm_insl()
24 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) in __ide_mm_outsw() argument
27 writew(*(u16 *)addr, port); in __ide_mm_outsw()
28 addr += 2; in __ide_mm_outsw()
32 static __inline__ void __ide_mm_outsl(void __iomem * port, void *addr, u32 count) in __ide_mm_outsl() argument
[all …]
Dio-64-nonatomic-hi-lo.h8 static inline __u64 readq(const volatile void __iomem *addr) in readq() argument
10 const volatile u32 __iomem *p = addr; in readq()
21 static inline void writeq(__u64 val, volatile void __iomem *addr) in writeq() argument
23 writel(val >> 32, addr + 4); in writeq()
24 writel(val, addr); in writeq()
Dio-64-nonatomic-lo-hi.h8 static inline __u64 readq(const volatile void __iomem *addr) in readq() argument
10 const volatile u32 __iomem *p = addr; in readq()
21 static inline void writeq(__u64 val, volatile void __iomem *addr) in writeq() argument
23 writel(val, addr); in writeq()
24 writel(val >> 32, addr + 4); in writeq()
Ddma-mapping-common.h16 dma_addr_t addr; in dma_map_single_attrs() local
20 addr = ops->map_page(dev, virt_to_page(ptr), in dma_map_single_attrs()
25 dir, addr, true); in dma_map_single_attrs()
26 return addr; in dma_map_single_attrs()
29 static inline void dma_unmap_single_attrs(struct device *dev, dma_addr_t addr, in dma_unmap_single_attrs() argument
38 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_single_attrs()
39 debug_dma_unmap_page(dev, addr, size, dir, true); in dma_unmap_single_attrs()
76 dma_addr_t addr; in dma_map_page() local
80 addr = ops->map_page(dev, page, offset, size, dir, NULL); in dma_map_page()
81 debug_dma_map_page(dev, page, offset, size, dir, addr, false); in dma_map_page()
[all …]
/include/asm-generic/bitops/
Dle.h11 static inline unsigned long find_next_zero_bit_le(const void *addr, in find_next_zero_bit_le() argument
14 return find_next_zero_bit(addr, size, offset); in find_next_zero_bit_le()
17 static inline unsigned long find_next_bit_le(const void *addr, in find_next_bit_le() argument
20 return find_next_bit(addr, size, offset); in find_next_bit_le()
23 static inline unsigned long find_first_zero_bit_le(const void *addr, in find_first_zero_bit_le() argument
26 return find_first_zero_bit(addr, size); in find_first_zero_bit_le()
34 extern unsigned long find_next_zero_bit_le(const void *addr,
39 extern unsigned long find_next_bit_le(const void *addr,
44 #define find_first_zero_bit_le(addr, size) \ argument
45 find_next_zero_bit_le((addr), (size), 0)
[all …]
Dnon-atomic.h15 static inline void __set_bit(int nr, volatile unsigned long *addr) in __set_bit() argument
18 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit()
23 static inline void __clear_bit(int nr, volatile unsigned long *addr) in __clear_bit() argument
26 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit()
40 static inline void __change_bit(int nr, volatile unsigned long *addr) in __change_bit() argument
43 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
57 static inline int __test_and_set_bit(int nr, volatile unsigned long *addr) in __test_and_set_bit() argument
60 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit()
76 static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr) in __test_and_clear_bit() argument
79 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_clear_bit()
[all …]
Dfind.h11 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
22 extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
35 extern unsigned long find_first_bit(const unsigned long *addr,
45 extern unsigned long find_first_zero_bit(const unsigned long *addr,
49 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) argument
50 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) argument
Dlock.h12 #define test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr) argument
21 #define clear_bit_unlock(nr, addr) \ argument
24 clear_bit(nr, addr); \
38 #define __clear_bit_unlock(nr, addr) \ argument
41 __clear_bit(nr, addr); \
Datomic.h65 static inline void set_bit(int nr, volatile unsigned long *addr) in set_bit() argument
68 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in set_bit()
86 static inline void clear_bit(int nr, volatile unsigned long *addr) in clear_bit() argument
89 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in clear_bit()
107 static inline void change_bit(int nr, volatile unsigned long *addr) in change_bit() argument
110 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in change_bit()
127 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() argument
130 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_set_bit()
151 static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) in test_and_clear_bit() argument
154 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_clear_bit()
[all …]
Dext2-atomic-setbit.h8 #define ext2_set_bit_atomic(l, nr, addr) test_and_set_bit_le(nr, addr) argument
9 #define ext2_clear_bit_atomic(l, nr, addr) test_and_clear_bit_le(nr, addr) argument
/include/linux/
Ddebugobjects.h54 void *(*debug_hint) (void *addr);
55 int (*fixup_init) (void *addr, enum debug_obj_state state);
56 int (*fixup_activate) (void *addr, enum debug_obj_state state);
57 int (*fixup_destroy) (void *addr, enum debug_obj_state state);
58 int (*fixup_free) (void *addr, enum debug_obj_state state);
59 int (*fixup_assert_init)(void *addr, enum debug_obj_state state);
63 extern void debug_object_init (void *addr, struct debug_obj_descr *descr);
65 debug_object_init_on_stack(void *addr, struct debug_obj_descr *descr);
66 extern void debug_object_activate (void *addr, struct debug_obj_descr *descr);
67 extern void debug_object_deactivate(void *addr, struct debug_obj_descr *descr);
[all …]
Detherdevice.h62 static inline int is_zero_ether_addr(const u8 *addr) in is_zero_ether_addr() argument
64 return !(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]); in is_zero_ether_addr()
74 static inline int is_multicast_ether_addr(const u8 *addr) in is_multicast_ether_addr() argument
76 return 0x01 & addr[0]; in is_multicast_ether_addr()
85 static inline int is_local_ether_addr(const u8 *addr) in is_local_ether_addr() argument
87 return 0x02 & addr[0]; in is_local_ether_addr()
96 static inline int is_broadcast_ether_addr(const u8 *addr) in is_broadcast_ether_addr() argument
98 return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff; in is_broadcast_ether_addr()
107 static inline int is_unicast_ether_addr(const u8 *addr) in is_unicast_ether_addr() argument
109 return !is_multicast_ether_addr(addr); in is_unicast_ether_addr()
[all …]
Dbit_spinlock.h15 static inline void bit_spin_lock(int bitnum, unsigned long *addr) in bit_spin_lock() argument
26 while (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_lock()
30 } while (test_bit(bitnum, addr)); in bit_spin_lock()
40 static inline int bit_spin_trylock(int bitnum, unsigned long *addr) in bit_spin_trylock() argument
44 if (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_trylock()
56 static inline void bit_spin_unlock(int bitnum, unsigned long *addr) in bit_spin_unlock() argument
59 BUG_ON(!test_bit(bitnum, addr)); in bit_spin_unlock()
62 clear_bit_unlock(bitnum, addr); in bit_spin_unlock()
73 static inline void __bit_spin_unlock(int bitnum, unsigned long *addr) in __bit_spin_unlock() argument
76 BUG_ON(!test_bit(bitnum, addr)); in __bit_spin_unlock()
[all …]
Dkallsyms.h27 extern int kallsyms_lookup_size_offset(unsigned long addr,
32 const char *kallsyms_lookup(unsigned long addr,
44 int lookup_symbol_name(unsigned long addr, char *symname);
45 int lookup_symbol_attrs(unsigned long addr, unsigned long *size, unsigned long *offset, char *modna…
62 static inline int kallsyms_lookup_size_offset(unsigned long addr, in kallsyms_lookup_size_offset() argument
69 static inline const char *kallsyms_lookup(unsigned long addr, in kallsyms_lookup() argument
77 static inline int sprint_symbol(char *buffer, unsigned long addr) in sprint_symbol() argument
83 static inline int sprint_backtrace(char *buffer, unsigned long addr) in sprint_backtrace() argument
89 static inline int lookup_symbol_name(unsigned long addr, char *symname) in lookup_symbol_name() argument
94 static inline int lookup_symbol_attrs(unsigned long addr, unsigned long *size, unsigned long *offse… in lookup_symbol_attrs() argument
[all …]
Din.h273 static inline bool ipv4_is_loopback(__be32 addr) in ipv4_is_loopback() argument
275 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback()
278 static inline bool ipv4_is_multicast(__be32 addr) in ipv4_is_multicast() argument
280 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast()
283 static inline bool ipv4_is_local_multicast(__be32 addr) in ipv4_is_local_multicast() argument
285 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast()
288 static inline bool ipv4_is_lbcast(__be32 addr) in ipv4_is_lbcast() argument
291 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast()
294 static inline bool ipv4_is_zeronet(__be32 addr) in ipv4_is_zeronet() argument
296 return (addr & htonl(0xff000000)) == htonl(0x00000000); in ipv4_is_zeronet()
[all …]
Dmmiotrace.h11 struct pt_regs *, unsigned long addr);
19 unsigned long addr; member
44 extern int kmmio_handler(struct pt_regs *regs, unsigned long addr);
48 void __iomem *addr);
49 extern void mmiotrace_iounmap(volatile void __iomem *addr);
59 static inline int kmmio_handler(struct pt_regs *regs, unsigned long addr) in kmmio_handler() argument
65 unsigned long size, void __iomem *addr) in mmiotrace_ioremap() argument
69 static inline void mmiotrace_iounmap(volatile void __iomem *addr) in mmiotrace_iounmap() argument
/include/trace/events/
Dmmc.h30 TP_PROTO(unsigned int cmd, unsigned int addr, unsigned int size),
31 TP_ARGS(cmd, addr, size),
34 __field(unsigned int, addr)
39 __entry->addr = addr;
43 __entry->cmd, __entry->addr, __entry->size)
47 TP_PROTO(unsigned int cmd, unsigned int addr, unsigned int size),
48 TP_ARGS(cmd, addr, size));
51 TP_PROTO(unsigned int cmd, unsigned int addr, unsigned int size),
52 TP_ARGS(cmd, addr, size));
59 TP_PROTO(unsigned int cmd, unsigned int addr, struct mmc_data *data),
[all …]
/include/net/
Dif_inet6.h41 struct in6_addr addr; member
89 struct in6_addr addr; member
198 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf) in ipv6_eth_mc_map() argument
209 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
212 static inline void ipv6_tr_mc_map(const struct in6_addr *addr, char *buf) in ipv6_tr_mc_map() argument
216 if (((addr->s6_addr[0] == 0xFF) && in ipv6_tr_mc_map()
217 ((addr->s6_addr[1] == 0x01) || (addr->s6_addr[1] == 0x02)) && in ipv6_tr_mc_map()
218 (addr->s6_addr16[1] == 0) && in ipv6_tr_mc_map()
219 (addr->s6_addr32[1] == 0) && in ipv6_tr_mc_map()
220 (addr->s6_addr32[2] == 0) && in ipv6_tr_mc_map()
[all …]
Daddrconf.h62 const struct in6_addr *addr,
68 const struct in6_addr *addr);
71 extern int ipv6_chk_prefix(const struct in6_addr *addr,
75 const struct in6_addr *addr,
85 struct in6_addr *addr,
88 struct in6_addr *addr,
93 const struct in6_addr *addr);
95 const struct in6_addr *addr);
126 const struct in6_addr *addr,
133 const struct in6_addr *addr);
[all …]
/include/linux/uwb/
Dwhci.h80 void le_writel(u32 value, void __iomem *addr) in le_writel() argument
82 iowrite32(value, addr); in le_writel()
88 u32 le_readl(void __iomem *addr) in le_readl() argument
90 return ioread32(addr); in le_readl()
96 void le_writeq(u64 value, void __iomem *addr) in le_writeq() argument
98 iowrite32(value, addr); in le_writeq()
99 iowrite32(value >> 32, addr + 4); in le_writeq()
105 u64 le_readq(void __iomem *addr) in le_readq() argument
108 value = ioread32(addr); in le_readq()
109 value |= (u64)ioread32(addr + 4) << 32; in le_readq()
/include/linux/mfd/pm8xxx/
Dcore.h24 int (*pmic_readb) (const struct device *dev, u16 addr, u8 *val);
25 int (*pmic_writeb) (const struct device *dev, u16 addr, u8 val);
26 int (*pmic_read_buf) (const struct device *dev, u16 addr, u8 *buf,
28 int (*pmic_write_buf) (const struct device *dev, u16 addr, u8 *buf,
34 static inline int pm8xxx_readb(const struct device *dev, u16 addr, u8 *val) in pm8xxx_readb() argument
40 return dd->pmic_readb(dev, addr, val); in pm8xxx_readb()
43 static inline int pm8xxx_writeb(const struct device *dev, u16 addr, u8 val) in pm8xxx_writeb() argument
49 return dd->pmic_writeb(dev, addr, val); in pm8xxx_writeb()
52 static inline int pm8xxx_read_buf(const struct device *dev, u16 addr, u8 *buf, in pm8xxx_read_buf() argument
59 return dd->pmic_read_buf(dev, addr, buf, n); in pm8xxx_read_buf()
[all …]
/include/linux/mfd/
Dtmio.h11 #define tmio_ioread8(addr) readb(addr) argument
12 #define tmio_ioread16(addr) readw(addr) argument
14 #define tmio_ioread32(addr) \ argument
15 (((u32) readw((addr))) | (((u32) readw((addr) + 2)) << 16))
17 #define tmio_iowrite8(val, addr) writeb((val), (addr)) argument
18 #define tmio_iowrite16(val, addr) writew((val), (addr)) argument
20 #define tmio_iowrite32(val, addr) \ argument
22 writew((val), (addr)); \
23 writew((val) >> 16, (addr) + 2); \
112 int (*write16_hook)(struct tmio_mmc_host *host, int addr);
/include/net/bluetooth/
Dmgmt.h166 struct mgmt_addr_info addr; member
181 struct mgmt_addr_info addr; member
199 struct mgmt_addr_info addr; member
203 struct mgmt_addr_info addr; member
210 struct mgmt_addr_info addr[0]; member
215 struct mgmt_addr_info addr; member
221 struct mgmt_addr_info addr; member
226 struct mgmt_addr_info addr; member
238 struct mgmt_addr_info addr; member
243 struct mgmt_addr_info addr; member
[all …]
/include/linux/mmc/
Dsdio_func.h140 extern u8 sdio_readb(struct sdio_func *func, unsigned int addr, int *err_ret);
141 extern u8 sdio_readb_ext(struct sdio_func *func, unsigned int addr, int *err_ret,
143 extern u16 sdio_readw(struct sdio_func *func, unsigned int addr, int *err_ret);
144 extern u32 sdio_readl(struct sdio_func *func, unsigned int addr, int *err_ret);
147 unsigned int addr, int count);
149 unsigned int addr, int count);
152 unsigned int addr, int *err_ret);
154 unsigned int addr, int *err_ret);
156 unsigned int addr, int *err_ret);
159 unsigned int addr, int *err_ret);
[all …]

1234567891011