/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) swab16(readw(addr)) argument 69 #define mmio_read32be(addr) swab32(readl(addr)) argument 70 #define mmio_read64be(addr) swab64(readq(addr)) argument 73 unsigned int ioread8(void __iomem *addr) in ioread8() argument 75 IO_COND(addr, return inb(port), return readb(addr)); in ioread8() 78 unsigned int ioread16(void __iomem *addr) in ioread16() argument 80 IO_COND(addr, return inw(port), return readw(addr)); in ioread16() 83 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument [all …]
|
D | ioremap.c | 63 static int ioremap_pte_range(pmd_t *pmd, unsigned long addr, in ioremap_pte_range() argument 70 pte = pte_alloc_kernel(pmd, addr); in ioremap_pte_range() 75 set_pte_at(&init_mm, addr, pte, pfn_pte(pfn, prot)); in ioremap_pte_range() 77 } while (pte++, addr += PAGE_SIZE, addr != end); in ioremap_pte_range() 81 static int ioremap_try_huge_pmd(pmd_t *pmd, unsigned long addr, in ioremap_try_huge_pmd() argument 88 if ((end - addr) != PMD_SIZE) in ioremap_try_huge_pmd() 91 if (!IS_ALIGNED(addr, PMD_SIZE)) in ioremap_try_huge_pmd() 97 if (pmd_present(*pmd) && !pmd_free_pte_page(pmd, addr)) in ioremap_try_huge_pmd() 103 static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr, in ioremap_pmd_range() argument 109 pmd = pmd_alloc(&init_mm, pud, addr); in ioremap_pmd_range() [all …]
|
D | logic_pio.c | 188 resource_size_t addr, resource_size_t size) in logic_pio_trans_hwaddr() argument 202 return addr - range->hw_start + range->io_start; in logic_pio_trans_hwaddr() 205 unsigned long logic_pio_trans_cpuaddr(resource_size_t addr) in logic_pio_trans_cpuaddr() argument 213 if (in_range(addr, range->hw_start, range->size)) { in logic_pio_trans_cpuaddr() 216 cpuaddr = addr - range->hw_start + range->io_start; in logic_pio_trans_cpuaddr() 224 pr_err("addr %pa not registered in io_range_list\n", &addr); in logic_pio_trans_cpuaddr() 231 type logic_in##bw(unsigned long addr) \ 235 if (addr < MMIO_UPPER_LIMIT) { \ 236 ret = read##bw(PCI_IOBASE + addr); \ 237 } else if (addr >= MMIO_UPPER_LIMIT && addr < IO_SPACE_LIMIT) { \ [all …]
|
D | find_bit.c | 67 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument 70 return _find_next_bit(addr, NULL, size, offset, 0UL); in find_next_bit() 76 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit() argument 79 return _find_next_bit(addr, NULL, size, offset, ~0UL); in find_next_zero_bit() 98 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit() argument 103 if (addr[idx]) in find_first_bit() 104 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 116 unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size) in find_first_zero_bit() argument 121 if (addr[idx] != ~0UL) in find_first_zero_bit() 122 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit() [all …]
|
D | debugobjects.c | 186 static struct debug_obj *lookup_object(void *addr, struct debug_bucket *b) in lookup_object() argument 193 if (obj->object == addr) in lookup_object() 222 alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr) in alloc_object() argument 272 obj->object = addr; in alloc_object() 464 static struct debug_bucket *get_bucket(unsigned long addr) in get_bucket() argument 468 hash = hash_long((addr >> ODEBUG_CHUNK_SHIFT), ODEBUG_HASH_BITS); in get_bucket() 494 debug_object_fixup(bool (*fixup)(void *addr, enum debug_obj_state state), in debug_object_fixup() argument 495 void * addr, enum debug_obj_state state) in debug_object_fixup() 497 if (fixup && fixup(addr, state)) { in debug_object_fixup() 504 static void debug_object_is_on_stack(void *addr, int onstack) in debug_object_is_on_stack() argument [all …]
|
D | devres.c | 29 void __iomem **ptr, *addr = NULL; in __devm_ioremap() local 37 addr = ioremap(offset, size); in __devm_ioremap() 40 addr = ioremap_nocache(offset, size); in __devm_ioremap() 43 addr = ioremap_wc(offset, size); in __devm_ioremap() 47 if (addr) { in __devm_ioremap() 48 *ptr = addr; in __devm_ioremap() 53 return addr; in __devm_ioremap() 109 void devm_iounmap(struct device *dev, void __iomem *addr) in devm_iounmap() argument 112 (__force void *)addr)); in devm_iounmap() 113 iounmap(addr); in devm_iounmap() [all …]
|
D | error-inject.c | 23 bool within_error_injection_list(unsigned long addr) in within_error_injection_list() argument 30 if (addr >= ent->start_addr && addr < ent->end_addr) { in within_error_injection_list() 39 int get_injectable_error_type(unsigned long addr) in get_injectable_error_type() argument 44 if (addr >= ent->start_addr && addr < ent->end_addr) in get_injectable_error_type() 67 entry = arch_deref_entry_point((void *)iter->addr); in populate_error_injection_list()
|
D | genalloc.c | 43 static int set_bits_ll(unsigned long *addr, unsigned long mask_to_set) in set_bits_ll() argument 47 nval = *addr; in set_bits_ll() 53 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll() 58 static int clear_bits_ll(unsigned long *addr, unsigned long mask_to_clear) in clear_bits_ll() argument 62 nval = *addr; in clear_bits_ll() 68 } 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() 279 unsigned long addr = 0; in gen_pool_alloc_algo_owner() local [all …]
|
D | stmp_device.c | 26 static int stmp_clear_poll_bit(void __iomem *addr, u32 mask) in stmp_clear_poll_bit() argument 30 writel(mask, addr + STMP_OFFSET_REG_CLR); in stmp_clear_poll_bit() 32 while ((readl(addr) & mask) && --timeout) in stmp_clear_poll_bit()
|
D | atomic64.c | 38 unsigned long addr = (unsigned long) v; in lock_addr() local 40 addr >>= L1_CACHE_SHIFT; in lock_addr() 41 addr ^= (addr >> 8) ^ (addr >> 16); in lock_addr() 42 return &atomic64_lock[addr & (NR_LOCKS - 1)].lock; in lock_addr()
|
D | iov_iter.c | 473 char *addr = kmap_atomic(page); in memzero_page() local 474 memset(addr + offset, 0, len); in memzero_page() 475 kunmap_atomic(addr); in memzero_page() 540 static size_t copy_pipe_to_iter(const void *addr, size_t bytes, in copy_pipe_to_iter() argument 555 memcpy_to_page(pipe->bufs[idx].page, off, addr, chunk); in copy_pipe_to_iter() 559 addr += chunk; in copy_pipe_to_iter() 572 static size_t csum_and_copy_to_pipe_iter(const void *addr, size_t bytes, in csum_and_copy_to_pipe_iter() argument 590 sum = csum_and_memcpy(p + r, addr, chunk, sum, off); in csum_and_copy_to_pipe_iter() 596 addr += chunk; in csum_and_copy_to_pipe_iter() 603 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in _copy_to_iter() argument [all …]
|
D | test_printf.c | 366 addr(void) in addr() function 389 const u8 addr[6] = {0x2d, 0x48, 0xd6, 0xfc, 0x7a, 0x05}; in mac() local 391 test("2d:48:d6:fc:7a:05", "%pM", addr); in mac() 392 test("05:7a:fc:d6:48:2d", "%pMR", addr); in mac() 393 test("2d-48-d6-fc-7a-05", "%pMF", addr); in mac() 394 test("2d48d6fc7a05", "%pm", addr); in mac() 395 test("057afcd6482d", "%pmR", addr); in mac() 605 addr(); in test_pointer()
|
D | vsprintf.c | 1082 char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, in hex_string() argument 1093 if (check_pointer(&buf, end, addr, spec)) in hex_string() 1116 *buf = hex_asc_hi(addr[i]); in hex_string() 1119 *buf = hex_asc_lo(addr[i]); in hex_string() 1217 char *mac_address_string(char *buf, char *end, u8 *addr, in mac_address_string() argument 1226 if (check_pointer(&buf, end, addr, spec)) in mac_address_string() 1245 p = hex_byte_pack(p, addr[5 - i]); in mac_address_string() 1247 p = hex_byte_pack(p, addr[i]); in mac_address_string() 1258 char *ip4_string(char *p, const u8 *addr, const char *fmt) in ip4_string() argument 1288 int digits = put_dec_trunc8(temp, addr[index]) - temp; in ip4_string() [all …]
|
D | scatterlist.c | 778 miter->addr = kmap_atomic(miter->page) + miter->__offset; in sg_miter_next() 780 miter->addr = kmap(miter->page) + miter->__offset; in sg_miter_next() 805 if (miter->addr) { in sg_miter_stop() 815 kunmap_atomic(miter->addr); in sg_miter_stop() 820 miter->addr = NULL; in sg_miter_stop() 863 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer() 865 memcpy(miter.addr, buf + offset, len); in sg_copy_buffer() 971 memset(miter.addr, 0, len); in sg_zero_buffer()
|
D | percpu_counter.c | 22 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()
|
D | radix-tree.c | 192 const unsigned long *addr = node->tags[tag]; in radix_tree_find_next_bit() local 197 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit() 198 tmp = *addr >> (offset % BITS_PER_LONG); in radix_tree_find_next_bit() 203 tmp = *++addr; in radix_tree_find_next_bit()
|
D | string.c | 922 void *memscan(void *addr, int c, size_t size) in memscan() argument 924 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 …]
|
/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()
|