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