Searched refs:MTP_CONTAINER_HEADER_SIZE (Results 1 – 7 of 7) 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()446 if (ret < MTP_CONTAINER_HEADER_SIZE) in read()449 mOffset = MTP_CONTAINER_HEADER_SIZE; in read()461 allocate(length + MTP_CONTAINER_HEADER_SIZE); in writeData()462 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()463 length += MTP_CONTAINER_HEADER_SIZE; in writeData()478 if (length >= MTP_CONTAINER_HEADER_SIZE) { in read()538 if (mPacketSize < MTP_CONTAINER_HEADER_SIZE || mPacketSize > MTP_BUFFER_SIZE) { in write()550 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()
1219 if (ret < MTP_CONTAINER_HEADER_SIZE) { in doSendObject()1223 initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendObject()1267 initialData == MTP_BUFFER_SIZE - MTP_CONTAINER_HEADER_SIZE); in doSendObject()1396 if (ret < MTP_CONTAINER_HEADER_SIZE) in doSendPartialObject()1398 int initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendPartialObject()1419 initialData == MTP_BUFFER_SIZE - MTP_CONTAINER_HEADER_SIZE); in doSendPartialObject()
38 #define MTP_CONTAINER_HEADER_SIZE 12 macro