Searched refs:MTP_CONTAINER_HEADER_SIZE (Results 1 – 8 of 8) sorted by relevance
49 if (read_size >= MTP_CONTAINER_HEADER_SIZE in read()50 && read_size <= MTP_CONTAINER_HEADER_SIZE + 5 * sizeof(uint32_t) in read()51 && ((read_size - MTP_CONTAINER_HEADER_SIZE) & 3) == 0) { in read()53 mParameterCount = (read_size - MTP_CONTAINER_HEADER_SIZE) / sizeof(uint32_t); in read()
55 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket()64 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset()451 if (ret < MTP_CONTAINER_HEADER_SIZE) in read()454 mOffset = MTP_CONTAINER_HEADER_SIZE; in read()466 allocate(length + MTP_CONTAINER_HEADER_SIZE); in writeData()467 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()468 length += MTP_CONTAINER_HEADER_SIZE; in writeData()483 if (length >= MTP_CONTAINER_HEADER_SIZE) { in read()543 if (mPacketSize < MTP_CONTAINER_HEADER_SIZE || mPacketSize > MTP_BUFFER_SIZE) { in write()555 MTP_CONTAINER_HEADER_SIZE : mPacketSize - processedBytes; in write()[all …]
45 inline const uint8_t* getData() const { return mBuffer + MTP_CONTAINER_HEADER_SIZE; } in getData()125 inline bool hasData() const { return mPacketSize > MTP_CONTAINER_HEADER_SIZE; } in hasData()
50 allocate(MTP_CONTAINER_HEADER_SIZE); in reset()51 mPacketSize = MTP_CONTAINER_HEADER_SIZE; in reset()
742 if (fullLength < MTP_CONTAINER_HEADER_SIZE) { in readData()746 const uint32_t length = fullLength - MTP_CONTAINER_HEADER_SIZE; in readData()758 if (fullLength > MTP_CONTAINER_HEADER_SIZE && initialDataLength == 0) { in readData()898 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readData()927 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readResponse()
1223 if (ret < MTP_CONTAINER_HEADER_SIZE) { in doSendObject()1227 initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendObject()1271 initialData == MTP_BUFFER_SIZE - MTP_CONTAINER_HEADER_SIZE); in doSendObject()1400 if (ret < MTP_CONTAINER_HEADER_SIZE) in doSendPartialObject()1402 int initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendPartialObject()1423 initialData == MTP_BUFFER_SIZE - MTP_CONTAINER_HEADER_SIZE); in doSendPartialObject()
38 #define MTP_CONTAINER_HEADER_SIZE 12 macro
40 MtpPacket mtpPacket(mFdp.ConsumeIntegralInRange<size_t>(MTP_CONTAINER_HEADER_SIZE, in process()