Searched refs:MTP_CONTAINER_HEADER_SIZE (Results 1 – 6 of 6) sorted by relevance
34 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket()43 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset()351 if (ret < MTP_CONTAINER_HEADER_SIZE) in read()354 mOffset = MTP_CONTAINER_HEADER_SIZE; in read()367 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()368 length += MTP_CONTAINER_HEADER_SIZE; in writeData()383 if (length >= MTP_CONTAINER_HEADER_SIZE) { in read()446 request->buffer_length = MTP_CONTAINER_HEADER_SIZE; in writeDataHeader()457 request->buffer_length = MTP_CONTAINER_HEADER_SIZE; in write()459 if (ret == MTP_CONTAINER_HEADER_SIZE) { in write()[all …]
44 inline const uint8_t* getData() const { return mBuffer + MTP_CONTAINER_HEADER_SIZE; } in getData()117 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()
586 if (length - MTP_CONTAINER_HEADER_SIZE != objectSize) { in readObject()591 length -= MTP_CONTAINER_HEADER_SIZE; in readObject()690 if (length < MTP_CONTAINER_HEADER_SIZE) in readObject()692 length -= MTP_CONTAINER_HEADER_SIZE; in readObject()791 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readData()826 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readResponse()
927 if (ret < MTP_CONTAINER_HEADER_SIZE) { in doSendObject()931 initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendObject()1116 if (ret < MTP_CONTAINER_HEADER_SIZE) in doSendPartialObject()1118 int initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendPartialObject()
38 #define MTP_CONTAINER_HEADER_SIZE 12 macro