Lines Matching refs:note
259 Elf64_Nhdr *note; in nt_init() local
262 note = (Elf64_Nhdr *)buf; in nt_init()
263 note->n_namesz = strlen(name) + 1; in nt_init()
264 note->n_descsz = d_len; in nt_init()
265 note->n_type = type; in nt_init()
268 memcpy(buf + len, name, note->n_namesz); in nt_init()
269 len = roundup(len + note->n_namesz, 4); in nt_init()
271 memcpy(buf + len, desc, note->n_descsz); in nt_init()
272 len = roundup(len + note->n_descsz, 4); in nt_init()
370 Elf64_Nhdr *note; in nt_s390_vx_low() local
374 note = (Elf64_Nhdr *)ptr; in nt_s390_vx_low()
375 note->n_namesz = strlen(LINUX_NOTE_NAME) + 1; in nt_s390_vx_low()
376 note->n_descsz = 16 * 8; in nt_s390_vx_low()
377 note->n_type = NT_S390_VXRS_LOW; in nt_s390_vx_low()
380 memcpy(ptr + len, LINUX_NOTE_NAME, note->n_namesz); in nt_s390_vx_low()
381 len = roundup(len + note->n_namesz, 4); in nt_s390_vx_low()
431 Elf64_Nhdr note; in get_vmcoreinfo_old() local
437 if (copy_from_oldmem(¬e, addr, sizeof(note))) in get_vmcoreinfo_old()
439 if (copy_from_oldmem(nt_name, addr + sizeof(note), sizeof(nt_name) - 1)) in get_vmcoreinfo_old()
443 vmcoreinfo = kzalloc_panic(note.n_descsz); in get_vmcoreinfo_old()
444 if (copy_from_oldmem(vmcoreinfo, addr + 24, note.n_descsz)) in get_vmcoreinfo_old()
446 *size = note.n_descsz; in get_vmcoreinfo_old()
471 Elf64_Nhdr *note; in nt_final() local
473 note = (Elf64_Nhdr *) ptr; in nt_final()
474 note->n_namesz = 0; in nt_final()
475 note->n_descsz = 0; in nt_final()
476 note->n_type = 0; in nt_final()