Home
last modified time | relevance | path

Searched refs:payload_size (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/Virtualization/microdroid_manager/src/
Dinstance.rs80 payload_size: u64, // in bytes field
130 let payload_size = in read_microdroid_data() localVariable
131 header.payload_size as usize - AES_256_GCM_NONCE_LENGTH - AES_256_GCM_TAG_LENGTH; in read_microdroid_data()
132 let mut data = vec![0; payload_size]; in read_microdroid_data()
167 let payload_size = (AES_256_GCM_NONCE_LENGTH + data.len() + AES_256_GCM_TAG_LENGTH) as u64; in write_microdroid_data() localVariable
172 if header.payload_size != payload_size { in write_microdroid_data()
173 bail!("Can't change payload size from {} to {}", header.payload_size, payload_size); in write_microdroid_data()
177 self.write_header_at(offset, &uuid, payload_size)?; in write_microdroid_data()
216 let payload_size = self.file.read_u64::<LittleEndian>()?; in read_header_at() localVariable
218 Ok(PartitionHeader { uuid, payload_size }) in read_header_at()
[all …]
/packages/modules/Virtualization/pvmfw/src/
Dinstance.rs110 PvmfwEntry::Existing { header_index, payload_size } => { in get_recorded_entry()
113 if payload_size > blk.len() { in get_recorded_entry()
115 return Err(Error::UnsupportedEntrySize(payload_size)); in get_recorded_entry()
120 let payload = &blk[..payload_size]; in get_recorded_entry()
145 let payload_size = encrypted.len(); in record_instance_entry() localVariable
149 let header = EntryHeader::new(PvmfwEntry::UUID, payload_size); in record_instance_entry()
195 Existing { header_index: usize, payload_size: usize },
220 match (header.uuid(), header.payload_size()) { in locate_entry()
222 (PvmfwEntry::UUID, payload_size) => { in locate_entry()
223 return Ok(PvmfwEntry::Existing { header_index, payload_size }) in locate_entry()
[all …]
Dentry.rs66 pub fn start(fdt_address: u64, payload_start: u64, payload_size: u64, _arg3: u64) { in start()
71 match main_wrapper(fdt_address as usize, payload_start as usize, payload_size as usize) { in start()
192 payload_size: usize, in main_wrapper()
234 payload_size, in main_wrapper()
/packages/modules/Connectivity/clatd/
Ddump.c136 size_t payload_size) { in dump_udp_generic() argument
140 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_udp_generic()
152 size_t payload_size) { in dump_udp() argument
154 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size); in dump_udp()
155 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp()
160 size_t payload_size) { in dump_udp6() argument
162 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6()
163 dump_udp_generic(udp, temp_checksum, payload, payload_size); in dump_udp6()
168 uint32_t temp_checksum, const uint8_t *payload, size_t payload_size) { in dump_tcp_generic() argument
175 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size); in dump_tcp_generic()
[all …]
Dtranslate.c229 uint32_t checksum, const uint8_t *payload, size_t payload_size) { in icmp_to_icmp6() argument
245 clat_packet_len = ipv4_packet(out, pos + 1, payload, payload_size); in icmp_to_icmp6()
259 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp_to_icmp6()
281 const uint8_t *payload, size_t payload_size) { in icmp6_to_icmp() argument
298 clat_packet_len = ipv6_packet(out, pos + 1, payload, payload_size); in icmp6_to_icmp()
304 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp6_to_icmp()
344 size_t payload_size; in udp_packet() local
352 payload_size = len - sizeof(struct udphdr); in udp_packet()
354 return udp_translate(out, pos, udp, old_sum, new_sum, payload, payload_size); in udp_packet()
368 size_t payload_size, header_size; in tcp_packet() local
[all …]
Ddump.h32 size_t payload_size);
34 size_t payload_size, const uint8_t *options, size_t options_size);
39 size_t payload_size);
41 size_t payload_size, const uint8_t *options, size_t options_size);
Dtranslate.h71 uint32_t checksum, const uint8_t *payload, size_t payload_size);
73 const uint8_t *payload, size_t payload_size);
86 size_t payload_size);
88 uint32_t old_sum, uint32_t new_sum, const uint8_t *payload, size_t payload_size);
Dipv4.c37 size_t payload_size; in icmp_packet() local
45 payload_size = len - sizeof(struct icmphdr); in icmp_packet()
47 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size); in icmp_packet()
Dipv6.c39 size_t payload_size; in icmp6_packet() local
47 payload_size = len - sizeof(struct icmp6_hdr); in icmp6_packet()
49 return icmp6_to_icmp(out, pos, icmp6, payload, payload_size); in icmp6_packet()
/packages/modules/Bluetooth/system/stack/gatt/
Datt_protocol.cc138 const size_t payload_size = in attp_build_browse_cmd() local
141 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
166 uint16_t payload_size, tGATT_FIND_TYPE_VALUE* p_value_type) { in attp_build_read_by_type_value_cmd() argument
171 if (payload_size < 5) { in attp_build_read_by_type_value_cmd()
176 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_read_by_type_value_cmd()
188 if (p_value_type->value_len + p_buf->len > payload_size) in attp_build_read_by_type_value_cmd()
189 len = payload_size - p_buf->len; in attp_build_read_by_type_value_cmd()
206 static BT_HDR* attp_build_read_multi_cmd(uint8_t op_code, uint16_t payload_size, in attp_build_read_multi_cmd() argument
220 for (i = 0; i < num_handle && p_buf->len + 2 <= payload_size; i++) { in attp_build_read_multi_cmd()
289 static BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code, in attp_build_value_cmd() argument
[all …]
Dgatt_cl.cc234 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, p_clcb->cid); in gatt_act_write() local
254 if (attr.len <= (payload_size - GATT_HDR_SIZE)) { in gatt_act_write()
354 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, p_clcb->cid); in gatt_send_prepare_write() local
355 if (to_send > (payload_size - in gatt_send_prepare_write()
357 to_send = payload_size - GATT_WRITE_LONG_HDR_SIZE; in gatt_send_prepare_write()
814 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, p_clcb->cid); in gatt_process_read_by_type_rsp() local
815 if ((value_len > (payload_size - 2)) || (value_len > (len - 1))) { in gatt_process_read_by_type_rsp()
821 op_code, value_len, payload_size - 2, len - 1); in gatt_process_read_by_type_rsp()
908 if (p_clcb->counter == (payload_size - 4)) { in gatt_process_read_by_type_rsp()
1001 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, p_clcb->cid); in gatt_process_read_rsp() local
[all …]
Dgatt_sr.cc310 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, sr_res_p->cid); in gatt_sr_process_app_rsp() local
319 if (!process_read_multi_rsp(sr_res_p, status, p_msg, payload_size)) in gatt_sr_process_app_rsp()
333 tcb, (uint8_t)(op_code + 1), (tGATT_SR_MSG*)p_msg, payload_size); in gatt_sr_process_app_rsp()
553 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, cid); in gatt_build_primary_service_rsp() local
579 if (p_msg->len + p_msg->offset > payload_size || in gatt_build_primary_service_rsp()
746 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, cid); in gatts_process_primary_service_req() local
749 (uint16_t)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req()
782 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, cid); in gatts_process_find_info() local
784 (uint16_t)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info()
793 buf_len = payload_size - 2; in gatts_process_find_info()
[all …]
Dgatt_auth.cc54 uint16_t payload_size = p_clcb->p_tcb->payload_size; in gatt_sign_data() local
71 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len) in gatt_sign_data()
72 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3; in gatt_sign_data()
Dgatt_api.cc481 uint16_t payload_size = gatt_tcb_get_payload_size(*p_tcb, cid); in GATTS_HandleValueIndication() local
483 payload_size); in GATTS_HandleValueIndication()
500 uint16_t payload_size = gatt_tcb_get_payload_size(*p_tcb, cid); in GATTS_HandleMultipleValueNotification() local
505 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in GATTS_HandleMultipleValueNotification()
614 uint16_t payload_size = gatt_tcb_get_payload_size(*p_tcb, cid); in GATTS_HandleValueNotification() local
616 &gatt_sr_msg, payload_size); in GATTS_HandleValueNotification()
826 p_tcb->payload_size, p_tcb->max_user_mtu, user_mtu); in GATTC_UpdateUserAttMtuIfNeeded()
828 if (p_tcb->payload_size < user_mtu) { in GATTC_UpdateUserAttMtuIfNeeded()
830 user_mtu = p_tcb->payload_size; in GATTC_UpdateUserAttMtuIfNeeded()
Dgatt_main.cc520 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatt_le_connect_cback()
547 p_tcb->payload_size = GATT_DEF_BLE_MTU_SIZE; in gatt_le_connect_cback()
871 p_tcb->payload_size = p_cfg->mtu; in gatt_l2cif_config_ind_cback()
873 p_tcb->payload_size = L2CAP_DEFAULT_MTU; in gatt_l2cif_config_ind_cback()
Dgatt_utils.cc525 return p_tcb->payload_size; in gatt_get_mtu()
911 uint16_t payload_size = gatt_tcb_get_payload_size(tcb, cid); in gatt_send_error_rsp() local
912 p_buf = attp_build_sr_msg(tcb, GATT_RSP_ERROR, &msg, payload_size); in gatt_send_error_rsp()
1197 if (!tcb.eatt || (cid == tcb.att_lcid)) return tcb.payload_size; in gatt_tcb_get_payload_size()
1728 cb_data.mtu = p_clcb->p_tcb->payload_size; in gatt_end_operation()
/packages/modules/Bluetooth/system/gd/hal/
Dhci_hal_host_test.cc193 HciPacket make_sample_hci_acl_pkt(uint8_t payload_size) { in make_sample_hci_acl_pkt() argument
195 pkt.assign(2 + 2 + payload_size, 0x01); in make_sample_hci_acl_pkt()
196 pkt[2] = payload_size; in make_sample_hci_acl_pkt()
200 HciPacket make_sample_hci_sco_pkt(uint8_t payload_size) { in make_sample_hci_sco_pkt() argument
202 pkt.assign(3 + payload_size, 0x01); in make_sample_hci_sco_pkt()
203 pkt[2] = payload_size; in make_sample_hci_sco_pkt()
215 HciPacket make_sample_h4_acl_pkt(uint8_t payload_size) { in make_sample_h4_acl_pkt() argument
217 pkt.assign(1 + 2 + 2 + payload_size, 0x01); in make_sample_h4_acl_pkt()
219 pkt[3] = payload_size; in make_sample_h4_acl_pkt()
224 HciPacket make_sample_h4_sco_pkt(uint8_t payload_size) { in make_sample_h4_sco_pkt() argument
[all …]
Dhci_hal_host.cc414 ssize_t payload_size = received_size - (kH4HeaderSize + kHciEvtHeaderSize); in incoming_packet_received() local
416 payload_size == hci_evt_parameter_total_length, in incoming_packet_received()
418 payload_size, in incoming_packet_received()
422 …eivedHciPacket.assign(buf + kH4HeaderSize, buf + kH4HeaderSize + kHciEvtHeaderSize + payload_size); in incoming_packet_received()
440 int payload_size = received_size - (kH4HeaderSize + kHciAclHeaderSize); in incoming_packet_received() local
443 payload_size == hci_acl_data_total_length, in incoming_packet_received()
445 payload_size, in incoming_packet_received()
453 buf + kH4HeaderSize, buf + kH4HeaderSize + kHciAclHeaderSize + payload_size); in incoming_packet_received()
470 int payload_size = received_size - (kH4HeaderSize + kHciScoHeaderSize); in incoming_packet_received() local
473 payload_size == hci_sco_data_total_length, in incoming_packet_received()
[all …]
/packages/modules/Bluetooth/system/stack/test/gatt/
Dstack_gatt_test.cc44 BT_HDR* attp_build_value_cmd(uint16_t payload_size, uint8_t op_code,
240 static void attp_build_value_cmd_test_with_p_data(uint16_t payload_size, in attp_build_value_cmd_test_with_p_data() argument
254 ASSERT_GE(payload_size, min_payload_size); in attp_build_value_cmd_test_with_p_data()
257 payload_size, op_code, handle, offset, len, p_data); in attp_build_value_cmd_test_with_p_data()
288 if (min_payload_size + len <= payload_size) { in attp_build_value_cmd_test_with_p_data()
292 actual_payload_size = payload_size; in attp_build_value_cmd_test_with_p_data()
293 pair_len = payload_size - min_payload_size + 2; in attp_build_value_cmd_test_with_p_data()
380 uint16_t payload_size = data_size + 4; in TEST_F() local
389 payload_size, op_code, handle, offset_0, data_size, data); in TEST_F()
Dmock_gatt_utils_ref.cc35 uint16_t payload_size) { in attp_build_sr_msg() argument
/packages/modules/Bluetooth/tools/rootcanal/model/hci/
Dh4_parser.cc190 size_t payload_size = in Consume() local
192 if (payload_size == 0) { in Consume()
196 bytes_wanted_ = payload_size; in Consume()
/packages/modules/Virtualization/libs/devicemapper/src/
Dlib.rs189 let payload_size = size_of::<DmIoctl>() + target.len(); in create_device() localVariable
192 data.data_size = payload_size as u32; in create_device()
200 let mut payload = Vec::with_capacity(payload_size); in create_device()
/packages/modules/adb/pairing_connection/
Dpairing_connection.cpp109 uint32_t payload_size);
254 uint32_t payload_size) { in CreateHeader() argument
258 header->payload = payload_size; in CreateHeader()
/packages/modules/Bluetooth/system/gd/packet/
Dpacket_builder_unittest.cc198 size_t payload_size = (payload_ ? payload_->size() : 0); in size() local
199 return 1 + payload_size; in size()
/packages/modules/Bluetooth/system/gd/hci/
Dacl_manager_test.cc1462 size_t payload_size = 0x30; in TEST_F() local
1463 std::vector<uint8_t> payload = MakeAclPayload(payload_size, 0xABB /* cid */, 4 /* offset */); in TEST_F()
1486 size_t payload_size = 0x30; // must be even in TEST_F() local
1487 std::vector<uint8_t> payload = MakeAclPayload(payload_size, 0xABB /* cid */, 4 /* offset */); in TEST_F()
1510 size_t payload_size = 0x30; in TEST_F() local
1511 std::vector<uint8_t> payload = MakeAclPayload(payload_size, 0xABB /* cid */, 4 /* offset */); in TEST_F()

12