Home
last modified time | relevance | path

Searched refs:memcpy (Results 1 – 25 of 253) sorted by relevance

1234567891011

/device/google/cuttlefish/guest/hals/identity/libeic/
DEicOpsImpl.cc57 return memcpy(dest, src, n); in eicMemCpy()
118 memcpy(buf, bytes.value().data(), numBytes); in eicOpsRandom()
131 memcpy(cppKey.data(), key, 16); in eicOpsEncryptAes128Gcm()
136 memcpy(cppData.data(), data, dataSize); in eicOpsEncryptAes128Gcm()
142 memcpy(cppAAD.data(), additionalAuthenticationData, in eicOpsEncryptAes128Gcm()
148 memcpy(cppNonce.data(), nonce, 12); in eicOpsEncryptAes128Gcm()
157 memcpy(encryptedData, cppEncryptedData.value().data(), in eicOpsEncryptAes128Gcm()
176 memcpy(keyVec.data(), key, 16); in eicOpsDecryptAes128Gcm()
181 memcpy(encryptedDataVec.data(), encryptedData, encryptedDataSize); in eicOpsDecryptAes128Gcm()
187 memcpy(aadVec.data(), additionalAuthenticationData, in eicOpsDecryptAes128Gcm()
[all …]
/device/generic/opengl-transport/host/commands/emugen/tests/t.001/expected/encoder/
Dfoo_enc.cpp37 int tmp = OP_fooAlphaFunc;memcpy(ptr, &tmp, 4); ptr += 4; in fooAlphaFunc_enc()
38 memcpy(ptr, &totalSize, 4); ptr += 4; in fooAlphaFunc_enc()
40 memcpy(ptr, &func, 4); ptr += 4; in fooAlphaFunc_enc()
41 memcpy(ptr, &ref, 4); ptr += 4; in fooAlphaFunc_enc()
64 int tmp = OP_fooIsBuffer;memcpy(ptr, &tmp, 4); ptr += 4; in fooIsBuffer_enc()
65 memcpy(ptr, &totalSize, 4); ptr += 4; in fooIsBuffer_enc()
68 memcpy(ptr, stuff, __size_stuff);ptr += __size_stuff; in fooIsBuffer_enc()
105 int tmp = OP_fooDoEncoderFlush;memcpy(ptr, &tmp, 4); ptr += 4; in fooDoEncoderFlush_enc()
106 memcpy(ptr, &totalSize, 4); ptr += 4; in fooDoEncoderFlush_enc()
108 memcpy(ptr, &param, 4); ptr += 4; in fooDoEncoderFlush_enc()
[all …]
/device/google/contexthub/lib/nanohub/
Drsa.c35 memcpy(tmp + 1, denum, RSA_BYTES); in biModIterative()
90 memcpy(tmp + 1, denum, RSA_BYTES); in biModIterative()
174 memcpy(state->tmpB, a, RSA_BYTES); in rsaPubOpIterative()
203 memcpy(state->tmpB, state->tmpA, RSA_BYTES); in rsaPubOpIterative()
248 memcpy(state->tmpC, a, RSA_BYTES); //tC will hold our powers of a in rsaPrivOp()
256 memcpy(state->tmpB, state->tmpA, RSA_BYTES); in rsaPrivOp()
263 memcpy(state->tmpB, state->tmpA, RSA_BYTES); //save tA in rsaPrivOp()
266 memcpy(state->tmpC, state->tmpA, RSA_BYTES); in rsaPrivOp()
267 memcpy(state->tmpA, state->tmpB, RSA_BYTES); //restore tA in rsaPrivOp()
269 memcpy(state->tmpB, state->tmpC, RSA_BYTES); in rsaPrivOp()
Daes.c160 memcpy(ctx->K, k, sizeof(uint32_t[AES_KEY_WORDS])); in aesInitForEncr()
191 memcpy(ctx->K, tmpSpace->tmpCtx.K + 56, sizeof(uint32_t[4])); in aesInitForDecr()
201 memcpy(ks, encrK, sizeof(uint32_t[4])); in aesInitForDecr()
347 memcpy(ctx->iv, iv, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcInitForEncr()
355 memcpy(ctx->iv, iv, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcInitForDecr()
366 memcpy(ctx->iv, dst, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcEncr()
377 memcpy(ctx->iv, src, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcDecr()
378 memcpy(dst, tmp, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcDecr()
/device/google/contexthub/contexthubhal/
Dmessage_buf.h79 memcpy(&val, &data[pos], sizeof(val)); in readU16()
88 memcpy(&data[pos], &tmp, sizeof(tmp)); in writeU16()
96 memcpy(&val, &data[pos], sizeof(val)); in readU32()
105 memcpy(&data[pos], &tmp, sizeof(tmp)); in writeU32()
113 memcpy(&val, &data[pos], sizeof(val)); in readU64()
122 memcpy(&data[pos], &tmp, sizeof(tmp)); in writeU64()
137 memcpy(&data[pos], buf, bufSize); in writeRaw()
/device/google/contexthub/util/common/
Dring.cpp54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write()
57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write()
93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read()
96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
121 memcpy(&mData[mWritePos], ev, offsetof(sensors_event_t, reserved0)); in write()
123 memcpy(reinterpret_cast<char *>(&mData[mWritePos]) + offsetof(sensors_event_t, timestamp), in write()
/device/google/contexthub/firmware/os/algos/calibration/over_temp/
Dover_temp_cal.c342 memcpy(over_temp_cal->model_data[0].offset, offset, in overTempCalSetModel()
361 memcpy(over_temp_cal->compensated_offset.offset, offset, in overTempCalSetModel()
426 memcpy(temp_sensitivity, over_temp_cal->temp_sensitivity, in overTempCalGetModel()
428 memcpy(sensor_intercept, over_temp_cal->sensor_intercept, in overTempCalGetModel()
448 memcpy(&over_temp_cal->model_data[i], &model_data[i], in overTempCalSetModelData()
493 memcpy(model_data, over_temp_cal->model_data, in overTempCalGetModelData()
500 memcpy(compensated_offset, over_temp_cal->compensated_offset.offset, in overTempCalGetOffset()
791 memcpy(compensated_offset, over_temp_cal->compensated_offset.offset, in compensateWithLinearModel()
838 memcpy(compensated_offset, estimate->offset, sizeof(compensated_offset)); in compensateWithEstimate()
865 memcpy(compensated_offset, over_temp_cal->nearest_offset->offset, in compareAndCompensateWithNearest()
[all …]
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/
Dnano_calibration.cc152 memcpy(sample.data, data[i].v, sizeof(sample.data)); in HandleSensorSamples()
267 memcpy(ash_cal_info.bias, cal_data.offset, sizeof(ash_cal_info.bias)); in NotifyAshCalibration()
299 memcpy(ash_cal_parameters.offset, cal_data.offset, in NotifyAshCalibration()
306 memcpy(ash_cal_parameters.tempSensitivity, cal_data.temp_sensitivity, in NotifyAshCalibration()
308 memcpy(ash_cal_parameters.tempIntercept, cal_data.temp_intercept, in NotifyAshCalibration()
342 memcpy(cal_data.offset, recalled_ash_cal_parameters.offset, in LoadAshCalibration()
347 memcpy(cal_data.temp_sensitivity, in LoadAshCalibration()
350 memcpy(cal_data.temp_intercept, in LoadAshCalibration()
/device/generic/goldfish/dhcp/common/
Dmessage.cpp46 memcpy(&dhcpData, data, size); in Message()
90 memcpy(macAddress, sourceMessage.dhcpData.chaddr, sizeof(macAddress)); in offer()
119 memcpy(macAddress, sourceMessage.dhcpData.chaddr, sizeof(macAddress)); in ack()
142 memcpy(macAddress, sourceMessage.dhcpData.chaddr, sizeof(macAddress)); in nack()
250 memcpy(dhcpData.chaddr, macAddress, ETH_ALEN); in Message()
271 memcpy(opts, data, size); in addOption()
/device/google/cuttlefish/common/libs/utils/
Dunix_sockets.cpp48 memcpy(&fd, CMSG_DATA(cmsg) + (i * sizeof(int)), sizeof(fd)); in FromRaw()
67 memcpy(CMSG_DATA(message.Raw()) + (i * sizeof(int)), &fd_copy, sizeof(int)); in FromFileDescriptors()
80 memcpy(CMSG_DATA(message.Raw()), &credentials, sizeof(credentials)); in FromCredentials()
132 memcpy(&credentials, CMSG_DATA(Raw()), sizeof(ucred)); in AsCredentials()
151 memcpy(&fd, CMSG_DATA(Raw()) + (i * sizeof(int)), sizeof(fd)); in AsSharedFDs()
237 memcpy(cmsg, control.data_.data(), control.data_.size()); in WriteMessage()
/device/google/cuttlefish/host/commands/secure_env/
Dtpm_random_source.cpp45 memcpy(random, generated->buffer, sizeof(generated->buffer)); in GenerateRandom()
59 memcpy(random, generated->buffer, requested_length); in GenerateRandom()
76 memcpy(in_data.buffer, buffer, MAX_STIR_RANDOM_BUFFER_SIZE); in AddRngEntropy()
91 memcpy(in_data.buffer, buffer, size); in AddRngEntropy()
Dtpm_gatekeeper.cpp75 memcpy(message.data(), password, password_length); in ComputePasswordSignature()
76 memcpy(message.data() + password_length, &salt, sizeof(salt)); in ComputePasswordSignature()
108 memcpy( in ComputeSignature()
149 memcpy(&ret, data.payload, data.size); in StorageDataToRecord()
Dtpm_hmac.cpp42 memcpy(buffer.buffer, data, data_size); in OneshotHmac()
96 memcpy(buffer.buffer, &data[hashed], TPM2_MAX_DIGEST_BUFFER); in SegmentedHmac()
107 memcpy(buffer.buffer, &data[hashed], buffer.size); in SegmentedHmac()
Dsoft_gatekeeper.h116 memcpy(record, stored, sizeof(*record)); in GetFailureRecord()
137 memcpy(digest.get(), &salt, sizeof(salt)); in ComputeFastHash()
138 memcpy(digest.get() + sizeof(salt), password.Data<uint8_t>(), password.size()); in ComputeFastHash()
/device/linaro/hikey/gralloc960/
Dgralloc_buffer_priv.h149 memcpy(&region->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write()
164 memcpy(&region->hdr_info, val, sizeof(mali_hdr_info)); in gralloc_buffer_attr_write()
190 memcpy(val, &region->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read()
205 memcpy(val, &region->hdr_info, sizeof(mali_hdr_info)); in gralloc_buffer_attr_read()
/device/google/contexthub/firmware/lib/libc/
Dmemcpy-armv7m.S85 .global memcpy symbol
88 .type memcpy, %function
89 memcpy: label
321 .size memcpy, .-memcpy
/device/google/contexthub/firmware/os/core/
DnanohubCommand.c125 memcpy(&local, val, sizeof(local)); in unaligned_u64()
131 memcpy(&local, val, sizeof(local)); in unaligned_u32()
220 memcpy(keyBuf, kd.key, sizeof(kd.key)); in osSecretKeyLookup()
259 memcpy(&kd.key, keyBuf, 32); in osSecretKeyAdd()
622 memcpy(mDownloadState->data, data, len); in doFirmwareChunk()
777 memcpy(buf + totLength, &mTxNext, length); in fillBuffer()
833 memcpy(&mTxCurr, &mTxNext, mTxNextLength); in nanohubPrefetchTx()
881 memcpy(tx, &mTxCurr, ret); in readEventFast()
904 memcpy(tx, &mTxCurr, totLength); in readEvent()
915 memcpy(buf, &mTxNext, length); in readEvent()
[all …]
/device/google/atv/audio_proxy/service/
DRingBufferUtil.cpp67 std::memcpy(cp1.dst, cp1.src, cp1.len); in copyRingBuffer()
73 std::memcpy(cp2.dst, cp2.src, cp2.len); in copyRingBuffer()
79 std::memcpy(cp3.dst, cp3.src, cp3.len); in copyRingBuffer()
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess_elf.c140 memcpy(&t, nanoRelocs + i, sizeof(struct NanoRelocEntry)); in packNanoRelocs()
141 memcpy(nanoRelocs + i, nanoRelocs + k, sizeof(struct NanoRelocEntry)); in packNanoRelocs()
142 memcpy(nanoRelocs + k, &t, sizeof(struct NanoRelocEntry)); in packNanoRelocs()
261 memcpy(buf, &outHeader, sizeof(outHeader)); in finalizeAndWrite()
262 memcpy(buf + sizeof(outHeader), &app, sizeof(app)); in finalizeAndWrite()
500 memcpy(relocs, packedNanoRelocs, packedNanoRelocSz); in handleApp()
817 memcpy(buf, app.flash.data, app.flash.size); in handleAppStatic()
819 memcpy(&buf[offset], app.data.data, app.data.size); in handleAppStatic()
821 memcpy(&buf[offset], app.packedNanoRelocs.data, app.packedNanoRelocs.size); in handleAppStatic()
/device/generic/car/emulator/usbpt/bluetooth/usb_modeswitch/
Dusb_modeswitch.c1194 memcpy(buffer, "\x05\x8c\x04\x08\xa0\xee\x20\x00\x5c\x01\x04\x08\x98\xcd\xea\xbf", 16); in switchQisdaMode()
1266 memcpy(buffer, "\xb0\x04\x00\x00\x02\x90\x26\x86", SIZE); in switchActionMode()
1270 memcpy(buffer, "\xb0\x04\x00\x00\x02\x90\x26\x86", SIZE); in switchActionMode()
1276 memcpy(buffer, "\x37\x01\xfe\xdb\xc1\x33\x1f\x83", SIZE); in switchActionMode()
1279 memcpy(buffer, "\x37\x0e\xb5\x9d\x3b\x8a\x91\x51", SIZE); in switchActionMode()
1282 memcpy(buffer, "\x34\x87\xba\x0d\xfc\x8a\x91\x51", SIZE); in switchActionMode()
1287 memcpy(buffer, "\x37\x01\xfe\xdb\xc1\x33\x1f\x83", SIZE); in switchActionMode()
1290 memcpy(buffer, "\x37\x0e\xb5\x9d\x3b\x8a\x91\x51", SIZE); in switchActionMode()
1293 memcpy(buffer, "\x34\x87\xba\x0d\xfc\x8a\x91\x51", SIZE); in switchActionMode()
1298 memcpy(buffer, "\x33\x04\xfe\x00\xf4\x6c\x1f\xf0", SIZE); in switchActionMode()
[all …]
/device/generic/goldfish/camera/
Djpeg.cpp127 memcpy(y[i], static_cast<const uint8_t*>(image.y) + nscli * ystride, width); in compressYUVImplPixelsSlow()
130 memcpy(cb[i / 2], static_cast<const uint8_t*>(image.cb) + offset, width2); in compressYUVImplPixelsSlow()
131 memcpy(cr[i / 2], static_cast<const uint8_t*>(image.cr) + offset, width2); in compressYUVImplPixelsSlow()
350 memcpy(exifThumbnailJpegDataPtr, jpegData, thumbnailJpegSize); in compressYUV()
/device/linaro/poplar/wifi/wifi_hal/
Drtt.cpp175 memcpy(mCapabilities, data, min(len, (int) sizeof(*mCapabilities))); in handleResponse()
223 memcpy(mResponderInfo, data, min(len, (int) sizeof(*mResponderInfo))); in handleResponse()
274 memcpy(mResponderInfo, data, min(len, (int) sizeof(*mResponderInfo))); in handleResponse()
541 memcpy(bssid, it2.get_data(), sizeof(mac_addr)); in handleEvent()
561 memcpy(rtt_result, it2.get_data(), it2.get_len()); in handleEvent()
/device/linaro/dragonboard/shared/utils/qrtr/lib/
Dqmi.c68 memcpy(p_dst, p_src, size); \
75 memcpy(p_dst, p_src, size); \
381 memcpy(&data_len_value, buf_src, temp_ei->elem_size); in qmi_encode()
678 memcpy(buf_dst, &opt_flag_value, sizeof(uint8_t)); in qmi_decode()
688 memcpy(buf_dst, &data_len_value, sizeof(uint32_t)); in qmi_decode()
/device/linaro/dragonboard/shared/utils/rmtfs/
Dqmi_tlv.c169 memcpy(newp, tlv->buf, tlv->size); in qmi_tlv_alloc_item()
194 memcpy(item->data, buf, len); in qmi_tlv_set()
228 memcpy(ptr, buf, array_size); in qmi_tlv_set_array()
/device/google/contexthub/firmware/os/algos/common/math/
Dlevenberg_marquardt.c38 memcpy(&solver->params, params, sizeof(struct LmParams)); in lmSolverInit()
73 memcpy(state, initial_state, sizeof(float) * state_dim); in lmSolverSolve()
124 memcpy(state, state_new, sizeof(float) * state_dim); in lmSolverSolve()

1234567891011