Lines Matching refs:pp
111 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_local_used_feat() local
116 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_LOCAL_SPT_FEAT); in btsnd_hcic_ble_set_local_used_feat()
117 ARRAY_TO_STREAM(pp, feat_set, HCIC_PARAM_SIZE_SET_USED_FEAT_CMD); in btsnd_hcic_ble_set_local_used_feat()
124 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_random_addr() local
129 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_RANDOM_ADDR); in btsnd_hcic_ble_set_random_addr()
130 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD); in btsnd_hcic_ble_set_random_addr()
132 BDADDR_TO_STREAM(pp, random_bda); in btsnd_hcic_ble_set_random_addr()
144 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_write_adv_params() local
149 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
150 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
152 UINT16_TO_STREAM(pp, adv_int_min); in btsnd_hcic_ble_write_adv_params()
153 UINT16_TO_STREAM(pp, adv_int_max); in btsnd_hcic_ble_write_adv_params()
154 UINT8_TO_STREAM(pp, adv_type); in btsnd_hcic_ble_write_adv_params()
155 UINT8_TO_STREAM(pp, addr_type_own); in btsnd_hcic_ble_write_adv_params()
156 UINT8_TO_STREAM(pp, addr_type_dir); in btsnd_hcic_ble_write_adv_params()
157 BDADDR_TO_STREAM(pp, direct_bda); in btsnd_hcic_ble_write_adv_params()
158 UINT8_TO_STREAM(pp, channel_map); in btsnd_hcic_ble_write_adv_params()
159 UINT8_TO_STREAM(pp, adv_filter_policy); in btsnd_hcic_ble_write_adv_params()
165 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_adv_chnl_tx_power() local
170 UINT16_TO_STREAM(pp, HCI_BLE_READ_ADV_CHNL_TX_POWER); in btsnd_hcic_ble_read_adv_chnl_tx_power()
171 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_ble_read_adv_chnl_tx_power()
178 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_adv_data() local
183 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_ADV_DATA); in btsnd_hcic_ble_set_adv_data()
184 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA + 1); in btsnd_hcic_ble_set_adv_data()
186 memset(pp, 0, HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA); in btsnd_hcic_ble_set_adv_data()
192 UINT8_TO_STREAM(pp, data_len); in btsnd_hcic_ble_set_adv_data()
194 ARRAY_TO_STREAM(pp, p_data, data_len); in btsnd_hcic_ble_set_adv_data()
200 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_scan_rsp_data() local
205 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_SCAN_RSP_DATA); in btsnd_hcic_ble_set_scan_rsp_data()
206 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_RSP + 1); in btsnd_hcic_ble_set_scan_rsp_data()
208 memset(pp, 0, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_RSP); in btsnd_hcic_ble_set_scan_rsp_data()
214 UINT8_TO_STREAM(pp, data_len); in btsnd_hcic_ble_set_scan_rsp_data()
216 ARRAY_TO_STREAM(pp, p_scan_rsp, data_len); in btsnd_hcic_ble_set_scan_rsp_data()
224 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_adv_enable() local
229 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_ADV_ENABLE); in btsnd_hcic_ble_set_adv_enable()
230 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_ADV_ENABLE); in btsnd_hcic_ble_set_adv_enable()
232 UINT8_TO_STREAM(pp, adv_enable); in btsnd_hcic_ble_set_adv_enable()
240 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_scan_params() local
245 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_SCAN_PARAMS); in btsnd_hcic_ble_set_scan_params()
246 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_PARAM); in btsnd_hcic_ble_set_scan_params()
248 UINT8_TO_STREAM(pp, scan_type); in btsnd_hcic_ble_set_scan_params()
249 UINT16_TO_STREAM(pp, scan_int); in btsnd_hcic_ble_set_scan_params()
250 UINT16_TO_STREAM(pp, scan_win); in btsnd_hcic_ble_set_scan_params()
251 UINT8_TO_STREAM(pp, addr_type_own); in btsnd_hcic_ble_set_scan_params()
252 UINT8_TO_STREAM(pp, scan_filter_policy); in btsnd_hcic_ble_set_scan_params()
259 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_scan_enable() local
264 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_SCAN_ENABLE); in btsnd_hcic_ble_set_scan_enable()
265 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_ENABLE); in btsnd_hcic_ble_set_scan_enable()
267 UINT8_TO_STREAM(pp, scan_enable); in btsnd_hcic_ble_set_scan_enable()
268 UINT8_TO_STREAM(pp, duplicate); in btsnd_hcic_ble_set_scan_enable()
280 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_create_ll_conn() local
285 UINT16_TO_STREAM(pp, HCI_BLE_CREATE_LL_CONN); in btsnd_hcic_ble_create_ll_conn()
286 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_CREATE_LL_CONN); in btsnd_hcic_ble_create_ll_conn()
288 UINT16_TO_STREAM(pp, scan_int); in btsnd_hcic_ble_create_ll_conn()
289 UINT16_TO_STREAM(pp, scan_win); in btsnd_hcic_ble_create_ll_conn()
290 UINT8_TO_STREAM(pp, init_filter_policy); in btsnd_hcic_ble_create_ll_conn()
292 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_create_ll_conn()
293 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_create_ll_conn()
294 UINT8_TO_STREAM(pp, addr_type_own); in btsnd_hcic_ble_create_ll_conn()
296 UINT16_TO_STREAM(pp, conn_int_min); in btsnd_hcic_ble_create_ll_conn()
297 UINT16_TO_STREAM(pp, conn_int_max); in btsnd_hcic_ble_create_ll_conn()
298 UINT16_TO_STREAM(pp, conn_latency); in btsnd_hcic_ble_create_ll_conn()
299 UINT16_TO_STREAM(pp, conn_timeout); in btsnd_hcic_ble_create_ll_conn()
301 UINT16_TO_STREAM(pp, min_ce_len); in btsnd_hcic_ble_create_ll_conn()
302 UINT16_TO_STREAM(pp, max_ce_len); in btsnd_hcic_ble_create_ll_conn()
309 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_create_conn_cancel() local
314 UINT16_TO_STREAM(pp, HCI_BLE_CREATE_CONN_CANCEL); in btsnd_hcic_ble_create_conn_cancel()
315 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_CREATE_CONN_CANCEL); in btsnd_hcic_ble_create_conn_cancel()
330 uint8_t* pp = param; in btsnd_hcic_ble_add_acceptlist() local
332 UINT8_TO_STREAM(pp, addr_type); in btsnd_hcic_ble_add_acceptlist()
333 BDADDR_TO_STREAM(pp, bda); in btsnd_hcic_ble_add_acceptlist()
343 uint8_t* pp = param; in btsnd_hcic_ble_remove_from_acceptlist() local
345 UINT8_TO_STREAM(pp, addr_type); in btsnd_hcic_ble_remove_from_acceptlist()
346 BDADDR_TO_STREAM(pp, bda); in btsnd_hcic_ble_remove_from_acceptlist()
359 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_upd_ll_conn_params() local
364 UINT16_TO_STREAM(pp, HCI_BLE_UPD_LL_CONN_PARAMS); in btsnd_hcic_ble_upd_ll_conn_params()
365 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_UPD_LL_CONN_PARAMS); in btsnd_hcic_ble_upd_ll_conn_params()
367 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_upd_ll_conn_params()
369 UINT16_TO_STREAM(pp, conn_int_min); in btsnd_hcic_ble_upd_ll_conn_params()
370 UINT16_TO_STREAM(pp, conn_int_max); in btsnd_hcic_ble_upd_ll_conn_params()
371 UINT16_TO_STREAM(pp, conn_latency); in btsnd_hcic_ble_upd_ll_conn_params()
372 UINT16_TO_STREAM(pp, conn_timeout); in btsnd_hcic_ble_upd_ll_conn_params()
373 UINT16_TO_STREAM(pp, min_ce_len); in btsnd_hcic_ble_upd_ll_conn_params()
374 UINT16_TO_STREAM(pp, max_ce_len); in btsnd_hcic_ble_upd_ll_conn_params()
382 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_host_chnl_class() local
387 UINT16_TO_STREAM(pp, HCI_BLE_SET_HOST_CHNL_CLASS); in btsnd_hcic_ble_set_host_chnl_class()
388 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_HOST_CHNL_CLASS); in btsnd_hcic_ble_set_host_chnl_class()
390 ARRAY_TO_STREAM(pp, chnl_map, HCIC_BLE_CHNL_MAP_SIZE); in btsnd_hcic_ble_set_host_chnl_class()
397 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_chnl_map() local
402 UINT16_TO_STREAM(pp, HCI_BLE_READ_CHNL_MAP); in btsnd_hcic_ble_read_chnl_map()
403 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CHNL_MAP); in btsnd_hcic_ble_read_chnl_map()
405 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_read_chnl_map()
412 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_remote_feat() local
417 UINT16_TO_STREAM(pp, HCI_BLE_READ_REMOTE_FEAT); in btsnd_hcic_ble_read_remote_feat()
418 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_READ_REMOTE_FEAT); in btsnd_hcic_ble_read_remote_feat()
420 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_read_remote_feat()
429 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_encrypt() local
434 *((void**)pp) = in btsnd_hcic_ble_encrypt()
436 pp += sizeof(void*); /* Skip over callback pointer */ in btsnd_hcic_ble_encrypt()
438 UINT16_TO_STREAM(pp, HCI_BLE_ENCRYPT); in btsnd_hcic_ble_encrypt()
439 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_ENCRYPT); in btsnd_hcic_ble_encrypt()
441 memset(pp, 0, HCIC_PARAM_SIZE_BLE_ENCRYPT); in btsnd_hcic_ble_encrypt()
446 ARRAY_TO_STREAM(pp, key, key_len); in btsnd_hcic_ble_encrypt()
447 pp += (HCIC_BLE_ENCRYPT_KEY_SIZE - key_len); in btsnd_hcic_ble_encrypt()
448 ARRAY_TO_STREAM(pp, plain_text, pt_len); in btsnd_hcic_ble_encrypt()
469 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_start_enc() local
474 UINT16_TO_STREAM(pp, HCI_BLE_START_ENC); in btsnd_hcic_ble_start_enc()
475 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_START_ENC); in btsnd_hcic_ble_start_enc()
477 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_start_enc()
478 ARRAY_TO_STREAM(pp, rand, HCIC_BLE_RAND_DI_SIZE); in btsnd_hcic_ble_start_enc()
479 UINT16_TO_STREAM(pp, ediv); in btsnd_hcic_ble_start_enc()
480 ARRAY_TO_STREAM(pp, ltk.data(), HCIC_BLE_ENCRYPT_KEY_SIZE); in btsnd_hcic_ble_start_enc()
487 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_ltk_req_reply() local
492 UINT16_TO_STREAM(pp, HCI_BLE_LTK_REQ_REPLY); in btsnd_hcic_ble_ltk_req_reply()
493 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LTK_REQ_REPLY); in btsnd_hcic_ble_ltk_req_reply()
495 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_ltk_req_reply()
496 ARRAY_TO_STREAM(pp, ltk.data(), HCIC_BLE_ENCRYPT_KEY_SIZE); in btsnd_hcic_ble_ltk_req_reply()
503 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_ltk_req_neg_reply() local
508 UINT16_TO_STREAM(pp, HCI_BLE_LTK_REQ_NEG_REPLY); in btsnd_hcic_ble_ltk_req_neg_reply()
509 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LTK_REQ_NEG_REPLY); in btsnd_hcic_ble_ltk_req_neg_reply()
511 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_ltk_req_neg_reply()
518 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_receiver_test() local
523 UINT16_TO_STREAM(pp, HCI_BLE_RECEIVER_TEST); in btsnd_hcic_ble_receiver_test()
524 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_ble_receiver_test()
526 UINT8_TO_STREAM(pp, rx_freq); in btsnd_hcic_ble_receiver_test()
534 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_transmitter_test() local
539 UINT16_TO_STREAM(pp, HCI_BLE_TRANSMITTER_TEST); in btsnd_hcic_ble_transmitter_test()
540 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM3); in btsnd_hcic_ble_transmitter_test()
542 UINT8_TO_STREAM(pp, tx_freq); in btsnd_hcic_ble_transmitter_test()
543 UINT8_TO_STREAM(pp, test_data_len); in btsnd_hcic_ble_transmitter_test()
544 UINT8_TO_STREAM(pp, payload); in btsnd_hcic_ble_transmitter_test()
551 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_test_end() local
556 UINT16_TO_STREAM(pp, HCI_BLE_TEST_END); in btsnd_hcic_ble_test_end()
557 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_ble_test_end()
564 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_host_supported() local
569 UINT16_TO_STREAM(pp, HCI_READ_LE_HOST_SUPPORT); in btsnd_hcic_ble_read_host_supported()
570 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_ble_read_host_supported()
582 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_rc_param_req_reply() local
587 UINT16_TO_STREAM(pp, HCI_BLE_RC_PARAM_REQ_REPLY); in btsnd_hcic_ble_rc_param_req_reply()
588 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_RC_PARAM_REQ_REPLY); in btsnd_hcic_ble_rc_param_req_reply()
590 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_rc_param_req_reply()
591 UINT16_TO_STREAM(pp, conn_int_min); in btsnd_hcic_ble_rc_param_req_reply()
592 UINT16_TO_STREAM(pp, conn_int_max); in btsnd_hcic_ble_rc_param_req_reply()
593 UINT16_TO_STREAM(pp, conn_latency); in btsnd_hcic_ble_rc_param_req_reply()
594 UINT16_TO_STREAM(pp, conn_timeout); in btsnd_hcic_ble_rc_param_req_reply()
595 UINT16_TO_STREAM(pp, min_ce_len); in btsnd_hcic_ble_rc_param_req_reply()
596 UINT16_TO_STREAM(pp, max_ce_len); in btsnd_hcic_ble_rc_param_req_reply()
603 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_rc_param_req_neg_reply() local
608 UINT16_TO_STREAM(pp, HCI_BLE_RC_PARAM_REQ_NEG_REPLY); in btsnd_hcic_ble_rc_param_req_neg_reply()
609 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_RC_PARAM_REQ_NEG_REPLY); in btsnd_hcic_ble_rc_param_req_neg_reply()
611 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_ble_rc_param_req_neg_reply()
612 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_ble_rc_param_req_neg_reply()
622 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_add_device_resolving_list() local
627 UINT16_TO_STREAM(pp, HCI_BLE_ADD_DEV_RESOLVING_LIST); in btsnd_hcic_ble_add_device_resolving_list()
628 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_ADD_DEV_RESOLVING_LIST); in btsnd_hcic_ble_add_device_resolving_list()
629 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_add_device_resolving_list()
630 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_add_device_resolving_list()
631 ARRAY_TO_STREAM(pp, irk_peer.data(), HCIC_BLE_ENCRYPT_KEY_SIZE); in btsnd_hcic_ble_add_device_resolving_list()
632 ARRAY_TO_STREAM(pp, irk_local.data(), HCIC_BLE_ENCRYPT_KEY_SIZE); in btsnd_hcic_ble_add_device_resolving_list()
640 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_rm_device_resolving_list() local
645 UINT16_TO_STREAM(pp, HCI_BLE_RM_DEV_RESOLVING_LIST); in btsnd_hcic_ble_rm_device_resolving_list()
646 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_RM_DEV_RESOLVING_LIST); in btsnd_hcic_ble_rm_device_resolving_list()
647 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_rm_device_resolving_list()
648 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_rm_device_resolving_list()
657 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_privacy_mode() local
662 UINT16_TO_STREAM(pp, HCI_BLE_SET_PRIVACY_MODE); in btsnd_hcic_ble_set_privacy_mode()
663 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_PRIVACY_MODE); in btsnd_hcic_ble_set_privacy_mode()
664 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_set_privacy_mode()
665 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_set_privacy_mode()
666 UINT8_TO_STREAM(pp, privacy_type); in btsnd_hcic_ble_set_privacy_mode()
673 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_clear_resolving_list() local
678 UINT16_TO_STREAM(pp, HCI_BLE_CLEAR_RESOLVING_LIST); in btsnd_hcic_ble_clear_resolving_list()
679 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_CLEAR_RESOLVING_LIST); in btsnd_hcic_ble_clear_resolving_list()
687 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_resolvable_addr_peer() local
692 UINT16_TO_STREAM(pp, HCI_BLE_READ_RESOLVABLE_ADDR_PEER); in btsnd_hcic_ble_read_resolvable_addr_peer()
693 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_READ_RESOLVABLE_ADDR_PEER); in btsnd_hcic_ble_read_resolvable_addr_peer()
694 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_read_resolvable_addr_peer()
695 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_read_resolvable_addr_peer()
703 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_resolvable_addr_local() local
708 UINT16_TO_STREAM(pp, HCI_BLE_READ_RESOLVABLE_ADDR_LOCAL); in btsnd_hcic_ble_read_resolvable_addr_local()
709 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_READ_RESOLVABLE_ADDR_LOCAL); in btsnd_hcic_ble_read_resolvable_addr_local()
710 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_read_resolvable_addr_local()
711 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_read_resolvable_addr_local()
718 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_addr_resolution_enable() local
723 UINT16_TO_STREAM(pp, HCI_BLE_SET_ADDR_RESOLUTION_ENABLE); in btsnd_hcic_ble_set_addr_resolution_enable()
724 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_ADDR_RESOLUTION_ENABLE); in btsnd_hcic_ble_set_addr_resolution_enable()
725 UINT8_TO_STREAM(pp, addr_resolution_enable); in btsnd_hcic_ble_set_addr_resolution_enable()
732 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_rand_priv_addr_timeout() local
737 UINT16_TO_STREAM(pp, HCI_BLE_SET_RAND_PRIV_ADDR_TIMOUT); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
738 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_RAND_PRIV_ADDR_TIMOUT); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
739 UINT16_TO_STREAM(pp, rpa_timout); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
747 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_data_length() local
752 UINT16_TO_STREAM(pp, HCI_BLE_SET_DATA_LENGTH); in btsnd_hcic_ble_set_data_length()
753 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_DATA_LENGTH); in btsnd_hcic_ble_set_data_length()
755 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_set_data_length()
756 UINT16_TO_STREAM(pp, tx_octets); in btsnd_hcic_ble_set_data_length()
757 UINT16_TO_STREAM(pp, tx_time); in btsnd_hcic_ble_set_data_length()
765 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_enh_rx_test() local
770 UINT16_TO_STREAM(pp, HCI_BLE_ENH_RECEIVER_TEST); in btsnd_hcic_ble_enh_rx_test()
771 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_ENH_RX_TEST); in btsnd_hcic_ble_enh_rx_test()
773 UINT8_TO_STREAM(pp, rx_chan); in btsnd_hcic_ble_enh_rx_test()
774 UINT8_TO_STREAM(pp, phy); in btsnd_hcic_ble_enh_rx_test()
775 UINT8_TO_STREAM(pp, mod_index); in btsnd_hcic_ble_enh_rx_test()
783 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_enh_tx_test() local
788 UINT16_TO_STREAM(pp, HCI_BLE_ENH_TRANSMITTER_TEST); in btsnd_hcic_ble_enh_tx_test()
789 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_ENH_TX_TEST); in btsnd_hcic_ble_enh_tx_test()
790 UINT8_TO_STREAM(pp, tx_chan); in btsnd_hcic_ble_enh_tx_test()
791 UINT8_TO_STREAM(pp, data_len); in btsnd_hcic_ble_enh_tx_test()
792 UINT8_TO_STREAM(pp, payload); in btsnd_hcic_ble_enh_tx_test()
793 UINT8_TO_STREAM(pp, phy); in btsnd_hcic_ble_enh_tx_test()
803 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_extended_scan_params() local
812 UINT16_TO_STREAM(pp, HCI_LE_SET_EXTENDED_SCAN_PARAMETERS); in btsnd_hcic_ble_set_extended_scan_params()
813 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_set_extended_scan_params()
815 UINT8_TO_STREAM(pp, own_address_type); in btsnd_hcic_ble_set_extended_scan_params()
816 UINT8_TO_STREAM(pp, scanning_filter_policy); in btsnd_hcic_ble_set_extended_scan_params()
817 UINT8_TO_STREAM(pp, scanning_phys); in btsnd_hcic_ble_set_extended_scan_params()
820 UINT8_TO_STREAM(pp, phy_cfg[i].scan_type); in btsnd_hcic_ble_set_extended_scan_params()
821 UINT16_TO_STREAM(pp, phy_cfg[i].scan_int); in btsnd_hcic_ble_set_extended_scan_params()
822 UINT16_TO_STREAM(pp, phy_cfg[i].scan_win); in btsnd_hcic_ble_set_extended_scan_params()
833 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_extended_scan_enable() local
839 UINT16_TO_STREAM(pp, HCI_LE_SET_EXTENDED_SCAN_ENABLE); in btsnd_hcic_ble_set_extended_scan_enable()
840 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_set_extended_scan_enable()
842 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_ble_set_extended_scan_enable()
843 UINT8_TO_STREAM(pp, filter_duplicates); in btsnd_hcic_ble_set_extended_scan_enable()
844 UINT16_TO_STREAM(pp, duration); in btsnd_hcic_ble_set_extended_scan_enable()
845 UINT16_TO_STREAM(pp, period); in btsnd_hcic_ble_set_extended_scan_enable()
857 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_ext_create_conn() local
869 UINT16_TO_STREAM(pp, HCI_LE_EXTENDED_CREATE_CONNECTION); in btsnd_hcic_ble_ext_create_conn()
870 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_ble_ext_create_conn()
872 UINT8_TO_STREAM(pp, init_filter_policy); in btsnd_hcic_ble_ext_create_conn()
873 UINT8_TO_STREAM(pp, addr_type_own); in btsnd_hcic_ble_ext_create_conn()
874 UINT8_TO_STREAM(pp, addr_type_peer); in btsnd_hcic_ble_ext_create_conn()
875 BDADDR_TO_STREAM(pp, bda_peer); in btsnd_hcic_ble_ext_create_conn()
877 UINT8_TO_STREAM(pp, initiating_phys); in btsnd_hcic_ble_ext_create_conn()
880 UINT16_TO_STREAM(pp, phy_cfg[i].scan_int); in btsnd_hcic_ble_ext_create_conn()
881 UINT16_TO_STREAM(pp, phy_cfg[i].scan_win); in btsnd_hcic_ble_ext_create_conn()
882 UINT16_TO_STREAM(pp, phy_cfg[i].conn_int_min); in btsnd_hcic_ble_ext_create_conn()
883 UINT16_TO_STREAM(pp, phy_cfg[i].conn_int_max); in btsnd_hcic_ble_ext_create_conn()
884 UINT16_TO_STREAM(pp, phy_cfg[i].conn_latency); in btsnd_hcic_ble_ext_create_conn()
885 UINT16_TO_STREAM(pp, phy_cfg[i].sup_timeout); in btsnd_hcic_ble_ext_create_conn()
886 UINT16_TO_STREAM(pp, phy_cfg[i].min_ce_len); in btsnd_hcic_ble_ext_create_conn()
887 UINT16_TO_STREAM(pp, phy_cfg[i].max_ce_len); in btsnd_hcic_ble_ext_create_conn()
897 uint8_t* pp = param; in btsnd_hcic_read_iso_tx_sync() local
899 UINT16_TO_STREAM(pp, iso_handle); in btsnd_hcic_read_iso_tx_sync()
912 uint8_t* pp = param; in btsnd_hcic_set_cig_params() local
914 UINT8_TO_STREAM(pp, cig_id); in btsnd_hcic_set_cig_params()
915 UINT24_TO_STREAM(pp, sdu_itv_mtos); in btsnd_hcic_set_cig_params()
916 UINT24_TO_STREAM(pp, sdu_itv_stom); in btsnd_hcic_set_cig_params()
917 UINT8_TO_STREAM(pp, sca); in btsnd_hcic_set_cig_params()
918 UINT8_TO_STREAM(pp, packing); in btsnd_hcic_set_cig_params()
919 UINT8_TO_STREAM(pp, framing); in btsnd_hcic_set_cig_params()
920 UINT16_TO_STREAM(pp, max_trans_lat_mtos); in btsnd_hcic_set_cig_params()
921 UINT16_TO_STREAM(pp, max_trans_lat_stom); in btsnd_hcic_set_cig_params()
922 UINT8_TO_STREAM(pp, cis_cnt); in btsnd_hcic_set_cig_params()
925 UINT8_TO_STREAM(pp, cis_cfg[i].cis_id); in btsnd_hcic_set_cig_params()
926 UINT16_TO_STREAM(pp, cis_cfg[i].max_sdu_size_mtos); in btsnd_hcic_set_cig_params()
927 UINT16_TO_STREAM(pp, cis_cfg[i].max_sdu_size_stom); in btsnd_hcic_set_cig_params()
928 UINT8_TO_STREAM(pp, cis_cfg[i].phy_mtos); in btsnd_hcic_set_cig_params()
929 UINT8_TO_STREAM(pp, cis_cfg[i].phy_stom); in btsnd_hcic_set_cig_params()
930 UINT8_TO_STREAM(pp, cis_cfg[i].rtn_mtos); in btsnd_hcic_set_cig_params()
931 UINT8_TO_STREAM(pp, cis_cfg[i].rtn_stom); in btsnd_hcic_set_cig_params()
942 uint8_t* pp = param; in btsnd_hcic_create_cis() local
944 UINT8_TO_STREAM(pp, num_cis); in btsnd_hcic_create_cis()
947 UINT16_TO_STREAM(pp, cis_cfg[i].cis_conn_handle); in btsnd_hcic_create_cis()
948 UINT16_TO_STREAM(pp, cis_cfg[i].acl_conn_handle); in btsnd_hcic_create_cis()
959 uint8_t* pp = param; in btsnd_hcic_remove_cig() local
961 UINT8_TO_STREAM(pp, cig_id); in btsnd_hcic_remove_cig()
969 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_accept_cis_req() local
975 UINT16_TO_STREAM(pp, HCI_LE_ACCEPT_CIS_REQ); in btsnd_hcic_accept_cis_req()
976 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_accept_cis_req()
978 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_accept_cis_req()
987 uint8_t* pp = param; in btsnd_hcic_rej_cis_req() local
989 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_rej_cis_req()
990 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_rej_cis_req()
998 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_req_peer_sca() local
1004 UINT16_TO_STREAM(pp, HCI_LE_REQ_PEER_SCA); in btsnd_hcic_req_peer_sca()
1005 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_req_peer_sca()
1006 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_req_peer_sca()
1018 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_create_big() local
1024 UINT16_TO_STREAM(pp, HCI_LE_CREATE_BIG); in btsnd_hcic_create_big()
1025 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_create_big()
1027 UINT8_TO_STREAM(pp, big_handle); in btsnd_hcic_create_big()
1028 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_create_big()
1029 UINT8_TO_STREAM(pp, num_bis); in btsnd_hcic_create_big()
1030 UINT24_TO_STREAM(pp, sdu_itv); in btsnd_hcic_create_big()
1031 UINT16_TO_STREAM(pp, max_sdu_size); in btsnd_hcic_create_big()
1032 UINT16_TO_STREAM(pp, transport_latency); in btsnd_hcic_create_big()
1033 UINT8_TO_STREAM(pp, rtn); in btsnd_hcic_create_big()
1034 UINT8_TO_STREAM(pp, phy); in btsnd_hcic_create_big()
1035 UINT8_TO_STREAM(pp, packing); in btsnd_hcic_create_big()
1036 UINT8_TO_STREAM(pp, framing); in btsnd_hcic_create_big()
1037 UINT8_TO_STREAM(pp, enc); in btsnd_hcic_create_big()
1040 ARRAY_TO_STREAM(pp, buf_ptr, 16); in btsnd_hcic_create_big()
1047 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_term_big() local
1053 UINT16_TO_STREAM(pp, HCI_LE_TERM_BIG); in btsnd_hcic_term_big()
1054 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_term_big()
1056 UINT8_TO_STREAM(pp, big_handle); in btsnd_hcic_term_big()
1057 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_term_big()
1067 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_big_create_sync() local
1074 UINT16_TO_STREAM(pp, HCI_LE_BIG_CREATE_SYNC); in btsnd_hcic_big_create_sync()
1075 UINT8_TO_STREAM(pp, param_len); in btsnd_hcic_big_create_sync()
1077 UINT8_TO_STREAM(pp, big_handle); in btsnd_hcic_big_create_sync()
1078 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_big_create_sync()
1079 UINT8_TO_STREAM(pp, enc); in btsnd_hcic_big_create_sync()
1082 ARRAY_TO_STREAM(pp, buf_ptr, 16); in btsnd_hcic_big_create_sync()
1084 UINT8_TO_STREAM(pp, mse); in btsnd_hcic_big_create_sync()
1085 UINT16_TO_STREAM(pp, big_sync_timeout); in btsnd_hcic_big_create_sync()
1086 UINT8_TO_STREAM(pp, num_bis); in btsnd_hcic_big_create_sync()
1089 UINT8_TO_STREAM(pp, bis[i]); in btsnd_hcic_big_create_sync()
1099 uint8_t* pp = param; in btsnd_hcic_big_term_sync() local
1101 UINT8_TO_STREAM(pp, big_handle); in btsnd_hcic_big_term_sync()
1115 uint8_t* pp = param; in btsnd_hcic_setup_iso_data_path() local
1117 UINT16_TO_STREAM(pp, iso_handle); in btsnd_hcic_setup_iso_data_path()
1118 UINT8_TO_STREAM(pp, data_path_dir); in btsnd_hcic_setup_iso_data_path()
1119 UINT8_TO_STREAM(pp, data_path_id); in btsnd_hcic_setup_iso_data_path()
1120 UINT8_TO_STREAM(pp, codec_id_format); in btsnd_hcic_setup_iso_data_path()
1121 UINT16_TO_STREAM(pp, codec_id_company); in btsnd_hcic_setup_iso_data_path()
1122 UINT16_TO_STREAM(pp, codec_id_vendor); in btsnd_hcic_setup_iso_data_path()
1123 UINT24_TO_STREAM(pp, controller_delay); in btsnd_hcic_setup_iso_data_path()
1124 UINT8_TO_STREAM(pp, codec_conf.size()); in btsnd_hcic_setup_iso_data_path()
1125 ARRAY_TO_STREAM(pp, codec_conf.data(), static_cast<int>(codec_conf.size())); in btsnd_hcic_setup_iso_data_path()
1136 uint8_t* pp = param; in btsnd_hcic_remove_iso_data_path() local
1138 UINT16_TO_STREAM(pp, iso_handle); in btsnd_hcic_remove_iso_data_path()
1139 UINT8_TO_STREAM(pp, data_path_dir); in btsnd_hcic_remove_iso_data_path()
1149 uint8_t* pp = param; in btsnd_hcic_read_iso_link_quality() local
1151 UINT16_TO_STREAM(pp, iso_handle); in btsnd_hcic_read_iso_link_quality()
1162 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_periodic_advertising_create_sync() local
1168 UINT16_TO_STREAM(pp, HCI_BLE_PERIODIC_ADVERTISING_CREATE_SYNC); in btsnd_hcic_ble_periodic_advertising_create_sync()
1169 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADVERTISING_CREATE_SYNC); in btsnd_hcic_ble_periodic_advertising_create_sync()
1170 UINT8_TO_STREAM(pp, options); in btsnd_hcic_ble_periodic_advertising_create_sync()
1171 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hcic_ble_periodic_advertising_create_sync()
1172 UINT8_TO_STREAM(pp, adv_addr_type); in btsnd_hcic_ble_periodic_advertising_create_sync()
1173 BDADDR_TO_STREAM(pp, adv_addr); in btsnd_hcic_ble_periodic_advertising_create_sync()
1174 UINT16_TO_STREAM(pp, skip_num); in btsnd_hcic_ble_periodic_advertising_create_sync()
1175 UINT16_TO_STREAM(pp, sync_timeout); in btsnd_hcic_ble_periodic_advertising_create_sync()
1176 UINT8_TO_STREAM(pp, sync_cte_type); in btsnd_hcic_ble_periodic_advertising_create_sync()
1191 uint8_t* pp = param; in btsnd_hcic_ble_periodic_advertising_terminate_sync() local
1193 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_ble_periodic_advertising_terminate_sync()
1204 uint8_t* pp = param; in btsnd_hci_ble_add_device_to_periodic_advertiser_list() local
1206 UINT8_TO_STREAM(pp, adv_addr_type); in btsnd_hci_ble_add_device_to_periodic_advertiser_list()
1207 BDADDR_TO_STREAM(pp, adv_addr); in btsnd_hci_ble_add_device_to_periodic_advertiser_list()
1208 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hci_ble_add_device_to_periodic_advertiser_list()
1219 uint8_t* pp = param; in btsnd_hci_ble_remove_device_from_periodic_advertiser_list() local
1221 UINT8_TO_STREAM(pp, adv_addr_type); in btsnd_hci_ble_remove_device_from_periodic_advertiser_list()
1222 BDADDR_TO_STREAM(pp, adv_addr); in btsnd_hci_ble_remove_device_from_periodic_advertiser_list()
1223 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hci_ble_remove_device_from_periodic_advertiser_list()
1249 uint8_t* pp = param; in btsnd_hcic_ble_set_periodic_advertising_receive_enable() local
1251 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_ble_set_periodic_advertising_receive_enable()
1252 UINT8_TO_STREAM(pp, (enable ? 0x01 : 0x00)); in btsnd_hcic_ble_set_periodic_advertising_receive_enable()
1263 uint8_t* pp = param; in btsnd_hcic_ble_periodic_advertising_sync_transfer() local
1265 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_periodic_advertising_sync_transfer()
1266 UINT16_TO_STREAM(pp, service_data); in btsnd_hcic_ble_periodic_advertising_sync_transfer()
1267 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_ble_periodic_advertising_sync_transfer()
1278 uint8_t* pp = param; in btsnd_hcic_ble_periodic_advertising_set_info_transfer() local
1280 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_periodic_advertising_set_info_transfer()
1281 UINT16_TO_STREAM(pp, service_data); in btsnd_hcic_ble_periodic_advertising_set_info_transfer()
1282 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_periodic_advertising_set_info_transfer()
1293 uint8_t* pp = param; in btsnd_hcic_ble_set_periodic_advertising_sync_transfer_params() local
1295 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_set_periodic_advertising_sync_transfer_params()
1296 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_ble_set_periodic_advertising_sync_transfer_params()
1297 UINT16_TO_STREAM(pp, skip); in btsnd_hcic_ble_set_periodic_advertising_sync_transfer_params()
1298 UINT16_TO_STREAM(pp, sync_timeout); in btsnd_hcic_ble_set_periodic_advertising_sync_transfer_params()
1299 UINT8_TO_STREAM(pp, cte_type); in btsnd_hcic_ble_set_periodic_advertising_sync_transfer_params()
1312 uint8_t* pp = param; in btsnd_hcic_ble_set_default_periodic_advertising_sync_transfer_params() local
1314 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_set_default_periodic_advertising_sync_transfer_params()
1315 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_ble_set_default_periodic_advertising_sync_transfer_params()
1316 UINT16_TO_STREAM(pp, skip); in btsnd_hcic_ble_set_default_periodic_advertising_sync_transfer_params()
1317 UINT16_TO_STREAM(pp, sync_timeout); in btsnd_hcic_ble_set_default_periodic_advertising_sync_transfer_params()
1318 UINT8_TO_STREAM(pp, cte_type); in btsnd_hcic_ble_set_default_periodic_advertising_sync_transfer_params()