Lines Matching refs:buf
297 Elf_Word *append_elf_note(Elf_Word *buf, char *name, unsigned int type, in append_elf_note() argument
300 struct elf_note *note = (struct elf_note *)buf; in append_elf_note()
305 buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf_Word)); in append_elf_note()
306 memcpy(buf, name, note->n_namesz); in append_elf_note()
307 buf += DIV_ROUND_UP(note->n_namesz, sizeof(Elf_Word)); in append_elf_note()
308 memcpy(buf, data, data_len); in append_elf_note()
309 buf += DIV_ROUND_UP(data_len, sizeof(Elf_Word)); in append_elf_note()
311 return buf; in append_elf_note()
314 void final_note(Elf_Word *buf) in final_note() argument
316 memset(buf, 0, sizeof(struct elf_note)); in final_note()
321 u32 *buf = vmcoreinfo_note; in update_vmcoreinfo_note() local
325 buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, 0, vmcoreinfo_data, in update_vmcoreinfo_note()
327 final_note(buf); in update_vmcoreinfo_note()
354 char buf[0x50]; in vmcoreinfo_append_str() local
358 r = vscnprintf(buf, sizeof(buf), fmt, args); in vmcoreinfo_append_str()
363 memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r); in vmcoreinfo_append_str()