Lines Matching refs:note
255 Elf64_Nhdr *note; in nt_init_name() local
258 note = (Elf64_Nhdr *)buf; in nt_init_name()
259 note->n_namesz = strlen(name) + 1; in nt_init_name()
260 note->n_descsz = d_len; in nt_init_name()
261 note->n_type = type; in nt_init_name()
264 memcpy(buf + len, name, note->n_namesz); in nt_init_name()
265 len = roundup(len + note->n_namesz, 4); in nt_init_name()
267 memcpy(buf + len, desc, note->n_descsz); in nt_init_name()
268 len = roundup(len + note->n_descsz, 4); in nt_init_name()
375 Elf64_Nhdr note; in get_vmcoreinfo_old() local
380 if (copy_oldmem_kernel(¬e, addr, sizeof(note))) in get_vmcoreinfo_old()
382 if (copy_oldmem_kernel(nt_name, addr + sizeof(note), in get_vmcoreinfo_old()
387 vmcoreinfo = kzalloc(note.n_descsz, GFP_KERNEL); in get_vmcoreinfo_old()
390 if (copy_oldmem_kernel(vmcoreinfo, addr + 24, note.n_descsz)) { in get_vmcoreinfo_old()
394 *size = note.n_descsz; in get_vmcoreinfo_old()
442 Elf64_Nhdr *note; in nt_final() local
444 note = (Elf64_Nhdr *) ptr; in nt_final()
445 note->n_namesz = 0; in nt_final()
446 note->n_descsz = 0; in nt_final()
447 note->n_type = 0; in nt_final()