Lines Matching refs:index
37 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index)
41 if (*index >= mmio_nvram_len)
43 if (*index + count > mmio_nvram_len)
44 count = mmio_nvram_len - *index;
48 memcpy_fromio(buf, mmio_nvram_start + *index, count);
52 *index += count;
73 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index)
77 if (*index >= mmio_nvram_len)
79 if (*index + count > mmio_nvram_len)
80 count = mmio_nvram_len - *index;
84 memcpy_toio(mmio_nvram_start + *index, buf, count);
88 *index += count;