Lines Matching refs:note
291 Elf64_Nhdr *note; in nt_init() local
294 note = (Elf64_Nhdr *)buf; in nt_init()
295 note->n_namesz = strlen(name) + 1; in nt_init()
296 note->n_descsz = d_len; in nt_init()
297 note->n_type = type; in nt_init()
300 memcpy(buf + len, name, note->n_namesz); in nt_init()
301 len = roundup(len + note->n_namesz, 4); in nt_init()
303 memcpy(buf + len, desc, note->n_descsz); in nt_init()
304 len = roundup(len + note->n_descsz, 4); in nt_init()
402 Elf64_Nhdr *note; in nt_s390_vx_low() local
406 note = (Elf64_Nhdr *)ptr; in nt_s390_vx_low()
407 note->n_namesz = strlen(KEXEC_CORE_NOTE_NAME) + 1; in nt_s390_vx_low()
408 note->n_descsz = 16 * 8; in nt_s390_vx_low()
409 note->n_type = NT_S390_VXRS_LOW; in nt_s390_vx_low()
412 memcpy(ptr + len, KEXEC_CORE_NOTE_NAME, note->n_namesz); in nt_s390_vx_low()
413 len = roundup(len + note->n_namesz, 4); in nt_s390_vx_low()
463 Elf64_Nhdr note; in get_vmcoreinfo_old() local
469 if (copy_from_oldmem(¬e, addr, sizeof(note))) in get_vmcoreinfo_old()
471 if (copy_from_oldmem(nt_name, addr + sizeof(note), sizeof(nt_name) - 1)) in get_vmcoreinfo_old()
475 vmcoreinfo = kzalloc_panic(note.n_descsz); in get_vmcoreinfo_old()
476 if (copy_from_oldmem(vmcoreinfo, addr + 24, note.n_descsz)) in get_vmcoreinfo_old()
478 *size = note.n_descsz; in get_vmcoreinfo_old()