Lines Matching refs:offset
23 int z_impl_flash_fill(const struct device *dev, uint8_t val, off_t offset, in z_impl_flash_fill() argument
45 if (offset < 0) { in z_impl_flash_fill()
49 if ((size | (size_t)offset) & (fparams->write_block_size - 1)) { in z_impl_flash_fill()
60 rc = api->write(dev, offset + stored, filler, chunk); in z_impl_flash_fill()
63 dev, (size_t)offset + stored); in z_impl_flash_fill()
71 int z_impl_flash_flatten(const struct device *dev, off_t offset, size_t size) in z_impl_flash_flatten() argument
80 return api->erase(dev, offset, size); in z_impl_flash_flatten()
85 return flash_fill(dev, params->erase_value, offset, size); in z_impl_flash_flatten()
92 static inline bool off_add_overflow(off_t offset, off_t size, off_t *result) in off_add_overflow() argument
100 if (u32_add_overflow((uint32_t)offset, (uint32_t)size, &end) || (end > INT32_MAX)) { in off_add_overflow()
107 if (u64_add_overflow((uint64_t)offset, (uint64_t)size, &end) || (end > INT64_MAX)) { in off_add_overflow()