Lines Matching refs:packet_buffer
17 static uint8_t packet_buffer[256]; variable
32 return packet_buffer; in mock_packet_buffer()
37 memset(packet_buffer, 0, sizeof(packet_buffer)); in mock_clear_packet_buffer()
238 uint16_t len = hci_cmd_create_from_template(packet_buffer, cmd, argptr); in hci_send_cmd()
240 hci_dump_packet(HCI_COMMAND_DATA_PACKET, 0, packet_buffer, len); in hci_send_cmd()
241 dump_packet(HCI_COMMAND_DATA_PACKET, packet_buffer, len); in hci_send_cmd()
246 uint8_t * key_flipped = &packet_buffer[3]; in hci_send_cmd()
251 uint8_t * plaintext_flipped = &packet_buffer[19]; in hci_send_cmd()
286 little_endian_store_16(packet_buffer, 0, handle | (pb << 12) | (0 << 14)); in l2cap_send_connectionless()
288 little_endian_store_16(packet_buffer, 2, len + 4); in l2cap_send_connectionless()
290 little_endian_store_16(packet_buffer, 4, len + 0); in l2cap_send_connectionless()
292 little_endian_store_16(packet_buffer, 6, cid); in l2cap_send_connectionless()
294 memcpy(&packet_buffer[8], buffer, len); in l2cap_send_connectionless()
295 hci_dump_packet(HCI_ACL_DATA_PACKET, 0, &packet_buffer[0], len + 8); in l2cap_send_connectionless()
297 dump_packet(HCI_ACL_DATA_PACKET, packet_buffer, len + 8); in l2cap_send_connectionless()