Lines Matching refs:foffset
1193 #define DUMP_WRITE(addr, nr, foffset) \
1194 do { if (!dump_write(file, (addr), (nr))) return 0; *foffset += (nr); } while(0)
1196 static int alignfile(struct file *file, loff_t *foffset)
1199 DUMP_WRITE(buf, roundup(*foffset, 4) - *foffset, foffset);
1204 loff_t *foffset)
1211 DUMP_WRITE(&en, sizeof(en), foffset);
1212 DUMP_WRITE(men->name, en.n_namesz, foffset);
1213 if (!alignfile(file, foffset))
1215 DUMP_WRITE(men->data, men->datasz, foffset);
1216 if (!alignfile(file, foffset))
1543 struct file *file, loff_t *foffset)
1551 if (!writenote(&t->notes[0], file, foffset))
1554 if (first && !writenote(&info->psinfo, file, foffset))
1556 if (first && !writenote(&info->auxv, file, foffset))
1561 !writenote(&t->notes[i], file, foffset))
1774 struct file *file, loff_t *foffset)
1780 if (!writenote(info->notes + i, file, foffset))
1789 if (!writenote(&tmp->notes[i], file, foffset))
1884 loff_t offset = 0, dataoff, foffset;
1941 foffset = offset;
2010 if (!write_note_info(&info, cprm->file, &foffset))
2013 if (elf_coredump_extra_notes_write(cprm->file, &foffset))
2017 if (!dump_seek(cprm->file, dataoff - foffset))