Lines Matching defs:offset
172 unsigned offset, unsigned to);
173 static int yaffs_commit_write(struct file *f, struct page *pg, unsigned offset,
550 loff_t offset = (loff_t) page->index << PAGE_CACHE_SHIFT;
564 if (offset > inode->i_size) {
618 unsigned offset, unsigned to)
622 if (!Page_Uptodate(pg) && (offset || to < PAGE_CACHE_SIZE))
629 static int yaffs_commit_write(struct file *f, struct page *pg, unsigned offset,
633 void *addr = page_address(pg) + offset;
634 loff_t pos = (((loff_t) pg->index) << PAGE_CACHE_SHIFT) + offset;
635 int nBytes = to - offset;
862 unsigned long offset, curoffs;
873 offset = f->f_pos;
875 T(YAFFS_TRACE_OS, ("yaffs_readdir: starting at %d\n", (int)offset));
877 if (offset == 0) {
881 if (filldir(dirent, ".", 1, offset, inode->i_ino, DT_DIR)
885 offset++;
888 if (offset == 1) {
893 (dirent, "..", 2, offset,
897 offset++;
907 offset = 2;
908 f->f_pos = offset;
914 if (curoffs >= offset) {
926 offset,
933 offset++;
1881 off_t offset, int count, int *eof, void *data)
1885 int step = offset;
1888 /* Get proc_file_read() to step 'offset' by one on each sucessive call.
1889 * We use 'offset' (*ppos) to indicate where we are in devList.