Lines Matching defs:count
26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index)
34 if ((off + count) > nvram_size)
35 count = nvram_size - off;
36 rc = opal_read_nvram(__pa(buf), count, off);
39 *index += count;
40 return count;
47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index)
55 if ((off + count) > nvram_size)
56 count = nvram_size - off;
59 rc = opal_write_nvram(__pa(buf), count, off);
77 *index += count;
78 return count;