Searched refs:MTP_CONTAINER_HEADER_SIZE (Results 1 – 7 of 7) sorted by relevance
48 if (read_size >= MTP_CONTAINER_HEADER_SIZE in read()49 && read_size <= MTP_CONTAINER_HEADER_SIZE + 5 * sizeof(uint32_t) in read()50 && ((read_size - MTP_CONTAINER_HEADER_SIZE) & 3) == 0) { in read()52 mParameterCount = (read_size - MTP_CONTAINER_HEADER_SIZE) / sizeof(uint32_t); in read()
32 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket()41 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset()423 if (ret < MTP_CONTAINER_HEADER_SIZE) in read()426 mOffset = MTP_CONTAINER_HEADER_SIZE; in read()438 allocate(length + MTP_CONTAINER_HEADER_SIZE); in writeData()439 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()440 length += MTP_CONTAINER_HEADER_SIZE; in writeData()455 if (length >= MTP_CONTAINER_HEADER_SIZE) { in read()518 request->buffer_length = MTP_CONTAINER_HEADER_SIZE; in writeDataHeader()542 int length = mPacketSize - MTP_CONTAINER_HEADER_SIZE; in getData()[all …]
44 inline const uint8_t* getData() const { return mBuffer + MTP_CONTAINER_HEADER_SIZE; } in getData()118 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()
709 if (fullLength < MTP_CONTAINER_HEADER_SIZE) { in readData()713 const uint32_t length = fullLength - MTP_CONTAINER_HEADER_SIZE; in readData()857 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readData()892 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readResponse()
1002 if (ret < MTP_CONTAINER_HEADER_SIZE) { in doSendObject()1006 initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendObject()1209 if (ret < MTP_CONTAINER_HEADER_SIZE) in doSendPartialObject()1211 int initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendPartialObject()
38 #define MTP_CONTAINER_HEADER_SIZE 12 macro