Searched refs:fac (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.5.0/subsys/storage/flash_map/ |
D | flash_map_integrity.c | 33 const struct flash_area_check *fac) in flash_area_check_int_sha256() argument 46 if (fa == NULL || fac == NULL || fac->match == NULL || in flash_area_check_int_sha256() 47 fac->rbuf == NULL || fac->clen == 0 || fac->rblen == 0) { in flash_area_check_int_sha256() 51 if (!is_in_flash_area_bounds(fa, fac->off, fac->clen)) { in flash_area_check_int_sha256() 74 to_read = fac->rblen; in flash_area_check_int_sha256() 76 for (pos = 0; pos < fac->clen; pos += to_read) { in flash_area_check_int_sha256() 77 if (pos + to_read > fac->clen) { in flash_area_check_int_sha256() 78 to_read = fac->clen - pos; in flash_area_check_int_sha256() 81 rc = flash_read(fa->fa_dev, (fa->fa_off + fac->off + pos), in flash_area_check_int_sha256() 82 fac->rbuf, to_read); in flash_area_check_int_sha256() [all …]
|
/Zephyr-Core-3.5.0/tests/subsys/storage/flash_map/src/ |
D | main.c | 130 struct flash_area_check fac = { NULL, 0, -1, NULL, 0 }; in ZTEST() local 143 rc = flash_area_check_int_sha256(NULL, &fac); in ZTEST() 148 rc = flash_area_check_int_sha256(fa, &fac); in ZTEST() 150 fac.match = tst_sha; in ZTEST() 151 rc = flash_area_check_int_sha256(fa, &fac); in ZTEST() 153 fac.clen = sizeof(tst_vec); in ZTEST() 154 rc = flash_area_check_int_sha256(fa, &fac); in ZTEST() 156 fac.off = 0; in ZTEST() 157 rc = flash_area_check_int_sha256(fa, &fac); in ZTEST() 159 fac.rbuf = buffer; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/dfu/img_util/ |
D | flash_img.c | 106 struct flash_area_check fac; in flash_img_check() local 119 fac.match = fic->match; in flash_img_check() 120 fac.clen = fic->clen; in flash_img_check() 121 fac.off = 0; in flash_img_check() 122 fac.rbuf = ctx->buf; in flash_img_check() 123 fac.rblen = sizeof(ctx->buf); in flash_img_check() 125 rc = flash_area_check_int_sha256(ctx->flash_area, &fac); in flash_img_check()
|
/Zephyr-Core-3.5.0/include/zephyr/storage/ |
D | flash_map.h | 111 const struct flash_area_check *fac);
|