Searched refs:partial_packet (Results 1 – 2 of 2) sorted by relevance
155 BT_HDR *partial_packet = (BT_HDR *)hash_map_get(partial_packets, (void *)(uintptr_t)handle); in reassemble_and_dispatch() local158 if (partial_packet) { in reassemble_and_dispatch()161 osi_free(partial_packet); in reassemble_and_dispatch()173 partial_packet = (BT_HDR *)osi_calloc(full_length + sizeof(BT_HDR)); in reassemble_and_dispatch()174 partial_packet->event = packet->event; in reassemble_and_dispatch()175 partial_packet->len = full_length; in reassemble_and_dispatch()176 partial_packet->offset = packet->len; in reassemble_and_dispatch()178 memcpy(partial_packet->data, packet->data + packet->offset, packet->len); in reassemble_and_dispatch()181 stream = partial_packet->data; in reassemble_and_dispatch()185 hash_map_set(partial_packets, (void *)(uintptr_t)handle, partial_packet); in reassemble_and_dispatch()[all …]
1501 partial_packet = None1508 if partial_packet is None: # fail due to no data1516 len(partial_packet)1523 if partial_packet is None: # waiting for packet header1525 partial_packet = b""1541 partial_packet += b"\xc0"1543 partial_packet += b"\xdb"1556 trace_function("Received full packet: %s", HexFormatter(partial_packet))1557 yield partial_packet1558 partial_packet = None[all …]