Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 25 of 69) sorted by relevance

123

/openbmc/hiomapd/vpnor/test/
H A Dwrite_toc.cpp19 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
20 static constexpr auto PNOR_SIZE = 2 * BLOCK_SIZE;
21 static constexpr auto MEM_SIZE = BLOCK_SIZE;
22 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
24 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
25 static constexpr auto TOC_PART_SIZE = BLOCK_SIZE;
62 erased = malloc(BLOCK_SIZE); in main()
65 memset(erased, 0xff, BLOCK_SIZE); in main()
71 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
85 rc = memcmp(ctx->mem, erased, BLOCK_SIZE); in main()
[all …]
H A Dtoc_flags.cpp13 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
27 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
32 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
37 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
43 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
48 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
53 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
58 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
63 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
69 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
[all …]
H A Dcreate_read_window_oob.cpp22 static constexpr auto BLOCK_SIZE = 4096; variable
23 static constexpr auto MEM_SIZE = (BLOCK_SIZE * 2);
24 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
26 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
27 static constexpr auto PNOR_SIZE = (BLOCK_SIZE * 4);
52 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Dforce_readonly_toc.cpp21 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
22 static constexpr auto PNOR_SIZE = BLOCK_SIZE;
23 static constexpr auto MEM_SIZE = BLOCK_SIZE;
24 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
26 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
27 static constexpr auto TOC_PART_SIZE = BLOCK_SIZE;
56 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Ddump_flash.cpp28 static constexpr auto BLOCK_SIZE = 4096; variable
29 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
31 static constexpr auto WINDOW_SIZE = 2 * BLOCK_SIZE;
33 static constexpr auto PNOR_SIZE = (4 * BLOCK_SIZE);
72 test::VpnorRoot root(&tctx->ctx->backend, toc, BLOCK_SIZE); in main()
78 while (pos < (PNOR_SIZE / BLOCK_SIZE)) in main()
82 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
H A Dcreate_read_window_toc.cpp19 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
21 static constexpr auto MEM_SIZE = BLOCK_SIZE * 2;
22 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
24 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
25 static constexpr auto TOC_PART_SIZE = BLOCK_SIZE;
59 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Dcreate_read_window_partition_invalid.cpp22 static constexpr auto BLOCK_SIZE = 4096; variable
23 static constexpr auto MEM_SIZE = BLOCK_SIZE * 2;
24 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
26 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
48 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Dcreate_write_window_rw_partition.cpp21 static const auto BLOCK_SIZE = 4096; variable
22 static const auto MEM_SIZE = BLOCK_SIZE * 2;
23 static const auto ERASE_SIZE = BLOCK_SIZE;
25 static const auto WINDOW_SIZE = BLOCK_SIZE;
50 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Dcreate_write_window_ro_partition.cpp21 static const auto BLOCK_SIZE = 4096; variable
22 static const auto MEM_SIZE = BLOCK_SIZE * 2;
23 static const auto ERASE_SIZE = BLOCK_SIZE;
25 static const auto WINDOW_SIZE = BLOCK_SIZE;
50 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Dcreate_read_window_remap.cpp21 static const auto BLOCK_SIZE = 4096; variable
22 static const auto ERASE_SIZE = BLOCK_SIZE;
23 static const auto WINDOW_SIZE = 16 * BLOCK_SIZE;
51 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
56 for (int i = 1; i < (0x10000 / BLOCK_SIZE); i++) in main()
H A Dcreate_read_window_partition_exists.cpp29 static const auto BLOCK_SIZE = 4096; variable
30 static const auto MEM_SIZE = BLOCK_SIZE * 2;
31 static const auto ERASE_SIZE = BLOCK_SIZE;
33 static const auto WINDOW_SIZE = BLOCK_SIZE;
58 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Dcreate_write_window_unmapped.cpp17 static constexpr auto BLOCK_SIZE = 0x1000; variable
18 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
20 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
22 static constexpr auto PNOR_SIZE = 3 * BLOCK_SIZE;
51 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
/openbmc/phosphor-mboxd/vpnor/test/
H A Dtoc_flags.cpp11 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
25 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
30 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
35 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
41 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
46 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
51 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
56 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
61 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
67 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
[all …]
H A Dcreate_read_window_oob.cpp21 static constexpr auto BLOCK_SIZE = 4096; variable
22 static constexpr auto MEM_SIZE = (BLOCK_SIZE * 2);
23 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
25 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
26 static constexpr auto PNOR_SIZE = (BLOCK_SIZE * 4);
51 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Ddump_flash.cpp27 static constexpr auto BLOCK_SIZE = 4096; variable
28 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
30 static constexpr auto WINDOW_SIZE = 2 * BLOCK_SIZE;
32 static constexpr auto PNOR_SIZE = (4 * BLOCK_SIZE);
71 test::VpnorRoot root(tctx->ctx, toc, BLOCK_SIZE); in main()
78 while (pos < (PNOR_SIZE / BLOCK_SIZE)) in main()
82 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
H A Dcreate_read_window_toc.cpp17 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
19 static constexpr auto MEM_SIZE = BLOCK_SIZE * 2;
20 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
22 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
23 static constexpr auto TOC_PART_SIZE = BLOCK_SIZE;
57 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Dcreate_read_window_partition_invalid.cpp21 static constexpr auto BLOCK_SIZE = 4096; variable
22 static constexpr auto MEM_SIZE = BLOCK_SIZE * 2;
23 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
25 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
47 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Dcreate_write_window_ro_partition.cpp20 static const auto BLOCK_SIZE = 4096; variable
21 static const auto MEM_SIZE = BLOCK_SIZE * 2;
22 static const auto ERASE_SIZE = BLOCK_SIZE;
24 static const auto WINDOW_SIZE = BLOCK_SIZE;
49 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Dcreate_write_window_rw_partition.cpp20 static const auto BLOCK_SIZE = 4096; variable
21 static const auto MEM_SIZE = BLOCK_SIZE * 2;
22 static const auto ERASE_SIZE = BLOCK_SIZE;
24 static const auto WINDOW_SIZE = BLOCK_SIZE;
49 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Dcreate_read_window_remap.cpp20 static const auto BLOCK_SIZE = 4096; variable
21 static const auto ERASE_SIZE = BLOCK_SIZE;
22 static const auto WINDOW_SIZE = 16 * BLOCK_SIZE;
50 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
56 for (int i = 1; i < (0x10000 / BLOCK_SIZE); i++) in main()
H A Dcreate_write_window_unmapped.cpp16 static constexpr auto BLOCK_SIZE = 0x1000; variable
17 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
19 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
21 static constexpr auto PNOR_SIZE = 3 * BLOCK_SIZE;
50 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Dcreate_read_window_partition_exists.cpp28 static const auto BLOCK_SIZE = 4096; variable
29 static const auto MEM_SIZE = BLOCK_SIZE * 2;
30 static const auto ERASE_SIZE = BLOCK_SIZE;
32 static const auto WINDOW_SIZE = BLOCK_SIZE;
57 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
H A Dcreate_read_window_size.cpp16 static const auto BLOCK_SIZE = 4096; variable
17 static const auto ERASE_SIZE = BLOCK_SIZE;
18 static const auto WINDOW_SIZE = 2 * BLOCK_SIZE;
21 static const auto PNOR_SIZE = 4 * BLOCK_SIZE;
58 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
/openbmc/hiomapd/test/
H A Dwindows_equally_evictable.c23 #define BLOCK_SIZE 4096 macro
24 #define ERASE_SIZE BLOCK_SIZE
26 #define WINDOW_SIZE BLOCK_SIZE
66 while (pos < ((PNOR_SIZE - BLOCK_SIZE) / BLOCK_SIZE)) in main()
70 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
81 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
/openbmc/u-boot/tools/
H A Dfile2include.c23 #define BLOCK_SIZE 8 macro
66 printf(" * Non-zero %u byte strings of a disk image\n", BLOCK_SIZE); in main()
72 for (i = 0; i < count; i += BLOCK_SIZE) { in main()
75 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main()
82 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) in main()
85 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main()

123