Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 420) sorted by relevance

12345678910>>...17

/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmendian.h125 #define htol16_ua_store(val, bytes) ({ \ argument
127 uint8 *_bytes = (uint8 *)(bytes); \
132 #define htol32_ua_store(val, bytes) ({ \ argument
134 uint8 *_bytes = (uint8 *)(bytes); \
141 #define hton16_ua_store(val, bytes) ({ \ argument
143 uint8 *_bytes = (uint8 *)(bytes); \
148 #define hton32_ua_store(val, bytes) ({ \ argument
150 uint8 *_bytes = (uint8 *)(bytes); \
157 #define ltoh16_ua(bytes) ({ \ argument
158 const uint8 *_bytes = (const uint8 *)(bytes); \
[all …]
/hardware/google/aemu/base/include/aemu/base/
DAllocator.h37 size_t bytes = sizeof(T) * count; in allocArray() local
38 void* res = alloc(bytes); in allocArray()
43 size_t bytes = strlen(toCopy) + 1; in strDup() local
44 void* res = alloc(bytes); in strDup()
45 memset(res, 0x0, bytes); in strDup()
46 memcpy(res, toCopy, bytes); in strDup()
60 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument
61 void* res = alloc(bytes); in dupArray()
62 memcpy(res, buf, bytes); in dupArray()
DSubAllocator.h60 size_t bytes = sizeof(T) * count; in allocArray() local
61 void* res = alloc(bytes); in allocArray()
66 size_t bytes = strlen(toCopy) + 1; in strDup() local
67 void* res = alloc(bytes); in strDup()
68 memset(res, 0x0, bytes); in strDup()
69 memcpy(res, toCopy, bytes); in strDup()
83 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument
84 void* res = alloc(bytes); in dupArray()
85 memcpy(res, buf, bytes); in dupArray()
Dring_buffer.h119 uint32_t bytes,
124 uint32_t bytes,
132 uint32_t bytes);
137 uint32_t bytes);
147 uint32_t bytes,
154 uint32_t bytes,
163 const struct ring_buffer* r, uint32_t bytes);
165 const struct ring_buffer* r, uint32_t bytes);
169 uint32_t bytes);
173 uint32_t bytes);
/hardware/google/gfxstream/guest/android-emu/aemu/base/
DAllocator.h37 size_t bytes = sizeof(T) * count; in allocArray() local
38 void* res = alloc(bytes); in allocArray()
43 size_t bytes = strlen(toCopy) + 1; in strDup() local
44 void* res = alloc(bytes); in strDup()
45 memset(res, 0x0, bytes); in strDup()
46 memcpy(res, toCopy, bytes); in strDup()
60 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument
61 void* res = alloc(bytes); in dupArray()
62 memcpy(res, buf, bytes); in dupArray()
DAndroidSubAllocator.h59 size_t bytes = sizeof(T) * count; in allocArray() local
60 void* res = alloc(bytes); in allocArray()
65 size_t bytes = strlen(toCopy) + 1; in strDup() local
66 void* res = alloc(bytes); in strDup()
67 memset(res, 0x0, bytes); in strDup()
68 memcpy(res, toCopy, bytes); in strDup()
82 void* dupArray(const void* buf, size_t bytes) { in dupArray() argument
83 void* res = alloc(bytes); in dupArray()
84 memcpy(res, buf, bytes); in dupArray()
Dring_buffer.c69 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument
72 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write()
75 bool ring_buffer_can_read(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_read() argument
78 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read()
242 uint32_t bytes) { in ring_buffer_view_can_write() argument
246 v, read_view - r->write_pos - 1) >= bytes; in ring_buffer_view_can_write()
252 uint32_t bytes) { in ring_buffer_view_can_read() argument
256 v, write_view - r->read_pos) >= bytes; in ring_buffer_view_can_read()
413 uint32_t bytes) { in ring_buffer_wait_write() argument
416 v ? ring_buffer_view_can_write(r, v, bytes) : in ring_buffer_wait_write()
[all …]
Dring_buffer.h119 uint32_t bytes);
123 uint32_t bytes);
130 uint32_t bytes);
135 uint32_t bytes);
145 uint32_t bytes,
152 uint32_t bytes,
161 const struct ring_buffer* r, uint32_t bytes);
163 const struct ring_buffer* r, uint32_t bytes);
167 uint32_t bytes);
171 uint32_t bytes);
/hardware/google/aemu/base/
Dring_buffer.cpp55 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument
58 return get_ring_pos(read_view - r->write_pos - 1) >= bytes; in ring_buffer_can_write()
61 bool ring_buffer_can_read(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_read() argument
64 return get_ring_pos(write_view - r->read_pos) >= bytes; in ring_buffer_can_read()
228 uint32_t bytes) { in ring_buffer_view_can_write() argument
232 v, read_view - r->write_pos - 1) >= bytes; in ring_buffer_view_can_write()
238 uint32_t bytes) { in ring_buffer_view_can_read() argument
242 v, write_view - r->read_pos) >= bytes; in ring_buffer_view_can_read()
437 uint32_t bytes, in ring_buffer_wait_write() argument
444 v ? ring_buffer_view_can_write(r, v, bytes) : in ring_buffer_wait_write()
[all …]
/hardware/google/graphics/common/gralloc-headers/pixel-gralloc/
Dutils.h38 std::optional<T> decode_helper(const std::vector<uint8_t>& bytes) { in decode_helper() argument
41 if (sizeof(t) != bytes.size()) { in decode_helper()
45 std::memcpy(&t, bytes.data(), bytes.size()); in decode_helper()
52 std::optional<Container> decode_helper(const std::vector<uint8_t>& bytes) { in decode_helper() argument
62 size_t to_copy = bytes.size(); in decode_helper()
69 std::memcpy(t.data(), bytes.data(), to_copy); in decode_helper()
84 std::optional<T> decode(const std::vector<uint8_t>& bytes) { in decode() argument
85 return decode_helper<T>(bytes); in decode()
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dcommon.cpp198 char *bytes = (char *)buf; in hexdump() local
204 bytes[i], bytes[i+1], in hexdump()
205 bytes[i+2], bytes[i+3], in hexdump()
206 bytes[i+4], bytes[i+5], in hexdump()
207 bytes[i+6], bytes[i+7]); in hexdump()
211 bytes[i], bytes[i+1], in hexdump()
212 bytes[i+2], bytes[i+3]); in hexdump()
216 ALOGV("%02x", bytes[i]); in hexdump()
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dcommon.cpp198 char *bytes = (char *)buf; in hexdump() local
204 bytes[i], bytes[i+1], in hexdump()
205 bytes[i+2], bytes[i+3], in hexdump()
206 bytes[i+4], bytes[i+5], in hexdump()
207 bytes[i+6], bytes[i+7]); in hexdump()
211 bytes[i], bytes[i+1], in hexdump()
212 bytes[i+2], bytes[i+3]); in hexdump()
216 ALOGV("%02x", bytes[i]); in hexdump()
/hardware/google/gfxstream/guest/rendercontrol/
DRenderControl.cpp59 int DoCompose(std::vector<uint8_t>& bytes) { in DoCompose() argument
72 rc->rcCompose(rc, bytes.size(), bytes.data()); in DoCompose()
107 std::vector<uint8_t> bytes(bytesNeeded); in rcCompose() local
109 auto* composeDevice = reinterpret_cast<ComposeDevice_v2*>(bytes.data()); in rcCompose()
131 return device->DoCompose(bytes); in rcCompose()
/hardware/google/gfxstream/guest/mesa/src/util/
Dblob.c142 const void *bytes, in blob_overwrite_bytes() argument
149 VG(VALGRIND_CHECK_MEM_IS_DEFINED(bytes, to_write)); in blob_overwrite_bytes()
152 memcpy(blob->data + offset, bytes, to_write); in blob_overwrite_bytes()
158 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write) in blob_write_bytes() argument
164 VG(VALGRIND_CHECK_MEM_IS_DEFINED(bytes, to_write)); in blob_write_bytes()
165 memcpy(blob->data + blob->size, bytes, to_write); in blob_write_bytes()
295 const void *bytes; in blob_copy_bytes() local
297 bytes = blob_read_bytes(blob, size); in blob_copy_bytes()
298 if (bytes == NULL || size == 0) in blob_copy_bytes()
301 memcpy(dest, bytes, size); in blob_copy_bytes()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleUtils.cpp49 val->value.bytes.resize(vecSize); in createVehiclePropValue()
75 return value.bytes.size(); in getVehicleRawValueVectorSize()
86 dest->bytes = src.bytes; in copyVehicleRawValue()
124 shallowCopyHidlVec(&dest->value.bytes, src.value.bytes); in shallowCopy()
DProtoMessageConverter.cpp165 if (val.value.bytes.size() > 0) { in toProto()
166 protoVal->set_bytes_value(val.value.bytes.data(), val.value.bytes.size()); in toProto()
192 auto cast_proto_bytes_to_vec = [](auto&& bytes) { in fromProto() argument
193 return std::vector<uint8_t>(bytes.begin(), bytes.end()); in fromProto()
195 CHECK_CAST_COPY_PROTOBUF_VAR_TO_VHAL_TYPE(protoVal, bytes_value, val, value.bytes, in fromProto()
/hardware/interfaces/bluetooth/audio/utils/session/
DBluetoothAudioSession.cpp403 size_t bytes) { in OutWritePcmData() argument
406 bytes); in OutWritePcmData()
407 if (buffer == nullptr || !bytes) return 0; in OutWritePcmData()
415 if (availableToWrite > (bytes - totalWritten)) { in OutWritePcmData()
416 availableToWrite = bytes - totalWritten; in OutWritePcmData()
421 ALOGE("FMQ datapath writting %zu/%zu failed", totalWritten, bytes); in OutWritePcmData()
430 ALOGD("data %zu/%zu overflow %d ms", totalWritten, bytes, in OutWritePcmData()
434 } while (totalWritten < bytes); in OutWritePcmData()
439 size_t BluetoothAudioSession::InReadPcmData(void* buffer, size_t bytes) { in InReadPcmData() argument
442 bytes); in InReadPcmData()
[all …]
/hardware/libhardware_legacy/audio/
DAudioHardwareStub.cpp128 ssize_t AudioStreamOutStub::write(const void* buffer, size_t bytes) in write() argument
131 usleep(bytes * 1000000 / sizeof(int16_t) / in write()
133 return bytes; in write()
175 ssize_t AudioStreamInStub::read(void* buffer, ssize_t bytes) in read() argument
178 usleep(bytes * 1000000 / sizeof(int16_t) / in read()
180 memset(buffer, 0, bytes); in read()
181 return bytes; in read()
DAudioDumpInterface.cpp279 ssize_t AudioStreamOutDump::write(const void* buffer, size_t bytes) in write() argument
284 ret = mFinalStream->write(buffer, bytes); in write()
286 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in write()
287 ret = bytes; in write()
298 fwrite(buffer, bytes, 1, mFile); in write()
439 ssize_t AudioStreamInDump::read(void* buffer, ssize_t bytes) in read() argument
444 ret = mFinalStream->read(buffer, bytes); in read()
454 fwrite(buffer, bytes, 1, mFile); in read()
457 usleep((((bytes * 1000) / frameSize()) / sampleRate()) * 1000); in read()
458 ret = bytes; in read()
[all …]
/hardware/google/apf/doc/
Dpacket_formats.txt47 ICMPv6 header (4 bytes): u8 type, u8 code, u16 checksum
48 (4 bytes in) Message body... (but note in practice it's actually 4 bytes reserved, then 'real' mes…
74 UDP datagram header (8 bytes): be16 source port, destination port, length, checksum
/hardware/google/gfxstream/host/vulkan/
DColorBufferVk.cpp63 bool ColorBufferVk::updateFromBytes(const std::vector<uint8_t>& bytes) { in updateFromBytes() argument
64 return updateColorBufferFromBytes(mHandle, bytes); in updateFromBytes()
68 const void* bytes) { in updateFromBytes() argument
69 return updateColorBufferFromBytes(mHandle, x, y, w, h, bytes); in updateFromBytes()
/hardware/interfaces/media/c2/1.2/
Dtypes.hal28 * |lock(futex) 4bytes|
29 * |conditional_variable(futex) 4bytes|
30 * |# of max dequeable buffer 4bytes|
31 * |# of dequeued buffer 4bytes|
32 * |Status of the surface 4bytes|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DJsonFakeValueGenerator.cpp188 value.bytes = generateDiagnosticBytes(value); in parseFakeValueJson()
231 hidl_vec<uint8_t> bytes(byteSize % 8 == 0 ? byteSize / 8 : byteSize / 8 + 1); in generateDiagnosticBytes() local
236 setBit(bytes, i); in generateDiagnosticBytes()
243 setBit(bytes, i + (size_t)DiagnosticIntegerSensorIndex::LAST_SYSTEM_INDEX + 1); in generateDiagnosticBytes()
246 return bytes; in generateDiagnosticBytes()
249 void JsonFakeValueGenerator::setBit(hidl_vec<uint8_t>& bytes, size_t idx) { in setBit() argument
251 bytes[idx / 8] |= mask; in setBit()
/hardware/interfaces/tetheroffload/control/1.1/
DIOffloadControl.hal27 * Instruct hardware to send callbacks after certain number of bytes have been transferred in
30 * The specified quota bytes must be applied to all traffic on the given upstream interface.
44 * The specified quota bytes MUST replace any previous quotas set by
46 * "tell me when either <warningBytes> or <limitBytes> bytes have been transferred
47 * (in either direction), and stop offload when <limitBytes> bytes have been transferred,
66 * Note that when one of the quota bytes is reached, the other one is still considered valid
70 * @param warningBytes The quota of warning, defined as the number of bytes, starting from
72 * @param limitBytes The quota of limit, defined as the number of bytes, starting from zero
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVmsUtils_test.cpp142 const std::string bytes = "aaa"; in TEST() local
144 auto message = createDataMessageWithLayerPublisherInfo(layer_and_publisher, bytes); in TEST()
160 EXPECT_EQ(message->value.bytes.size(), bytes.size()); in TEST()
161 EXPECT_EQ(memcmp(message->value.bytes.data(), bytes.data(), bytes.size()), 0); in TEST()
178 const std::string bytes = "aaa"; in TEST() local
180 auto message = createDataMessageWithLayerPublisherInfo(layer_and_publisher, bytes); in TEST()
183 EXPECT_EQ(data_str, bytes); in TEST()
194 std::string bytes = "pub_id"; in TEST() local
195 auto message = createPublisherIdRequest(bytes); in TEST()
201 EXPECT_EQ(message->value.bytes.size(), bytes.size()); in TEST()
[all …]

12345678910>>...17