Lines Matching refs:foffset
1278 #define DUMP_WRITE(addr, nr, foffset) \
1279 do { if (!dump_write(file, (addr), (nr))) return 0; *foffset += (nr); } while(0)
1281 static int alignfile(struct file *file, loff_t *foffset)
1284 DUMP_WRITE(buf, roundup(*foffset, 4) - *foffset, foffset);
1289 loff_t *foffset)
1296 DUMP_WRITE(&en, sizeof(en), foffset);
1297 DUMP_WRITE(men->name, en.n_namesz, foffset);
1298 if (!alignfile(file, foffset))
1300 DUMP_WRITE(men->data, men->datasz, foffset);
1301 if (!alignfile(file, foffset))
1597 loff_t offset = 0, dataoff, foffset;
1730 foffset = offset;
1806 if (!writenote(notes + i, cprm->file, &foffset))
1815 if (!writenote(&tmp->notes[i], cprm->file, &foffset))
1819 if (!dump_seek(cprm->file, dataoff - foffset))