Lines Matching refs:addr
44 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
325 addr = chunk->start_addr + ((unsigned long)start_bit << order); in gen_pool_alloc_algo()
331 return addr; in gen_pool_alloc_algo()
374 void gen_pool_free(struct gen_pool *pool, unsigned long addr, size_t size) in gen_pool_free() argument
387 if (addr >= chunk->start_addr && addr <= chunk->end_addr) { in gen_pool_free()
388 BUG_ON(addr + size - 1 > chunk->end_addr); in gen_pool_free()
389 start_bit = (addr - chunk->start_addr) >> order; in gen_pool_free()