Home
last modified time | relevance | path

Searched full:chunk (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_bitmap.c17 * Chunk bitmap manipulations
32 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk) in yaffs_verify_chunk_bit_id() argument
35 chunk < 0 || chunk >= dev->param.chunks_per_block) { in yaffs_verify_chunk_bit_id()
37 "Chunk Id (%d:%d) invalid", in yaffs_verify_chunk_bit_id()
38 blk, chunk); in yaffs_verify_chunk_bit_id()
50 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_clear_chunk_bit() argument
54 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_clear_chunk_bit()
55 blk_bits[chunk / 8] &= ~(1 << (chunk & 7)); in yaffs_clear_chunk_bit()
58 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_set_chunk_bit() argument
62 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_set_chunk_bit()
[all …]
H A Dyaffs_bitmap.h17 * Chunk bitmap manipulations
25 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk);
27 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
28 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
29 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
H A Dyaffs_yaffs1.c26 int chunk; in yaffs1_scan() local
90 /* For each chunk in each block that needs scanning.... */ in yaffs1_scan()
95 chunk = blk * dev->param.chunks_per_block + c; in yaffs1_scan()
97 yaffs_rd_chunk_tags_nand(dev, chunk, NULL, &tags); in yaffs1_scan()
99 /* Let's have a good look at this chunk... */ in yaffs1_scan()
104 * A deleted chunk in yaffs1_scan()
109 /* An unassigned chunk in the block in yaffs1_scan()
115 /* We're looking at the first chunk in in yaffs1_scan()
134 /* chunk_id > 0 so it is a data chunk... */ in yaffs1_scan()
152 (in, tags.chunk_id, chunk, 1)) in yaffs1_scan()
[all …]
H A Dyaffs_checkptrw.c109 int chunk = i * dev->param.chunks_per_block; in yaffs2_checkpt_find_block() local
110 int realigned_chunk = chunk - dev->chunk_offset; in yaffs2_checkpt_find_block()
204 int chunk; in yaffs2_checkpt_flush_buffer() local
222 /* First chunk we write for the block? Set block state to in yaffs2_checkpt_flush_buffer()
230 chunk = in yaffs2_checkpt_flush_buffer()
236 chunk, dev->checkpt_cur_block, dev->checkpt_cur_chunk, in yaffs2_checkpt_flush_buffer()
239 realigned_chunk = chunk - dev->chunk_offset; in yaffs2_checkpt_flush_buffer()
292 int chunk; in yaffs2_checkpt_rd() local
317 chunk = dev->checkpt_cur_block * in yaffs2_checkpt_rd()
321 realigned_chunk = chunk - dev->chunk_offset; in yaffs2_checkpt_rd()
[all …]
/openbmc/u-boot/fs/btrfs/
H A Dchunk-map.c18 static int add_chunk_mapping(struct btrfs_key *key, struct btrfs_chunk *chunk) in add_chunk_mapping() argument
21 u64 block_profile = chunk->type & BTRFS_BLOCK_GROUP_PROFILE_MASK; in add_chunk_mapping()
26 printf("%s: unsupported chunk profile %llu\n", __func__, in add_chunk_mapping()
29 } else if (!chunk->length) { in add_chunk_mapping()
30 printf("%s: zero length chunk\n", __func__); in add_chunk_mapping()
34 stripe = &chunk->stripe; in add_chunk_mapping()
59 map_item->length = chunk->length; in add_chunk_mapping()
60 map_item->physical = le64_to_cpu(chunk->stripe.offset); in add_chunk_mapping()
113 struct btrfs_chunk *chunk; in btrfs_chunk_map_init() local
123 chunk = (struct btrfs_chunk *) cur; in btrfs_chunk_map_init()
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/
H A DMemoryChunks.v1_6_2.json50 "description": "This an interleave set for a memory chunk.",
51 …ongDescription": "This type shall describe an interleave set of which the memory chunk is a part.",
134 … "description": "An array of links to the CXL logical devices associated with this memory chunk.",
138 …type `CXLLogicalDevice` that represent the CXL logical devices associated with this memory chunk.",
147 … "description": "An array of links to the endpoints that connect to this memory chunk.",
151 …ll contain a link to the resources of type `Endpoint` with which this memory chunk is associated.",
160 …cription": "An array of links to the memory regions for which this memory chunk provides capacity.…
164 …pe `MemoryRegion` that represent the memory regions for which this memory chunk provides capacity.…
187 "Local": "The memory chunk was created using local media.",
188 …"Mixed": "The memory chunk was created using both local media and remote media accessible through …
[all …]
/openbmc/qemu/tests/bench/
H A Dbenchmark-crypto-cipher.c73 g_test_message("enc(%s-%s) chunk %zu bytes %.2f MB/sec ", in test_cipher_speed()
90 g_test_message("dec(%s-%s) chunk %zu bytes %.2f MB/sec ", in test_cipher_speed()
175 #define ADD_TEST(mode, cipher, keysize, chunk) \ in main() argument
177 (!size || g_str_equal(size, #chunk))) \ in main()
179 "/crypto/cipher/" #mode "-" #cipher "-" #keysize "/chunk-" #chunk, \ in main()
180 (void *)chunk, \ in main()
190 #define ADD_TESTS(chunk) \ in main() argument
192 ADD_TEST(ecb, aes, 128, chunk); \ in main()
193 ADD_TEST(ecb, aes, 256, chunk); \ in main()
194 ADD_TEST(cbc, aes, 128, chunk); \ in main()
[all …]
/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_net_unittest.cpp175 struct ipmi_flash::ExtChunkHdr chunk; in TEST_F() local
176 chunk.length = fakeFileSize; in TEST_F()
177 std::vector<std::uint8_t> chunkBytes(sizeof(chunk)); in TEST_F()
178 std::memcpy(chunkBytes.data(), &chunk, sizeof(chunk)); in TEST_F()
192 struct ipmi_flash::ExtChunkHdr chunk; in TEST_F() local
193 chunk.length = chunkSize; in TEST_F()
194 std::vector<std::uint8_t> chunkBytes(sizeof(chunk)); in TEST_F()
195 std::memcpy(chunkBytes.data(), &chunk, sizeof(chunk)); in TEST_F()
226 struct ipmi_flash::ExtChunkHdr chunk; in TEST_F() local
227 chunk.length = chunkSize; in TEST_F()
[all …]
/openbmc/u-boot/include/
H A Dsparse_format.h39 __le32 total_sz; /* in bytes of chunk input file including chunk header and data */
42 /* Following a Raw or Fill or CRC32 chunk is data.
43 * For a Raw chunk, it's the data in chunk_sz * blk_sz.
44 * For a Fill chunk, it's 4 bytes of the fill data.
45 * For a CRC32 chunk, it's 4 bytes of CRC32
/openbmc/u-boot/lib/
H A Dimage-sparse.c56 unsigned int chunk; in write_sparse_image() local
111 for (chunk = 0; chunk < sparse_header->total_chunks; chunk++) { in write_sparse_image()
112 /* Read and skip over chunk header */ in write_sparse_image()
117 debug("=== Chunk Header ===\n"); in write_sparse_image()
138 info->mssg("Bogus chunk size for chunk type Raw", in write_sparse_image()
170 info->mssg("Bogus chunk size for chunk type FILL", response); in write_sparse_image()
235 info->mssg("Bogus chunk size for chunk type Dont Care", in write_sparse_image()
244 printf("%s: Unknown chunk type: %x\n", __func__, in write_sparse_image()
246 info->mssg("Unknown chunk type", response); in write_sparse_image()
/openbmc/qemu/block/
H A Ddmg.c38 /* Limit chunk sizes to prevent unreasonable amounts of memory being used
113 /* Increase max chunk sizes, if necessary. This function is used to calculate
114 * the buffer sizes needed for compressed/uncompressed chunk I/O.
116 static void update_max_chunk_size(BDRVDMGState *s, uint32_t chunk, in update_max_chunk_size() argument
123 switch (s->types[chunk]) { in update_max_chunk_size()
127 compressed_size = s->lengths[chunk]; in update_max_chunk_size()
128 uncompressed_sectors = s->sectorcounts[chunk]; in update_max_chunk_size()
131 uncompressed_sectors = DIV_ROUND_UP(s->lengths[chunk], 512); in update_max_chunk_size()
236 /* chunk offsets are relative to this sector number */ in dmg_read_mish_block()
243 /* move to begin of chunk entries */ in dmg_read_mish_block()
[all …]
H A Dnbd.c579 NBDStructuredReplyChunk *chunk, in nbd_parse_offset_hole_payload() argument
586 if (chunk->length != sizeof(offset) + sizeof(hole_size)) { in nbd_parse_offset_hole_payload()
597 error_setg(errp, "Protocol error: server sent chunk exceeding requested" in nbd_parse_offset_hole_payload()
617 NBDStructuredReplyChunk *chunk, in nbd_parse_blockstatus_payload() argument
628 if (chunk->length < pay_len) { in nbd_parse_blockstatus_payload()
654 error_setg(errp, "Protocol error: server sent status chunk with " in nbd_parse_blockstatus_payload()
693 if (count != wide || chunk->length > pay_len) { in nbd_parse_blockstatus_payload()
718 static int nbd_parse_error_payload(NBDStructuredReplyChunk *chunk, in nbd_parse_error_payload() argument
725 assert(chunk->type & (1 << 15)); in nbd_parse_error_payload()
727 if (chunk->length < sizeof(error) + sizeof(message_size)) { in nbd_parse_error_payload()
[all …]
/openbmc/u-boot/include/zfs/
H A Dzap_leaf.h16 /* chunk size = 24 bytes */
20 * The amount of space within the chunk available for the array is:
21 * chunk size - space for type (1) - space for next pointer (2)
48 uint16_t lh_freelist; /* chunk head of free list */
68 uint16_t le_name_chunk; /* first chunk of the name */
70 uint16_t le_value_chunk; /* first chunk of the value */
/openbmc/qemu/migration/
H A Dtrace-events235 …eft, uint64_t block, uint64_t chunk, void *local, void *remote) "completions %" PRIu64 " left %d, …
242 qemu_rdma_signal_unregister_append(uint64_t chunk, int pos) "Appending unregister chunk %" PRIu64 "…
243 qemu_rdma_signal_unregister_already(uint64_t chunk) "Unregister chunk %" PRIu64 " already in queue"
244 qemu_rdma_unregister_waiting_inflight(uint64_t chunk) "Cannot unregister inflight chunk: %" PRIu64
245 qemu_rdma_unregister_waiting_proc(uint64_t chunk, int pos) "Processing unregister for chunk: %" PRI…
246 qemu_rdma_unregister_waiting_send(uint64_t chunk) "Sending unregister for chunk: %" PRIu64
247 qemu_rdma_unregister_waiting_complete(uint64_t chunk) "Unregister for chunk: %" PRIu64 " complete."
249 …nt, int block, uint64_t chunk, uint64_t current, uint64_t len, int nb_sent, int nb_chunks) "(%d) N…
250 qemu_rdma_write_one_post(uint64_t chunk, long addr, long remote, uint32_t len) "Posting chunk: %" P…
252 …egres(int mykey, int theirkey, uint64_t chunk) "Received registration result: my key: 0x%x their k…
[all …]
H A Drdma.c83 * bits 30-63: ram block chunk number, 2^34
190 struct ibv_mr **pmr; /* MRs for chunk-level registration */
191 struct ibv_mr *mr; /* MR for non-chunk-level registration */
192 uint32_t *remote_keys; /* rkeys for chunk-level registration */
193 uint32_t remote_rkey; /* rkeys for non-chunk-level registration */
317 /* index of the chunk in the current ram block */
419 * Register a single Chunk.
421 * to register an single chunk of memory before we can perform
427 uint64_t chunk; /* chunk to lookup if unregistering */ member
429 uint32_t current_index; /* which ramblock the chunk belongs to */
[all …]
/openbmc/u-boot/common/
H A Ddlmalloc.c221 INTERNAL_SIZE_T prev_size; /* Size of previous chunk (if free). */
239 in the front of each chunk and at the end. This makes
244 An allocated chunk looks like this:
247 chunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
248 | Size of previous chunk, if allocated | |
250 | Size of chunk, in bytes |P|
257 | Size of chunk |
261 Where "chunk" is the front of the chunk for the purpose of most of
263 user. "Nextchunk" is the beginning of the next contiguous chunk.
271 chunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
[all …]
H A Ddlmalloc.src28 Return a pointer to a newly allocated chunk of at least n bytes, or null
31 Release the chunk of memory pointed to by p, or no effect if p is null.
33 Return a pointer to a chunk of size n that contains the same data
34 as does chunk p up to the minimum of (n, p's size) bytes, or null
38 size argument of zero (re)allocates a minimum-sized chunk.
40 Return a pointer to a newly allocated chunk of n bytes, aligned
60 chunk p. This may or may not report more bytes than were requested,
84 Minimum overhead per allocated chunk: 4 or 8 bytes
85 Each malloced chunk has a hidden overhead of 4 bytes holding size
91 When a chunk is freed, 12 (for 4byte ptrs) or 20 (for 8 byte
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/dmalloc/dmalloc/
H A D02-Makefile.in.patch55 NORMAL_OBJS = chunk.o error.o malloc.o
207 arg_check.o: arg_check.c conf.h settings.h dmalloc.h chunk.h debug_tok.h \
209 +arg_check_sl.o: arg_check.c conf.h settings.h dmalloc.h chunk.h debug_tok.h \
213 chunk.o: chunk.c conf.h settings.h dmalloc.h chunk.h chunk_loc.h \
216 +chunk_sl.o: chunk.c conf.h settings.h dmalloc.h chunk.h chunk_loc.h \
255 dmalloc_tab.o: dmalloc_tab.c conf.h settings.h chunk.h compat.h dmalloc.h \
257 +dmalloc_tab_sl.o: dmalloc_tab.c conf.h settings.h chunk.h compat.h dmalloc.h \
267 error.o: error.c conf.h settings.h dmalloc.h chunk.h compat.h debug_tok.h \
269 +error_sl.o: error.c conf.h settings.h dmalloc.h chunk.h compat.h debug_tok.h \
273 heap.o: heap.c conf.h settings.h dmalloc.h chunk.h compat.h debug_tok.h \
[all …]
/openbmc/u-boot/drivers/misc/
H A Djz4780_efuse.c80 size_t chunk; in jz4780_efuse_read() local
83 chunk = jz4780_efuse_chunk_size(count); in jz4780_efuse_read()
84 jz4780_efuse_read_chunk(addr, chunk, buf); in jz4780_efuse_read()
85 addr += chunk; in jz4780_efuse_read()
86 buf += chunk; in jz4780_efuse_read()
87 count -= chunk; in jz4780_efuse_read()
/openbmc/bmcweb/test/http/
H A Dzstd_decompressor_test.cpp62 std::span<unsigned char> chunk = in TEST() local
65 boost::asio::buffer(chunk.data(), chunk.size())); in TEST()
75 data = data.subspan(chunk.size()); in TEST()
102 std::span<unsigned char> chunk = in TEST() local
105 boost::asio::buffer(chunk.data(), chunk.size())); in TEST()
115 data = data.subspan(chunk.size()); in TEST()
/openbmc/qemu/hw/display/
H A Dqxl-render.c220 QXLDataChunk *chunk, uint32_t group_id) in qxl_unpack_chunks() argument
228 bytes = MIN(size - offset, chunk->data_size); in qxl_unpack_chunks()
229 memcpy(dest + offset, chunk->data, bytes); in qxl_unpack_chunks()
234 next_chunk_phys = chunk->next_chunk; in qxl_unpack_chunks()
235 /* fist time, only get the next chunk's data size */ in qxl_unpack_chunks()
236 chunk = qxl_phys2virt(qxl, next_chunk_phys, group_id, in qxl_unpack_chunks()
238 if (!chunk) { in qxl_unpack_chunks()
242 chunk = qxl_phys2virt(qxl, next_chunk_phys, group_id, in qxl_unpack_chunks()
243 sizeof(QXLDataChunk) + chunk->data_size); in qxl_unpack_chunks()
244 if (!chunk) { in qxl_unpack_chunks()
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DMemoryChunks_v1.xml47 …on" String="The `MemoryChunks` schema contains the definition of a memory chunk and its configurat…
85 …<Annotation Term="OData.Description" String="Size of the memory chunk measured in mebibytes (MiB).…
86 …"OData.LongDescription" String="This property shall contain the size of the memory chunk in MiB."/>
91 <Annotation Term="OData.Description" String="Memory type of this memory chunk."/>
92 …ation Term="OData.LongDescription" String="This property shall contain the type of memory chunk."/>
97 …Description" String="An indication of whether memory mirroring is enabled for this memory chunk."/>
98 … String="This property shall indicate whether memory mirroring is enabled for this memory chunk."/>
102 …m="OData.Description" String="An indication of whether sparing is enabled for this memory chunk."/>
103 …cription" String="This property shall indicate whether sparing is enabled for this memory chunk."/>
106 <Annotation Term="OData.Description" String="The interleave sets for the memory chunk."/>
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/bootchart2/bootchart2/
H A D0001-collector-Allocate-space-on-heap-for-chunks.patch24 - Chunk *c = (Chunk *)&buffer;
26 + Chunk *c = (Chunk *)buffer;
/openbmc/qemu/tests/tcg/aarch64/system/
H A Dkernel.ld6 /* Align text and rodata to the 1st 2 MiB chunk. */
8 /* Align r/w data to the 2nd 2 MiB chunk. */
10 /* Align the MTE-enabled page to the 3rd 2 MiB chunk. */
/openbmc/u-boot/test/fs/
H A Dfs-test.sh276 # Test Case 7a - One from the last 1MB chunk of 2GB
279 # Test Case 7b - One from the last 1MB chunk of 2GB
284 # Test Case 8a - One from the start 1MB chunk from 2GB
287 # Test Case 8b - One from the start 1MB chunk from 2GB
292 # Test Case 9a - One 1MB chunk crossing the 2GB boundary
295 # Test Case 9b - One 1MB chunk crossing the 2GB boundary
300 # Test Case 10 - 2MB chunk from the last 1MB of big file
395 # One from the last 1MB chunk of 2GB
399 # One from the start 1MB chunk from 2GB
403 # One 1MB chunk crossing the 2GB boundary
[all …]

12345678910>>...12