Home
last modified time | relevance | path

Searched refs:HEADER_SIZE (Results 1 – 16 of 16) sorted by relevance

/external/qemu/block/
Dvpc.c31 #define HEADER_SIZE 512 macro
115 uint8_t footer_buf[HEADER_SIZE];
159 uint8_t buf[HEADER_SIZE]; in vpc_open()
162 if (bdrv_pread(bs->file, 0, s->footer_buf, HEADER_SIZE) != HEADER_SIZE) in vpc_open()
171 if (vpc_checksum(s->footer_buf, HEADER_SIZE) != checksum) in vpc_open()
181 if (bdrv_pread(bs->file, be64_to_cpu(footer->data_offset), buf, HEADER_SIZE) in vpc_open()
182 != HEADER_SIZE) in vpc_open()
314 ret = bdrv_pwrite_sync(bs->file, offset, s->footer_buf, HEADER_SIZE); in rewrite_footer()
537 footer->data_offset = be64_to_cpu(HEADER_SIZE); in vpc_create()
555 footer->checksum = be32_to_cpu(vpc_checksum(buf, HEADER_SIZE)); in vpc_create()
[all …]
Dbochs.c34 #define HEADER_SIZE 512 macro
55 char padding[HEADER_SIZE - 64 - 8 - 20];
57 char padding[HEADER_SIZE - 64 - 8];
76 char padding[HEADER_SIZE - 64 - 8 - 24];
78 char padding[HEADER_SIZE - 64 - 8];
97 if (buf_size < HEADER_SIZE) in bochs_probe()
Dparallels.c34 #define HEADER_SIZE 64 macro
60 if (buf_size < HEADER_SIZE) in parallels_probe()
Dvmdk.c107 #define HEADER_SIZE 512 // first sector of 512 bytes macro
186 char p_desc[DESC_SIZE], s_desc[DESC_SIZE], hdr[HEADER_SIZE]; in vmdk_snapshot_create()
216 if (read(p_fd, hdr, HEADER_SIZE) != HEADER_SIZE) { in vmdk_snapshot_create()
226 if (write(snp_fd, hdr, HEADER_SIZE) == -1) { in vmdk_snapshot_create()
/external/openssl/crypto/asn1/
Da_d2i_fp.c141 #define HEADER_SIZE 8 macro
148 size_t want=HEADER_SIZE; in asn1_d2i_read_bio()
216 want=HEADER_SIZE; in asn1_d2i_read_bio()
225 want=HEADER_SIZE; in asn1_d2i_read_bio()
271 want=HEADER_SIZE; in asn1_d2i_read_bio()
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DTypeListItem.java37 private static final int HEADER_SIZE = 4; field in TypeListItem
48 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE); in TypeListItem()
98 out.annotate(HEADER_SIZE, " size: " + Hex.u4(sz)); in writeTo0()
DUniformListItem.java40 private static final int HEADER_SIZE = 4; field in UniformListItem
77 return Math.max(HEADER_SIZE, items.get(0).getAlignment()); in getAlignment()
DAnnotationsDirectoryItem.java38 private static final int HEADER_SIZE = 16; field in AnnotationsDirectoryItem
279 setWriteSize(HEADER_SIZE + (elementCount * ELEMENT_SIZE)); in place0()
DCodeItem.java49 private static final int HEADER_SIZE = 16; field in CodeItem
228 setWriteSize(HEADER_SIZE + (insnsSize * 2) + catchesSize); in place0()
/external/smali/dexlib/src/main/java/org/jf/dexlib/
DHeaderItem.java44 private static final int HEADER_SIZE = 0x70; field in HeaderItem
71 if (in.readInt() != HEADER_SIZE) { in readItem()
130 return HEADER_SIZE; in placeItem()
153 out.annotate("header_size: 0x" + Integer.toHexString(HEADER_SIZE)); in writeItem()
154 out.writeInt(HEADER_SIZE); in writeItem()
/external/mtpd/
Dpptp.c72 #define HEADER_SIZE 8 macro
157 incoming.expect = HEADER_SIZE; in recv_packet()
188 if (incoming.length == HEADER_SIZE && incoming.expect == HEADER_SIZE) { in recv_packet()
195 if (incoming.expect < HEADER_SIZE) { in recv_packet()
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Dpseudotcp.cc115 const uint32 HEADER_SIZE = 24; variable
116 const uint32 PACKET_OVERHEAD = HEADER_SIZE + UDP_HEADER_SIZE + IP_HEADER_SIZE + JINGLE_HEADER_SIZE;
483 ASSERT(HEADER_SIZE + len <= MAX_PACKET); in packet()
500 memcpy(buffer + HEADER_SIZE, data, len); in packet()
513 …eResult wres = m_notify->TcpWritePacket(this, reinterpret_cast<char *>(buffer), len + HEADER_SIZE); in packet()
544 seg.data = reinterpret_cast<const char *>(buffer) + HEADER_SIZE; in parse()
545 seg.len = size - HEADER_SIZE; in parse()
/external/skia/src/images/
DSkImageDecoder_libjpeg.cpp994 static const size_t HEADER_SIZE = sizeof(gHeader); in DFactory() local
996 char buffer[HEADER_SIZE]; in DFactory()
997 size_t len = stream->read(buffer, HEADER_SIZE); in DFactory()
999 if (len != HEADER_SIZE) { in DFactory()
1002 if (memcmp(buffer, gHeader, HEADER_SIZE)) { in DFactory()
/external/jmdns/src/javax/jmdns/impl/
DDNSOutgoing.java188 private final static int HEADER_SIZE = 12; field in DNSOutgoing
233 …return _maxUDPPayload - HEADER_SIZE - _questionsBytes.size() - _answersBytes.size() - _authoritati… in availableSpace()
/external/qemu/android/
Dhw-qemud.c196 #define HEADER_SIZE 6 macro
388 D("%s: bad header: '%.*s'", __FUNCTION__, HEADER_SIZE, s->data0); in qemud_serial_read()
498 qemud_sink_reset( s->header, HEADER_SIZE, s->data0 ); in qemud_serial_init()
524 uint8_t header[HEADER_SIZE]; in qemud_serial_send()
559 T("%s: '%.*s'", __FUNCTION__, HEADER_SIZE, header); in qemud_serial_send()
560 qemu_chr_write(s->cs, header, HEADER_SIZE); in qemud_serial_send()
Dhw-sensors.c166 #define HEADER_SIZE 4 macro