Lines Matching refs:pp
73 UINT8 *pp; in btsnd_hcic_ble_set_local_used_feat() local
79 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_local_used_feat()
84 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_LOCAL_SPT_FEAT); in btsnd_hcic_ble_set_local_used_feat()
85 ARRAY_TO_STREAM (pp, feat_set, HCIC_PARAM_SIZE_SET_USED_FEAT_CMD); in btsnd_hcic_ble_set_local_used_feat()
94 UINT8 *pp; in btsnd_hcic_ble_set_random_addr() local
100 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_random_addr()
105 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_RANDOM_ADDR); in btsnd_hcic_ble_set_random_addr()
106 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD); in btsnd_hcic_ble_set_random_addr()
108 BDADDR_TO_STREAM (pp, random_bda); in btsnd_hcic_ble_set_random_addr()
120 UINT8 *pp; in btsnd_hcic_ble_write_adv_params() local
125 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_write_adv_params()
130 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
131 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_PARAMS ); in btsnd_hcic_ble_write_adv_params()
133 UINT16_TO_STREAM (pp, adv_int_min); in btsnd_hcic_ble_write_adv_params()
134 UINT16_TO_STREAM (pp, adv_int_max); in btsnd_hcic_ble_write_adv_params()
135 UINT8_TO_STREAM (pp, adv_type); in btsnd_hcic_ble_write_adv_params()
136 UINT8_TO_STREAM (pp, addr_type_own); in btsnd_hcic_ble_write_adv_params()
137 UINT8_TO_STREAM (pp, addr_type_dir); in btsnd_hcic_ble_write_adv_params()
138 BDADDR_TO_STREAM (pp, direct_bda); in btsnd_hcic_ble_write_adv_params()
139 UINT8_TO_STREAM (pp, channel_map); in btsnd_hcic_ble_write_adv_params()
140 UINT8_TO_STREAM (pp, adv_filter_policy); in btsnd_hcic_ble_write_adv_params()
148 UINT8 *pp; in btsnd_hcic_ble_read_adv_chnl_tx_power() local
154 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_read_adv_chnl_tx_power()
159 UINT16_TO_STREAM (pp, HCI_BLE_READ_ADV_CHNL_TX_POWER); in btsnd_hcic_ble_read_adv_chnl_tx_power()
160 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_ble_read_adv_chnl_tx_power()
170 UINT8 *pp; in btsnd_hcic_ble_set_adv_data() local
180 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_adv_data()
185 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_ADV_DATA); in btsnd_hcic_ble_set_adv_data()
186 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA + 1); in btsnd_hcic_ble_set_adv_data()
188 memset(pp, 0, HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA); in btsnd_hcic_ble_set_adv_data()
196 UINT8_TO_STREAM (pp, data_len); in btsnd_hcic_ble_set_adv_data()
198 ARRAY_TO_STREAM (pp, p_data, data_len); in btsnd_hcic_ble_set_adv_data()
207 UINT8 *pp; in btsnd_hcic_ble_set_scan_rsp_data() local
213 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_scan_rsp_data()
218 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_SCAN_RSP_DATA); in btsnd_hcic_ble_set_scan_rsp_data()
219 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_RSP + 1); in btsnd_hcic_ble_set_scan_rsp_data()
221 memset(pp, 0, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_RSP); in btsnd_hcic_ble_set_scan_rsp_data()
230 UINT8_TO_STREAM (pp, data_len); in btsnd_hcic_ble_set_scan_rsp_data()
232 ARRAY_TO_STREAM (pp, p_scan_rsp, data_len); in btsnd_hcic_ble_set_scan_rsp_data()
243 UINT8 *pp; in btsnd_hcic_ble_set_adv_enable() local
249 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_adv_enable()
254 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_ADV_ENABLE); in btsnd_hcic_ble_set_adv_enable()
255 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_ADV_ENABLE); in btsnd_hcic_ble_set_adv_enable()
257 UINT8_TO_STREAM (pp, adv_enable); in btsnd_hcic_ble_set_adv_enable()
267 UINT8 *pp; in btsnd_hcic_ble_set_scan_params() local
273 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_scan_params()
278 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_SCAN_PARAMS); in btsnd_hcic_ble_set_scan_params()
279 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_PARAM); in btsnd_hcic_ble_set_scan_params()
281 UINT8_TO_STREAM (pp, scan_type); in btsnd_hcic_ble_set_scan_params()
282 UINT16_TO_STREAM (pp, scan_int); in btsnd_hcic_ble_set_scan_params()
283 UINT16_TO_STREAM (pp, scan_win); in btsnd_hcic_ble_set_scan_params()
284 UINT8_TO_STREAM (pp, addr_type_own); in btsnd_hcic_ble_set_scan_params()
285 UINT8_TO_STREAM (pp, scan_filter_policy); in btsnd_hcic_ble_set_scan_params()
294 UINT8 *pp; in btsnd_hcic_ble_set_scan_enable() local
300 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_scan_enable()
305 UINT16_TO_STREAM (pp, HCI_BLE_WRITE_SCAN_ENABLE); in btsnd_hcic_ble_set_scan_enable()
306 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_WRITE_SCAN_ENABLE); in btsnd_hcic_ble_set_scan_enable()
308 UINT8_TO_STREAM (pp, scan_enable); in btsnd_hcic_ble_set_scan_enable()
309 UINT8_TO_STREAM (pp, duplicate); in btsnd_hcic_ble_set_scan_enable()
325 UINT8 *pp; in btsnd_hcic_ble_create_ll_conn() local
331 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_create_ll_conn()
336 UINT16_TO_STREAM (pp, HCI_BLE_CREATE_LL_CONN); in btsnd_hcic_ble_create_ll_conn()
337 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_CREATE_LL_CONN); in btsnd_hcic_ble_create_ll_conn()
339 UINT16_TO_STREAM (pp, scan_int); in btsnd_hcic_ble_create_ll_conn()
340 UINT16_TO_STREAM (pp, scan_win); in btsnd_hcic_ble_create_ll_conn()
341 UINT8_TO_STREAM (pp, init_filter_policy); in btsnd_hcic_ble_create_ll_conn()
343 UINT8_TO_STREAM (pp, addr_type_peer); in btsnd_hcic_ble_create_ll_conn()
344 BDADDR_TO_STREAM (pp, bda_peer); in btsnd_hcic_ble_create_ll_conn()
345 UINT8_TO_STREAM (pp, addr_type_own); in btsnd_hcic_ble_create_ll_conn()
347 UINT16_TO_STREAM (pp, conn_int_min); in btsnd_hcic_ble_create_ll_conn()
348 UINT16_TO_STREAM (pp, conn_int_max); in btsnd_hcic_ble_create_ll_conn()
349 UINT16_TO_STREAM (pp, conn_latency); in btsnd_hcic_ble_create_ll_conn()
350 UINT16_TO_STREAM (pp, conn_timeout); in btsnd_hcic_ble_create_ll_conn()
352 UINT16_TO_STREAM (pp, min_ce_len ? min_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ll_conn()
353 UINT16_TO_STREAM (pp, max_ce_len ? max_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ll_conn()
362 UINT8 *pp; in btsnd_hcic_ble_create_conn_cancel() local
368 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_create_conn_cancel()
373 UINT16_TO_STREAM (pp, HCI_BLE_CREATE_CONN_CANCEL); in btsnd_hcic_ble_create_conn_cancel()
374 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_CREATE_CONN_CANCEL); in btsnd_hcic_ble_create_conn_cancel()
383 UINT8 *pp; in btsnd_hcic_ble_clear_white_list() local
389 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_clear_white_list()
394 UINT16_TO_STREAM (pp, HCI_BLE_CLEAR_WHITE_LIST); in btsnd_hcic_ble_clear_white_list()
395 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CLEAR_WHITE_LIST); in btsnd_hcic_ble_clear_white_list()
404 UINT8 *pp; in btsnd_hcic_ble_add_white_list() local
410 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_add_white_list()
415 UINT16_TO_STREAM (pp, HCI_BLE_ADD_WHITE_LIST); in btsnd_hcic_ble_add_white_list()
416 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_ADD_WHITE_LIST); in btsnd_hcic_ble_add_white_list()
418 UINT8_TO_STREAM (pp, addr_type); in btsnd_hcic_ble_add_white_list()
419 BDADDR_TO_STREAM (pp, bda); in btsnd_hcic_ble_add_white_list()
428 UINT8 *pp; in btsnd_hcic_ble_remove_from_white_list() local
434 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_remove_from_white_list()
439 UINT16_TO_STREAM (pp, HCI_BLE_REMOVE_WHITE_LIST); in btsnd_hcic_ble_remove_from_white_list()
440 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_REMOVE_WHITE_LIST); in btsnd_hcic_ble_remove_from_white_list()
442 UINT8_TO_STREAM (pp, addr_type); in btsnd_hcic_ble_remove_from_white_list()
443 BDADDR_TO_STREAM (pp, bda); in btsnd_hcic_ble_remove_from_white_list()
455 UINT8 *pp; in btsnd_hcic_ble_upd_ll_conn_params() local
461 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_upd_ll_conn_params()
466 UINT16_TO_STREAM (pp, HCI_BLE_UPD_LL_CONN_PARAMS); in btsnd_hcic_ble_upd_ll_conn_params()
467 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_UPD_LL_CONN_PARAMS); in btsnd_hcic_ble_upd_ll_conn_params()
469 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_upd_ll_conn_params()
471 UINT16_TO_STREAM (pp, conn_int_min); in btsnd_hcic_ble_upd_ll_conn_params()
472 UINT16_TO_STREAM (pp, conn_int_max); in btsnd_hcic_ble_upd_ll_conn_params()
473 UINT16_TO_STREAM (pp, conn_latency); in btsnd_hcic_ble_upd_ll_conn_params()
474 UINT16_TO_STREAM (pp, conn_timeout); in btsnd_hcic_ble_upd_ll_conn_params()
475 UINT16_TO_STREAM (pp, min_ce_len); in btsnd_hcic_ble_upd_ll_conn_params()
476 UINT16_TO_STREAM (pp, max_ce_len); in btsnd_hcic_ble_upd_ll_conn_params()
485 UINT8 *pp; in btsnd_hcic_ble_set_host_chnl_class() local
491 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_host_chnl_class()
496 UINT16_TO_STREAM (pp, HCI_BLE_SET_HOST_CHNL_CLASS); in btsnd_hcic_ble_set_host_chnl_class()
497 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_HOST_CHNL_CLASS); in btsnd_hcic_ble_set_host_chnl_class()
499 ARRAY_TO_STREAM (pp, chnl_map, HCIC_BLE_CHNL_MAP_SIZE); in btsnd_hcic_ble_set_host_chnl_class()
508 UINT8 *pp; in btsnd_hcic_ble_read_chnl_map() local
514 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_read_chnl_map()
519 UINT16_TO_STREAM (pp, HCI_BLE_READ_CHNL_MAP); in btsnd_hcic_ble_read_chnl_map()
520 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CHNL_MAP); in btsnd_hcic_ble_read_chnl_map()
522 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_read_chnl_map()
531 UINT8 *pp; in btsnd_hcic_ble_read_remote_feat() local
537 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_read_remote_feat()
542 UINT16_TO_STREAM (pp, HCI_BLE_READ_REMOTE_FEAT); in btsnd_hcic_ble_read_remote_feat()
543 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_READ_REMOTE_FEAT); in btsnd_hcic_ble_read_remote_feat()
545 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_read_remote_feat()
557 UINT8 *pp; in btsnd_hcic_ble_encrypt() local
563 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_encrypt()
571 UINT16_TO_STREAM (pp, HCI_BLE_ENCRYPT); in btsnd_hcic_ble_encrypt()
572 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_ENCRYPT); in btsnd_hcic_ble_encrypt()
574 memset(pp, 0, HCIC_PARAM_SIZE_BLE_ENCRYPT); in btsnd_hcic_ble_encrypt()
583 ARRAY_TO_STREAM (pp, key, key_len); in btsnd_hcic_ble_encrypt()
584 pp += (HCIC_BLE_ENCRYT_KEY_SIZE - key_len); in btsnd_hcic_ble_encrypt()
585 ARRAY_TO_STREAM (pp, plain_text, pt_len); in btsnd_hcic_ble_encrypt()
594 UINT8 *pp; in btsnd_hcic_ble_rand() local
600 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_rand()
608 UINT16_TO_STREAM (pp, HCI_BLE_RAND); in btsnd_hcic_ble_rand()
609 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_RAND); in btsnd_hcic_ble_rand()
619 UINT8 *pp; in btsnd_hcic_ble_start_enc() local
625 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_start_enc()
630 UINT16_TO_STREAM (pp, HCI_BLE_START_ENC); in btsnd_hcic_ble_start_enc()
631 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_START_ENC); in btsnd_hcic_ble_start_enc()
633 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_start_enc()
634 ARRAY_TO_STREAM (pp, rand, HCIC_BLE_RAND_DI_SIZE); in btsnd_hcic_ble_start_enc()
635 UINT16_TO_STREAM (pp, ediv); in btsnd_hcic_ble_start_enc()
636 ARRAY_TO_STREAM (pp, ltk, HCIC_BLE_ENCRYT_KEY_SIZE); in btsnd_hcic_ble_start_enc()
645 UINT8 *pp; in btsnd_hcic_ble_ltk_req_reply() local
651 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_ltk_req_reply()
656 UINT16_TO_STREAM (pp, HCI_BLE_LTK_REQ_REPLY); in btsnd_hcic_ble_ltk_req_reply()
657 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_LTK_REQ_REPLY); in btsnd_hcic_ble_ltk_req_reply()
659 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_ltk_req_reply()
660 ARRAY_TO_STREAM (pp, ltk, HCIC_BLE_ENCRYT_KEY_SIZE); in btsnd_hcic_ble_ltk_req_reply()
669 UINT8 *pp; in btsnd_hcic_ble_ltk_req_neg_reply() local
675 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_ltk_req_neg_reply()
680 UINT16_TO_STREAM (pp, HCI_BLE_LTK_REQ_NEG_REPLY); in btsnd_hcic_ble_ltk_req_neg_reply()
681 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_LTK_REQ_NEG_REPLY); in btsnd_hcic_ble_ltk_req_neg_reply()
683 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_ltk_req_neg_reply()
692 UINT8 *pp; in btsnd_hcic_ble_receiver_test() local
698 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_receiver_test()
703 UINT16_TO_STREAM (pp, HCI_BLE_RECEIVER_TEST); in btsnd_hcic_ble_receiver_test()
704 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_ble_receiver_test()
706 UINT8_TO_STREAM (pp, rx_freq); in btsnd_hcic_ble_receiver_test()
715 UINT8 *pp; in btsnd_hcic_ble_transmitter_test() local
721 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_transmitter_test()
726 UINT16_TO_STREAM (pp, HCI_BLE_TRANSMITTER_TEST); in btsnd_hcic_ble_transmitter_test()
727 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM3); in btsnd_hcic_ble_transmitter_test()
729 UINT8_TO_STREAM (pp, tx_freq); in btsnd_hcic_ble_transmitter_test()
730 UINT8_TO_STREAM (pp, test_data_len); in btsnd_hcic_ble_transmitter_test()
731 UINT8_TO_STREAM (pp, payload); in btsnd_hcic_ble_transmitter_test()
740 UINT8 *pp; in btsnd_hcic_ble_test_end() local
746 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_test_end()
751 UINT16_TO_STREAM (pp, HCI_BLE_TEST_END); in btsnd_hcic_ble_test_end()
752 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_ble_test_end()
761 UINT8 *pp; in btsnd_hcic_ble_read_host_supported() local
767 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_read_host_supported()
772 UINT16_TO_STREAM (pp, HCI_READ_LE_HOST_SUPPORT); in btsnd_hcic_ble_read_host_supported()
773 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_ble_read_host_supported()
787 UINT8 *pp; in btsnd_hcic_ble_rc_param_req_reply() local
793 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_rc_param_req_reply()
798 UINT16_TO_STREAM (pp, HCI_BLE_RC_PARAM_REQ_REPLY); in btsnd_hcic_ble_rc_param_req_reply()
799 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_RC_PARAM_REQ_REPLY); in btsnd_hcic_ble_rc_param_req_reply()
801 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_rc_param_req_reply()
802 UINT16_TO_STREAM (pp, conn_int_min); in btsnd_hcic_ble_rc_param_req_reply()
803 UINT16_TO_STREAM (pp, conn_int_max); in btsnd_hcic_ble_rc_param_req_reply()
804 UINT16_TO_STREAM (pp, conn_latency); in btsnd_hcic_ble_rc_param_req_reply()
805 UINT16_TO_STREAM (pp, conn_timeout); in btsnd_hcic_ble_rc_param_req_reply()
806 UINT16_TO_STREAM (pp, min_ce_len); in btsnd_hcic_ble_rc_param_req_reply()
807 UINT16_TO_STREAM (pp, max_ce_len); in btsnd_hcic_ble_rc_param_req_reply()
816 UINT8 *pp; in btsnd_hcic_ble_rc_param_req_neg_reply() local
822 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_rc_param_req_neg_reply()
827 UINT16_TO_STREAM (pp, HCI_BLE_RC_PARAM_REQ_NEG_REPLY); in btsnd_hcic_ble_rc_param_req_neg_reply()
828 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_RC_PARAM_REQ_NEG_REPLY); in btsnd_hcic_ble_rc_param_req_neg_reply()
830 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_ble_rc_param_req_neg_reply()
831 UINT8_TO_STREAM (pp, reason); in btsnd_hcic_ble_rc_param_req_neg_reply()
843 UINT8 *pp; in btsnd_hcic_ble_add_device_resolving_list() local
849 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_add_device_resolving_list()
854 UINT16_TO_STREAM (pp, HCI_BLE_ADD_DEV_RESOLVING_LIST); in btsnd_hcic_ble_add_device_resolving_list()
855 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_ADD_DEV_RESOLVING_LIST); in btsnd_hcic_ble_add_device_resolving_list()
856 UINT8_TO_STREAM (pp, addr_type_peer); in btsnd_hcic_ble_add_device_resolving_list()
857 BDADDR_TO_STREAM (pp, bda_peer); in btsnd_hcic_ble_add_device_resolving_list()
858 ARRAY_TO_STREAM (pp, irk_peer, HCIC_BLE_ENCRYT_KEY_SIZE); in btsnd_hcic_ble_add_device_resolving_list()
859 ARRAY_TO_STREAM (pp, irk_local, HCIC_BLE_ENCRYT_KEY_SIZE); in btsnd_hcic_ble_add_device_resolving_list()
869 UINT8 *pp; in btsnd_hcic_ble_rm_device_resolving_list() local
875 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_rm_device_resolving_list()
880 UINT16_TO_STREAM (pp, HCI_BLE_RM_DEV_RESOLVING_LIST); in btsnd_hcic_ble_rm_device_resolving_list()
881 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_RM_DEV_RESOLVING_LIST); in btsnd_hcic_ble_rm_device_resolving_list()
882 UINT8_TO_STREAM (pp, addr_type_peer); in btsnd_hcic_ble_rm_device_resolving_list()
883 BDADDR_TO_STREAM (pp, bda_peer); in btsnd_hcic_ble_rm_device_resolving_list()
893 UINT8 *pp; in btsnd_hcic_ble_clear_resolving_list() local
899 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_clear_resolving_list()
904 UINT16_TO_STREAM (pp, HCI_BLE_CLEAR_RESOLVING_LIST); in btsnd_hcic_ble_clear_resolving_list()
905 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_CLEAR_RESOLVING_LIST); in btsnd_hcic_ble_clear_resolving_list()
915 UINT8 *pp; in btsnd_hcic_ble_read_resolvable_addr_peer() local
921 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_read_resolvable_addr_peer()
926 UINT16_TO_STREAM (pp, HCI_BLE_READ_RESOLVABLE_ADDR_PEER); in btsnd_hcic_ble_read_resolvable_addr_peer()
927 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_READ_RESOLVABLE_ADDR_PEER); in btsnd_hcic_ble_read_resolvable_addr_peer()
928 UINT8_TO_STREAM (pp, addr_type_peer); in btsnd_hcic_ble_read_resolvable_addr_peer()
929 BDADDR_TO_STREAM (pp, bda_peer); in btsnd_hcic_ble_read_resolvable_addr_peer()
939 UINT8 *pp; in btsnd_hcic_ble_read_resolvable_addr_local() local
945 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_read_resolvable_addr_local()
950 UINT16_TO_STREAM (pp, HCI_BLE_READ_RESOLVABLE_ADDR_LOCAL); in btsnd_hcic_ble_read_resolvable_addr_local()
951 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_READ_RESOLVABLE_ADDR_LOCAL); in btsnd_hcic_ble_read_resolvable_addr_local()
952 UINT8_TO_STREAM (pp, addr_type_peer); in btsnd_hcic_ble_read_resolvable_addr_local()
953 BDADDR_TO_STREAM (pp, bda_peer); in btsnd_hcic_ble_read_resolvable_addr_local()
963 UINT8 *pp; in btsnd_hcic_ble_set_addr_resolution_enable() local
969 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_addr_resolution_enable()
974 UINT16_TO_STREAM (pp, HCI_BLE_SET_ADDR_RESOLUTION_ENABLE); in btsnd_hcic_ble_set_addr_resolution_enable()
975 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_SET_ADDR_RESOLUTION_ENABLE); in btsnd_hcic_ble_set_addr_resolution_enable()
976 UINT8_TO_STREAM (pp, addr_resolution_enable); in btsnd_hcic_ble_set_addr_resolution_enable()
986 UINT8 *pp; in btsnd_hcic_ble_set_rand_priv_addr_timeout() local
992 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
997 UINT16_TO_STREAM (pp, HCI_BLE_SET_RAND_PRIV_ADDR_TIMOUT); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
998 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_SET_RAND_PRIV_ADDR_TIMOUT); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
999 UINT16_TO_STREAM (pp, rpa_timout); in btsnd_hcic_ble_set_rand_priv_addr_timeout()
1009 UINT8 *pp; in btsnd_hcic_ble_set_data_length() local
1015 pp = p->data; in btsnd_hcic_ble_set_data_length()
1020 UINT16_TO_STREAM(pp, HCI_BLE_SET_DATA_LENGTH); in btsnd_hcic_ble_set_data_length()
1021 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_DATA_LENGTH); in btsnd_hcic_ble_set_data_length()
1023 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_set_data_length()
1024 UINT16_TO_STREAM(pp, tx_octets); in btsnd_hcic_ble_set_data_length()
1025 UINT16_TO_STREAM(pp, tx_time); in btsnd_hcic_ble_set_data_length()
1034 UINT8 *pp; in btsnd_hcic_ble_update_adv_report_flow_control() local
1051 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_update_adv_report_flow_control()
1056 UINT16_TO_STREAM (pp, HCI_VENDOR_BLE_ADV_REPORT_FLOW_CONTROL); in btsnd_hcic_ble_update_adv_report_flow_control()
1057 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_UPDATE_ADV_FLOW_CONTROL); in btsnd_hcic_ble_update_adv_report_flow_control()
1058 UINT16_TO_STREAM (pp, num); in btsnd_hcic_ble_update_adv_report_flow_control()
1067 UINT8 *pp; in btsnd_hcic_ble_set_channels() local
1073 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_channels()
1078 UINT16_TO_STREAM (pp, HCI_BLE_SET_HOST_CHNL_CLASS); in btsnd_hcic_ble_set_channels()
1079 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_SET_CHANNELS); in btsnd_hcic_ble_set_channels()
1081 ARRAY_TO_STREAM (pp, channels, HCIC_PARAM_SIZE_BLE_SET_CHANNELS); in btsnd_hcic_ble_set_channels()
1090 UINT8 *pp; in btsnd_hcic_ble_clear_adv() local
1096 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_clear_adv()
1101 UINT16_TO_STREAM (pp, HCI_VENDOR_BLE_CLEAR_ADV); in btsnd_hcic_ble_clear_adv()
1102 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_CLEAR_ADV); in btsnd_hcic_ble_clear_adv()
1108 #define HCIC_BLE_CMD_CREATED(p, pp, size) do{\ argument
1112 pp = p->data; \
1122 UINT8 *pp; in btsnd_hcic_ble_read_phy() local
1125 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_BLE_READ_PHY); in btsnd_hcic_ble_read_phy()
1127 UINT16_TO_STREAM(pp, HCI_BLE_READ_PHY); in btsnd_hcic_ble_read_phy()
1128 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_READ_PHY); in btsnd_hcic_ble_read_phy()
1129 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_read_phy()
1140 UINT8 *pp; in btsnd_hcic_ble_set_prefered_default_phy() local
1143 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_BLE_SET_DEF_PHY); in btsnd_hcic_ble_set_prefered_default_phy()
1145 UINT16_TO_STREAM(pp, HCI_BLE_SET_DEFAULT_PHY); in btsnd_hcic_ble_set_prefered_default_phy()
1146 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_DEF_PHY); in btsnd_hcic_ble_set_prefered_default_phy()
1148 UINT8_TO_STREAM(pp, all_phys); in btsnd_hcic_ble_set_prefered_default_phy()
1149 UINT8_TO_STREAM(pp, tx_phys); in btsnd_hcic_ble_set_prefered_default_phy()
1150 UINT8_TO_STREAM(pp, rx_phys); in btsnd_hcic_ble_set_prefered_default_phy()
1160 UINT8 *pp; in btsnd_hcic_ble_set_phy() local
1163 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_BLE_SET_PHY); in btsnd_hcic_ble_set_phy()
1165 UINT16_TO_STREAM(pp, HCI_BLE_SET_PHY); in btsnd_hcic_ble_set_phy()
1166 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_SET_PHY); in btsnd_hcic_ble_set_phy()
1167 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_set_phy()
1168 UINT8_TO_STREAM(pp, all_phys); in btsnd_hcic_ble_set_phy()
1169 UINT8_TO_STREAM(pp, tx_phys); in btsnd_hcic_ble_set_phy()
1170 UINT8_TO_STREAM(pp, rx_phys); in btsnd_hcic_ble_set_phy()
1171 UINT16_TO_STREAM(pp, phy_options); in btsnd_hcic_ble_set_phy()
1181 UINT8 *pp; in btsnd_hcic_ble_enhand_rx_test() local
1185 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_ENH_RX_TEST); in btsnd_hcic_ble_enhand_rx_test()
1187 UINT16_TO_STREAM(pp, HCI_BLE_ENH_RX_TEST); in btsnd_hcic_ble_enhand_rx_test()
1188 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_RX_TEST); in btsnd_hcic_ble_enhand_rx_test()
1189 UINT8_TO_STREAM(pp, rx_channel); in btsnd_hcic_ble_enhand_rx_test()
1190 UINT8_TO_STREAM(pp, phy); in btsnd_hcic_ble_enhand_rx_test()
1191 UINT8_TO_STREAM(pp, modulation_idx); in btsnd_hcic_ble_enhand_rx_test()
1203 UINT8 *pp; in btsnd_hcic_ble_enhand_tx_test() local
1208 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_ENH_TX_TEST); in btsnd_hcic_ble_enhand_tx_test()
1210 UINT16_TO_STREAM(pp, HCI_BLE_ENH_TX_TEST); in btsnd_hcic_ble_enhand_tx_test()
1211 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_TX_TEST); in btsnd_hcic_ble_enhand_tx_test()
1212 UINT8_TO_STREAM(pp, tx_channel); in btsnd_hcic_ble_enhand_tx_test()
1213 UINT8_TO_STREAM(pp, len); in btsnd_hcic_ble_enhand_tx_test()
1214 UINT8_TO_STREAM(pp, packect); in btsnd_hcic_ble_enhand_tx_test()
1215 UINT8_TO_STREAM(pp, phy); in btsnd_hcic_ble_enhand_tx_test()
1225 UINT8 *pp; in btsnd_hcic_ble_set_extend_rand_address() local
1228 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_EXT_RAND_ADDR); in btsnd_hcic_ble_set_extend_rand_address()
1230 UINT16_TO_STREAM (pp, HCI_BLE_SET_ADV_RAND_ADDR); in btsnd_hcic_ble_set_extend_rand_address()
1231 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_EXT_RAND_ADDR); in btsnd_hcic_ble_set_extend_rand_address()
1232 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_set_extend_rand_address()
1233 BDADDR_TO_STREAM (pp, rand_addr); in btsnd_hcic_ble_set_extend_rand_address()
1248 UINT8 *pp; in btsnd_hcic_ble_set_ext_adv_params() local
1258 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_EXT_ADV_SET_PARAMS); in btsnd_hcic_ble_set_ext_adv_params()
1260 UINT16_TO_STREAM(pp, HCI_BLE_SET_EXT_ADV_PARAM); in btsnd_hcic_ble_set_ext_adv_params()
1261 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXT_ADV_SET_PARAMS); in btsnd_hcic_ble_set_ext_adv_params()
1263 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_set_ext_adv_params()
1264 UINT16_TO_STREAM(pp, properties); in btsnd_hcic_ble_set_ext_adv_params()
1265 UINT24_TO_STREAM(pp, interval_min); in btsnd_hcic_ble_set_ext_adv_params()
1266 UINT24_TO_STREAM(pp, interval_max); in btsnd_hcic_ble_set_ext_adv_params()
1267 UINT8_TO_STREAM(pp, channel_map); in btsnd_hcic_ble_set_ext_adv_params()
1268 UINT8_TO_STREAM(pp, own_addr_type); in btsnd_hcic_ble_set_ext_adv_params()
1269 UINT8_TO_STREAM(pp, peer_addr_type); in btsnd_hcic_ble_set_ext_adv_params()
1270 BDADDR_TO_STREAM (pp, peer_addr); in btsnd_hcic_ble_set_ext_adv_params()
1271 UINT8_TO_STREAM(pp, adv_filter_policy); in btsnd_hcic_ble_set_ext_adv_params()
1272 INT8_TO_STREAM(pp, adv_tx_power); in btsnd_hcic_ble_set_ext_adv_params()
1273 UINT8_TO_STREAM(pp, primary_adv_phy); in btsnd_hcic_ble_set_ext_adv_params()
1274 UINT8_TO_STREAM(pp, secondary_adv_max_skip); in btsnd_hcic_ble_set_ext_adv_params()
1275 UINT8_TO_STREAM(pp, secondary_adv_phy); in btsnd_hcic_ble_set_ext_adv_params()
1276 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hcic_ble_set_ext_adv_params()
1277 UINT8_TO_STREAM(pp, scan_req_ntf_enable); in btsnd_hcic_ble_set_ext_adv_params()
1289 UINT8 *pp; in btsnd_hcic_ble_set_ext_adv_data() local
1294 HCIC_BLE_CMD_CREATED(p, pp, data_len + 4); in btsnd_hcic_ble_set_ext_adv_data()
1295 UINT16_TO_STREAM(pp, HCI_BLE_SET_EXT_ADV_DATA); in btsnd_hcic_ble_set_ext_adv_data()
1296 UINT8_TO_STREAM(pp, data_len + 4); in btsnd_hcic_ble_set_ext_adv_data()
1297 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_set_ext_adv_data()
1298 UINT8_TO_STREAM(pp, operation); in btsnd_hcic_ble_set_ext_adv_data()
1299 UINT8_TO_STREAM(pp, fragment_prefrence); in btsnd_hcic_ble_set_ext_adv_data()
1305 UINT8_TO_STREAM (pp, data_len); in btsnd_hcic_ble_set_ext_adv_data()
1308 ARRAY_TO_STREAM (pp, p_data, data_len); in btsnd_hcic_ble_set_ext_adv_data()
1321 UINT8 *pp; in btsnd_hcic_ble_set_ext_adv_scan_rsp_data() local
1326 HCIC_BLE_CMD_CREATED(p, pp, data_len + 4); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1328 UINT16_TO_STREAM(pp, HCI_BLE_SET_EXT_SCAN_RSP_DATA); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1329 UINT8_TO_STREAM(pp, data_len + 4); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1330 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1331 UINT8_TO_STREAM(pp, operation); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1332 UINT8_TO_STREAM(pp, fragment_prefrence); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1334 memset(pp, 0, data_len); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1340 UINT8_TO_STREAM (pp, data_len); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1342 ARRAY_TO_STREAM (pp, p_data, data_len); in btsnd_hcic_ble_set_ext_adv_scan_rsp_data()
1353 UINT8 *pp; in btsnd_hcic_ble_ext_adv_enable() local
1355 HCIC_BLE_CMD_CREATED(p, pp, ext_adv_size); in btsnd_hcic_ble_ext_adv_enable()
1364 UINT16_TO_STREAM(pp, HCI_BLE_SET_EXT_ADV_ENABLE); in btsnd_hcic_ble_ext_adv_enable()
1365 UINT8_TO_STREAM(pp, ext_adv_size); in btsnd_hcic_ble_ext_adv_enable()
1366 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_ble_ext_adv_enable()
1367 UINT8_TO_STREAM(pp, num_of_sets); in btsnd_hcic_ble_ext_adv_enable()
1370 UINT8_TO_STREAM(pp, adv_handle[i]); in btsnd_hcic_ble_ext_adv_enable()
1371 UINT16_TO_STREAM(pp, duration[i]); in btsnd_hcic_ble_ext_adv_enable()
1372 UINT8_TO_STREAM(pp, max_adv_evt[i]); in btsnd_hcic_ble_ext_adv_enable()
1381 UINT8 *pp; in btsnd_hcic_ble_read_max_adv_len() local
1384 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_READ_MAX_ADV_SIZE + 1); in btsnd_hcic_ble_read_max_adv_len()
1386 UINT16_TO_STREAM(pp, HCI_BLE_RD_MAX_ADV_DATA_LEN); in btsnd_hcic_ble_read_max_adv_len()
1387 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_MAX_ADV_SIZE); in btsnd_hcic_ble_read_max_adv_len()
1395 UINT8 *pp; in btsnd_hcic_ble_read_num_support_adv_set() local
1398 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_NUM_SUPPORT_ADV_SET + 1); in btsnd_hcic_ble_read_num_support_adv_set()
1400 UINT16_TO_STREAM(pp, HCI_BLE_RD_NUM_OF_ADV_SETS); in btsnd_hcic_ble_read_num_support_adv_set()
1401 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_NUM_SUPPORT_ADV_SET); in btsnd_hcic_ble_read_num_support_adv_set()
1409 UINT8 *pp; in btsnd_hcic_ble_remove_adv_set() local
1412 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_REMOVE_ADV_SET + 1); in btsnd_hcic_ble_remove_adv_set()
1414 UINT16_TO_STREAM(pp, HCI_BLE_REMOVE_ADV_SET); in btsnd_hcic_ble_remove_adv_set()
1415 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REMOVE_ADV_SET); in btsnd_hcic_ble_remove_adv_set()
1416 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_remove_adv_set()
1424 UINT8 *pp; in btsnd_hcic_ble_clear_adv_set() local
1427 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_CLEAR_ADV_SET + 1); in btsnd_hcic_ble_clear_adv_set()
1429 UINT16_TO_STREAM(pp, HCI_BLE_CLEAR_ADV_SETS); in btsnd_hcic_ble_clear_adv_set()
1430 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CLEAR_ADV_SET); in btsnd_hcic_ble_clear_adv_set()
1442 UINT8 *pp; in btsnd_hcic_ble_set_periodic_adv_params() local
1446 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_SET_PERIODIC_ADV_PARAMS); in btsnd_hcic_ble_set_periodic_adv_params()
1448 UINT16_TO_STREAM(pp, HCI_BLE_SET_PERIOD_ADV_PARAMS); in btsnd_hcic_ble_set_periodic_adv_params()
1449 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_PERIODIC_ADV_PARAMS); in btsnd_hcic_ble_set_periodic_adv_params()
1451 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_set_periodic_adv_params()
1452 UINT16_TO_STREAM(pp, interval_min); in btsnd_hcic_ble_set_periodic_adv_params()
1453 UINT16_TO_STREAM(pp, interval_max); in btsnd_hcic_ble_set_periodic_adv_params()
1454 UINT16_TO_STREAM(pp, propertics); in btsnd_hcic_ble_set_periodic_adv_params()
1466 UINT8 *pp; in btsnd_hcic_ble_set_periodic_adv_data() local
1470 HCIC_BLE_CMD_CREATED(p, pp, len + 3); in btsnd_hcic_ble_set_periodic_adv_data()
1472 UINT16_TO_STREAM(pp, HCI_BLE_SET_PERIOD_ADV_DATA); in btsnd_hcic_ble_set_periodic_adv_data()
1473 UINT8_TO_STREAM(pp, len + 3); in btsnd_hcic_ble_set_periodic_adv_data()
1474 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_set_periodic_adv_data()
1475 UINT8_TO_STREAM(pp, operation); in btsnd_hcic_ble_set_periodic_adv_data()
1483 UINT8_TO_STREAM (pp, len); in btsnd_hcic_ble_set_periodic_adv_data()
1486 ARRAY_TO_STREAM (pp, p_data, len); in btsnd_hcic_ble_set_periodic_adv_data()
1496 UINT8 *pp; in btsnd_hcic_ble_periodic_adv_enable() local
1500 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_ENABLE); in btsnd_hcic_ble_periodic_adv_enable()
1502 UINT16_TO_STREAM(pp, HCI_BLE_SET_PERIOD_ADV_ENABLE); in btsnd_hcic_ble_periodic_adv_enable()
1503 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_ENABLE); in btsnd_hcic_ble_periodic_adv_enable()
1504 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_ble_periodic_adv_enable()
1505 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_periodic_adv_enable()
1516 UINT8 *pp; in btsnd_hcic_ble_set_ext_scan_params() local
1521 HCIC_BLE_CMD_CREATED(p, pp, params_size); in btsnd_hcic_ble_set_ext_scan_params()
1523 UINT16_TO_STREAM(pp, HCI_BLE_SET_EXT_SCAN_PARAMS); in btsnd_hcic_ble_set_ext_scan_params()
1524 UINT8_TO_STREAM(pp, params_size); in btsnd_hcic_ble_set_ext_scan_params()
1525 UINT8_TO_STREAM(pp, own_addr_type); in btsnd_hcic_ble_set_ext_scan_params()
1526 UINT8_TO_STREAM(pp, filter_policy); in btsnd_hcic_ble_set_ext_scan_params()
1527 UINT8_TO_STREAM(pp, phy_mask); in btsnd_hcic_ble_set_ext_scan_params()
1530 UINT8_TO_STREAM(pp, params[i].scan_type); in btsnd_hcic_ble_set_ext_scan_params()
1531 UINT16_TO_STREAM(pp, params[i].scan_interval); in btsnd_hcic_ble_set_ext_scan_params()
1532 UINT16_TO_STREAM(pp, params[i].scan_window); in btsnd_hcic_ble_set_ext_scan_params()
1543 UINT8 *pp; in btsnd_hcic_ble_ext_scan_enable() local
1547 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_EXT_SCAN_ENABLE); in btsnd_hcic_ble_ext_scan_enable()
1549 UINT16_TO_STREAM(pp, HCI_BLE_SET_EXT_SCAN_ENABLE); in btsnd_hcic_ble_ext_scan_enable()
1550 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXT_SCAN_ENABLE); in btsnd_hcic_ble_ext_scan_enable()
1551 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_ble_ext_scan_enable()
1552 UINT8_TO_STREAM(pp, filter_dups); in btsnd_hcic_ble_ext_scan_enable()
1553 UINT16_TO_STREAM(pp, duration); in btsnd_hcic_ble_ext_scan_enable()
1554 UINT16_TO_STREAM(pp, period); in btsnd_hcic_ble_ext_scan_enable()
1562 UINT8 *pp; in btsnd_hcic_ble_create_ext_conn() local
1579 HCIC_BLE_CMD_CREATED(p, pp, size); in btsnd_hcic_ble_create_ext_conn()
1581 UINT16_TO_STREAM(pp, HCI_BLE_EXT_CREATE_CONN); in btsnd_hcic_ble_create_ext_conn()
1582 UINT8_TO_STREAM(pp, size); in btsnd_hcic_ble_create_ext_conn()
1583 UINT8_TO_STREAM(pp, p_conn->filter_policy); in btsnd_hcic_ble_create_ext_conn()
1584 UINT8_TO_STREAM(pp, p_conn->own_addr_type); in btsnd_hcic_ble_create_ext_conn()
1585 UINT8_TO_STREAM(pp, p_conn->peer_addr_type); in btsnd_hcic_ble_create_ext_conn()
1586 BDADDR_TO_STREAM(pp, p_conn->peer_addr); in btsnd_hcic_ble_create_ext_conn()
1587 UINT8_TO_STREAM(pp, p_conn->init_phy_mask); in btsnd_hcic_ble_create_ext_conn()
1591 UINT16_TO_STREAM(pp, params->scan_interval); in btsnd_hcic_ble_create_ext_conn()
1592 UINT16_TO_STREAM(pp, params->scan_window); in btsnd_hcic_ble_create_ext_conn()
1593 UINT16_TO_STREAM(pp, params->conn_interval_min); in btsnd_hcic_ble_create_ext_conn()
1594 UINT16_TO_STREAM(pp, params->conn_interval_max); in btsnd_hcic_ble_create_ext_conn()
1595 UINT16_TO_STREAM(pp, params->conn_latency); in btsnd_hcic_ble_create_ext_conn()
1596 UINT16_TO_STREAM(pp, params->sup_timeout); in btsnd_hcic_ble_create_ext_conn()
1597 UINT16_TO_STREAM(pp, params->min_ce_len ? params->min_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ext_conn()
1598 UINT16_TO_STREAM(pp, params->max_ce_len ? params->max_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ext_conn()
1603 UINT16_TO_STREAM(pp, params->scan_interval); in btsnd_hcic_ble_create_ext_conn()
1604 UINT16_TO_STREAM(pp, params->scan_window); in btsnd_hcic_ble_create_ext_conn()
1605 UINT16_TO_STREAM(pp, params->conn_interval_min); in btsnd_hcic_ble_create_ext_conn()
1606 UINT16_TO_STREAM(pp, params->conn_interval_max); in btsnd_hcic_ble_create_ext_conn()
1607 UINT16_TO_STREAM(pp, params->conn_latency); in btsnd_hcic_ble_create_ext_conn()
1608 UINT16_TO_STREAM(pp, params->sup_timeout); in btsnd_hcic_ble_create_ext_conn()
1609 UINT16_TO_STREAM(pp, params->min_ce_len ? params->min_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ext_conn()
1610 UINT16_TO_STREAM(pp, params->max_ce_len ? params->max_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ext_conn()
1615 UINT16_TO_STREAM(pp, params->scan_interval); in btsnd_hcic_ble_create_ext_conn()
1616 UINT16_TO_STREAM(pp, params->scan_window); in btsnd_hcic_ble_create_ext_conn()
1617 UINT16_TO_STREAM(pp, params->conn_interval_min); in btsnd_hcic_ble_create_ext_conn()
1618 UINT16_TO_STREAM(pp, params->conn_interval_max); in btsnd_hcic_ble_create_ext_conn()
1619 UINT16_TO_STREAM(pp, params->conn_latency); in btsnd_hcic_ble_create_ext_conn()
1620 UINT16_TO_STREAM(pp, params->sup_timeout); in btsnd_hcic_ble_create_ext_conn()
1621 UINT16_TO_STREAM(pp, params->min_ce_len ? params->min_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ext_conn()
1622 UINT16_TO_STREAM(pp, params->max_ce_len ? params->max_ce_len : BLE_CE_LEN_MIN); in btsnd_hcic_ble_create_ext_conn()
1635 UINT8 *pp; in btsnd_hcic_ble_periodic_adv_create_sync() local
1641 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_CREATE_SYNC + 2); in btsnd_hcic_ble_periodic_adv_create_sync()
1643 UINT16_TO_STREAM(pp, HCI_BLE_PERIOD_ADV_CREATE_SYNC); in btsnd_hcic_ble_periodic_adv_create_sync()
1644 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_CREATE_SYNC + 2); in btsnd_hcic_ble_periodic_adv_create_sync()
1645 UINT8_TO_STREAM(pp, option); in btsnd_hcic_ble_periodic_adv_create_sync()
1646 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hcic_ble_periodic_adv_create_sync()
1647 UINT8_TO_STREAM(pp, adv_addr_type); in btsnd_hcic_ble_periodic_adv_create_sync()
1648 BDADDR_TO_STREAM(pp, adv_addr); in btsnd_hcic_ble_periodic_adv_create_sync()
1649 UINT16_TO_STREAM(pp, skip); in btsnd_hcic_ble_periodic_adv_create_sync()
1650 UINT16_TO_STREAM(pp, sync_timeout); in btsnd_hcic_ble_periodic_adv_create_sync()
1651 UINT8_TO_STREAM(pp, unused); in btsnd_hcic_ble_periodic_adv_create_sync()
1660 UINT8 *pp; in btsnd_hcic_ble_periodic_adv_create_sync_cancel() local
1663 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_CREATE_SYNC_CANCEL); in btsnd_hcic_ble_periodic_adv_create_sync_cancel()
1665 UINT16_TO_STREAM(pp, HCI_BLE_PERIOD_ADV_CREATE_SYNC_CANCEL); in btsnd_hcic_ble_periodic_adv_create_sync_cancel()
1666 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_CREATE_SYNC_CANCEL); in btsnd_hcic_ble_periodic_adv_create_sync_cancel()
1674 UINT8 *pp; in btsnd_hcic_ble_periodic_adv_term_sync() local
1677 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_TERM_SYNC); in btsnd_hcic_ble_periodic_adv_term_sync()
1679 UINT16_TO_STREAM(pp, HCI_BLE_PERIOD_ADV_TERM_SYNC); in btsnd_hcic_ble_periodic_adv_term_sync()
1680 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_TERM_SYNC); in btsnd_hcic_ble_periodic_adv_term_sync()
1682 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_ble_periodic_adv_term_sync()
1691 UINT8 *pp; in btsnd_hcic_ble_add_dev_to_periodic_adv_list() local
1695 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_ADD_DEV_TO_PERIODIC_ADV_LIST); in btsnd_hcic_ble_add_dev_to_periodic_adv_list()
1697 UINT16_TO_STREAM(pp, HCI_BLE_ADV_DEV_TO_PERIOD_ADV_LIST); in btsnd_hcic_ble_add_dev_to_periodic_adv_list()
1698 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ADD_DEV_TO_PERIODIC_ADV_LIST); in btsnd_hcic_ble_add_dev_to_periodic_adv_list()
1699 UINT8_TO_STREAM(pp, adv_addr_type); in btsnd_hcic_ble_add_dev_to_periodic_adv_list()
1700 BDADDR_TO_STREAM(pp, adv_addr); in btsnd_hcic_ble_add_dev_to_periodic_adv_list()
1701 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hcic_ble_add_dev_to_periodic_adv_list()
1710 UINT8 *pp; in btsnd_hcic_ble_rm_dev_from_periodic_adv_list() local
1714 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_RM_DEV_FROM_PERIODIC_ADV_LIST); in btsnd_hcic_ble_rm_dev_from_periodic_adv_list()
1716 UINT16_TO_STREAM(pp, HCI_BLE_REMOVE_DEV_FROM_PERIOD_ADV_LIST); in btsnd_hcic_ble_rm_dev_from_periodic_adv_list()
1717 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RM_DEV_FROM_PERIODIC_ADV_LIST); in btsnd_hcic_ble_rm_dev_from_periodic_adv_list()
1718 UINT8_TO_STREAM(pp, adv_addr_type); in btsnd_hcic_ble_rm_dev_from_periodic_adv_list()
1719 BDADDR_TO_STREAM(pp, adv_addr); in btsnd_hcic_ble_rm_dev_from_periodic_adv_list()
1720 UINT8_TO_STREAM(pp, adv_sid); in btsnd_hcic_ble_rm_dev_from_periodic_adv_list()
1729 UINT8 *pp; in btsnd_hcic_ble_clear_periodic_adv_list() local
1732 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_CLEAR_PERIODIC_ADV_LIST); in btsnd_hcic_ble_clear_periodic_adv_list()
1734 UINT16_TO_STREAM(pp, HCI_BLE_CLEAR_PERIOD_ADV_LIST); in btsnd_hcic_ble_clear_periodic_adv_list()
1735 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CLEAR_PERIODIC_ADV_LIST); in btsnd_hcic_ble_clear_periodic_adv_list()
1743 UINT8 *pp; in btsnd_hcic_ble_read_periodic_adv_list_size() local
1746 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_READ_PERIODIC_ADV_LIST); in btsnd_hcic_ble_read_periodic_adv_list_size()
1748 UINT16_TO_STREAM(pp, HCI_BLE_RD_PERIOD_ADV_LIST_SIZE); in btsnd_hcic_ble_read_periodic_adv_list_size()
1749 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_PERIODIC_ADV_LIST); in btsnd_hcic_ble_read_periodic_adv_list_size()
1757 UINT8 *pp; in btsnd_hcic_ble_read_trans_power() local
1760 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_READ_TRANS_POWER); in btsnd_hcic_ble_read_trans_power()
1762 UINT16_TO_STREAM(pp, HCI_BLE_RD_TRANSMIT_POWER); in btsnd_hcic_ble_read_trans_power()
1763 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_TRANS_POWER); in btsnd_hcic_ble_read_trans_power()
1771 UINT8 *pp; in btsnd_hcic_ble_read_rf_path_compensation() local
1774 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_READ_RF_PATH_COMPENSATION); in btsnd_hcic_ble_read_rf_path_compensation()
1776 UINT16_TO_STREAM(pp, HCI_BLE_RD_RF_PATH_COMPENSATION); in btsnd_hcic_ble_read_rf_path_compensation()
1777 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_RF_PATH_COMPENSATION); in btsnd_hcic_ble_read_rf_path_compensation()
1785 UINT8 *pp; in btsnd_hcic_ble_write_rf_path_compensation() local
1788 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_WRITE_RF_PATH_COMPENSATION); in btsnd_hcic_ble_write_rf_path_compensation()
1790 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_write_rf_path_compensation()
1795 UINT16_TO_STREAM(pp, HCI_BLE_WR_RF_PATH_COMPENSATION); in btsnd_hcic_ble_write_rf_path_compensation()
1796 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_RF_PATH_COMPENSATION); in btsnd_hcic_ble_write_rf_path_compensation()
1798 UINT16_TO_STREAM(pp, rf_tx_path); in btsnd_hcic_ble_write_rf_path_compensation()
1799 UINT16_TO_STREAM(pp, rf_tx_path); in btsnd_hcic_ble_write_rf_path_compensation()
1809 UINT8 *pp; in btsnd_hcic_ble_set_periodic_adv_recv_enable() local
1811 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_RECV_ENABLE); in btsnd_hcic_ble_set_periodic_adv_recv_enable()
1813 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_periodic_adv_recv_enable()
1815 UINT16_TO_STREAM(pp, HCI_BLE_SET_PERIOD_ADV_RECV_ENABLE); in btsnd_hcic_ble_set_periodic_adv_recv_enable()
1816 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_RECV_ENABLE); in btsnd_hcic_ble_set_periodic_adv_recv_enable()
1818 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_ble_set_periodic_adv_recv_enable()
1819 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_ble_set_periodic_adv_recv_enable()
1827 UINT8 *pp; in btsnd_hcic_ble_periodic_adv_sync_trans() local
1829 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_SYNC_TRANS); in btsnd_hcic_ble_periodic_adv_sync_trans()
1831 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_periodic_adv_sync_trans()
1833 UINT16_TO_STREAM(pp, HCI_BLE_PERIOD_ADV_SYNC_TRANS); in btsnd_hcic_ble_periodic_adv_sync_trans()
1834 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_SYNC_TRANS); in btsnd_hcic_ble_periodic_adv_sync_trans()
1836 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_periodic_adv_sync_trans()
1837 UINT16_TO_STREAM(pp, service_data); in btsnd_hcic_ble_periodic_adv_sync_trans()
1838 UINT16_TO_STREAM(pp, sync_handle); in btsnd_hcic_ble_periodic_adv_sync_trans()
1847 UINT8 *pp; in btsnd_hcic_ble_periodic_adv_set_info_trans() local
1851 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_PERIODIC_ADV_SET_INFO_TRANS); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1853 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1855 UINT16_TO_STREAM(pp, HCI_BLE_PERIOD_ADV_SET_INFO_TRANS); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1856 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PERIODIC_ADV_SET_INFO_TRANS); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1858 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1859 UINT16_TO_STREAM(pp, service_data); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1860 UINT8_TO_STREAM(pp, adv_handle); in btsnd_hcic_ble_periodic_adv_set_info_trans()
1869 UINT8 *pp; in btsnd_hcic_ble_set_periodic_adv_sync_trans_params() local
1873 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_SET_PAST_PARAMS); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1875 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1877 UINT16_TO_STREAM(pp, HCI_BLE_SET_PAST_PARAMS); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1878 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_PAST_PARAMS); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1880 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1881 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1882 UINT16_TO_STREAM(pp, skip); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1883 UINT16_TO_STREAM(pp, sync_timeout); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1884 UINT8_TO_STREAM(pp, cte_type); in btsnd_hcic_ble_set_periodic_adv_sync_trans_params()
1893 UINT8 *pp; in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params() local
1897 HCIC_BLE_CMD_CREATED(p, pp, HCIC_PARAM_SIZE_SET_DEFAULT_PAST_PARAMS); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1899 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1901 UINT16_TO_STREAM(pp, HCI_BLE_SET_DEFAULT_PAST_PARAMS); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1902 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_DEFAULT_PAST_PARAMS); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1904 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1905 UINT16_TO_STREAM(pp, skip); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1906 UINT16_TO_STREAM(pp, sync_timeout); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1907 UINT8_TO_STREAM(pp, cte_type); in btsnd_hcic_ble_set_default_periodic_adv_sync_trans_params()
1916 UINT8 *pp; in btsnd_hcic_ble_set_privacy_mode() local
1922 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_privacy_mode()
1926 UINT16_TO_STREAM(pp, HCI_BLE_SET_PRIVACY_MODE); in btsnd_hcic_ble_set_privacy_mode()
1927 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_PRIVACY_MODE); in btsnd_hcic_ble_set_privacy_mode()
1929 UINT8_TO_STREAM(pp, addr_type); in btsnd_hcic_ble_set_privacy_mode()
1930 BDADDR_TO_STREAM(pp, addr); in btsnd_hcic_ble_set_privacy_mode()
1931 UINT8_TO_STREAM(pp, privacy_mode); in btsnd_hcic_ble_set_privacy_mode()
1940 UINT8 *pp; in btsnd_hcic_ble_set_csa_support() local
1946 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_csa_support()
1951 UINT16_TO_STREAM (pp, HCI_VENDOR_BLE_SET_CSA_SUPPORT); in btsnd_hcic_ble_set_csa_support()
1952 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_BLE_SET_CSA_SUPPORT); in btsnd_hcic_ble_set_csa_support()
1953 UINT8_TO_STREAM (pp, csa_select); in btsnd_hcic_ble_set_csa_support()