Lines Matching refs:foffset
56 static int spufs_dump_write(struct file *file, const void *addr, int nr, loff_t *foffset)
61 if (*foffset + nr > limit)
65 *foffset += written;
74 loff_t *foffset)
78 size = min((loff_t)PAGE_SIZE, new_off - *foffset);
82 while (rc == 0 && new_off > *foffset) {
83 size = min((loff_t)PAGE_SIZE, new_off - *foffset);
84 rc = spufs_dump_write(file, buf, size, foffset);
169 struct file *file, int dfd, loff_t *foffset)
190 rc = spufs_dump_write(file, &en, sizeof(en), foffset);
194 rc = spufs_dump_write(file, fullname, en.n_namesz, foffset);
198 rc = spufs_dump_align(file, buf, roundup(*foffset, 4), foffset);
205 rc = spufs_dump_write(file, buf, nread, foffset);
217 rc = spufs_dump_align(file, buf, roundup(*foffset - total + sz, 4),
218 foffset);
225 int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset)
237 rc = spufs_arch_write_note(ctx, j, file, fd, foffset);