Searched refs:rmap (Results 1 – 1 of 1) sorted by relevance
27 struct cpu_rmap *rmap; in alloc_cpu_rmap() local39 rmap = kzalloc(obj_offset + size * sizeof(rmap->obj[0]), flags); in alloc_cpu_rmap()40 if (!rmap) in alloc_cpu_rmap()43 kref_init(&rmap->refcount); in alloc_cpu_rmap()44 rmap->obj = (void **)((char *)rmap + obj_offset); in alloc_cpu_rmap()53 rmap->near[cpu].index = cpu % size; in alloc_cpu_rmap()54 rmap->near[cpu].dist = CPU_RMAP_DIST_INF; in alloc_cpu_rmap()57 rmap->size = size; in alloc_cpu_rmap()58 return rmap; in alloc_cpu_rmap()68 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount); in cpu_rmap_release() local[all …]