Lines Matching refs:packet

70   BT_HDR* packet = (BT_HDR*)osi_malloc(size + sizeof(BT_HDR));  in manufacture_packet_for_fragmentation()  local
71 packet->len = size; in manufacture_packet_for_fragmentation()
72 packet->offset = 0; in manufacture_packet_for_fragmentation()
73 packet->event = event; in manufacture_packet_for_fragmentation()
74 packet->layer_specific = 0; in manufacture_packet_for_fragmentation()
75 uint8_t* packet_data = packet->data; in manufacture_packet_for_fragmentation()
83 return packet; in manufacture_packet_for_fragmentation()
87 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented() argument
89 uint8_t* data = packet->data + packet->offset; in expect_packet_fragmented()
105 int packet_data_length = packet->len - HCI_ACL_PREAMBLE_SIZE; in expect_packet_fragmented()
127 if (send_complete) osi_free(packet); in expect_packet_fragmented()
146 BT_HDR* packet = (BT_HDR*)osi_malloc(length_to_send + 4 + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble() local
147 packet->len = length_to_send + 4; in manufacture_packet_and_then_reassemble()
148 packet->offset = 0; in manufacture_packet_and_then_reassemble()
149 packet->event = event; in manufacture_packet_and_then_reassemble()
150 packet->layer_specific = 0; in manufacture_packet_and_then_reassemble()
152 uint8_t* packet_data = packet->data; in manufacture_packet_and_then_reassemble()
165 fragmenter->reassemble_and_dispatch(packet); in manufacture_packet_and_then_reassemble()
168 BT_HDR* packet = (BT_HDR*)osi_malloc(data_length + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble() local
169 packet->len = data_length; in manufacture_packet_and_then_reassemble()
170 packet->offset = 0; in manufacture_packet_and_then_reassemble()
171 packet->event = event; in manufacture_packet_and_then_reassemble()
172 packet->layer_specific = 0; in manufacture_packet_and_then_reassemble()
173 memcpy(packet->data, data, data_length); in manufacture_packet_and_then_reassemble()
175 fragmenter->reassemble_and_dispatch(packet); in manufacture_packet_and_then_reassemble()
179 static void expect_packet_reassembled(uint16_t event, BT_HDR* packet, in expect_packet_reassembled() argument
182 uint8_t* data = packet->data + packet->offset; in expect_packet_reassembled()
203 osi_free(packet); in expect_packet_reassembled()
206 STUB_FUNCTION(void, fragmented_callback, (BT_HDR * packet, bool send_complete))
208 expect_packet_fragmented(MSG_STACK_TO_HC_HCI_ACL, 42, packet, in DURING()
214 expect_packet_fragmented(MSG_STACK_TO_HC_HCI_ACL, 10, packet, sample_data, in DURING()
220 expect_packet_fragmented(MSG_STACK_TO_HC_HCI_ACL, 42, packet,
226 expect_packet_fragmented(MSG_STACK_TO_HC_HCI_ACL, 10, packet, sample_data, in DURING()
232 expect_packet_fragmented(MSG_STACK_TO_HC_HCI_CMD, 10, packet, sample_data,
240 STUB_FUNCTION(void, reassembled_callback, (BT_HDR * packet))
242 expect_packet_reassembled(MSG_HC_TO_STACK_HCI_ACL, packet, small_sample_data);
247 expect_packet_reassembled(MSG_HC_TO_STACK_HCI_ACL, packet, sample_data);
252 expect_packet_reassembled(MSG_HC_TO_STACK_HCI_EVT, packet, sample_data);
260 (UNUSED_ATTR BT_HDR * packet,
323 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ACL,
325 fragmenter->fragment_and_dispatch(packet);
333 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ACL,
335 fragmenter->fragment_and_dispatch(packet);
342 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ACL,
344 packet->event |= LOCAL_BLE_CONTROLLER_ID;
345 fragmenter->fragment_and_dispatch(packet);
353 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ACL,
355 packet->event |= LOCAL_BLE_CONTROLLER_ID;
356 fragmenter->fragment_and_dispatch(packet);
363 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_CMD,
365 fragmenter->fragment_and_dispatch(packet);