Home
last modified time | relevance | path

Searched refs:chunk_header (Results 1 – 7 of 7) sorted by relevance

/external/u-boot/lib/
Dimage-sparse.c62 chunk_header_t *chunk_header; in write_sparse_image() local
113 chunk_header = (chunk_header_t *)data; in write_sparse_image()
116 if (chunk_header->chunk_type != CHUNK_TYPE_RAW) { in write_sparse_image()
118 debug("chunk_type: 0x%x\n", chunk_header->chunk_type); in write_sparse_image()
119 debug("chunk_data_sz: 0x%x\n", chunk_header->chunk_sz); in write_sparse_image()
120 debug("total_size: 0x%x\n", chunk_header->total_sz); in write_sparse_image()
132 chunk_data_sz = sparse_header->blk_sz * chunk_header->chunk_sz; in write_sparse_image()
134 switch (chunk_header->chunk_type) { in write_sparse_image()
136 if (chunk_header->total_sz != in write_sparse_image()
163 total_blocks += chunk_header->chunk_sz; in write_sparse_image()
[all …]
/external/pcre/dist2/src/sljit/
DsljitProtExecAllocator.c71 struct chunk_header { struct
168 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk()
170 struct chunk_header *retval; in alloc_chunk()
182 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
203 struct chunk_header *header = ((struct chunk_header *)chunk) - 1; in free_chunk()
268 struct chunk_header *chunk_header; in sljit_malloc_exec() local
306 chunk_size = sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec()
309 chunk_header = alloc_chunk(chunk_size); in sljit_malloc_exec()
310 if (!chunk_header) { in sljit_malloc_exec()
315 executable_offset = (sljit_sw)((sljit_u8*)chunk_header->executable - (sljit_u8*)chunk_header); in sljit_malloc_exec()
[all …]
/external/tinyalsa/
Dtinyplay.c48 struct chunk_header { struct
79 struct chunk_header chunk_header; in main() local
110 fread(&chunk_header, sizeof(chunk_header), 1, file); in main()
112 switch (chunk_header.id) { in main()
116 if (chunk_header.sz > sizeof(chunk_fmt)) in main()
117 fseek(file, chunk_header.sz - sizeof(chunk_fmt), SEEK_CUR); in main()
122 chunk_header.sz = le32toh(chunk_header.sz); in main()
126 fseek(file, chunk_header.sz, SEEK_CUR); in main()
158 chunk_fmt.bits_per_sample, period_size, period_count, chunk_header.sz); in main()
/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h388 ChunkHeader* chunk_header = header(); in IncrementPacketCount() local
389 auto packets = chunk_header->packets.load(std::memory_order_relaxed); in IncrementPacketCount()
391 chunk_header->packets.store(packets, std::memory_order_release); in IncrementPacketCount()
400 ChunkHeader* chunk_header = header(); in IncreasePacketCountTo() local
401 auto packets = chunk_header->packets.load(std::memory_order_relaxed); in IncreasePacketCountTo()
404 chunk_header->packets.store(packets, std::memory_order_release); in IncreasePacketCountTo()
411 ChunkHeader* chunk_header = header(); in SetFlag() local
412 auto packets = chunk_header->packets.load(std::memory_order_relaxed); in SetFlag()
414 chunk_header->packets.store(packets, std::memory_order_release); in SetFlag()
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc128 ChunkHeader chunk_header{}; in Initialize() local
129 chunk_header.chunk_id.store(static_cast<uint32_t>(-1)); in Initialize()
130 PERFETTO_CHECK(chunk_header.chunk_id.load() == kMaxChunkID); in Initialize()
132 chunk_header.writer_id.store(static_cast<uint16_t>(-1)); in Initialize()
133 PERFETTO_CHECK(kMaxWriterID <= chunk_header.writer_id.load()); in Initialize()
Dtracing_service_impl.cc2577 const SharedMemoryABI::ChunkHeader& chunk_header = *chunk.header(); in CommitData() local
2578 WriterID writer_id = chunk_header.writer_id.load(std::memory_order_relaxed); in CommitData()
2579 ChunkID chunk_id = chunk_header.chunk_id.load(std::memory_order_relaxed); in CommitData()
2580 auto packets = chunk_header.packets.load(std::memory_order_relaxed); in CommitData()
/external/u-boot/include/
Dsparse_format.h35 typedef struct chunk_header { struct