Lines Matching full:size
19 int size; member
22 static int bbram_rts5912_get_size(const struct device *dev, size_t *size) in bbram_rts5912_get_size() argument
26 *size = config->size; in bbram_rts5912_get_size()
27 LOG_INF("size: 0x%08x", *size); in bbram_rts5912_get_size()
31 static int bbram_rts5912_read(const struct device *dev, size_t offset, size_t size, uint8_t *data) in bbram_rts5912_read() argument
38 if (size < 1 || offset + size > config->size) { in bbram_rts5912_read()
46 for (int i = 0; i < size;) { in bbram_rts5912_read()
49 bytes_to_read = MIN(4 - start_offset, size - i); in bbram_rts5912_read()
57 static int bbram_rts5912_write(const struct device *dev, size_t offset, size_t size, in bbram_rts5912_write() argument
65 if (size < 1 || offset + size > config->size) { in bbram_rts5912_write()
73 for (int i = 0; i < size;) { in bbram_rts5912_write()
76 bytes_to_write = MIN(4 - start_offset, size - i); in bbram_rts5912_write()
94 .size = DT_INST_REG_SIZE(inst), \