Lines Matching refs:device
128 typedef int (*flash_api_read)(const struct device *dev, off_t offset,
139 typedef int (*flash_api_write)(const struct device *dev, off_t offset,
155 typedef int (*flash_api_erase)(const struct device *dev, off_t offset,
168 typedef int (*flash_api_get_size)(const struct device *dev, uint64_t *size);
170 typedef const struct flash_parameters* (*flash_api_get_parameters)(const struct device *dev);
194 typedef void (*flash_api_pages_layout)(const struct device *dev,
199 typedef int (*flash_api_sfdp_read)(const struct device *dev, off_t offset,
201 typedef int (*flash_api_read_jedec_id)(const struct device *dev, uint8_t *id);
202 typedef int (*flash_api_ex_op)(const struct device *dev, uint16_t code,
245 __syscall int flash_read(const struct device *dev, off_t offset, void *data,
248 static inline int z_impl_flash_read(const struct device *dev, off_t offset, in z_impl_flash_read()
276 __syscall int flash_write(const struct device *dev, off_t offset,
280 static inline int z_impl_flash_write(const struct device *dev, off_t offset, in z_impl_flash_write()
320 __syscall int flash_erase(const struct device *dev, off_t offset, size_t size);
322 static inline int z_impl_flash_erase(const struct device *dev, off_t offset, in z_impl_flash_erase()
350 __syscall int flash_get_size(const struct device *dev, uint64_t *size);
352 static inline int z_impl_flash_get_size(const struct device *dev, uint64_t *size) in z_impl_flash_get_size()
379 __syscall int flash_fill(const struct device *dev, uint8_t val, off_t offset, size_t size);
418 __syscall int flash_flatten(const struct device *dev, off_t offset, size_t size);
436 __syscall int flash_get_page_info_by_offs(const struct device *dev,
449 __syscall int flash_get_page_info_by_idx(const struct device *dev,
460 __syscall size_t flash_get_page_count(const struct device *dev);
486 void flash_page_foreach(const struct device *dev, flash_page_cb cb,
511 __syscall int flash_sfdp_read(const struct device *dev, off_t offset,
514 static inline int z_impl_flash_sfdp_read(const struct device *dev, in z_impl_flash_sfdp_read()
539 __syscall int flash_read_jedec_id(const struct device *dev, uint8_t *id);
541 static inline int z_impl_flash_read_jedec_id(const struct device *dev, in z_impl_flash_read_jedec_id()
566 __syscall size_t flash_get_write_block_size(const struct device *dev);
568 static inline size_t z_impl_flash_get_write_block_size(const struct device *dev) in z_impl_flash_get_write_block_size()
588 __syscall const struct flash_parameters *flash_get_parameters(const struct device *dev);
590 static inline const struct flash_parameters *z_impl_flash_get_parameters(const struct device *dev) in z_impl_flash_get_parameters()
623 __syscall int flash_ex_op(const struct device *dev, uint16_t code,
654 __syscall int flash_copy(const struct device *src_dev, off_t src_offset,
655 const struct device *dst_dev, off_t dst_offset, off_t size, uint8_t *buf,
683 static inline int z_impl_flash_ex_op(const struct device *dev, uint16_t code, in z_impl_flash_ex_op()