Lines Matching full:size
16 /** BBRAM size (Unit:bytes) */
17 int size; member
86 static int bbram_emul_get_size(const struct device *dev, size_t *size) in bbram_emul_get_size() argument
90 *size = config->size; in bbram_emul_get_size()
94 static int bbram_emul_read(const struct device *dev, size_t offset, size_t size, in bbram_emul_read() argument
100 if (size < 1 || offset + size > config->size || bbram_emul_check_invalid(dev)) { in bbram_emul_read()
104 memcpy(data, dev_data->data + offset, size); in bbram_emul_read()
108 static int bbram_emul_write(const struct device *dev, size_t offset, size_t size, in bbram_emul_write() argument
114 if (size < 1 || offset + size > config->size || bbram_emul_check_invalid(dev)) { in bbram_emul_write()
118 memcpy(dev_data->data + offset, data, size); in bbram_emul_write()
132 static uint8_t bbram_emul_mem_##inst[DT_INST_PROP(inst, size)]; \
137 .size = DT_INST_PROP(inst, size), \