Lines Matching refs:ppos
169 static ssize_t pc_nvram_read(char *buf, size_t count, loff_t *ppos) in pc_nvram_read() argument
179 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in pc_nvram_read()
183 *ppos = i; in pc_nvram_read()
187 static ssize_t pc_nvram_write(char *buf, size_t count, loff_t *ppos) in pc_nvram_write() argument
197 for (i = *ppos; count > 0 && i < NVRAM_BYTES; --count, ++i, ++p) in pc_nvram_write()
202 *ppos = i; in pc_nvram_write()
229 size_t count, loff_t *ppos) in nvram_misc_read() argument
235 if (*ppos >= nvram_size) in nvram_misc_read()
238 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_read()
245 ret = nvram_read(tmp, count, ppos); in nvram_misc_read()
250 *ppos -= ret; in nvram_misc_read()
260 size_t count, loff_t *ppos) in nvram_misc_write() argument
265 if (*ppos >= nvram_size) in nvram_misc_write()
268 count = min_t(size_t, count, nvram_size - *ppos); in nvram_misc_write()
275 ret = nvram_write(tmp, count, ppos); in nvram_misc_write()