Lines Matching refs:note
257 Elf64_Nhdr *note; in nt_init() local
260 note = (Elf64_Nhdr *)buf; in nt_init()
261 note->n_namesz = strlen(name) + 1; in nt_init()
262 note->n_descsz = d_len; in nt_init()
263 note->n_type = type; in nt_init()
266 memcpy(buf + len, name, note->n_namesz); in nt_init()
267 len = roundup(len + note->n_namesz, 4); in nt_init()
269 memcpy(buf + len, desc, note->n_descsz); in nt_init()
270 len = roundup(len + note->n_descsz, 4); in nt_init()
368 Elf64_Nhdr *note; in nt_s390_vx_low() local
372 note = (Elf64_Nhdr *)ptr; in nt_s390_vx_low()
373 note->n_namesz = strlen(KEXEC_CORE_NOTE_NAME) + 1; in nt_s390_vx_low()
374 note->n_descsz = 16 * 8; in nt_s390_vx_low()
375 note->n_type = NT_S390_VXRS_LOW; in nt_s390_vx_low()
378 memcpy(ptr + len, KEXEC_CORE_NOTE_NAME, note->n_namesz); in nt_s390_vx_low()
379 len = roundup(len + note->n_namesz, 4); in nt_s390_vx_low()
429 Elf64_Nhdr note; in get_vmcoreinfo_old() local
435 if (copy_from_oldmem(¬e, addr, sizeof(note))) in get_vmcoreinfo_old()
437 if (copy_from_oldmem(nt_name, addr + sizeof(note), sizeof(nt_name) - 1)) in get_vmcoreinfo_old()
441 vmcoreinfo = kzalloc_panic(note.n_descsz); in get_vmcoreinfo_old()
442 if (copy_from_oldmem(vmcoreinfo, addr + 24, note.n_descsz)) in get_vmcoreinfo_old()
444 *size = note.n_descsz; in get_vmcoreinfo_old()