Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 25 of 79) sorted by relevance

1234

/hardware/nxp/uwb/halimpl/hal/
DsessionTrack.cc168 void OnSessionInit(size_t packet_len, const uint8_t *packet) in OnSessionInit() argument
173 …uint32_t session_id = le_bytes_to_cpu<uint32_t>(&packet[UCI_MSG_SESSION_STATE_INIT_CMD_ID_OFFSET]); in OnSessionInit()
174 uint8_t session_type = packet[UCI_MSG_SESSION_STATE_INIT_CMD_TYPE_OFFSET]; in OnSessionInit()
178 [this, session_id, session_type](size_t packet_len, const uint8_t *packet) in OnSessionInit()
183 uint8_t status = packet[UCI_MSG_SESSION_STATE_INIT_RSP_STATUS_OFFSET]; in OnSessionInit()
184 …uint32_t handle = le_bytes_to_cpu<uint32_t>(&packet[UCI_MSG_SESSION_STATE_INIT_RSP_HANDLE_OFFSET]); in OnSessionInit()
264 void OnSessionStart(size_t packet_len, const uint8_t *packet) { in OnSessionStart() argument
272 … uint32_t session_handle = le_bytes_to_cpu<uint32_t>(&packet[UCI_MSG_SESSION_START_HANDLE_OFFSET]); in OnSessionStart()
322 …std::vector<uint8_t> packet{(UCI_MT_CMD << UCI_MT_SHIFT) | UCI_GID_SESSION_CONTROL, UCI_MSG_SESSIO… in StopRanging() local
323 packet.insert(packet.end(), std::begin(session_handle_bytes), std::end(session_handle_bytes)); in StopRanging()
[all …]
DphNxpUwbCalib.cc43 …std::vector<uint8_t> packet({ (0x20 | UCI_GID_PROPRIETARY_0X0F), UCI_MSG_SET_DEVICE_CALIBRATION, 0… in sr1xx_set_calibration() local
49 packet.push_back(channel); in sr1xx_set_calibration()
50 packet.insert(packet.end(), tlv.begin(), tlv.end()); in sr1xx_set_calibration()
51 packet[3] = packet.size() - 4; in sr1xx_set_calibration()
52 return phNxpUciHal_send_ext_cmd(packet.size(), packet.data()); in sr1xx_set_calibration()
58 std::vector<uint8_t> packet({ (0x20 | UCI_GID_CORE), UCI_MSG_CORE_SET_CONFIG, 0x00, 0x00}); in sr1xx_set_conf() local
59 packet.push_back(1); // number of parameters in sr1xx_set_conf()
60 packet.insert(packet.end(), tlv.begin(), tlv.end()); in sr1xx_set_conf()
61 packet[3] = packet.size() - 4; in sr1xx_set_conf()
62 return phNxpUciHal_send_ext_cmd(packet.size(), packet.data()); in sr1xx_set_conf()
DphNxpUciHal_ext.cc386 static bool CountryCodeCapsGenTxPowerPacket(uint8_t *packet, size_t packet_len, uint16_t *out_len) in CountryCodeCapsGenTxPowerPacket() argument
400 memcpy(packet, gtx_power.data(), gtx_power_len); in CountryCodeCapsGenTxPowerPacket()
408 if (!packet[index] || (packet[index] + index) > gtx_power_len) { in CountryCodeCapsGenTxPowerPacket()
415 uint8_t num_of_antennas = packet[index++]; in CountryCodeCapsGenTxPowerPacket()
427 long tx_power_long = packet[index] | ((packet[index + 1] << RMS_TX_POWER_SHIFT) & 0xFF00); in CountryCodeCapsGenTxPowerPacket()
434 packet[index++] = tx_power_u16 & 0xff; in CountryCodeCapsGenTxPowerPacket()
435 packet[index++] = tx_power_u16 >> RMS_TX_POWER_SHIFT; in CountryCodeCapsGenTxPowerPacket()
496 std::vector<uint8_t> packet(gtx_power.size()); in CountryCodeCapsApplyTxPower() local
498 if (!CountryCodeCapsGenTxPowerPacket(packet.data(), packet.size(), &packet_size)) in CountryCodeCapsApplyTxPower()
501 tHAL_UWB_STATUS status = phNxpUciHal_send_ext_cmd(packet_size, packet.data()); in CountryCodeCapsApplyTxPower()
[all …]
DphNxpUciHal.cc74 std::function<void(size_t packet_len, const uint8_t *packet)> callback;
78 std::function<void(size_t packet_len, const uint8_t *packet)> callback) : in phNxpUciHal_RxHandler()
91 std::function<void(size_t packet_len, const uint8_t *packet)> callback) in phNxpUciHal_rx_handler_add()
106 static void phNxpUciHal_rx_handler_check(size_t packet_len, const uint8_t *packet) in phNxpUciHal_rx_handler_check() argument
108 const uint8_t mt = ((packet[0]) & UCI_MT_MASK) >> UCI_MT_SHIFT; in phNxpUciHal_rx_handler_check()
109 const uint8_t gid = packet[0] & UCI_GID_MASK; in phNxpUciHal_rx_handler_check()
110 const uint8_t oid = packet[1] & UCI_OID_MASK; in phNxpUciHal_rx_handler_check()
116 handler->callback(packet_len, packet); in phNxpUciHal_rx_handler_check()
765 const std::vector<uint8_t> packet( in phNxpUciHal_applyVendorConfig() local
770 if (phNxpUciHal_send_ext_cmd(packet.size(), packet.data()) != UWBSTATUS_SUCCESS) { in phNxpUciHal_applyVendorConfig()
[all …]
DsessionTrack.h11 void SessionTrack_onSessionInit(size_t packet_len, const uint8_t *packet);
12 void SessionTrack_onSessionStart(size_t packet_len, const uint8_t *packet);
/hardware/nxp/uwb/halimpl/hal/sr1xx/
DNxpUwbChipSr1xx.cc49 [&] (size_t packet_len, const uint8_t *packet) mutable in otp_read_data()
52 const uint8_t plen = packet[3]; // payload-length in otp_read_data()
53 const uint8_t *p = &packet[4]; // payload in otp_read_data()
74 …std::vector<uint8_t> packet{(UCI_MT_CMD << UCI_MT_SHIFT) | UCI_GID_PROPRIETARY_0X0A, UCI_MSG_READ_… in otp_read_data() local
75 packet.push_back(channel); in otp_read_data()
76 packet.push_back(0x01); // OTP read option in otp_read_data()
77 packet.push_back(param_id); in otp_read_data()
79 tHAL_UWB_STATUS status = phNxpUciHal_send_ext_cmd(packet.size(), packet.data()); in otp_read_data()
172 [&](size_t packet_len, const uint8_t *packet) mutable in sr1xx_do_bind()
175 uint8_t status = packet[UCI_RESPONSE_STATUS_OFFSET]; in sr1xx_do_bind()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/perf/
Du_perfetto_renderpass.h67 auto packet = ctx.NewTracePacket(); in OnStop()
68 packet->Finalize(); in OnStop()
87 auto packet = ctx.NewTracePacket(); in EmitClockSync() local
89 packet->set_timestamp_clock_id( in EmitClockSync()
91 packet->set_timestamp(cpu_ts); in EmitClockSync()
93 auto event = packet->set_clock_snapshot(); in EmitClockSync()
131 auto packet = ctx.NewTracePacket(); in debug_marker_stage() local
132 auto interned_data = packet->set_interned_data(); in debug_marker_stage()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawDevice.cpp59 for (auto const &packet : digest.packets) { in HidRawDevice() local
61 std::make_pair(packet.type, packet.id), &packet).second == false) { in HidRawDevice()
62 LOG_E << "Same type - report id pair (" << packet.type << ", " << packet.id << ")" in HidRawDevice()
66 reportIdSet.insert(packet.id); in HidRawDevice()
191 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_FEATURE, id); in getFeature() local
192 if (packet == nullptr) { in getFeature()
197 size_t size = packet->getByteSize() + 1; // report id size in getFeature()
230 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_FEATURE, id); in setFeature() local
231 if (packet == nullptr) { in setFeature()
236 size_t size = packet->getByteSize(); in setFeature()
[all …]
DHidRawSensorDevice.cpp75 for (const auto &packet : digest.packets) { in HidRawSensorDevice() local
76 if (packet.type == HidParser::REPORT_TYPE_INPUT) { // only used for input mapping in HidRawSensorDevice()
77 mSensors.emplace(packet.id/* report id*/, s); in HidRawSensorDevice()
/hardware/interfaces/bluetooth/hci/
Dh4_protocol.cc73 size_t H4Protocol::OnPacketReady(const std::vector<uint8_t>& packet) { in OnPacketReady() argument
76 cmd_cb_(packet); in OnPacketReady()
79 acl_cb_(packet); in OnPacketReady()
82 sco_cb_(packet); in OnPacketReady()
85 event_cb_(packet); in OnPacketReady()
88 iso_cb_(packet); in OnPacketReady()
95 return packet.size(); in OnPacketReady()
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DBurstUtils.cpp437 nn::Result<void> RequestChannelSender::sendPacket(const std::vector<FmqRequestDatum>& packet) { in sendPacket() argument
442 if (packet.size() > mFmqRequestChannel.availableToWrite()) { in sendPacket()
449 const bool success = mFmqRequestChannel.writeBlocking(packet.data(), packet.size()); in sendPacket()
488 const auto packet = NN_TRY(getPacketBlocking()); in getBlocking() local
489 return deserialize(packet); in getBlocking()
524 std::vector<FmqRequestDatum> packet(available); in getPacketBlocking() local
525 const bool success = mFmqRequestChannel.readBlocking(packet.data(), available); in getPacketBlocking()
529 return packet; in getPacketBlocking()
549 std::vector<FmqRequestDatum> packet(count + 1); in getPacketBlocking() local
550 std::memcpy(&packet.front(), &datum, sizeof(datum)); in getPacketBlocking()
[all …]
/hardware/interfaces/bluetooth/aidl/default/
DBluetoothHci.h42 const std::vector<uint8_t>& packet) override;
44 ndk::ScopedAStatus sendAclData(const std::vector<uint8_t>& packet) override;
46 ndk::ScopedAStatus sendScoData(const std::vector<uint8_t>& packet) override;
48 ndk::ScopedAStatus sendIsoData(const std::vector<uint8_t>& packet) override;
71 const std::vector<uint8_t>& packet);
DBluetoothHci.cpp329 const std::vector<uint8_t>& packet) { in sendHciCommand() argument
330 return send(PacketType::COMMAND, packet); in sendHciCommand()
334 const std::vector<uint8_t>& packet) { in sendAclData() argument
335 return send(PacketType::ACL_DATA, packet); in sendAclData()
339 const std::vector<uint8_t>& packet) { in sendScoData() argument
340 return send(PacketType::SCO_DATA, packet); in sendScoData()
344 const std::vector<uint8_t>& packet) { in sendIsoData() argument
345 return send(PacketType::ISO_DATA, packet); in sendIsoData()
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidParser.cpp233 ReportPacket packet = { in convertGroupToPacket() local
265 .bitOffset = packet.bitSize, in convertGroupToPacket()
269 packet.reports.push_back(digest); in convertGroupToPacket()
270 packet.bitSize += digest.bitSize * digest.count; in convertGroupToPacket()
272 if (!packet.reports.empty()) { in convertGroupToPacket()
273 packets.push_back(std::move(packet)); in convertGroupToPacket()
297 for (const auto &packet : i.packets) { in operator <<() local
298 os << reportTypeToString(packet.type) << " id: " << packet.id in operator <<()
299 << " size: " << packet.bitSize in operator <<()
300 << "b(" << packet.getByteSize() << "B), " in operator <<()
[all …]
/hardware/interfaces/bluetooth/1.1/default/
Dbluetooth_hci.cc79 [cb](const hidl_vec<uint8_t>& packet) { in initialize_1_1() argument
80 auto hidl_status = cb->hciEventReceived(packet); in initialize_1_1()
85 [cb](const hidl_vec<uint8_t>& packet) { in initialize_1_1() argument
86 auto hidl_status = cb->aclDataReceived(packet); in initialize_1_1()
91 [cb](const hidl_vec<uint8_t>& packet) { in initialize_1_1() argument
92 auto hidl_status = cb->scoDataReceived(packet); in initialize_1_1()
97 [cb](const hidl_vec<uint8_t>& packet) { in initialize_1_1() argument
98 auto hidl_status = cb->isoDataReceived(packet); in initialize_1_1()
/hardware/interfaces/bluetooth/1.0/default/
Dbluetooth_hci.cc75 [cb](const hidl_vec<uint8_t>& packet) { in initialize() argument
76 auto hidl_status = cb->hciEventReceived(packet); in initialize()
81 [cb](const hidl_vec<uint8_t>& packet) { in initialize() argument
82 auto hidl_status = cb->aclDataReceived(packet); in initialize()
87 [cb](const hidl_vec<uint8_t>& packet) { in initialize() argument
88 auto hidl_status = cb->scoDataReceived(packet); in initialize()
Dvendor_interface.cc60 HC_BT_HDR* packet = reinterpret_cast<HC_BT_HDR*>(new uint8_t[packet_size]); in WrapPacketAndCopy() local
61 packet->offset = 0; in WrapPacketAndCopy()
62 packet->len = data.size(); in WrapPacketAndCopy()
63 packet->layer_specific = 0; in WrapPacketAndCopy()
64 packet->event = event; in WrapPacketAndCopy()
67 memcpy(packet->data, data.data(), data.size()); in WrapPacketAndCopy()
68 return packet; in WrapPacketAndCopy()
71 bool internal_command_event_match(const hidl_vec<uint8_t>& packet) { in internal_command_event_match() argument
72 uint8_t event_code = packet[0]; in internal_command_event_match()
80 uint16_t opcode = packet[opcode_offset] | (packet[opcode_offset + 1] << 8); in internal_command_event_match()
/hardware/google/apf/
Dapf_run.c172 uint8_t* packet; in packet_handler() local
173 uint32_t packet_len = parse_hex(pkt, &packet); in packet_handler()
179 ret = apf_run(NULL, (uint32_t*)program, program_len, ram_len, packet, packet_len, in packet_handler()
182 ret = accept_packet(program, program_len, ram_len, packet, packet_len, in packet_handler()
187 free(packet); in packet_handler()
192 const uint8_t* packet __unused, uint32_t packet_len __unused, in apf_trace_hook()
277 char* packet = NULL; in main() local
304 packet = optarg; in main()
313 if (packet) { in main()
362 if (!filename && !packet) { in main()
[all …]
Dapf_interpreter.c26 uint32_t program_len, const uint8_t *packet, uint32_t packet_len,
29 #define APF_TRACE_HOOK(pc, regs, program, program_len, packet, packet_len, memory, memory_len) \ argument
46 const uint8_t* packet, uint32_t packet_len, in accept_packet() argument
78 if ((packet[APF_FRAME_HEADER_SIZE] & 0xf0) == 0x40) { in accept_packet()
79 memory[MEMORY_OFFSET_IPV4_HEADER_SIZE] = (packet[APF_FRAME_HEADER_SIZE] & 15) * 4; in accept_packet()
90 APF_TRACE_HOOK(pc, registers, program, program_len, packet, packet_len, memory, ram_len); in accept_packet()
153 val = (val << 8) | packet[offs++]; in accept_packet()
209 if (memcmp(program + pc, packet + REG, cmp_imm)) in accept_packet()
/hardware/google/aemu/host-common/
DMediaCudaVideoHelper.cpp180 CUVIDSOURCEDATAPACKET packet = {0}; in decode() local
181 packet.payload = frame; in decode()
182 packet.payload_size = szBytes; in decode()
183 packet.flags = CUVID_PKT_TIMESTAMP; in decode()
184 packet.timestamp = inputPts; in decode()
186 packet.flags |= CUVID_PKT_ENDOFSTREAM; in decode()
190 NVDEC_API_CALL(cuvidParseVideoData(mCudaParser, &packet)); in decode()
195 CUVIDSOURCEDATAPACKET packet = {0}; in flush() local
196 packet.payload = NULL; in flush()
197 packet.payload_size = 0; in flush()
[all …]
/hardware/google/apf/v4/
Dapf_interpreter.c26 uint32_t program_len, const uint8_t *packet, uint32_t packet_len,
29 #define APF_TRACE_HOOK(pc, regs, program, program_len, packet, packet_len, memory, memory_len) \ argument
46 const uint8_t* packet, uint32_t packet_len, in accept_packet() argument
78 if ((packet[APF_FRAME_HEADER_SIZE] & 0xf0) == 0x40) { in accept_packet()
79 memory[MEMORY_OFFSET_IPV4_HEADER_SIZE] = (packet[APF_FRAME_HEADER_SIZE] & 15) * 4; in accept_packet()
90 APF_TRACE_HOOK(pc, registers, program, program_len, packet, packet_len, memory, ram_len); in accept_packet()
153 val = (val << 8) | packet[offs++]; in accept_packet()
209 if (memcmp(program + pc, packet + REG, cmp_imm)) in accept_packet()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraMem.cpp1402 media_metadata_buffer * packet = in allocateMore() local
1406 packet->eType = kMetadataBufferTypeNativeHandleSource; in allocateMore()
1407 packet->pHandle = NULL; in allocateMore()
1409 packet->buffer_type = kMetadataBufferTypeCameraSource; in allocateMore()
1410 packet->meta_handle = mNativeHandle[i]; in allocateMore()
1470 media_metadata_buffer *packet = in allocateMeta() local
1499 packet->eType = kMetadataBufferTypeNativeHandleSource; in allocateMeta()
1500 packet->pHandle = NULL; in allocateMeta()
1502 packet->buffer_type = kMetadataBufferTypeCameraSource; in allocateMeta()
1503 packet->meta_handle = mNativeHandle[i]; in allocateMeta()
[all …]
/hardware/interfaces/bluetooth/1.0/
DIBluetoothHciCallbacks.hal35 * Send an ACL data packet form the controller to the host.
36 * @param data the ACL HCI packet to be passed to the host stack
41 * Send a SCO data packet form the controller to the host.
42 * @param data the SCO HCI packet to be passed to the host stack
/hardware/google/apf/v7/
Dapf_interpreter_source.c44 u32 program_len, const u8 *packet, u32 packet_len,
47 #define APF_TRACE_HOOK(pc, regs, program, program_len, packet, packet_len, memory, memory_len) \ argument
80 const u8* packet; // Pointer to input packet buffer member
122 return ctx->packet[ofs]; in read_packet_u8()
172 ctx->packet, ctx->packet_len, ctx->mem.slot, ctx->ram_len); in do_apf_run()
304 matched |= !memcmp(ctx->program + ctx->pc, ctx->packet + ctx->R[0], len); in do_apf_run()
419 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
441 ctx->packet + udp_payload_offset, in do_apf_run()
551 const u32 ram_len, const u8* const packet, in apf_runner() argument
572 apf_ctx.packet = packet; in apf_runner()
[all …]
/hardware/google/apf/v6/
Dapf_interpreter.c588 u32 program_len, const u8 *packet, u32 packet_len,
591 #define APF_TRACE_HOOK(pc, regs, program, program_len, packet, packet_len, memory, memory_len) \ argument
624 const u8* packet; /* Pointer to input packet buffer */ member
696 if ((ctx->packet_len >= ETH_HLEN + IPV4_HLEN) && ((ctx->packet[ETH_HLEN] & 0xf0) == 0x40)) { in do_apf_run()
697 ctx->mem.named.ipv4_header_size = (ctx->packet[ETH_HLEN] & 15) * 4; in do_apf_run()
710 ctx->packet, ctx->packet_len, ctx->mem.slot, ctx->ram_len); in do_apf_run()
784 while (load_size--) val = (val << 8) | ctx->packet[offs++]; in do_apf_run()
840 matched |= !memcmp(ctx->program + ctx->pc, ctx->packet + ctx->R[0], len); in do_apf_run()
955 memcpy(ctx->tx_buf + dst_offs, ctx->packet + pktcopy_src_offset, copy_len); in do_apf_run()
977 ctx->packet + udp_payload_offset, in do_apf_run()
[all …]

1234