/lib/ |
D | iomap.c | 50 #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 …]
|
D | ioremap.c | 53 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 …]
|
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 | 28 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 …]
|
D | debugobjects.c | 113 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(int (*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() 279 fixed = fixup(addr, state); in debug_object_fixup() 284 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() 216 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys() argument 223 if (addr >= chunk->start_addr && addr <= chunk->end_addr) { in gen_pool_virt_to_phys() 224 paddr = chunk->phys_addr + (addr - chunk->start_addr); in gen_pool_virt_to_phys() 276 unsigned long addr = 0; in gen_pool_alloc() local [all …]
|
D | test_printf.c | 205 addr(void) in addr() function 228 const u8 addr[6] = {0x2d, 0x48, 0xd6, 0xfc, 0x7a, 0x05}; in mac() local 230 test("2d:48:d6:fc:7a:05", "%pM", addr); in mac() 231 test("05:7a:fc:d6:48:2d", "%pMR", addr); in mac() 232 test("2d-48-d6-fc-7a-05", "%pMF", addr); in mac() 233 test("2d48d6fc7a05", "%pm", addr); in mac() 234 test("057afcd6482d", "%pmR", addr); in mac() 324 addr(); in test_pointer()
|
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 | iov_iter.c | 361 char *addr = kmap_atomic(page); in memzero_page() local 362 memset(addr + offset, 0, len); in memzero_page() 363 kunmap_atomic(addr); in memzero_page() 366 size_t copy_to_iter(void *addr, size_t bytes, struct iov_iter *i) in copy_to_iter() argument 368 char *from = addr; in copy_to_iter() 387 size_t copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter() argument 389 char *to = addr; in copy_from_iter() 408 size_t copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i) in copy_from_iter_nocache() argument 410 char *to = addr; in copy_from_iter_nocache() 563 unsigned long addr = (unsigned long)v.iov_base; in iov_iter_get_pages() [all …]
|
D | vsprintf.c | 756 char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, in hex_string() argument 767 if (ZERO_OR_NULL_PTR(addr)) in hex_string() 791 *buf = hex_asc_hi(addr[i]); in hex_string() 794 *buf = hex_asc_lo(addr[i]); in hex_string() 889 char *mac_address_string(char *buf, char *end, u8 *addr, in mac_address_string() argument 914 p = hex_byte_pack(p, addr[5 - i]); in mac_address_string() 916 p = hex_byte_pack(p, addr[i]); in mac_address_string() 927 char *ip4_string(char *p, const u8 *addr, const char *fmt) in ip4_string() argument 957 int digits = put_dec_trunc8(temp, addr[index]) - temp; in ip4_string() 977 char *ip6_compressed_string(char *p, const char *addr) in ip6_compressed_string() argument [all …]
|
D | scatterlist.c | 588 miter->addr = kmap_atomic(miter->page) + miter->__offset; in sg_miter_next() 590 miter->addr = kmap(miter->page) + miter->__offset; in sg_miter_next() 615 if (miter->addr) { in sg_miter_stop() 625 kunmap_atomic(miter->addr); in sg_miter_stop() 630 miter->addr = NULL; in sg_miter_stop() 676 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer() 678 memcpy(miter.addr, buf + offset, len); in sg_copy_buffer()
|
D | dma-debug.c | 1166 static void check_for_stack(struct device *dev, void *addr) in check_for_stack() argument 1168 if (object_is_on_stack(addr)) in check_for_stack() 1170 "stack [addr=%p]\n", addr); in check_for_stack() 1173 static inline bool overlap(void *addr, unsigned long len, void *start, void *end) in overlap() argument 1175 unsigned long a1 = (unsigned long)addr; in overlap() 1183 static void check_for_illegal_area(struct device *dev, void *addr, unsigned long len) in check_for_illegal_area() argument 1185 if (overlap(addr, len, _stext, _etext) || in check_for_illegal_area() 1186 overlap(addr, len, __start_rodata, __end_rodata)) in check_for_illegal_area() 1187 … "DMA-API: device driver maps memory from kernel text or rodata [addr=%p] [len=%lu]\n", addr, len); in check_for_illegal_area() 1294 void *addr = page_address(page) + offset; in debug_dma_map_page() local [all …]
|
D | percpu_counter.c | 22 static int 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()
|
D | radix-tree.c | 152 radix_tree_find_next_bit(const unsigned long *addr, in radix_tree_find_next_bit() argument 156 return find_next_bit(addr, size, offset); in radix_tree_find_next_bit() 161 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit() 162 tmp = *addr >> (offset % BITS_PER_LONG); in radix_tree_find_next_bit() 167 tmp = *++addr; in radix_tree_find_next_bit()
|
D | string.c | 902 void *memscan(void *addr, int c, size_t size) in memscan() argument 904 unsigned char *p = addr; in memscan()
|
/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 …]
|