Lines Matching refs:pp
488 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry() local
493 UINT16_TO_STREAM(pp, HCI_INQUIRY); in btsnd_hcic_inquiry()
494 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQUIRY); in btsnd_hcic_inquiry()
496 LAP_TO_STREAM(pp, inq_lap); in btsnd_hcic_inquiry()
497 UINT8_TO_STREAM(pp, duration); in btsnd_hcic_inquiry()
498 UINT8_TO_STREAM(pp, response_cnt); in btsnd_hcic_inquiry()
505 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel() local
509 UINT16_TO_STREAM(pp, HCI_INQUIRY_CANCEL); in btsnd_hcic_inq_cancel()
510 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQ_CANCEL); in btsnd_hcic_inq_cancel()
519 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_per_inq_mode() local
524 UINT16_TO_STREAM(pp, HCI_PERIODIC_INQUIRY_MODE); in btsnd_hcic_per_inq_mode()
525 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PER_INQ_MODE); in btsnd_hcic_per_inq_mode()
527 UINT16_TO_STREAM(pp, max_period); in btsnd_hcic_per_inq_mode()
528 UINT16_TO_STREAM(pp, min_period); in btsnd_hcic_per_inq_mode()
529 LAP_TO_STREAM(pp, inq_lap); in btsnd_hcic_per_inq_mode()
530 UINT8_TO_STREAM(pp, duration); in btsnd_hcic_per_inq_mode()
531 UINT8_TO_STREAM(pp, response_cnt); in btsnd_hcic_per_inq_mode()
538 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_per_inq() local
542 UINT16_TO_STREAM(pp, HCI_EXIT_PERIODIC_INQUIRY_MODE); in btsnd_hcic_exit_per_inq()
543 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXIT_PER_INQ); in btsnd_hcic_exit_per_inq()
552 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_create_conn() local
557 UINT16_TO_STREAM(pp, HCI_CREATE_CONNECTION); in btsnd_hcic_create_conn()
558 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CREATE_CONN); in btsnd_hcic_create_conn()
559 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_create_conn()
560 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_create_conn()
561 UINT8_TO_STREAM(pp, page_scan_rep_mode); in btsnd_hcic_create_conn()
562 UINT8_TO_STREAM(pp, page_scan_mode); in btsnd_hcic_create_conn()
563 UINT16_TO_STREAM(pp, clock_offset); in btsnd_hcic_create_conn()
564 UINT8_TO_STREAM(pp, allow_switch); in btsnd_hcic_create_conn()
570 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_disconnect() local
575 UINT16_TO_STREAM(pp, HCI_DISCONNECT); in btsnd_hcic_disconnect()
576 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DISCONNECT); in btsnd_hcic_disconnect()
577 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_disconnect()
578 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_disconnect()
585 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_add_SCO_conn() local
590 UINT16_TO_STREAM(pp, HCI_ADD_SCO_CONNECTION); in btsnd_hcic_add_SCO_conn()
591 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ADD_SCO_CONN); in btsnd_hcic_add_SCO_conn()
593 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_add_SCO_conn()
594 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_add_SCO_conn()
601 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_create_conn_cancel() local
606 UINT16_TO_STREAM(pp, HCI_CREATE_CONNECTION_CANCEL); in btsnd_hcic_create_conn_cancel()
607 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CREATE_CONN_CANCEL); in btsnd_hcic_create_conn_cancel()
609 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_create_conn_cancel()
616 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_accept_conn() local
621 UINT16_TO_STREAM(pp, HCI_ACCEPT_CONNECTION_REQUEST); in btsnd_hcic_accept_conn()
622 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ACCEPT_CONN); in btsnd_hcic_accept_conn()
623 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_accept_conn()
624 UINT8_TO_STREAM(pp, role); in btsnd_hcic_accept_conn()
631 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_reject_conn() local
636 UINT16_TO_STREAM(pp, HCI_REJECT_CONNECTION_REQUEST); in btsnd_hcic_reject_conn()
637 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REJECT_CONN); in btsnd_hcic_reject_conn()
639 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_reject_conn()
640 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_reject_conn()
648 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_link_key_req_reply() local
653 UINT16_TO_STREAM(pp, HCI_LINK_KEY_REQUEST_REPLY); in btsnd_hcic_link_key_req_reply()
654 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY); in btsnd_hcic_link_key_req_reply()
656 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_link_key_req_reply()
657 ARRAY16_TO_STREAM(pp, link_key.data()); in btsnd_hcic_link_key_req_reply()
664 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_link_key_neg_reply() local
669 UINT16_TO_STREAM(pp, HCI_LINK_KEY_REQUEST_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
670 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
672 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_link_key_neg_reply()
680 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_pin_code_req_reply() local
686 UINT16_TO_STREAM(pp, HCI_PIN_CODE_REQUEST_REPLY); in btsnd_hcic_pin_code_req_reply()
687 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY); in btsnd_hcic_pin_code_req_reply()
689 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_pin_code_req_reply()
690 UINT8_TO_STREAM(pp, pin_code_len); in btsnd_hcic_pin_code_req_reply()
692 for (i = 0; i < pin_code_len; i++) *pp++ = *pin_code++; in btsnd_hcic_pin_code_req_reply()
694 for (; i < PIN_CODE_LEN; i++) *pp++ = 0; in btsnd_hcic_pin_code_req_reply()
701 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_pin_code_neg_reply() local
706 UINT16_TO_STREAM(pp, HCI_PIN_CODE_REQUEST_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
707 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
709 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_pin_code_neg_reply()
716 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_change_conn_type() local
721 UINT16_TO_STREAM(pp, HCI_CHANGE_CONN_PACKET_TYPE); in btsnd_hcic_change_conn_type()
722 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CHANGE_CONN_TYPE); in btsnd_hcic_change_conn_type()
724 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_change_conn_type()
725 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_change_conn_type()
732 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_auth_request() local
737 UINT16_TO_STREAM(pp, HCI_AUTHENTICATION_REQUESTED); in btsnd_hcic_auth_request()
738 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_auth_request()
740 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_auth_request()
747 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_set_conn_encrypt() local
752 UINT16_TO_STREAM(pp, HCI_SET_CONN_ENCRYPTION); in btsnd_hcic_set_conn_encrypt()
753 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_CONN_ENCRYPT); in btsnd_hcic_set_conn_encrypt()
755 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_set_conn_encrypt()
756 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_set_conn_encrypt()
765 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_name_req() local
770 UINT16_TO_STREAM(pp, HCI_RMT_NAME_REQUEST); in btsnd_hcic_rmt_name_req()
771 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_NAME_REQ); in btsnd_hcic_rmt_name_req()
773 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rmt_name_req()
774 UINT8_TO_STREAM(pp, page_scan_rep_mode); in btsnd_hcic_rmt_name_req()
775 UINT8_TO_STREAM(pp, page_scan_mode); in btsnd_hcic_rmt_name_req()
776 UINT16_TO_STREAM(pp, clock_offset); in btsnd_hcic_rmt_name_req()
783 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_name_req_cancel() local
788 UINT16_TO_STREAM(pp, HCI_RMT_NAME_REQUEST_CANCEL); in btsnd_hcic_rmt_name_req_cancel()
789 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_NAME_REQ_CANCEL); in btsnd_hcic_rmt_name_req_cancel()
791 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rmt_name_req_cancel()
798 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_features_req() local
803 UINT16_TO_STREAM(pp, HCI_READ_RMT_FEATURES); in btsnd_hcic_rmt_features_req()
804 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_features_req()
806 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_features_req()
813 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_ext_features() local
818 UINT16_TO_STREAM(pp, HCI_READ_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
819 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
821 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_ext_features()
822 UINT8_TO_STREAM(pp, page_num); in btsnd_hcic_rmt_ext_features()
829 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_ver_req() local
834 UINT16_TO_STREAM(pp, HCI_READ_RMT_VERSION_INFO); in btsnd_hcic_rmt_ver_req()
835 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_ver_req()
837 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_ver_req()
844 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_rmt_clk_offset() local
849 UINT16_TO_STREAM(pp, HCI_READ_RMT_CLOCK_OFFSET); in btsnd_hcic_read_rmt_clk_offset()
850 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rmt_clk_offset()
852 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_rmt_clk_offset()
859 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_lmp_handle() local
864 UINT16_TO_STREAM(pp, HCI_READ_LMP_HANDLE); in btsnd_hcic_read_lmp_handle()
865 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_lmp_handle()
867 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_lmp_handle()
877 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_setup_esco_conn() local
882 UINT16_TO_STREAM(pp, HCI_SETUP_ESCO_CONNECTION); in btsnd_hcic_setup_esco_conn()
883 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SETUP_ESCO); in btsnd_hcic_setup_esco_conn()
885 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_setup_esco_conn()
886 UINT32_TO_STREAM(pp, transmit_bandwidth); in btsnd_hcic_setup_esco_conn()
887 UINT32_TO_STREAM(pp, receive_bandwidth); in btsnd_hcic_setup_esco_conn()
888 UINT16_TO_STREAM(pp, max_latency); in btsnd_hcic_setup_esco_conn()
889 UINT16_TO_STREAM(pp, voice); in btsnd_hcic_setup_esco_conn()
890 UINT8_TO_STREAM(pp, retrans_effort); in btsnd_hcic_setup_esco_conn()
891 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_setup_esco_conn()
903 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_accept_esco_conn() local
908 UINT16_TO_STREAM(pp, HCI_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_accept_esco_conn()
909 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ACCEPT_ESCO); in btsnd_hcic_accept_esco_conn()
911 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_accept_esco_conn()
912 UINT32_TO_STREAM(pp, transmit_bandwidth); in btsnd_hcic_accept_esco_conn()
913 UINT32_TO_STREAM(pp, receive_bandwidth); in btsnd_hcic_accept_esco_conn()
914 UINT16_TO_STREAM(pp, max_latency); in btsnd_hcic_accept_esco_conn()
915 UINT16_TO_STREAM(pp, content_fmt); in btsnd_hcic_accept_esco_conn()
916 UINT8_TO_STREAM(pp, retrans_effort); in btsnd_hcic_accept_esco_conn()
917 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_accept_esco_conn()
924 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_reject_esco_conn() local
929 UINT16_TO_STREAM(pp, HCI_REJECT_ESCO_CONNECTION); in btsnd_hcic_reject_esco_conn()
930 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REJECT_ESCO); in btsnd_hcic_reject_esco_conn()
932 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_reject_esco_conn()
933 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_reject_esco_conn()
941 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_hold_mode() local
946 UINT16_TO_STREAM(pp, HCI_HOLD_MODE); in btsnd_hcic_hold_mode()
947 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_HOLD_MODE); in btsnd_hcic_hold_mode()
949 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_hold_mode()
950 UINT16_TO_STREAM(pp, max_hold_period); in btsnd_hcic_hold_mode()
951 UINT16_TO_STREAM(pp, min_hold_period); in btsnd_hcic_hold_mode()
960 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_sniff_mode() local
965 UINT16_TO_STREAM(pp, HCI_SNIFF_MODE); in btsnd_hcic_sniff_mode()
966 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SNIFF_MODE); in btsnd_hcic_sniff_mode()
968 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_sniff_mode()
969 UINT16_TO_STREAM(pp, max_sniff_period); in btsnd_hcic_sniff_mode()
970 UINT16_TO_STREAM(pp, min_sniff_period); in btsnd_hcic_sniff_mode()
971 UINT16_TO_STREAM(pp, sniff_attempt); in btsnd_hcic_sniff_mode()
972 UINT16_TO_STREAM(pp, sniff_timeout); in btsnd_hcic_sniff_mode()
979 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_sniff_mode() local
984 UINT16_TO_STREAM(pp, HCI_EXIT_SNIFF_MODE); in btsnd_hcic_exit_sniff_mode()
985 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_sniff_mode()
987 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_exit_sniff_mode()
995 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_park_mode() local
1000 UINT16_TO_STREAM(pp, HCI_PARK_MODE); in btsnd_hcic_park_mode()
1001 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PARK_MODE); in btsnd_hcic_park_mode()
1003 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_park_mode()
1004 UINT16_TO_STREAM(pp, beacon_max_interval); in btsnd_hcic_park_mode()
1005 UINT16_TO_STREAM(pp, beacon_min_interval); in btsnd_hcic_park_mode()
1012 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_park_mode() local
1017 UINT16_TO_STREAM(pp, HCI_EXIT_PARK_MODE); in btsnd_hcic_exit_park_mode()
1018 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_park_mode()
1020 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_exit_park_mode()
1029 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_qos_setup() local
1034 UINT16_TO_STREAM(pp, HCI_QOS_SETUP); in btsnd_hcic_qos_setup()
1035 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_QOS_SETUP); in btsnd_hcic_qos_setup()
1037 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_qos_setup()
1038 UINT8_TO_STREAM(pp, flags); in btsnd_hcic_qos_setup()
1039 UINT8_TO_STREAM(pp, service_type); in btsnd_hcic_qos_setup()
1040 UINT32_TO_STREAM(pp, token_rate); in btsnd_hcic_qos_setup()
1041 UINT32_TO_STREAM(pp, peak); in btsnd_hcic_qos_setup()
1042 UINT32_TO_STREAM(pp, latency); in btsnd_hcic_qos_setup()
1043 UINT32_TO_STREAM(pp, delay_var); in btsnd_hcic_qos_setup()
1050 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_switch_role() local
1055 UINT16_TO_STREAM(pp, HCI_SWITCH_ROLE); in btsnd_hcic_switch_role()
1056 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SWITCH_ROLE); in btsnd_hcic_switch_role()
1058 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_switch_role()
1059 UINT8_TO_STREAM(pp, role); in btsnd_hcic_switch_role()
1066 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_policy_set() local
1070 UINT16_TO_STREAM(pp, HCI_WRITE_POLICY_SETTINGS); in btsnd_hcic_write_policy_set()
1071 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_POLICY_SET); in btsnd_hcic_write_policy_set()
1073 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_policy_set()
1074 UINT16_TO_STREAM(pp, settings); in btsnd_hcic_write_policy_set()
1081 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_def_policy_set() local
1085 UINT16_TO_STREAM(pp, HCI_WRITE_DEF_POLICY_SETTINGS); in btsnd_hcic_write_def_policy_set()
1086 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET); in btsnd_hcic_write_def_policy_set()
1088 UINT16_TO_STREAM(pp, settings); in btsnd_hcic_write_def_policy_set()
1096 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_set_event_filter() local
1100 UINT16_TO_STREAM(pp, HCI_SET_EVENT_FILTER); in btsnd_hcic_set_event_filter()
1104 UINT8_TO_STREAM(pp, (uint8_t)(2 + filt_cond_len)); in btsnd_hcic_set_event_filter()
1106 UINT8_TO_STREAM(pp, filt_type); in btsnd_hcic_set_event_filter()
1107 UINT8_TO_STREAM(pp, filt_cond_type); in btsnd_hcic_set_event_filter()
1110 DEVCLASS_TO_STREAM(pp, filt_cond); in btsnd_hcic_set_event_filter()
1112 DEVCLASS_TO_STREAM(pp, filt_cond); in btsnd_hcic_set_event_filter()
1117 BDADDR_TO_STREAM(pp, *((RawAddress*)filt_cond)); in btsnd_hcic_set_event_filter()
1123 if (filt_cond_len) ARRAY_TO_STREAM(pp, filt_cond, filt_cond_len); in btsnd_hcic_set_event_filter()
1126 UINT8_TO_STREAM(pp, 1); in btsnd_hcic_set_event_filter()
1128 UINT8_TO_STREAM(pp, filt_type); in btsnd_hcic_set_event_filter()
1136 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pin_type() local
1141 UINT16_TO_STREAM(pp, HCI_WRITE_PIN_TYPE); in btsnd_hcic_write_pin_type()
1142 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pin_type()
1144 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_pin_type()
1152 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_delete_stored_key() local
1157 UINT16_TO_STREAM(pp, HCI_DELETE_STORED_LINK_KEY); in btsnd_hcic_delete_stored_key()
1158 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DELETE_STORED_KEY); in btsnd_hcic_delete_stored_key()
1160 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_delete_stored_key()
1161 UINT8_TO_STREAM(pp, delete_all_flag); in btsnd_hcic_delete_stored_key()
1168 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_change_name() local
1171 memset(pp, 0, HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
1176 UINT16_TO_STREAM(pp, HCI_CHANGE_LOCAL_NAME); in btsnd_hcic_change_name()
1177 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
1181 ARRAY_TO_STREAM(pp, name, len); in btsnd_hcic_change_name()
1188 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_name() local
1193 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_NAME); in btsnd_hcic_read_name()
1194 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_name()
1201 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_page_tout() local
1206 UINT16_TO_STREAM(pp, HCI_WRITE_PAGE_TOUT); in btsnd_hcic_write_page_tout()
1207 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_page_tout()
1209 UINT16_TO_STREAM(pp, timeout); in btsnd_hcic_write_page_tout()
1216 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_scan_enable() local
1221 UINT16_TO_STREAM(pp, HCI_WRITE_SCAN_ENABLE); in btsnd_hcic_write_scan_enable()
1222 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_scan_enable()
1224 UINT8_TO_STREAM(pp, flag); in btsnd_hcic_write_scan_enable()
1231 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pagescan_cfg() local
1236 UINT16_TO_STREAM(pp, HCI_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
1237 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
1239 UINT16_TO_STREAM(pp, interval); in btsnd_hcic_write_pagescan_cfg()
1240 UINT16_TO_STREAM(pp, window); in btsnd_hcic_write_pagescan_cfg()
1247 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inqscan_cfg() local
1252 UINT16_TO_STREAM(pp, HCI_WRITE_INQUIRYSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
1253 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
1255 UINT16_TO_STREAM(pp, interval); in btsnd_hcic_write_inqscan_cfg()
1256 UINT16_TO_STREAM(pp, window); in btsnd_hcic_write_inqscan_cfg()
1263 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_auth_enable() local
1268 UINT16_TO_STREAM(pp, HCI_WRITE_AUTHENTICATION_ENABLE); in btsnd_hcic_write_auth_enable()
1269 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_auth_enable()
1271 UINT8_TO_STREAM(pp, flag); in btsnd_hcic_write_auth_enable()
1278 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_dev_class() local
1283 UINT16_TO_STREAM(pp, HCI_WRITE_CLASS_OF_DEVICE); in btsnd_hcic_write_dev_class()
1284 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM3); in btsnd_hcic_write_dev_class()
1286 DEVCLASS_TO_STREAM(pp, dev_class); in btsnd_hcic_write_dev_class()
1293 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_voice_settings() local
1298 UINT16_TO_STREAM(pp, HCI_WRITE_VOICE_SETTINGS); in btsnd_hcic_write_voice_settings()
1299 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_voice_settings()
1301 UINT16_TO_STREAM(pp, flags); in btsnd_hcic_write_voice_settings()
1308 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_auto_flush_tout() local
1313 UINT16_TO_STREAM(pp, HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_write_auto_flush_tout()
1314 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_write_auto_flush_tout()
1316 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_auto_flush_tout()
1317 UINT16_TO_STREAM(pp, tout); in btsnd_hcic_write_auto_flush_tout()
1324 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_tx_power() local
1329 UINT16_TO_STREAM(pp, HCI_READ_TRANSMIT_POWER_LEVEL); in btsnd_hcic_read_tx_power()
1330 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_TX_POWER); in btsnd_hcic_read_tx_power()
1332 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_tx_power()
1333 UINT8_TO_STREAM(pp, type); in btsnd_hcic_read_tx_power()
1341 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_host_num_xmitted_pkts() local
1346 UINT16_TO_STREAM(pp, HCI_HOST_NUM_PACKETS_DONE); in btsnd_hcic_host_num_xmitted_pkts()
1347 UINT8_TO_STREAM(pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_host_num_xmitted_pkts()
1349 UINT8_TO_STREAM(pp, num_handles); in btsnd_hcic_host_num_xmitted_pkts()
1352 UINT16_TO_STREAM(pp, handle[i]); in btsnd_hcic_host_num_xmitted_pkts()
1353 UINT16_TO_STREAM(pp, num_pkts[i]); in btsnd_hcic_host_num_xmitted_pkts()
1362 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_link_super_tout() local
1367 UINT16_TO_STREAM(pp, HCI_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
1368 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
1370 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_link_super_tout()
1371 UINT16_TO_STREAM(pp, timeout); in btsnd_hcic_write_link_super_tout()
1378 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_cur_iac_lap() local
1383 UINT16_TO_STREAM(pp, HCI_WRITE_CURRENT_IAC_LAP); in btsnd_hcic_write_cur_iac_lap()
1384 UINT8_TO_STREAM(pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_cur_iac_lap()
1386 UINT8_TO_STREAM(pp, num_cur_iac); in btsnd_hcic_write_cur_iac_lap()
1388 for (int i = 0; i < num_cur_iac; i++) LAP_TO_STREAM(pp, iac_lap[i]); in btsnd_hcic_write_cur_iac_lap()
1400 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_sniff_sub_rate() local
1405 UINT16_TO_STREAM(pp, HCI_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
1406 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
1408 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_sniff_sub_rate()
1409 UINT16_TO_STREAM(pp, max_lat); in btsnd_hcic_sniff_sub_rate()
1410 UINT16_TO_STREAM(pp, min_remote_lat); in btsnd_hcic_sniff_sub_rate()
1411 UINT16_TO_STREAM(pp, min_local_lat); in btsnd_hcic_sniff_sub_rate()
1419 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_ext_inquiry_response() local
1424 UINT16_TO_STREAM(pp, HCI_WRITE_EXT_INQ_RESPONSE); in btsnd_hcic_write_ext_inquiry_response()
1425 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXT_INQ_RESP); in btsnd_hcic_write_ext_inquiry_response()
1427 UINT8_TO_STREAM(pp, fec_req); in btsnd_hcic_write_ext_inquiry_response()
1435 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_io_cap_req_reply() local
1440 UINT16_TO_STREAM(pp, HCI_IO_CAPABILITY_REQUEST_REPLY); in btsnd_hcic_io_cap_req_reply()
1441 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_IO_CAP_RESP); in btsnd_hcic_io_cap_req_reply()
1443 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_io_cap_req_reply()
1444 UINT8_TO_STREAM(pp, capability); in btsnd_hcic_io_cap_req_reply()
1445 UINT8_TO_STREAM(pp, oob_present); in btsnd_hcic_io_cap_req_reply()
1446 UINT8_TO_STREAM(pp, auth_req); in btsnd_hcic_io_cap_req_reply()
1454 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_set_up_synchronous_connection() local
1459 UINT16_TO_STREAM(pp, HCI_ENH_SETUP_ESCO_CONNECTION); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1460 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_SET_ESCO_CONN); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1462 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1463 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1464 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1465 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1466 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1467 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_set_up_synchronous_connection()
1469 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1470 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1471 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_set_up_synchronous_connection()
1473 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1474 UINT16_TO_STREAM(pp, p_params->receive_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1475 UINT32_TO_STREAM(pp, p_params->input_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1476 UINT32_TO_STREAM(pp, p_params->output_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1477 UINT8_TO_STREAM(pp, p_params->input_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1478 UINT16_TO_STREAM(pp, p_params->input_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1479 UINT16_TO_STREAM(pp, p_params->input_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1480 UINT8_TO_STREAM(pp, p_params->output_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1481 UINT16_TO_STREAM(pp, p_params->output_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1482 UINT16_TO_STREAM(pp, p_params->output_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1483 UINT16_TO_STREAM(pp, p_params->input_coded_data_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1484 UINT16_TO_STREAM(pp, p_params->output_coded_data_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1485 UINT8_TO_STREAM(pp, p_params->input_pcm_data_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1486 UINT8_TO_STREAM(pp, p_params->output_pcm_data_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1487 UINT8_TO_STREAM(pp, p_params->input_pcm_payload_msb_position); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1488 UINT8_TO_STREAM(pp, p_params->output_pcm_payload_msb_position); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1489 UINT8_TO_STREAM(pp, p_params->input_data_path); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1490 UINT8_TO_STREAM(pp, p_params->output_data_path); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1491 UINT8_TO_STREAM(pp, p_params->input_transport_unit_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1492 UINT8_TO_STREAM(pp, p_params->output_transport_unit_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1493 UINT16_TO_STREAM(pp, p_params->max_latency_ms); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1494 UINT16_TO_STREAM(pp, p_params->packet_types); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1495 UINT8_TO_STREAM(pp, p_params->retransmission_effort); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1503 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_accept_synchronous_connection() local
1508 UINT16_TO_STREAM(pp, HCI_ENH_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_enhanced_accept_synchronous_connection()
1509 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_ACC_ESCO_CONN); in btsnd_hcic_enhanced_accept_synchronous_connection()
1511 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_enhanced_accept_synchronous_connection()
1512 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1513 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1514 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1515 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1516 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_accept_synchronous_connection()
1518 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1519 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1520 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_accept_synchronous_connection()
1522 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1523 UINT16_TO_STREAM(pp, p_params->receive_codec_frame_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1524 UINT32_TO_STREAM(pp, p_params->input_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1525 UINT32_TO_STREAM(pp, p_params->output_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1526 UINT8_TO_STREAM(pp, p_params->input_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1527 UINT16_TO_STREAM(pp, p_params->input_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1528 UINT16_TO_STREAM(pp, p_params->input_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1529 UINT8_TO_STREAM(pp, p_params->output_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1530 UINT16_TO_STREAM(pp, p_params->output_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1531 UINT16_TO_STREAM(pp, p_params->output_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1532 UINT16_TO_STREAM(pp, p_params->input_coded_data_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1533 UINT16_TO_STREAM(pp, p_params->output_coded_data_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1534 UINT8_TO_STREAM(pp, p_params->input_pcm_data_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1535 UINT8_TO_STREAM(pp, p_params->output_pcm_data_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1536 UINT8_TO_STREAM(pp, p_params->input_pcm_payload_msb_position); in btsnd_hcic_enhanced_accept_synchronous_connection()
1537 UINT8_TO_STREAM(pp, p_params->output_pcm_payload_msb_position); in btsnd_hcic_enhanced_accept_synchronous_connection()
1538 UINT8_TO_STREAM(pp, p_params->input_data_path); in btsnd_hcic_enhanced_accept_synchronous_connection()
1539 UINT8_TO_STREAM(pp, p_params->output_data_path); in btsnd_hcic_enhanced_accept_synchronous_connection()
1540 UINT8_TO_STREAM(pp, p_params->input_transport_unit_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1541 UINT8_TO_STREAM(pp, p_params->output_transport_unit_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1542 UINT16_TO_STREAM(pp, p_params->max_latency_ms); in btsnd_hcic_enhanced_accept_synchronous_connection()
1543 UINT16_TO_STREAM(pp, p_params->packet_types); in btsnd_hcic_enhanced_accept_synchronous_connection()
1544 UINT8_TO_STREAM(pp, p_params->retransmission_effort); in btsnd_hcic_enhanced_accept_synchronous_connection()
1552 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_io_cap_req_neg_reply() local
1557 UINT16_TO_STREAM(pp, HCI_IO_CAP_REQ_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
1558 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
1560 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_io_cap_req_neg_reply()
1561 UINT8_TO_STREAM(pp, err_code); in btsnd_hcic_io_cap_req_neg_reply()
1568 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_local_oob_data() local
1573 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_OOB_DATA); in btsnd_hcic_read_local_oob_data()
1574 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_R_LOCAL_OOB); in btsnd_hcic_read_local_oob_data()
1581 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_conf_reply() local
1588 UINT16_TO_STREAM(pp, HCI_USER_CONF_VALUE_NEG_REPLY); in btsnd_hcic_user_conf_reply()
1591 UINT16_TO_STREAM(pp, HCI_USER_CONF_REQUEST_REPLY); in btsnd_hcic_user_conf_reply()
1594 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_UCONF_REPLY); in btsnd_hcic_user_conf_reply()
1596 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_conf_reply()
1603 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_passkey_reply() local
1608 UINT16_TO_STREAM(pp, HCI_USER_PASSKEY_REQ_REPLY); in btsnd_hcic_user_passkey_reply()
1609 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_U_PKEY_REPLY); in btsnd_hcic_user_passkey_reply()
1611 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_passkey_reply()
1612 UINT32_TO_STREAM(pp, value); in btsnd_hcic_user_passkey_reply()
1619 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_passkey_neg_reply() local
1624 UINT16_TO_STREAM(pp, HCI_USER_PASSKEY_REQ_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
1625 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
1627 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_passkey_neg_reply()
1635 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rem_oob_reply() local
1640 UINT16_TO_STREAM(pp, HCI_REM_OOB_DATA_REQ_REPLY); in btsnd_hcic_rem_oob_reply()
1641 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REM_OOB_REPLY); in btsnd_hcic_rem_oob_reply()
1643 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rem_oob_reply()
1644 ARRAY16_TO_STREAM(pp, c.data()); in btsnd_hcic_rem_oob_reply()
1645 ARRAY16_TO_STREAM(pp, r.data()); in btsnd_hcic_rem_oob_reply()
1652 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rem_oob_neg_reply() local
1657 UINT16_TO_STREAM(pp, HCI_REM_OOB_DATA_REQ_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
1658 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
1660 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rem_oob_neg_reply()
1667 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_inq_tx_power() local
1672 UINT16_TO_STREAM(pp, HCI_READ_INQ_TX_POWER_LEVEL); in btsnd_hcic_read_inq_tx_power()
1673 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_R_TX_POWER); in btsnd_hcic_read_inq_tx_power()
1680 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_send_keypress_notif() local
1685 UINT16_TO_STREAM(pp, HCI_SEND_KEYPRESS_NOTIF); in btsnd_hcic_send_keypress_notif()
1686 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SEND_KEYPRESS_NOTIF); in btsnd_hcic_send_keypress_notif()
1688 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_send_keypress_notif()
1689 UINT8_TO_STREAM(pp, notif); in btsnd_hcic_send_keypress_notif()
1698 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_flush() local
1702 UINT16_TO_STREAM(pp, HCI_ENHANCED_FLUSH); in btsnd_hcic_enhanced_flush()
1703 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENHANCED_FLUSH); in btsnd_hcic_enhanced_flush()
1705 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_enhanced_flush()
1706 UINT8_TO_STREAM(pp, packet_type); in btsnd_hcic_enhanced_flush()
1717 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_get_link_quality() local
1722 UINT16_TO_STREAM(pp, HCI_GET_LINK_QUALITY); in btsnd_hcic_get_link_quality()
1723 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_get_link_quality()
1725 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_get_link_quality()
1732 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_rssi() local
1737 UINT16_TO_STREAM(pp, HCI_READ_RSSI); in btsnd_hcic_read_rssi()
1738 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rssi()
1740 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_rssi()
1771 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_failed_contact_counter() local
1776 UINT16_TO_STREAM(pp, HCI_READ_FAILED_CONTACT_COUNTER); in btsnd_hcic_read_failed_contact_counter()
1777 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_failed_contact_counter()
1779 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_failed_contact_counter()
1786 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_automatic_flush_timeout() local
1791 UINT16_TO_STREAM(pp, HCI_READ_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_read_automatic_flush_timeout()
1792 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_automatic_flush_timeout()
1794 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_automatic_flush_timeout()
1801 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enable_test_mode() local
1806 UINT16_TO_STREAM(pp, HCI_ENABLE_DEV_UNDER_TEST_MODE); in btsnd_hcic_enable_test_mode()
1807 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_enable_test_mode()
1814 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inqscan_type() local
1819 UINT16_TO_STREAM(pp, HCI_WRITE_INQSCAN_TYPE); in btsnd_hcic_write_inqscan_type()
1820 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inqscan_type()
1822 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_inqscan_type()
1829 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inquiry_mode() local
1834 UINT16_TO_STREAM(pp, HCI_WRITE_INQUIRY_MODE); in btsnd_hcic_write_inquiry_mode()
1835 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inquiry_mode()
1837 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_write_inquiry_mode()
1844 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pagescan_type() local
1849 UINT16_TO_STREAM(pp, HCI_WRITE_PAGESCAN_TYPE); in btsnd_hcic_write_pagescan_type()
1850 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pagescan_type()
1852 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_pagescan_type()
1865 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_vendor_spec_cmd() local
1870 *((void**)pp) = in btsnd_hcic_vendor_spec_cmd()
1872 pp += sizeof(void*); /* Skip over callback pointer */ in btsnd_hcic_vendor_spec_cmd()
1874 UINT16_TO_STREAM(pp, HCI_GRP_VENDOR_SPECIFIC | opcode); in btsnd_hcic_vendor_spec_cmd()
1875 UINT8_TO_STREAM(pp, len); in btsnd_hcic_vendor_spec_cmd()
1876 ARRAY_TO_STREAM(pp, p_data, len); in btsnd_hcic_vendor_spec_cmd()