Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/device/google/contexthub/util/nanotool/
Dnanomessage.cpp32 bool HardwareVersionInfo::Populate(const std::vector<uint8_t>& buffer) { in Populate() argument
33 if (buffer.size() != sizeof(VersionInfo)) { in Populate()
37 const uint8_t *data = buffer.data(); in Populate()
51 char buffer[1024]; in ToString() local
52 snprintf(buffer, sizeof(buffer), format_string, in ToString()
58 return std::string(buffer); in ToString()
66 char buffer[128]; in ToString() local
67 snprintf(buffer, sizeof(buffer), format_string, in ToString()
69 return std::string(buffer); in ToString()
72 bool WriteEventResponse::Populate(const std::vector<uint8_t>& buffer) { in Populate() argument
[all …]
Dsensorevent.cpp34 const std::vector<uint8_t>& buffer) { in FromBytes() argument
38 ReadEventResponse::EventTypeFromBuffer(buffer) - in FromBytes()
96 (!sensor_event->Populate(buffer) || !sensor_event->SizeIsValid())) { in FromBytes()
154 char buffer[32]; in GetSampleTimeStr() local
155 snprintf(buffer, sizeof(buffer), "%" PRIu64 ".%06" PRIu64 " ms", in GetSampleTimeStr()
158 return std::string(buffer); in GetSampleTimeStr()
176 char buffer[64]; in ToString() local
177 snprintf(buffer, sizeof(buffer), in ToString()
183 return std::string(buffer) + StringForAllSamples(); in ToString()
212 char buffer[64]; in StringForSample() local
[all …]
Dnanopacket.cpp44 uint32_t Crc32(const uint8_t *buffer, int length) { in Crc32() argument
50 crc = Crc32Word(crc, ((uint32_t *)buffer)[i], 8); in Crc32()
58 word |= buffer[i] << ((i & 0x3) * 8); in Crc32()
145 NanoPacket::ParseResult NanoPacket::Parse(uint8_t *buffer, size_t length, in Parse() argument
151 packet_buffer_.push_back(buffer[i]); in Parse()
155 if (parsing_state_ == ParsingState::Idle && buffer[i] == kSyncByte) { in Parse()
156 packet_buffer_.push_back(buffer[i]); in Parse()
159 && DeserializeWord(&sequence_number_, buffer[i])) { in Parse()
162 && DeserializeWord(&reason_, buffer[i])) { in Parse()
165 uint8_t length = buffer[i]; in Parse()
[all …]
/device/google/contexthub/firmware/os/core/
DhostIntf.c87 struct HostIntfDataBuffer buffer; member
419 void hostIntfTxAck(void *buffer, uint8_t len) in hostIntfTxAck() argument
423 memcpy(txPayload, buffer, len); in hostIntfTxAck()
538 sensor->buffer.length = 0; in resetBuffer()
539 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); in resetBuffer()
560 struct HostIntfDataBuffer *buffer = data; in hostIntfPacketDequeue() local
565 ret = simpleQueueDequeue(mOutputQ, buffer); in hostIntfPacketDequeue()
567 sensor = getActiveSensorByType(buffer->sensType); in hostIntfPacketDequeue()
570 …if (sensor->sensorHandle == 0 && !buffer->firstSample.biasPresent && !buffer->firstSample.numFlush… in hostIntfPacketDequeue()
575 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue()
[all …]
/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c45 uint8_t buffer[sizeof(uint8_t)+1]; in write_len() local
47 buffer[0] = len-1; in write_len()
49 return handle->write_data(handle, buffer, sizeof(uint8_t)); in write_len()
54 uint8_t buffer[sizeof(uint16_t)+1]; in write_cnt() local
56 buffer[0] = (cnt >> 8) & 0xFF; in write_cnt()
57 buffer[1] = (cnt ) & 0xFF; in write_cnt()
59 return handle->write_data(handle, buffer, sizeof(uint16_t)); in write_cnt()
64 uint8_t buffer[sizeof(uint32_t)+1]; in write_addr() local
66 buffer[0] = (addr >> 24) & 0xFF; in write_addr()
67 buffer[1] = (addr >> 16) & 0xFF; in write_addr()
[all …]
Dspi.c24 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length) in spi_write_data() argument
30 .tx_buf = (unsigned long)buffer, in spi_write_data()
31 .rx_buf = (unsigned long)buffer, in spi_write_data()
35 buffer[length] = checksum(handle, buffer, length); in spi_write_data()
38 return buffer[length]; in spi_write_data()
46 uint8_t buffer[] = in spi_write_cmd() local
54 .len = sizeof(buffer), in spi_write_cmd()
55 .tx_buf = (unsigned long)buffer, in spi_write_cmd()
56 .rx_buf = (unsigned long)buffer, in spi_write_cmd()
69 uint8_t buffer[] = in spi_read_data() local
[all …]
Dflash.c71 uint8_t *buffer; in main() local
226 buffer = calloc(tot_len(buf.st_size), 1); in main()
230 if (fread(&buffer[sizeof(uint32_t)], 1, length, file) < (size_t)length) { in main()
232 free(buffer); in main()
242 buffer[0] = type; in main()
243 buffer[1] = (length >> 16) & 0xFF; in main()
244 buffer[2] = (length >> 8) & 0xFF; in main()
245 buffer[3] = (length ) & 0xFF; in main()
246 crc = ~stm32f4_crc32(buffer, sizeof(uint32_t) + length); in main()
248 memcpy(&buffer[sizeof(uint32_t) + pad(length)], in main()
[all …]
/device/google/cuttlefish/host/frontend/webrtc/
Daudio_handler.cpp131 CvdAudioFrameBuffer(const uint8_t* buffer, int bits_per_sample, in CvdAudioFrameBuffer() argument
133 : buffer_(buffer), in CvdAudioFrameBuffer()
348 stream_descs_[cmd.stream_id()].buffer.Reset(len10ms); in SetStreamParameters()
409 void AudioHandler::OnPlaybackBuffer(TxBuffer buffer) { in OnPlaybackBuffer() argument
410 auto stream_id = buffer.stream_id(); in OnPlaybackBuffer()
414 auto& holding_buffer = stream_descs_[stream_id].buffer; in OnPlaybackBuffer()
417 buffer.SendStatus(AudioStatus::VIRTIO_SND_S_BAD_MSG, 0, 0); in OnPlaybackBuffer()
424 buffer.SendStatus(AudioStatus::VIRTIO_SND_S_OK, 0, buffer.len()); in OnPlaybackBuffer()
434 current_time - ((buffer.len() - 1) / holding_buffer.buffer.size()) * 10; in OnPlaybackBuffer()
438 while (pos < buffer.len()) { in OnPlaybackBuffer()
[all …]
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_bufferdescriptor.cpp150 int mali_gralloc_get_backing_store_internal(buffer_handle_t buffer, gralloc1_backing_store_t *outSt… in mali_gralloc_get_backing_store_internal() argument
152 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_get_backing_store_internal()
154 AERR("Invalid buffer %p, returning error", buffer); in mali_gralloc_get_backing_store_internal()
158 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_get_backing_store_internal()
164 int mali_gralloc_get_consumer_usage_internal(buffer_handle_t buffer, uint64_t *outUsage) in mali_gralloc_get_consumer_usage_internal() argument
166 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_get_consumer_usage_internal()
168 AERR("Invalid buffer %p, returning error", buffer); in mali_gralloc_get_consumer_usage_internal()
172 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_get_consumer_usage_internal()
177 int mali_gralloc_get_dimensions_internal(buffer_handle_t buffer, uint32_t *outWidth, uint32_t *outH… in mali_gralloc_get_dimensions_internal() argument
179 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_get_dimensions_internal()
[all …]
Dmali_gralloc_public_interface.cpp105 static int32_t mali_gralloc_get_backing_store(gralloc1_device_t *device, buffer_handle_t buffer, in mali_gralloc_get_backing_store() argument
109 ret = mali_gralloc_get_backing_store_internal(buffer, outStore); in mali_gralloc_get_backing_store()
114 static int32_t mali_gralloc_get_consumer_usage(gralloc1_device_t *device, buffer_handle_t buffer, in mali_gralloc_get_consumer_usage() argument
118 ret = mali_gralloc_get_consumer_usage_internal(buffer, outUsage); in mali_gralloc_get_consumer_usage()
123 static int32_t mali_gralloc_get_dimensions(gralloc1_device_t *device, buffer_handle_t buffer, uint3… in mali_gralloc_get_dimensions() argument
127 ret = mali_gralloc_get_dimensions_internal(buffer, outWidth, outHeight); in mali_gralloc_get_dimensions()
132 static int32_t mali_gralloc_get_format(gralloc1_device_t *device, buffer_handle_t buffer, int32_t *… in mali_gralloc_get_format() argument
135 ret = mali_gralloc_get_format_internal(buffer, outFormat); in mali_gralloc_get_format()
140 static int32_t mali_gralloc_get_producer_usage(gralloc1_device_t *device, buffer_handle_t buffer, in mali_gralloc_get_producer_usage() argument
144 ret = mali_gralloc_get_producer_usage_internal(buffer, outUsage); in mali_gralloc_get_producer_usage()
[all …]
Dmali_gralloc_bufferaccess.cpp36 int mali_gralloc_lock(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, … in mali_gralloc_lock() argument
45 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_lock()
47 AERR("Locking invalid buffer %p, returning error", buffer); in mali_gralloc_lock()
51 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_lock()
72 int mali_gralloc_lock_ycbcr(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, i… in mali_gralloc_lock_ycbcr() argument
81 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_lock_ycbcr()
83 AERR("Locking invalid buffer %p, returning error", buffer); in mali_gralloc_lock_ycbcr()
92 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_lock_ycbcr()
168 int mali_gralloc_unlock(const mali_gralloc_module *m, buffer_handle_t buffer) in mali_gralloc_unlock() argument
170 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_unlock()
[all …]
/device/google/cuttlefish/host/libs/input_connector/
Dsocket_input_connector.cpp84 Result<void> WriteEvents(std::unique_ptr<InputEventsBuffer> buffer);
120 std::unique_ptr<InputEventsBuffer> buffer) { in WriteEvents() argument
123 auto res = WriteAll(client_, reinterpret_cast<const char*>(buffer->data()), in WriteEvents()
124 buffer->size()); in WriteEvents()
125 CF_EXPECT(res == buffer->size(), "Failed to write entire event buffer: wrote " in WriteEvents()
126 << res << " of " << buffer->size() in WriteEvents()
135 Result<void> WriteEvents(std::unique_ptr<InputEventsBuffer> buffer) { in WriteEvents() argument
136 return socket_->WriteEvents(std::move(buffer)); in WriteEvents()
262 auto buffer = CreateBuffer(input_devices_.event_type, 4); in SendTouchEvent() local
263 CF_EXPECT(buffer != nullptr, "Failed to allocate input events buffer"); in SendTouchEvent()
[all …]
/device/linaro/hikey/gralloc960/
Dmali_gralloc_bufferdescriptor.cpp117 int mali_gralloc_get_backing_store_internal(buffer_handle_t buffer, gralloc1_backing_store_t *outSt… in mali_gralloc_get_backing_store_internal() argument
119 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_get_backing_store_internal()
121 AERR("Invalid buffer %p, returning error", buffer); in mali_gralloc_get_backing_store_internal()
125 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_get_backing_store_internal()
131 int mali_gralloc_get_consumer_usage_internal(buffer_handle_t buffer, uint64_t *outUsage) in mali_gralloc_get_consumer_usage_internal() argument
133 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_get_consumer_usage_internal()
135 AERR("Invalid buffer %p, returning error", buffer); in mali_gralloc_get_consumer_usage_internal()
139 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_get_consumer_usage_internal()
144 int mali_gralloc_get_dimensions_internal(buffer_handle_t buffer, uint32_t *outWidth, uint32_t *outH… in mali_gralloc_get_dimensions_internal() argument
146 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_get_dimensions_internal()
[all …]
Dmali_gralloc_public_interface.cpp104 static int32_t mali_gralloc_get_backing_store(gralloc1_device_t *device, buffer_handle_t buffer, in mali_gralloc_get_backing_store() argument
108 ret = mali_gralloc_get_backing_store_internal(buffer, outStore); in mali_gralloc_get_backing_store()
113 static int32_t mali_gralloc_get_consumer_usage(gralloc1_device_t *device, buffer_handle_t buffer, in mali_gralloc_get_consumer_usage() argument
117 ret = mali_gralloc_get_consumer_usage_internal(buffer, outUsage); in mali_gralloc_get_consumer_usage()
122 static int32_t mali_gralloc_get_dimensions(gralloc1_device_t *device, buffer_handle_t buffer, uint3… in mali_gralloc_get_dimensions() argument
126 ret = mali_gralloc_get_dimensions_internal(buffer, outWidth, outHeight); in mali_gralloc_get_dimensions()
131 static int32_t mali_gralloc_get_format(gralloc1_device_t *device, buffer_handle_t buffer, int32_t *… in mali_gralloc_get_format() argument
134 ret = mali_gralloc_get_format_internal(buffer, outFormat); in mali_gralloc_get_format()
139 static int32_t mali_gralloc_get_producer_usage(gralloc1_device_t *device, buffer_handle_t buffer, in mali_gralloc_get_producer_usage() argument
143 ret = mali_gralloc_get_producer_usage_internal(buffer, outUsage); in mali_gralloc_get_producer_usage()
[all …]
Dmali_gralloc_bufferaccess.cpp36 int mali_gralloc_lock(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, … in mali_gralloc_lock() argument
45 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_lock()
47 AERR("Locking invalid buffer %p, returning error", buffer); in mali_gralloc_lock()
51 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_lock()
72 int mali_gralloc_lock_ycbcr(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, i… in mali_gralloc_lock_ycbcr() argument
81 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_lock_ycbcr()
83 AERR("Locking invalid buffer %p, returning error", buffer); in mali_gralloc_lock_ycbcr()
92 private_handle_t *hnd = (private_handle_t *)buffer; in mali_gralloc_lock_ycbcr()
168 int mali_gralloc_unlock(const mali_gralloc_module *m, buffer_handle_t buffer) in mali_gralloc_unlock() argument
170 if (private_handle_t::validate(buffer) < 0) in mali_gralloc_unlock()
[all …]
/device/generic/goldfish-opengl/system/hwc3/
DGralloc.cpp42 std::optional<uint32_t> Gralloc::GetWidth(buffer_handle_t buffer) { in GetWidth() argument
44 status_t status = GraphicBufferMapper::get().getWidth(buffer, &width); in GetWidth()
56 std::optional<uint32_t> Gralloc::GetHeight(buffer_handle_t buffer) { in GetHeight() argument
58 status_t status = GraphicBufferMapper::get().getHeight(buffer, &height); in GetHeight()
70 std::optional<uint32_t> Gralloc::GetDrmFormat(buffer_handle_t buffer) { in GetDrmFormat() argument
72 status_t status = GraphicBufferMapper::get().getPixelFormatFourCC(buffer, &format); in GetDrmFormat()
80 std::optional<std::vector<PlaneLayout>> Gralloc::GetPlaneLayouts(buffer_handle_t buffer) { in GetPlaneLayouts() argument
82 status_t status = GraphicBufferMapper::get().getPlaneLayouts(buffer, &layouts); in GetPlaneLayouts()
90 std::optional<uint32_t> Gralloc::GetMonoPlanarStrideBytes(buffer_handle_t buffer) { in GetMonoPlanarStrideBytes() argument
91 auto plane_layouts_opt = GetPlaneLayouts(buffer); in GetMonoPlanarStrideBytes()
[all …]
DDrmClient.cpp247 auto buffer = std::shared_ptr<DrmBuffer>(new DrmBuffer(*this)); in create() local
248 buffer->mWidth = crosHandle->width; in create()
249 buffer->mHeight = crosHandle->height; in create()
250 buffer->mDrmFormat = crosHandle->format; in create()
251 buffer->mPlaneFds[0] = crosHandle->fds[0]; in create()
252 buffer->mPlaneHandles[0] = primeHandle; in create()
253 buffer->mPlanePitches[0] = crosHandle->strides[0]; in create()
254 buffer->mPlaneOffsets[0] = crosHandle->offsets[0]; in create()
257 ret = drmModeAddFB2(mFd.get(), buffer->mWidth, buffer->mHeight, buffer->mDrmFormat, in create()
258 buffer->mPlaneHandles, buffer->mPlanePitches, buffer->mPlaneOffsets, in create()
[all …]
DGralloc.h51 GrallocBufferView(GrallocBuffer* buffer, void* raw);
52 GrallocBufferView(GrallocBuffer* buffer, android_ycbcr raw);
66 GrallocBuffer(Gralloc* gralloc, buffer_handle_t buffer);
109 std::optional<GrallocBuffer> Import(buffer_handle_t buffer);
117 void Release(buffer_handle_t buffer);
120 std::optional<void*> Lock(buffer_handle_t buffer);
123 std::optional<android_ycbcr> LockYCbCr(buffer_handle_t buffer);
126 void Unlock(buffer_handle_t buffer);
129 std::optional<uint32_t> GetWidth(buffer_handle_t buffer);
132 std::optional<uint32_t> GetHeight(buffer_handle_t buffer);
[all …]
/device/google/cuttlefish/host/commands/secure_env/
Dtpm_hmac.cpp39 TPM2B_MAX_BUFFER buffer; in OneshotHmac() local
40 static_assert(sizeof(buffer.buffer) >= TPM2_MAX_DIGEST_BUFFER); in OneshotHmac()
41 buffer.size = data_size; in OneshotHmac()
42 memcpy(buffer.buffer, data, data_size); in OneshotHmac()
46 auth.auth2(), auth.auth3(), &buffer, TPM2_ALG_NULL, &out_hmac); in OneshotHmac()
68 *reinterpret_cast<decltype(rand())*>(sequence_auth.buffer) = rand(); in SegmentedHmac()
93 TPM2B_MAX_BUFFER buffer; in SegmentedHmac() local
95 buffer.size = TPM2_MAX_DIGEST_BUFFER; in SegmentedHmac()
96 memcpy(buffer.buffer, &data[hashed], TPM2_MAX_DIGEST_BUFFER); in SegmentedHmac()
99 ESYS_TR_NONE, ESYS_TR_NONE, &buffer); in SegmentedHmac()
[all …]
Dtpm_random_source.cpp35 while (requested_length > sizeof(generated->buffer)) { in GenerateRandom()
38 ESYS_TR_NONE, sizeof(generated->buffer), &generated); in GenerateRandom()
45 memcpy(random, generated->buffer, sizeof(generated->buffer)); in GenerateRandom()
46 random = (uint8_t*) random + sizeof(generated->buffer); in GenerateRandom()
47 requested_length -= sizeof(generated->buffer); in GenerateRandom()
59 memcpy(random, generated->buffer, requested_length); in GenerateRandom()
68 const uint8_t* buffer, size_t size) const { in AddRngEntropy() argument
76 memcpy(in_data.buffer, buffer, MAX_STIR_RANDOM_BUFFER_SIZE); in AddRngEntropy()
78 buffer += MAX_STIR_RANDOM_BUFFER_SIZE; in AddRngEntropy()
91 memcpy(in_data.buffer, buffer, size); in AddRngEntropy()
/device/generic/opengl-transport/host/libs/virglrenderer/
DRenderControl.cpp90 static int dequeueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer** buffer) { in dequeueBuffer_DEPRECATED() argument
93 *buffer = reinterpret_cast<ANativeWindowBuffer*>(window->oem[1]); in dequeueBuffer_DEPRECATED()
129 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in dequeueBuffer() argument
131 return dequeueBuffer_DEPRECATED(window, buffer); in dequeueBuffer()
134 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in queueBuffer() argument
137 return queueBuffer_DEPRECATED(window, buffer); in queueBuffer()
140 static int cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in cancelBuffer() argument
143 return cancelBuffer_DEPRECATED(window, buffer); in cancelBuffer()
172 ANativeWindowBuffer* buffer = new (std::nothrow) FakeANativeWindowBuffer(); in resourceToANWB() local
173 if (!buffer) in resourceToANWB()
[all …]
/device/google/cuttlefish/guest/hals/ril/reference-libril/
Dsap_service.cpp215 uint8_t *buffer = (uint8_t *)calloc(1, encodedSize); in connectReq() local
216 if (buffer == NULL) { in connectReq()
221 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in connectReq()
226 sendFailedResponse(MsgId_RIL_SIM_SAP_CONNECT, token, 2, buffer, msg); in connectReq()
232 return addPayloadAndDispatchRequest(msg, stream.bytes_written, buffer); in connectReq()
255 uint8_t *buffer = (uint8_t *)calloc(1, encodedSize); in disconnectReq() local
256 if (buffer == NULL) { in disconnectReq()
262 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in disconnectReq()
267 sendFailedResponse(MsgId_RIL_SIM_SAP_DISCONNECT, token, 2, buffer, msg); in disconnectReq()
273 return addPayloadAndDispatchRequest(msg, stream.bytes_written, buffer); in disconnectReq()
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DSimpleGoldfishOMXComponent.cpp277 BufferInfo *buffer = in useBufferCallerLockedAlready() local
280 buffer->mHeader = *header; in useBufferCallerLockedAlready()
281 buffer->mOwnedByUs = false; in useBufferCallerLockedAlready()
330 BufferInfo *buffer = &port->mBuffers.editItemAt(i); in freeBuffer() local
332 if (buffer->mHeader == header) { in freeBuffer()
333 CHECK(!buffer->mOwnedByUs); in freeBuffer()
362 OMX_BUFFERHEADERTYPE *buffer) { in emptyThisBuffer() argument
364 msg->setPointer("header", buffer); in emptyThisBuffer()
375 OMX_BUFFERHEADERTYPE *buffer) { in fillThisBuffer() argument
377 msg->setPointer("header", buffer); in fillThisBuffer()
[all …]
/device/generic/car/emulator/usbpt/bluetooth/usb_modeswitch/
Dusb_modeswitch.c156 unsigned char buffer[BUF_SIZE]; variable
1122 LIBUSB_REQUEST_SET_FEATURE, 00000001, 0, buffer, 0, 1000); in switchHuaweiMode()
1136 LIBUSB_REQUEST_SET_INTERFACE, 00000001, 0, buffer, 0, 1000); in switchSierraMode()
1160 0xa0, 0, Interface, buffer, 1, 1000); in switchGCTMode()
1167 0xfe, 0, Interface, buffer, 1, 1000); in switchGCTMode()
1182 0x88, 0, 0, buffer, 8, 1000); in switchKobilMode()
1194 memcpy(buffer, "\x05\x8c\x04\x08\xa0\xee\x20\x00\x5c\x01\x04\x08\x98\xcd\xea\xbf", 16); in switchQisdaMode()
1195 ret = libusb_control_transfer(devh, 0x40, 0x04, 0, 0, buffer, 16, 1000); in switchQisdaMode()
1207 0xff, 0, 0, buffer, 0, 1000); in switchQuantaMode()
1221 0xb1, 0x0000, 0, buffer, 8, 1000); in switchBlackberryMode()
[all …]
/device/google/cuttlefish/host/commands/secure_env/storage/
Dtpm_storage.cpp75 TPM2B_AUTH auth = { .size = 0, .buffer = {} }; in Read()
91 TPM2B_MAX_NV_BUFFER* buffer = nullptr; in Read() local
101 /* data */ &buffer); in Read()
102 CF_EXPECTF(rc == TSS2_RC_SUCCESS && buffer != nullptr, in Read()
105 auto data = CF_EXPECT(CreateStorageData(buffer->size)); in Read()
106 std::memcpy(data->payload, buffer->buffer, buffer->size); in Read()
128 TPM2B_AUTH auth = { .size = 0, .buffer = {} }; in Write()
131 TPM2B_MAX_NV_BUFFER buffer; in Write() local
132 buffer.size = data.size; in Write()
133 std::memcpy(buffer.buffer, data.payload, data.size); in Write()
[all …]

12345678910>>...16