Home
last modified time | relevance | path

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

1234

/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 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 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 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()
/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/linux/init/
H A Ddo_mounts_rd.c85 pos = start_block * BLOCK_SIZE; in identify_ramdisk_image()
106 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image()
114 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
123 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image()
131 pos = start_block * BLOCK_SIZE + 0x200; in identify_ramdisk_image()
138 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
145 pos = (start_block + 1) * BLOCK_SIZE; in identify_ramdisk_image()
206 in_pos = rd_image_start * BLOCK_SIZE; in rd_load_image()
241 buf = kmalloc(BLOCK_SIZE, GFP_KERNEL); in rd_load_image()
256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image()
[all …]
/openbmc/u-boot/board/ge/common/
H A Dvpd_reader.c98 static const int BLOCK_SIZE = 4; variable
157 if (ecc[ID] != ECC_BLOCK_ID || ecc[LEN] < BLOCK_SIZE || in vpd_reader()
159 ecc[LEN] - BLOCK_SIZE != size_bits / 8 || ecc[VER] != 1 || in vpd_reader()
169 offset - data[LEN], &data[offset + BLOCK_SIZE], in vpd_reader()
170 ecc[LEN] - BLOCK_SIZE); in vpd_reader()
187 if (size < BLOCK_SIZE || data[LEN] < BLOCK_SIZE) { in vpd_reader()
193 data[LEN] - BLOCK_SIZE, &data[BLOCK_SIZE]); in vpd_reader()
/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()

1234