Lines Matching full:ent

141 	struct kcore_list *ent;  in kcore_ram_list()  local
143 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kcore_ram_list()
144 if (!ent) in kcore_ram_list()
146 ent->addr = (unsigned long)__va(0); in kcore_ram_list()
147 ent->size = max_low_pfn << PAGE_SHIFT; in kcore_ram_list()
148 ent->type = KCORE_RAM; in kcore_ram_list()
149 list_add(&ent->list, head); in kcore_ram_list()
158 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument
160 unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT; in get_sparsemem_vmemmap_info()
161 unsigned long nr_pages = ent->size >> PAGE_SHIFT; in get_sparsemem_vmemmap_info()
191 get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) in get_sparsemem_vmemmap_info() argument
202 struct kcore_list *ent; in kclist_add_private() local
210 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in kclist_add_private()
211 if (!ent) in kclist_add_private()
213 ent->addr = (unsigned long)page_to_virt(p); in kclist_add_private()
214 ent->size = nr_pages << PAGE_SHIFT; in kclist_add_private()
216 if (!virt_addr_valid((void *)ent->addr)) in kclist_add_private()
220 if (ULONG_MAX - ent->addr < ent->size) in kclist_add_private()
221 ent->size = ULONG_MAX - ent->addr; in kclist_add_private()
228 if (VMALLOC_START > ent->addr) { in kclist_add_private()
229 if (VMALLOC_START - ent->addr < ent->size) in kclist_add_private()
230 ent->size = VMALLOC_START - ent->addr; in kclist_add_private()
233 ent->type = KCORE_RAM; in kclist_add_private()
234 list_add_tail(&ent->list, head); in kclist_add_private()
236 if (!get_sparsemem_vmemmap_info(ent, head)) { in kclist_add_private()
237 list_del(&ent->list); in kclist_add_private()
243 kfree(ent); in kclist_add_private()