Lines Matching full:size
28 "Size of off_t must be equal or less than size of size_t");
41 * @brief Callback API to get size of retained memory area.
52 size_t size);
60 const uint8_t *buffer, size_t size);
81 retained_mem_size_api size; member
88 * @brief Returns the size of the retained memory area.
92 * @retval Positive value indicating size in bytes on success, else negative errno
101 return api->size(dev); in z_impl_retained_mem_size()
110 * @param size Size of data to read.
115 size_t size);
118 uint8_t *buffer, size_t size) in z_impl_retained_mem_read() argument
124 if (size == 0) { in z_impl_retained_mem_read()
128 area_size = api->size(dev); in z_impl_retained_mem_read()
130 if (offset < 0 || size > area_size || (area_size - size) < (size_t)offset) { in z_impl_retained_mem_read()
134 return api->read(dev, offset, buffer, size); in z_impl_retained_mem_read()
144 * @param size Size of data to be written.
149 size_t size);
152 const uint8_t *buffer, size_t size) in z_impl_retained_mem_write() argument
158 if (size == 0) { in z_impl_retained_mem_write()
162 area_size = api->size(dev); in z_impl_retained_mem_write()
164 if (offset < 0 || size > area_size || (area_size - size) < (size_t)offset) { in z_impl_retained_mem_write()
168 return api->write(dev, offset, buffer, size); in z_impl_retained_mem_write()