Lines Matching refs:ent

43 	struct memtrace_entry *ent = filp->private_data;  in memtrace_read()  local
45 return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); in memtrace_read()
50 struct memtrace_entry *ent = filp->private_data; in memtrace_mmap() local
52 if (ent->size < vma->vm_end - vma->vm_start) in memtrace_mmap()
55 if (vma->vm_pgoff << PAGE_SHIFT >= ent->size) in memtrace_mmap()
59 return remap_pfn_range(vma, vma->vm_start, PHYS_PFN(ent->start) + vma->vm_pgoff, in memtrace_mmap()
190 struct memtrace_entry *ent = &memtrace_array[i]; in memtrace_init_debugfs() local
192 ent->mem = ioremap(ent->start, ent->size); in memtrace_init_debugfs()
194 if (!ent->mem) { in memtrace_init_debugfs()
196 ent->start); in memtrace_init_debugfs()
201 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs()
202 dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); in memtrace_init_debugfs()
204 ent->dir = dir; in memtrace_init_debugfs()
205 debugfs_create_file_unsafe("trace", 0600, dir, ent, &memtrace_fops); in memtrace_init_debugfs()
206 debugfs_create_x64("start", 0400, dir, &ent->start); in memtrace_init_debugfs()
207 debugfs_create_x64("size", 0400, dir, &ent->size); in memtrace_init_debugfs()
239 struct memtrace_entry *ent; in memtrace_free_regions() local
242 ent = &memtrace_array[i]; in memtrace_free_regions()
245 if (ent->nid == NUMA_NO_NODE) in memtrace_free_regions()
249 if (ent->mem) { in memtrace_free_regions()
250 iounmap(ent->mem); in memtrace_free_regions()
251 ent->mem = 0; in memtrace_free_regions()
254 if (memtrace_free(ent->nid, ent->start, ent->size)) { in memtrace_free_regions()
256 ent->nid); in memtrace_free_regions()
265 debugfs_remove_recursive(ent->dir); in memtrace_free_regions()
266 pr_info("Freed trace memory back on node %d\n", ent->nid); in memtrace_free_regions()
267 ent->size = ent->start = ent->nid = NUMA_NO_NODE; in memtrace_free_regions()