Home
last modified time | relevance | path

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

/lib/
Diomap.c50 #define IO_COND(addr, is_pio, is_mmio) do { \ argument
51 unsigned long port = (unsigned long __force)addr; \
67 #define mmio_read16be(addr) be16_to_cpu(__raw_readw(addr)) argument
68 #define mmio_read32be(addr) be32_to_cpu(__raw_readl(addr)) argument
71 unsigned int ioread8(void __iomem *addr) in ioread8() argument
73 IO_COND(addr, return inb(port), return readb(addr)); in ioread8()
76 unsigned int ioread16(void __iomem *addr) in ioread16() argument
78 IO_COND(addr, return inw(port), return readw(addr)); in ioread16()
81 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument
83 IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr)); in ioread16be()
[all …]
Dioremap.c53 static int ioremap_pte_range(pmd_t *pmd, unsigned long addr, in ioremap_pte_range() argument
60 pte = pte_alloc_kernel(pmd, addr); in ioremap_pte_range()
65 set_pte_at(&init_mm, addr, pte, pfn_pte(pfn, prot)); in ioremap_pte_range()
67 } while (pte++, addr += PAGE_SIZE, addr != end); in ioremap_pte_range()
71 static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr, in ioremap_pmd_range() argument
77 phys_addr -= addr; in ioremap_pmd_range()
78 pmd = pmd_alloc(&init_mm, pud, addr); in ioremap_pmd_range()
82 next = pmd_addr_end(addr, end); in ioremap_pmd_range()
85 ((next - addr) == PMD_SIZE) && in ioremap_pmd_range()
86 IS_ALIGNED(phys_addr + addr, PMD_SIZE) && in ioremap_pmd_range()
[all …]
Dfind_bit.c31 static unsigned long _find_next_bit(const unsigned long *addr, in _find_next_bit() argument
39 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
50 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
61 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument
64 return _find_next_bit(addr, size, offset, 0UL); in find_next_bit()
70 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit() argument
73 return _find_next_bit(addr, size, offset, ~0UL); in find_next_zero_bit()
82 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() argument
87 if (addr[idx]) in find_first_bit()
88 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
[all …]
Ddevres.c28 void __iomem **ptr, *addr; in devm_ioremap() local
34 addr = ioremap(offset, size); in devm_ioremap()
35 if (addr) { in devm_ioremap()
36 *ptr = addr; in devm_ioremap()
41 return addr; in devm_ioremap()
57 void __iomem **ptr, *addr; in devm_ioremap_nocache() local
63 addr = ioremap_nocache(offset, size); in devm_ioremap_nocache()
64 if (addr) { in devm_ioremap_nocache()
65 *ptr = addr; in devm_ioremap_nocache()
70 return addr; in devm_ioremap_nocache()
[all …]
Ddebugobjects.c113 static struct debug_obj *lookup_object(void *addr, struct debug_bucket *b) in lookup_object() argument
120 if (obj->object == addr) in lookup_object()
134 alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr) in alloc_object() argument
142 obj->object = addr; in alloc_object()
243 static struct debug_bucket *get_bucket(unsigned long addr) in get_bucket() argument
247 hash = hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS); in get_bucket()
273 debug_object_fixup(bool (*fixup)(void *addr, enum debug_obj_state state), in debug_object_fixup() argument
274 void * addr, enum debug_obj_state state) in debug_object_fixup()
276 if (fixup && fixup(addr, state)) { in debug_object_fixup()
283 static void debug_object_is_on_stack(void *addr, int onstack) in debug_object_is_on_stack() argument
[all …]
Dgenalloc.c44 static int set_bits_ll(unsigned long *addr, unsigned long mask_to_set) in set_bits_ll() argument
48 nval = *addr; in set_bits_ll()
54 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll()
59 static int clear_bits_ll(unsigned long *addr, unsigned long mask_to_clear) in clear_bits_ll() argument
63 nval = *addr; in clear_bits_ll()
69 } while ((nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val); in clear_bits_ll()
214 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys() argument
221 if (addr >= chunk->start_addr && addr <= chunk->end_addr) { in gen_pool_virt_to_phys()
222 paddr = chunk->phys_addr + (addr - chunk->start_addr); in gen_pool_virt_to_phys()
293 unsigned long addr = 0; in gen_pool_alloc_algo() local
[all …]
Dstmp_device.c30 static int stmp_clear_poll_bit(void __iomem *addr, u32 mask) in stmp_clear_poll_bit() argument
34 writel(mask, addr + STMP_OFFSET_REG_CLR); in stmp_clear_poll_bit()
36 while ((readl(addr) & mask) && --timeout) in stmp_clear_poll_bit()
Datomic64.c42 unsigned long addr = (unsigned long) v; in lock_addr() local
44 addr >>= L1_CACHE_SHIFT; in lock_addr()
45 addr ^= (addr >> 8) ^ (addr >> 16); in lock_addr()
46 return &atomic64_lock[addr & (NR_LOCKS - 1)].lock; in lock_addr()
Dtest_printf.c262 addr(void) in addr() function
285 const u8 addr[6] = {0x2d, 0x48, 0xd6, 0xfc, 0x7a, 0x05}; in mac() local
287 test("2d:48:d6:fc:7a:05", "%pM", addr); in mac()
288 test("05:7a:fc:d6:48:2d", "%pMR", addr); in mac()
289 test("2d-48-d6-fc-7a-05", "%pMF", addr); in mac()
290 test("2d48d6fc7a05", "%pm", addr); in mac()
291 test("057afcd6482d", "%pmR", addr); in mac()
472 addr(); in test_pointer()
Dvsprintf.c803 char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, in hex_string() argument
814 if (ZERO_OR_NULL_PTR(addr)) in hex_string()
838 *buf = hex_asc_hi(addr[i]); in hex_string()
841 *buf = hex_asc_lo(addr[i]); in hex_string()
936 char *mac_address_string(char *buf, char *end, u8 *addr, in mac_address_string() argument
961 p = hex_byte_pack(p, addr[5 - i]); in mac_address_string()
963 p = hex_byte_pack(p, addr[i]); in mac_address_string()
974 char *ip4_string(char *p, const u8 *addr, const char *fmt) in ip4_string() argument
1004 int digits = put_dec_trunc8(temp, addr[index]) - temp; in ip4_string()
1024 char *ip6_compressed_string(char *p, const char *addr) in ip6_compressed_string() argument
[all …]
Ddma-debug.c1176 void *addr; in check_for_stack() local
1183 addr = page_address(page) + offset; in check_for_stack()
1184 if (object_is_on_stack(addr)) in check_for_stack()
1185 err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [addr=%p]\n", addr); in check_for_stack()
1194 addr = (u8 *)current->stack + i * PAGE_SIZE + offset; in check_for_stack()
1195 … err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [probable addr=%p]\n", addr); in check_for_stack()
1201 static inline bool overlap(void *addr, unsigned long len, void *start, void *end) in overlap() argument
1203 unsigned long a1 = (unsigned long)addr; in overlap()
1211 static void check_for_illegal_area(struct device *dev, void *addr, unsigned long len) in check_for_illegal_area() argument
1213 if (overlap(addr, len, _stext, _etext) || in check_for_illegal_area()
[all …]
Diov_iter.c443 char *addr = kmap_atomic(page); in memzero_page() local
444 memset(addr + offset, 0, len); in memzero_page()
445 kunmap_atomic(addr); in memzero_page()
510 static size_t copy_pipe_to_iter(const void *addr, size_t bytes, in copy_pipe_to_iter() argument
525 memcpy_to_page(pipe->bufs[idx].page, off, addr, chunk); in copy_pipe_to_iter()
529 addr += chunk; in copy_pipe_to_iter()
535 size_t copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in copy_to_iter() argument
537 const char *from = addr; in copy_to_iter()
539 return copy_pipe_to_iter(addr, bytes, i); in copy_to_iter()
552 size_t copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter() argument
[all …]
Dscatterlist.c587 miter->addr = kmap_atomic(miter->page) + miter->__offset; in sg_miter_next()
589 miter->addr = kmap(miter->page) + miter->__offset; in sg_miter_next()
614 if (miter->addr) { in sg_miter_stop()
624 kunmap_atomic(miter->addr); in sg_miter_stop()
629 miter->addr = NULL; in sg_miter_stop()
675 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer()
677 memcpy(miter.addr, buf + offset, len); in sg_copy_buffer()
Dpercpu_counter.c22 static bool percpu_counter_fixup_free(void *addr, enum debug_obj_state state) in percpu_counter_fixup_free() argument
24 struct percpu_counter *fbc = addr; in percpu_counter_fixup_free()
Dradix-tree.c194 radix_tree_find_next_bit(const unsigned long *addr, in radix_tree_find_next_bit() argument
198 return find_next_bit(addr, size, offset); in radix_tree_find_next_bit()
203 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit()
204 tmp = *addr >> (offset % BITS_PER_LONG); in radix_tree_find_next_bit()
209 tmp = *++addr; in radix_tree_find_next_bit()
Dstring.c785 void *memscan(void *addr, int c, size_t size) in memscan() argument
787 unsigned char *p = addr; in memscan()
/lib/xz/
Dxz_dec_bcj.c211 uint32_t addr; in bcj_ia64() local
239 addr = (norm >> 13) & 0x0FFFFF; in bcj_ia64()
240 addr |= ((uint32_t)(norm >> 36) & 1) << 20; in bcj_ia64()
241 addr <<= 4; in bcj_ia64()
242 addr -= s->pos + (uint32_t)i; in bcj_ia64()
243 addr >>= 4; in bcj_ia64()
246 norm |= (uint64_t)(addr & 0x0FFFFF) << 13; in bcj_ia64()
247 norm |= (uint64_t)(addr & 0x100000) in bcj_ia64()
268 uint32_t addr; in bcj_arm() local
272 addr = (uint32_t)buf[i] | ((uint32_t)buf[i + 1] << 8) in bcj_arm()
[all …]
/lib/mpi/
Dmpicoder.c276 p2 = miter.addr; in mpi_write_to_sgl()
288 p2 = miter.addr; in mpi_write_to_sgl()
307 p2 = miter.addr; in mpi_write_to_sgl()
359 buff = miter.addr; in mpi_read_raw_from_sgl()
399 buff = miter.addr; in mpi_read_raw_from_sgl()