Lines Matching refs:count
28 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index)
36 if ((off + count) > nvram_size)
37 count = nvram_size - off;
38 rc = opal_read_nvram(__pa(buf), count, off);
41 *index += count;
42 return count;
45 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index)
53 if ((off + count) > nvram_size)
54 count = nvram_size - off;
57 rc = opal_write_nvram(__pa(buf), count, off);
61 *index += count;
62 return count;