Lines Matching refs:size
44 void *amiga_chip_alloc(unsigned long size, const char *name) in amiga_chip_alloc() argument
54 p = amiga_chip_alloc_res(size, res); in amiga_chip_alloc()
72 void *amiga_chip_alloc_res(unsigned long size, struct resource *res) in amiga_chip_alloc_res() argument
77 size = PAGE_ALIGN(size); in amiga_chip_alloc_res()
79 pr_debug("amiga_chip_alloc_res: allocate %lu bytes\n", size); in amiga_chip_alloc_res()
80 error = allocate_resource(&chipram_res, res, size, 0, UINT_MAX, in amiga_chip_alloc_res()
88 atomic_sub(size, &chipavail); in amiga_chip_alloc_res()
97 unsigned long size; in amiga_chip_free() local
106 size = resource_size(res); in amiga_chip_free()
107 pr_debug("amiga_chip_free: free %lu bytes at %p\n", size, ptr); in amiga_chip_free()
108 atomic_add(size, &chipavail); in amiga_chip_free()