/lib/ |
D | iomap.c | 51 #define IO_COND(addr, is_pio, is_mmio) do { \ argument 52 unsigned long port = (unsigned long __force)addr; \ 68 #define mmio_read16be(addr) be16_to_cpu(__raw_readw(addr)) argument 69 #define mmio_read32be(addr) be32_to_cpu(__raw_readl(addr)) argument 72 unsigned int ioread8(void __iomem *addr) in ioread8() argument 74 IO_COND(addr, return inb(port), return readb(addr)); in ioread8() 77 unsigned int ioread16(void __iomem *addr) in ioread16() argument 79 IO_COND(addr, return inw(port), return readw(addr)); in ioread16() 82 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument 84 IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr)); in ioread16be() [all …]
|
D | ioremap.c | 61 static int ioremap_pte_range(pmd_t *pmd, unsigned long addr, in ioremap_pte_range() argument 68 pte = pte_alloc_kernel(pmd, addr); in ioremap_pte_range() 73 set_pte_at(&init_mm, addr, pte, pfn_pte(pfn, prot)); in ioremap_pte_range() 75 } while (pte++, addr += PAGE_SIZE, addr != end); in ioremap_pte_range() 79 static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr, in ioremap_pmd_range() argument 85 phys_addr -= addr; in ioremap_pmd_range() 86 pmd = pmd_alloc(&init_mm, pud, addr); in ioremap_pmd_range() 90 next = pmd_addr_end(addr, end); in ioremap_pmd_range() 93 ((next - addr) == PMD_SIZE) && in ioremap_pmd_range() 94 IS_ALIGNED(phys_addr + addr, PMD_SIZE) && in ioremap_pmd_range() [all …]
|
D | find_bit.c | 31 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 …]
|
D | devres.c | 29 void __iomem **ptr, *addr; in devm_ioremap() local 35 addr = ioremap(offset, size); in devm_ioremap() 36 if (addr) { in devm_ioremap() 37 *ptr = addr; in devm_ioremap() 42 return addr; in devm_ioremap() 58 void __iomem **ptr, *addr; in devm_ioremap_nocache() local 64 addr = ioremap_nocache(offset, size); in devm_ioremap_nocache() 65 if (addr) { in devm_ioremap_nocache() 66 *ptr = addr; in devm_ioremap_nocache() 71 return addr; in devm_ioremap_nocache() [all …]
|
D | debugobjects.c | 125 static struct debug_obj *lookup_object(void *addr, struct debug_bucket *b) in lookup_object() argument 132 if (obj->object == addr) in lookup_object() 146 alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr) in alloc_object() argument 154 obj->object = addr; in alloc_object() 270 static struct debug_bucket *get_bucket(unsigned long addr) in get_bucket() argument 274 hash = hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS); in get_bucket() 300 debug_object_fixup(bool (*fixup)(void *addr, enum debug_obj_state state), in debug_object_fixup() argument 301 void * addr, enum debug_obj_state state) in debug_object_fixup() 303 if (fixup && fixup(addr, state)) { in debug_object_fixup() 310 static void debug_object_is_on_stack(void *addr, int onstack) in debug_object_is_on_stack() argument [all …]
|
D | genalloc.c | 45 static int set_bits_ll(unsigned long *addr, unsigned long mask_to_set) in set_bits_ll() argument 49 nval = *addr; in set_bits_ll() 55 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll() 60 static int clear_bits_ll(unsigned long *addr, unsigned long mask_to_clear) in clear_bits_ll() argument 64 nval = *addr; in clear_bits_ll() 70 } while ((nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val); in clear_bits_ll() 215 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys() argument 222 if (addr >= chunk->start_addr && addr <= chunk->end_addr) { in gen_pool_virt_to_phys() 223 paddr = chunk->phys_addr + (addr - chunk->start_addr); in gen_pool_virt_to_phys() 294 unsigned long addr = 0; in gen_pool_alloc_algo() local [all …]
|
D | atomic64.c | 42 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()
|
D | stmp_device.c | 30 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()
|
D | test_printf.c | 294 addr(void) in addr() function 317 const u8 addr[6] = {0x2d, 0x48, 0xd6, 0xfc, 0x7a, 0x05}; in mac() local 319 test("2d:48:d6:fc:7a:05", "%pM", addr); in mac() 320 test("05:7a:fc:d6:48:2d", "%pMR", addr); in mac() 321 test("2d-48-d6-fc-7a-05", "%pMF", addr); in mac() 322 test("2d48d6fc7a05", "%pm", addr); in mac() 323 test("057afcd6482d", "%pmR", addr); in mac() 504 addr(); in test_pointer()
|
D | iov_iter.c | 466 char *addr = kmap_atomic(page); in memzero_page() local 467 memset(addr + offset, 0, len); in memzero_page() 468 kunmap_atomic(addr); in memzero_page() 533 static size_t copy_pipe_to_iter(const void *addr, size_t bytes, in copy_pipe_to_iter() argument 548 memcpy_to_page(pipe->bufs[idx].page, off, addr, chunk); in copy_pipe_to_iter() 552 addr += chunk; in copy_pipe_to_iter() 558 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in _copy_to_iter() argument 560 const char *from = addr; in _copy_to_iter() 562 return copy_pipe_to_iter(addr, bytes, i); in _copy_to_iter() 576 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) in _copy_from_iter() argument [all …]
|
D | vsprintf.c | 806 char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, in hex_string() argument 817 if (ZERO_OR_NULL_PTR(addr)) in hex_string() 841 *buf = hex_asc_hi(addr[i]); in hex_string() 844 *buf = hex_asc_lo(addr[i]); in hex_string() 939 char *mac_address_string(char *buf, char *end, u8 *addr, in mac_address_string() argument 964 p = hex_byte_pack(p, addr[5 - i]); in mac_address_string() 966 p = hex_byte_pack(p, addr[i]); in mac_address_string() 977 char *ip4_string(char *p, const u8 *addr, const char *fmt) in ip4_string() argument 1007 int digits = put_dec_trunc8(temp, addr[index]) - temp; in ip4_string() 1027 char *ip6_compressed_string(char *p, const char *addr) in ip6_compressed_string() argument [all …]
|
D | dma-debug.c | 1180 void *addr; in check_for_stack() local 1187 addr = page_address(page) + offset; in check_for_stack() 1188 if (object_is_on_stack(addr)) in check_for_stack() 1189 err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [addr=%p]\n", addr); in check_for_stack() 1198 addr = (u8 *)current->stack + i * PAGE_SIZE + offset; in check_for_stack() 1199 … err_printk(dev, NULL, "DMA-API: device driver maps memory from stack [probable addr=%p]\n", addr); in check_for_stack() 1205 static inline bool overlap(void *addr, unsigned long len, void *start, void *end) in overlap() argument 1207 unsigned long a1 = (unsigned long)addr; in overlap() 1215 static void check_for_illegal_area(struct device *dev, void *addr, unsigned long len) in check_for_illegal_area() argument 1217 if (overlap(addr, len, _stext, _etext) || in check_for_illegal_area() [all …]
|
D | scatterlist.c | 693 miter->addr = kmap_atomic(miter->page) + miter->__offset; in sg_miter_next() 695 miter->addr = kmap(miter->page) + miter->__offset; in sg_miter_next() 720 if (miter->addr) { in sg_miter_stop() 730 kunmap_atomic(miter->addr); in sg_miter_stop() 735 miter->addr = NULL; in sg_miter_stop() 778 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer() 780 memcpy(miter.addr, buf + offset, len); in sg_copy_buffer() 886 memset(miter.addr, 0, len); in sg_zero_buffer()
|
D | percpu_counter.c | 23 static bool percpu_counter_fixup_free(void *addr, enum debug_obj_state state) in percpu_counter_fixup_free() argument 25 struct percpu_counter *fbc = addr; in percpu_counter_fixup_free()
|
D | string.c | 898 void *memscan(void *addr, int c, size_t size) in memscan() argument 900 unsigned char *p = addr; in memscan()
|
D | radix-tree.c | 234 const unsigned long *addr = node->tags[tag]; in radix_tree_find_next_bit() local 239 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit() 240 tmp = *addr >> (offset % BITS_PER_LONG); in radix_tree_find_next_bit() 245 tmp = *++addr; in radix_tree_find_next_bit()
|
/lib/xz/ |
D | xz_dec_bcj.c | 211 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/ |
D | mpicoder.c | 276 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()
|