/btstack/test/fuzz/ |
H A D | fuzz_hci.c | 10 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 16 static int hci_transport_fuzz_can_send_now(uint8_t packet_type){ in hci_transport_fuzz_can_send_now() argument 20 static int hci_transport_fuzz_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in hci_transport_fuzz_send_packet() argument 35 static void hci_transport_fuzz_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t… in hci_transport_fuzz_register_packet_handler() argument 52 static void l2cap_packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){ in l2cap_packet_handler() argument 53 switch (packet_type) { in l2cap_packet_handler() 75 uint8_t packet_type = (data[0] & 3) + 1; // only 1-4 in LLVMFuzzerTestOneInput() local 82 switch (packet_type){ in LLVMFuzzerTestOneInput() 119 (*packet_handler)(packet_type, packet, packet_len); in LLVMFuzzerTestOneInput()
|
H A D | fuzz_avrcp.c | 10 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 16 static int hci_transport_fuzz_can_send_now(uint8_t packet_type){ in hci_transport_fuzz_can_send_now() argument 20 static int hci_transport_fuzz_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in hci_transport_fuzz_send_packet() argument 35 static void hci_transport_fuzz_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t… in hci_transport_fuzz_register_packet_handler() argument 52 static void avrcp_client_packet_handler(uint8_t packet_type, uint16_t handle, uint8_t *packet, uint… in avrcp_client_packet_handler() argument
|
H A D | fuzz_avdtp.c | 11 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 17 static int hci_transport_fuzz_can_send_now(uint8_t packet_type){ in hci_transport_fuzz_can_send_now() argument 21 static int hci_transport_fuzz_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in hci_transport_fuzz_send_packet() argument 36 static void hci_transport_fuzz_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t… in hci_transport_fuzz_register_packet_handler() argument 53 static void avdtp_client_packet_handler(uint8_t packet_type, uint16_t handle, uint8_t *packet, uint… in avdtp_client_packet_handler() argument
|
/btstack/port/stm32-f4discovery-usb/port/ |
H A D | hci_transport_h2_stm32.c | 59 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = NULL; 80 static void hci_transport_h2_stm32_packet_received(uint8_t packet_type, uint8_t * packet, uint16_t … in hci_transport_h2_stm32_packet_received() argument 81 packet_handler(packet_type, packet, size); in hci_transport_h2_stm32_packet_received() 106 static void hci_transport_h2_stm32_register_packet_handler(void (*handler)(uint8_t packet_type, uin… in hci_transport_h2_stm32_register_packet_handler() argument 110 static int hci_transport_h2_stm32_can_send_now(uint8_t packet_type){ in hci_transport_h2_stm32_can_send_now() argument 114 static int hci_transport_h2_stm32_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in hci_transport_h2_stm32_send_packet() argument 115 switch (packet_type){ in hci_transport_h2_stm32_send_packet()
|
/btstack/src/ |
H A D | hci_dump.c | 81 void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len) { in hci_dump_packet() argument 96 (*hci_dump_implementation->log_packet)(packet_type, in, packet, len); in hci_dump_packet() 134 …acketlogger(uint8_t * buffer, uint32_t tv_sec, uint32_t tv_us, uint8_t packet_type, uint8_t in, ui… in hci_dump_setup_header_packetlogger() argument 139 switch (packet_type){ in hci_dump_setup_header_packetlogger() 164 …eader_bluez(uint8_t * buffer, uint32_t tv_sec, uint32_t tv_us, uint8_t packet_type, uint8_t in, ui… in hci_dump_setup_header_bluez() argument 170 buffer[12] = packet_type; in hci_dump_setup_header_bluez() 174 …ts_usec_high, uint32_t ts_usec_low, uint32_t cumulative_drops, uint8_t packet_type, uint8_t in, ui… in hci_dump_setup_header_btsnoop() argument 179 switch (packet_type){ in hci_dump_setup_header_btsnoop()
|
H A D | hci_dump.h | 84 void (*log_packet)(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len); 122 void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len); 165 …acketlogger(uint8_t * buffer, uint32_t tv_sec, uint32_t tv_us, uint8_t packet_type, uint8_t in, ui… 176 …eader_bluez(uint8_t * buffer, uint32_t tv_sec, uint32_t tv_us, uint8_t packet_type, uint8_t in, ui… 188 …ts_usec_high, uint32_t ts_usec_low, uint32_t cumulative_drops, uint8_t packet_type, uint8_t in, ui…
|
H A D | hci_transport_em9304_spi.c | 366 static void dummy_handler(uint8_t packet_type, uint8_t *packet, uint16_t size); 383 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = dummy_handler; 501 static int hci_transport_em9304_spi_can_send_now(uint8_t packet_type){ in hci_transport_em9304_spi_can_send_now() argument 502 UNUSED(packet_type); in hci_transport_em9304_spi_can_send_now() 506 static int hci_transport_em9304_spi_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in hci_transport_em9304_spi_send_packet() argument 511 *packet = packet_type; in hci_transport_em9304_spi_send_packet() 541 static void hci_transport_em9304_spi_register_packet_handler(void (*handler)(uint8_t packet_type, u… in hci_transport_em9304_spi_register_packet_handler() argument 545 static void dummy_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){ in dummy_handler() argument 546 UNUSED(packet_type); in dummy_handler()
|
/btstack/platform/windows/ |
H A D | hci_dump_windows_fs.c | 98 static void hci_dump_windows_fs_log_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16… in hci_dump_windows_fs_log_packet() argument 127 if (packet_type == HCI_ISO_DATA_PACKET){ in hci_dump_windows_fs_log_packet() 129 packet_type = LOG_MESSAGE_PACKET; in hci_dump_windows_fs_log_packet() 132 hci_dump_setup_header_bluez(header.header_bluez, tv_sec, tv_us, packet_type, in, len); in hci_dump_windows_fs_log_packet() 136 …ci_dump_setup_header_packetlogger(header.header_packetlogger, tv_sec, tv_us, packet_type, in, len); in hci_dump_windows_fs_log_packet() 141 if (packet_type == LOG_MESSAGE_PACKET) return; in hci_dump_windows_fs_log_packet() 144 …der_btsnoop(header.header_btsnoop, ts_usec >> 32, ts_usec & 0xFFFFFFFF, 0, packet_type, in, len+1); in hci_dump_windows_fs_log_packet() 145 header.header_btsnoop[HCI_DUMP_HEADER_SIZE_BTSNOOP] = packet_type; in hci_dump_windows_fs_log_packet()
|
/btstack/platform/posix/ |
H A D | hci_dump_posix_fs.c | 112 static void hci_dump_posix_fs_log_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t… in hci_dump_posix_fs_log_packet() argument 135 if (packet_type == HCI_ISO_DATA_PACKET){ in hci_dump_posix_fs_log_packet() 137 packet_type = LOG_MESSAGE_PACKET; in hci_dump_posix_fs_log_packet() 140 hci_dump_setup_header_bluez(header.header_bluez, tv_sec, tv_us, packet_type, in, len); in hci_dump_posix_fs_log_packet() 144 …ci_dump_setup_header_packetlogger(header.header_packetlogger, tv_sec, tv_us, packet_type, in, len); in hci_dump_posix_fs_log_packet() 149 if (packet_type == LOG_MESSAGE_PACKET) return; in hci_dump_posix_fs_log_packet() 152 …der_btsnoop(header.header_btsnoop, ts_usec >> 32, ts_usec & 0xFFFFFFFF, 0, packet_type, in, len+1); in hci_dump_posix_fs_log_packet() 153 header.header_btsnoop[HCI_DUMP_HEADER_SIZE_BTSNOOP] = packet_type; in hci_dump_posix_fs_log_packet()
|
/btstack/chipset/cinnamon/ |
H A D | controller.c | 75 static void (*hci_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 196 static void transport_packet_handler(uint8_t packet_type, uint8_t * packet, uint16_t size){ in transport_packet_handler() argument 198 (*hci_packet_handler)(packet_type, packet, size); in transport_packet_handler() 238 static void transport_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet,… in transport_register_packet_handler() argument 242 static int transport_can_send_packet_now(uint8_t packet_type){ in transport_can_send_packet_now() argument 244 switch (packet_type){ in transport_can_send_packet_now() 259 static int transport_send_packet(uint8_t packet_type, uint8_t *packet, int size){ in transport_send_packet() argument 260 switch (packet_type){ in transport_send_packet()
|
/btstack/example/ |
H A D | sdp_general_query.c | 83 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); 84 static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel, uint8_t *packet, … 107 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() argument 111 if (packet_type != HCI_EVENT_PACKET) return; in packet_handler() 148 static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel, uint8_t *packet, … in handle_sdp_client_query_result() argument 149 UNUSED(packet_type); in handle_sdp_client_query_result()
|
H A D | mesh_node_demo.c | 67 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() argument 71 if (packet_type != HCI_EVENT_PACKET) return; in packet_handler() 96 static void mesh_provisioning_message_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack… in mesh_provisioning_message_handler() argument 97 UNUSED(packet_type); in mesh_provisioning_message_handler() 101 if (packet_type != HCI_EVENT_PACKET) return; in mesh_provisioning_message_handler() 127 static void mesh_state_update_message_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe… in mesh_state_update_message_handler() argument 131 if (packet_type != HCI_EVENT_PACKET) return; in mesh_state_update_message_handler()
|
H A D | sm_pairing_central.c | 86 static void hci_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t siz… 87 static void sm_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size… 167 static void hci_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t siz… in hci_packet_handler() argument 171 if (packet_type != HCI_EVENT_PACKET) return; in hci_packet_handler() 250 static void sm_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size… in sm_packet_handler() argument 254 if (packet_type != HCI_EVENT_PACKET) return; in sm_packet_handler()
|
H A D | sdp_rfcomm_query.c | 64 static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint1… 83 static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() argument 87 if (packet_type != HCI_EVENT_PACKET) return; in packet_handler() 129 static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint1… in handle_query_rfcomm_event() argument 130 UNUSED(packet_type); in handle_query_rfcomm_event()
|
H A D | sm_pairing_peripheral.c | 73 static void sm_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t siz… 74 static void hci_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t siz… 171 static void sm_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t siz… in sm_packet_handler() argument 175 if (packet_type != HCI_EVENT_PACKET) return; in sm_packet_handler() 307 static void hci_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t si… in hci_packet_handler() argument 311 if (packet_type != HCI_EVENT_PACKET) return; in hci_packet_handler()
|
H A D | sdp_bnep_query.c | 83 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); 84 static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel, uint8_t *packet, … 106 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() argument 110 if (packet_type != HCI_EVENT_PACKET) return; in packet_handler() 157 static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel, uint8_t *packet, … in handle_sdp_client_query_result() argument 158 UNUSED(packet_type); in handle_sdp_client_query_result()
|
H A D | gatt_browser.c | 102 static void handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); 106 static void handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16… 174 static void handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in handle_hci_event() argument 178 if (packet_type != HCI_EVENT_PACKET) return; in handle_hci_event() 233 static void handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16… in handle_gatt_client_event() argument 234 UNUSED(packet_type); in handle_gatt_client_event()
|
/btstack/test/l2cap-cbm/ |
H A D | l2cap_cbm_test.cpp | 15 void mock_hci_transport_receive_packet(uint8_t packet_type, uint8_t * packet, uint16_t size); 24 static void (*mock_hci_transport_packet_handler)(uint8_t packet_type, uint8_t * packet, uint16_t si… 25 static void mock_hci_transport_register_packet_handler(void (*packet_handler)(uint8_t packet_type, … in mock_hci_transport_register_packet_handler() argument 28 static int mock_hci_transport_send_packet(uint8_t packet_type, uint8_t *packet, int size){ in mock_hci_transport_send_packet() argument 29 mock_hci_transport_outgoing_packet_type = packet_type; in mock_hci_transport_send_packet() 47 void mock_hci_transport_receive_packet(uint8_t packet_type, const uint8_t * packet, uint16_t size){ in mock_hci_transport_receive_packet() argument 48 (*mock_hci_transport_packet_handler)(packet_type, (uint8_t *) packet, size); in mock_hci_transport_receive_packet() 131 static void l2cap_channel_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, ui… in l2cap_channel_packet_handler() argument 135 switch (packet_type) { in l2cap_channel_packet_handler()
|
/btstack/port/mtk/docs/scripts/ |
H A D | process_scan.py | 32 def reset_timestamp(packet_type, packet, time_sec): argument 34 if packet_type != 0x00 or packet[0] != 0x0C or packet[1] != 0x20: 44 def read_scan(packet_type, packet, time_sec): argument 45 if packet_type != 0x01 or packet[0] != 0x3E or packet[2] != 0x02: 85 (length, time_sec, time_usec, packet_type) = struct.unpack('>IIIB',f.read(13)) 89 reset_timestamp(packet_type, packet, time_sec) 90 read_scan(packet_type, packet, time_sec)
|
/btstack/port/mtk/ |
H A D | hci_transport_h4_mtk.c | 59 static void dummy_handler(uint8_t packet_type, uint8_t *packet, uint16_t size); 71 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = dummy_handler; 109 static int h4_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in h4_send_packet() argument 114 hci_packet_out[0] = packet_type; in h4_send_packet() 123 static void h4_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet, uint… in h4_register_packet_handler() argument 156 static void dummy_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){ in dummy_handler() argument
|
/btstack/test/mesh/ |
H A D | provisioner.c | 54 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size); 114 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() argument 121 switch (packet_type) { in packet_handler() 149 static void mesh_message_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t … in mesh_message_handler() argument 153 if (packet_type != HCI_EVENT_PACKET) return; in mesh_message_handler() 245 static void mesh_unprovisioned_beacon_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe… in mesh_unprovisioned_beacon_handler() argument 249 if (packet_type != MESH_BEACON_PACKET) return; in mesh_unprovisioned_beacon_handler()
|
/btstack/port/stm32-wb55xx-nucleo-freertos/port/ |
H A D | btstack_port.c | 211 static void (*transport_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 523 static void transport_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet,… 531 static int transport_can_send_packet_now(uint8_t packet_type) { 533 switch (packet_type) 547 static int transport_send_packet(uint8_t packet_type, uint8_t *packet, int size){ 550 switch (packet_type){ 552 ble_cmd_buff->cmdserial.type = packet_type; 561 ((TL_AclDataPacket_t *)HciAclDataBuffer)->AclDataSerial.type = packet_type; 621 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ 622 if (packet_type != HCI_EVENT_PACKET) return;
|
/btstack/test/gap/ |
H A D | test_le_scan.cpp | 30 static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 38 static int hci_transport_test_can_send_now(uint8_t packet_type){ in hci_transport_test_can_send_now() argument 42 static int hci_transport_test_send_packet(uint8_t packet_type, uint8_t * packet, int size){ in hci_transport_test_send_packet() argument 45 transport_packets[transport_count_packets].type = packet_type; in hci_transport_test_send_packet() 64 static void hci_transport_test_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t… in hci_transport_test_register_packet_handler() argument
|
/btstack/port/esp32/components/btstack/ |
H A D | btstack_port_esp32.c | 94 static void (*transport_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size); 295 static void transport_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet,… in transport_register_packet_handler() argument 301 static int transport_can_send_packet_now(uint8_t packet_type) { in transport_can_send_packet_now() argument 306 static int transport_send_packet(uint8_t packet_type, uint8_t *packet, int size){ in transport_send_packet() argument 310 *packet = packet_type; in transport_send_packet() 359 static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ in packet_handler() argument 360 if (packet_type != HCI_EVENT_PACKET) return; in packet_handler()
|
/btstack/port/freebsd-netgraph/ |
H A D | hci_transport_netgraph.c | 71 static void (*hci_transport_netgraph_packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t… 321 static void hci_transport_netgraph_register_packet_handler(void (*handler)(uint8_t packet_type, uin… in hci_transport_netgraph_register_packet_handler() argument 325 static int hci_transport_netgraph_can_send_now(uint8_t packet_type){ in hci_transport_netgraph_can_send_now() argument 326 UNUSED(packet_type); in hci_transport_netgraph_can_send_now() 330 static int hci_transport_netgraph_send_packet(uint8_t packet_type, uint8_t * packet, int size) { in hci_transport_netgraph_send_packet() argument 336 buffer[0] = packet_type; in hci_transport_netgraph_send_packet() 341 hci_transport_netgraph_write_packet_type = packet_type; in hci_transport_netgraph_send_packet()
|