Lines Matching refs:ptr

312 static void *nt_prstatus(void *ptr, struct save_area *sa)  in nt_prstatus()  argument
324 return nt_init(ptr, NT_PRSTATUS, &nt_prstatus, sizeof(nt_prstatus), in nt_prstatus()
331 static void *nt_fpregset(void *ptr, struct save_area *sa) in nt_fpregset() argument
339 return nt_init(ptr, NT_PRFPREG, &nt_fpregset, sizeof(nt_fpregset), in nt_fpregset()
346 static void *nt_s390_timer(void *ptr, struct save_area *sa) in nt_s390_timer() argument
348 return nt_init(ptr, NT_S390_TIMER, &sa->timer, sizeof(sa->timer), in nt_s390_timer()
355 static void *nt_s390_tod_cmp(void *ptr, struct save_area *sa) in nt_s390_tod_cmp() argument
357 return nt_init(ptr, NT_S390_TODCMP, &sa->clk_cmp, in nt_s390_tod_cmp()
364 static void *nt_s390_tod_preg(void *ptr, struct save_area *sa) in nt_s390_tod_preg() argument
366 return nt_init(ptr, NT_S390_TODPREG, &sa->tod_reg, in nt_s390_tod_preg()
373 static void *nt_s390_ctrs(void *ptr, struct save_area *sa) in nt_s390_ctrs() argument
375 return nt_init(ptr, NT_S390_CTRS, &sa->ctrl_regs, in nt_s390_ctrs()
382 static void *nt_s390_prefix(void *ptr, struct save_area *sa) in nt_s390_prefix() argument
384 return nt_init(ptr, NT_S390_PREFIX, &sa->pref_reg, in nt_s390_prefix()
391 static void *nt_s390_vx_high(void *ptr, __vector128 *vx_regs) in nt_s390_vx_high() argument
393 return nt_init(ptr, NT_S390_VXRS_HIGH, &vx_regs[16], in nt_s390_vx_high()
400 static void *nt_s390_vx_low(void *ptr, __vector128 *vx_regs) in nt_s390_vx_low() argument
406 note = (Elf64_Nhdr *)ptr; in nt_s390_vx_low()
412 memcpy(ptr + len, KEXEC_CORE_NOTE_NAME, note->n_namesz); in nt_s390_vx_low()
415 ptr += len; in nt_s390_vx_low()
418 memcpy(ptr, &vx_regs[i].u[2], 8); in nt_s390_vx_low()
419 ptr += 8; in nt_s390_vx_low()
421 return ptr; in nt_s390_vx_low()
427 void *fill_cpu_elf_notes(void *ptr, struct save_area *sa, __vector128 *vx_regs) in fill_cpu_elf_notes() argument
429 ptr = nt_prstatus(ptr, sa); in fill_cpu_elf_notes()
430 ptr = nt_fpregset(ptr, sa); in fill_cpu_elf_notes()
431 ptr = nt_s390_timer(ptr, sa); in fill_cpu_elf_notes()
432 ptr = nt_s390_tod_cmp(ptr, sa); in fill_cpu_elf_notes()
433 ptr = nt_s390_tod_preg(ptr, sa); in fill_cpu_elf_notes()
434 ptr = nt_s390_ctrs(ptr, sa); in fill_cpu_elf_notes()
435 ptr = nt_s390_prefix(ptr, sa); in fill_cpu_elf_notes()
437 ptr = nt_s390_vx_low(ptr, vx_regs); in fill_cpu_elf_notes()
438 ptr = nt_s390_vx_high(ptr, vx_regs); in fill_cpu_elf_notes()
440 return ptr; in fill_cpu_elf_notes()
446 static void *nt_prpsinfo(void *ptr) in nt_prpsinfo() argument
453 return nt_init(ptr, NT_PRPSINFO, &prpsinfo, sizeof(prpsinfo), in nt_prpsinfo()
485 static void *nt_vmcoreinfo(void *ptr) in nt_vmcoreinfo() argument
494 return ptr; in nt_vmcoreinfo()
495 return nt_init(ptr, 0, vmcoreinfo, size, "VMCOREINFO"); in nt_vmcoreinfo()
571 static void *notes_init(Elf64_Phdr *phdr, void *ptr, u64 notes_offset) in notes_init() argument
574 void *ptr_start = ptr; in notes_init()
577 ptr = nt_prpsinfo(ptr); in notes_init()
583 ptr = fill_cpu_elf_notes(ptr, &sa_ext->sa, sa_ext->vx_regs); in notes_init()
585 ptr = nt_vmcoreinfo(ptr); in notes_init()
589 phdr->p_filesz = (unsigned long) PTR_SUB(ptr, ptr_start); in notes_init()
591 return ptr; in notes_init()
601 void *ptr, *hdr; in elfcorehdr_alloc() local
628 ptr = ehdr_init(hdr, mem_chunk_cnt); in elfcorehdr_alloc()
630 phdr_notes = ptr; in elfcorehdr_alloc()
631 ptr = PTR_ADD(ptr, sizeof(Elf64_Phdr)); in elfcorehdr_alloc()
632 phdr_loads = ptr; in elfcorehdr_alloc()
633 ptr = PTR_ADD(ptr, sizeof(Elf64_Phdr) * mem_chunk_cnt); in elfcorehdr_alloc()
635 hdr_off = PTR_DIFF(ptr, hdr); in elfcorehdr_alloc()
636 ptr = notes_init(phdr_notes, ptr, ((unsigned long) hdr) + hdr_off); in elfcorehdr_alloc()
638 hdr_off = PTR_DIFF(ptr, hdr); in elfcorehdr_alloc()