Searched refs:fdev (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/ |
D | main.c | 27 static const struct device *const fdev = DEVICE_DT_GET(DT_CHOSEN(zephyr_flash_controller)); variable 50 rc = flash_read(fdev, FLASH_BASE + start, read_buf, size); \ 78 const struct flash_parameters *fparam = flash_get_parameters(fdev); in erase_flash() 86 rc = flash_erase(fdev, in erase_flash() 111 rc = stream_flash_init(&ctx, fdev, generic_buf, BUF_LEN, FLASH_BASE, 0, in init_target() 123 rc = stream_flash_init(&ctx, fdev, generic_buf, BUF_LEN, FLASH_BASE, in ZTEST() 127 rc = stream_flash_init(NULL, fdev, generic_buf, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 133 rc = stream_flash_init(&ctx, fdev, NULL, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 137 rc = stream_flash_init(&ctx, fdev, generic_buf, BUF_LEN, FLASH_BASE, 0, NULL); in ZTEST() 196 if (flash_get_write_block_size(fdev) == 1) { in ZTEST() [all …]
|
/Zephyr-latest/subsys/storage/stream/ |
D | stream_flash.c | 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() [all …]
|
/Zephyr-latest/include/zephyr/storage/ |
D | stream_flash.h | 60 const struct device *fdev; /* Flash device */ member 92 int stream_flash_init(struct stream_flash_ctx *ctx, const struct device *fdev,
|