Lines Matching refs:segs
1445 static void fill_elf_header(struct elfhdr *elf, int segs, in fill_elf_header() argument
1463 elf->e_phnum = segs; in fill_elf_header()
2190 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument
2202 shdr4extnum->sh_info = segs; in fill_extnum_info()
2216 int segs, i; in elf_core_dump() local
2248 segs = current->mm->map_count; in elf_core_dump()
2249 segs += elf_core_extra_phdrs(); in elf_core_dump()
2253 segs++; in elf_core_dump()
2256 segs++; in elf_core_dump()
2261 e_phnum = segs > PN_XNUM ? PN_XNUM : segs; in elf_core_dump()
2276 offset += segs * sizeof(struct elf_phdr); /* Program headers */ in elf_core_dump()
2294 if (segs - 1 > ULONG_MAX / sizeof(*vma_filesz)) in elf_core_dump()
2296 vma_filesz = kvmalloc(array_size(sizeof(*vma_filesz), (segs - 1)), in elf_core_dump()
2318 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_core_dump()