Lines Matching refs:fdev
57 rc = flash_get_page_info_by_offs(ctx->fdev, offset, in settings_direct_loader()
90 const struct flash_parameters *fparams = flash_get_parameters(ctx->fdev); in stream_flash_erase_page()
97 rc = flash_get_page_info_by_offs(ctx->fdev, off, &page); in stream_flash_erase_page()
109 rc = flash_erase(ctx->fdev, page.start_offset, page.size); in stream_flash_erase_page()
160 rc = flash_write(ctx->fdev, write_addr, ctx->buf, buf_bytes_aligned); in flash_sync()
178 rc = flash_read(ctx->fdev, write_addr, ctx->buf, in flash_sync()
270 int stream_flash_init(struct stream_flash_ctx *ctx, const struct device *fdev, in stream_flash_init() argument
275 if (!ctx || !fdev || !buf) { in stream_flash_init()
293 params = flash_get_parameters(fdev); in stream_flash_init()
302 flash_page_foreach(fdev, find_flash_total_size, &inspect_flash_ctx); in stream_flash_init()
316 ctx->fdev = fdev; in stream_flash_init()