Lines Matching refs:index
24 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) in mmio_nvram_read() argument
28 if (*index >= mmio_nvram_len) in mmio_nvram_read()
30 if (*index + count > mmio_nvram_len) in mmio_nvram_read()
31 count = mmio_nvram_len - *index; in mmio_nvram_read()
35 memcpy_fromio(buf, mmio_nvram_start + *index, count); in mmio_nvram_read()
39 *index += count; in mmio_nvram_read()
60 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index) in mmio_nvram_write() argument
64 if (*index >= mmio_nvram_len) in mmio_nvram_write()
66 if (*index + count > mmio_nvram_len) in mmio_nvram_write()
67 count = mmio_nvram_len - *index; in mmio_nvram_write()
71 memcpy_toio(mmio_nvram_start + *index, buf, count); in mmio_nvram_write()
75 *index += count; in mmio_nvram_write()