Lines Matching refs:buf
317 Elf_Word *append_elf_note(Elf_Word *buf, char *name, unsigned int type, in append_elf_note() argument
320 struct elf_note *note = (struct elf_note *)buf; in append_elf_note()
325 buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf_Word)); in append_elf_note()
326 memcpy(buf, name, note->n_namesz); in append_elf_note()
327 buf += DIV_ROUND_UP(note->n_namesz, sizeof(Elf_Word)); in append_elf_note()
328 memcpy(buf, data, data_len); in append_elf_note()
329 buf += DIV_ROUND_UP(data_len, sizeof(Elf_Word)); in append_elf_note()
331 return buf; in append_elf_note()
334 void final_note(Elf_Word *buf) in final_note() argument
336 memset(buf, 0, sizeof(struct elf_note)); in final_note()
341 u32 *buf = vmcoreinfo_note; in update_vmcoreinfo_note() local
345 buf = append_elf_note(buf, VMCOREINFO_NOTE_NAME, 0, vmcoreinfo_data, in update_vmcoreinfo_note()
347 final_note(buf); in update_vmcoreinfo_note()
374 char buf[0x50]; in vmcoreinfo_append_str() local
378 r = vscnprintf(buf, sizeof(buf), fmt, args); in vmcoreinfo_append_str()
383 memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r); in vmcoreinfo_append_str()