Lines Matching refs:mBuffer
78 value = mBuffer[mOffset++]; in getUInt8()
86 value = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8); in getUInt16()
95 value = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) | in getUInt32()
96 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24); in getUInt32()
105 value = (uint64_t)mBuffer[offset] | ((uint64_t)mBuffer[offset + 1] << 8) | in getUInt64()
106 ((uint64_t)mBuffer[offset + 2] << 16) | ((uint64_t)mBuffer[offset + 3] << 24) | in getUInt64()
107 ((uint64_t)mBuffer[offset + 4] << 32) | ((uint64_t)mBuffer[offset + 5] << 40) | in getUInt64()
108 ((uint64_t)mBuffer[offset + 6] << 48) | ((uint64_t)mBuffer[offset + 7] << 56); in getUInt64()
252 mBuffer[mOffset++] = (uint8_t)value; in putInt8()
259 mBuffer[mOffset++] = (uint8_t)value; in putUInt8()
266 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt16()
267 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putInt16()
274 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putUInt16()
275 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt16()
282 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt32()
283 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putInt32()
284 mBuffer[mOffset++] = (uint8_t)((value >> 16) & 0xFF); in putInt32()
285 mBuffer[mOffset++] = (uint8_t)((value >> 24) & 0xFF); in putInt32()
292 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putUInt32()
293 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt32()
294 mBuffer[mOffset++] = (uint8_t)((value >> 16) & 0xFF); in putUInt32()
295 mBuffer[mOffset++] = (uint8_t)((value >> 24) & 0xFF); in putUInt32()
302 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putInt64()
303 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putInt64()
304 mBuffer[mOffset++] = (uint8_t)((value >> 16) & 0xFF); in putInt64()
305 mBuffer[mOffset++] = (uint8_t)((value >> 24) & 0xFF); in putInt64()
306 mBuffer[mOffset++] = (uint8_t)((value >> 32) & 0xFF); in putInt64()
307 mBuffer[mOffset++] = (uint8_t)((value >> 40) & 0xFF); in putInt64()
308 mBuffer[mOffset++] = (uint8_t)((value >> 48) & 0xFF); in putInt64()
309 mBuffer[mOffset++] = (uint8_t)((value >> 56) & 0xFF); in putInt64()
316 mBuffer[mOffset++] = (uint8_t)(value & 0xFF); in putUInt64()
317 mBuffer[mOffset++] = (uint8_t)((value >> 8) & 0xFF); in putUInt64()
318 mBuffer[mOffset++] = (uint8_t)((value >> 16) & 0xFF); in putUInt64()
319 mBuffer[mOffset++] = (uint8_t)((value >> 24) & 0xFF); in putUInt64()
320 mBuffer[mOffset++] = (uint8_t)((value >> 32) & 0xFF); in putUInt64()
321 mBuffer[mOffset++] = (uint8_t)((value >> 40) & 0xFF); in putUInt64()
322 mBuffer[mOffset++] = (uint8_t)((value >> 48) & 0xFF); in putUInt64()
323 mBuffer[mOffset++] = (uint8_t)((value >> 56) & 0xFF); in putUInt64()
445 int ret = h->read(mBuffer, MTP_BUFFER_SIZE); in read()
456 int ret = h->write(mBuffer, mPacketSize); in write()
462 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()
466 int ret = h->write(mBuffer, length); in writeData()
475 request->buffer = mBuffer; in read()
483 request->buffer = mBuffer + length; in read()
529 request->buffer = mBuffer; in readDataHeader()
551 request->buffer = mBuffer + processedBytes; in write()
582 request->buffer = mBuffer; in write()
607 mBuffer + bulkTransferSize, in write()
615 memset(mBuffer + bulkTransferSize, 0, bulkTransferPayloadSize); in write()
644 memcpy(result, mBuffer + MTP_CONTAINER_HEADER_SIZE, length); in getData()