Lines Matching refs:pp

484   uint8_t* pp = (uint8_t*)(p + 1);  in btsnd_hcic_disconnect()  local
489 UINT16_TO_STREAM(pp, HCI_DISCONNECT); in btsnd_hcic_disconnect()
490 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DISCONNECT); in btsnd_hcic_disconnect()
491 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_disconnect()
492 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_disconnect()
499 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_add_SCO_conn() local
504 UINT16_TO_STREAM(pp, HCI_ADD_SCO_CONNECTION); in btsnd_hcic_add_SCO_conn()
505 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ADD_SCO_CONN); in btsnd_hcic_add_SCO_conn()
507 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_add_SCO_conn()
508 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_add_SCO_conn()
515 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_create_conn_cancel() local
520 UINT16_TO_STREAM(pp, HCI_CREATE_CONNECTION_CANCEL); in btsnd_hcic_create_conn_cancel()
521 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CREATE_CONN_CANCEL); in btsnd_hcic_create_conn_cancel()
523 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_create_conn_cancel()
530 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_reject_conn() local
535 UINT16_TO_STREAM(pp, HCI_REJECT_CONNECTION_REQUEST); in btsnd_hcic_reject_conn()
536 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REJECT_CONN); in btsnd_hcic_reject_conn()
538 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_reject_conn()
539 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_reject_conn()
547 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_link_key_req_reply() local
552 UINT16_TO_STREAM(pp, HCI_LINK_KEY_REQUEST_REPLY); in btsnd_hcic_link_key_req_reply()
553 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY); in btsnd_hcic_link_key_req_reply()
555 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_link_key_req_reply()
556 ARRAY16_TO_STREAM(pp, link_key.data()); in btsnd_hcic_link_key_req_reply()
563 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_link_key_neg_reply() local
568 UINT16_TO_STREAM(pp, HCI_LINK_KEY_REQUEST_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
569 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
571 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_link_key_neg_reply()
579 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_pin_code_req_reply() local
585 UINT16_TO_STREAM(pp, HCI_PIN_CODE_REQUEST_REPLY); in btsnd_hcic_pin_code_req_reply()
586 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY); in btsnd_hcic_pin_code_req_reply()
588 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_pin_code_req_reply()
589 UINT8_TO_STREAM(pp, pin_code_len); in btsnd_hcic_pin_code_req_reply()
591 for (i = 0; i < pin_code_len; i++) *pp++ = *pin_code++; in btsnd_hcic_pin_code_req_reply()
593 for (; i < PIN_CODE_LEN; i++) *pp++ = 0; in btsnd_hcic_pin_code_req_reply()
600 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_pin_code_neg_reply() local
605 UINT16_TO_STREAM(pp, HCI_PIN_CODE_REQUEST_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
606 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
608 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_pin_code_neg_reply()
615 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_change_conn_type() local
620 UINT16_TO_STREAM(pp, HCI_CHANGE_CONN_PACKET_TYPE); in btsnd_hcic_change_conn_type()
621 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CHANGE_CONN_TYPE); in btsnd_hcic_change_conn_type()
623 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_change_conn_type()
624 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_change_conn_type()
631 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_auth_request() local
636 UINT16_TO_STREAM(pp, HCI_AUTHENTICATION_REQUESTED); in btsnd_hcic_auth_request()
637 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_auth_request()
639 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_auth_request()
646 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_set_conn_encrypt() local
651 UINT16_TO_STREAM(pp, HCI_SET_CONN_ENCRYPTION); in btsnd_hcic_set_conn_encrypt()
652 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_CONN_ENCRYPT); in btsnd_hcic_set_conn_encrypt()
654 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_set_conn_encrypt()
655 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_set_conn_encrypt()
662 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_ext_features() local
667 UINT16_TO_STREAM(pp, HCI_READ_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
668 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
670 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_ext_features()
671 UINT8_TO_STREAM(pp, page_num); in btsnd_hcic_rmt_ext_features()
678 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_ver_req() local
683 UINT16_TO_STREAM(pp, HCI_READ_RMT_VERSION_INFO); in btsnd_hcic_rmt_ver_req()
684 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_ver_req()
686 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_ver_req()
693 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_rmt_clk_offset() local
698 UINT16_TO_STREAM(pp, HCI_READ_RMT_CLOCK_OFFSET); in btsnd_hcic_read_rmt_clk_offset()
699 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rmt_clk_offset()
701 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_rmt_clk_offset()
711 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_setup_esco_conn() local
716 UINT16_TO_STREAM(pp, HCI_SETUP_ESCO_CONNECTION); in btsnd_hcic_setup_esco_conn()
717 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SETUP_ESCO); in btsnd_hcic_setup_esco_conn()
719 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_setup_esco_conn()
720 UINT32_TO_STREAM(pp, transmit_bandwidth); in btsnd_hcic_setup_esco_conn()
721 UINT32_TO_STREAM(pp, receive_bandwidth); in btsnd_hcic_setup_esco_conn()
722 UINT16_TO_STREAM(pp, max_latency); in btsnd_hcic_setup_esco_conn()
723 UINT16_TO_STREAM(pp, voice); in btsnd_hcic_setup_esco_conn()
724 UINT8_TO_STREAM(pp, retrans_effort); in btsnd_hcic_setup_esco_conn()
725 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_setup_esco_conn()
737 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_accept_esco_conn() local
742 UINT16_TO_STREAM(pp, HCI_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_accept_esco_conn()
743 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ACCEPT_ESCO); in btsnd_hcic_accept_esco_conn()
745 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_accept_esco_conn()
746 UINT32_TO_STREAM(pp, transmit_bandwidth); in btsnd_hcic_accept_esco_conn()
747 UINT32_TO_STREAM(pp, receive_bandwidth); in btsnd_hcic_accept_esco_conn()
748 UINT16_TO_STREAM(pp, max_latency); in btsnd_hcic_accept_esco_conn()
749 UINT16_TO_STREAM(pp, content_fmt); in btsnd_hcic_accept_esco_conn()
750 UINT8_TO_STREAM(pp, retrans_effort); in btsnd_hcic_accept_esco_conn()
751 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_accept_esco_conn()
758 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_reject_esco_conn() local
763 UINT16_TO_STREAM(pp, HCI_REJECT_ESCO_CONNECTION); in btsnd_hcic_reject_esco_conn()
764 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REJECT_ESCO); in btsnd_hcic_reject_esco_conn()
766 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_reject_esco_conn()
767 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_reject_esco_conn()
775 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_hold_mode() local
780 UINT16_TO_STREAM(pp, HCI_HOLD_MODE); in btsnd_hcic_hold_mode()
781 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_HOLD_MODE); in btsnd_hcic_hold_mode()
783 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_hold_mode()
784 UINT16_TO_STREAM(pp, max_hold_period); in btsnd_hcic_hold_mode()
785 UINT16_TO_STREAM(pp, min_hold_period); in btsnd_hcic_hold_mode()
794 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_sniff_mode() local
799 UINT16_TO_STREAM(pp, HCI_SNIFF_MODE); in btsnd_hcic_sniff_mode()
800 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SNIFF_MODE); in btsnd_hcic_sniff_mode()
802 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_sniff_mode()
803 UINT16_TO_STREAM(pp, max_sniff_period); in btsnd_hcic_sniff_mode()
804 UINT16_TO_STREAM(pp, min_sniff_period); in btsnd_hcic_sniff_mode()
805 UINT16_TO_STREAM(pp, sniff_attempt); in btsnd_hcic_sniff_mode()
806 UINT16_TO_STREAM(pp, sniff_timeout); in btsnd_hcic_sniff_mode()
813 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_sniff_mode() local
818 UINT16_TO_STREAM(pp, HCI_EXIT_SNIFF_MODE); in btsnd_hcic_exit_sniff_mode()
819 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_sniff_mode()
821 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_exit_sniff_mode()
829 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_park_mode() local
834 UINT16_TO_STREAM(pp, HCI_PARK_MODE); in btsnd_hcic_park_mode()
835 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PARK_MODE); in btsnd_hcic_park_mode()
837 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_park_mode()
838 UINT16_TO_STREAM(pp, beacon_max_interval); in btsnd_hcic_park_mode()
839 UINT16_TO_STREAM(pp, beacon_min_interval); in btsnd_hcic_park_mode()
846 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_park_mode() local
851 UINT16_TO_STREAM(pp, HCI_EXIT_PARK_MODE); in btsnd_hcic_exit_park_mode()
852 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_park_mode()
854 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_exit_park_mode()
861 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_switch_role() local
866 UINT16_TO_STREAM(pp, HCI_SWITCH_ROLE); in btsnd_hcic_switch_role()
867 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SWITCH_ROLE); in btsnd_hcic_switch_role()
869 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_switch_role()
870 UINT8_TO_STREAM(pp, role); in btsnd_hcic_switch_role()
877 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_policy_set() local
881 UINT16_TO_STREAM(pp, HCI_WRITE_POLICY_SETTINGS); in btsnd_hcic_write_policy_set()
882 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_POLICY_SET); in btsnd_hcic_write_policy_set()
884 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_policy_set()
885 UINT16_TO_STREAM(pp, settings); in btsnd_hcic_write_policy_set()
892 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_def_policy_set() local
896 UINT16_TO_STREAM(pp, HCI_WRITE_DEF_POLICY_SETTINGS); in btsnd_hcic_write_def_policy_set()
897 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET); in btsnd_hcic_write_def_policy_set()
899 UINT16_TO_STREAM(pp, settings); in btsnd_hcic_write_def_policy_set()
907 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_set_event_filter() local
911 UINT16_TO_STREAM(pp, HCI_SET_EVENT_FILTER); in btsnd_hcic_set_event_filter()
915 UINT8_TO_STREAM(pp, (uint8_t)(2 + filt_cond_len)); in btsnd_hcic_set_event_filter()
917 UINT8_TO_STREAM(pp, filt_type); in btsnd_hcic_set_event_filter()
918 UINT8_TO_STREAM(pp, filt_cond_type); in btsnd_hcic_set_event_filter()
921 DEVCLASS_TO_STREAM(pp, filt_cond); in btsnd_hcic_set_event_filter()
923 DEVCLASS_TO_STREAM(pp, filt_cond); in btsnd_hcic_set_event_filter()
928 BDADDR_TO_STREAM(pp, *((RawAddress*)filt_cond)); in btsnd_hcic_set_event_filter()
934 if (filt_cond_len) ARRAY_TO_STREAM(pp, filt_cond, filt_cond_len); in btsnd_hcic_set_event_filter()
937 UINT8_TO_STREAM(pp, 1); in btsnd_hcic_set_event_filter()
939 UINT8_TO_STREAM(pp, filt_type); in btsnd_hcic_set_event_filter()
947 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pin_type() local
952 UINT16_TO_STREAM(pp, HCI_WRITE_PIN_TYPE); in btsnd_hcic_write_pin_type()
953 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pin_type()
955 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_pin_type()
963 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_delete_stored_key() local
968 UINT16_TO_STREAM(pp, HCI_DELETE_STORED_LINK_KEY); in btsnd_hcic_delete_stored_key()
969 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DELETE_STORED_KEY); in btsnd_hcic_delete_stored_key()
971 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_delete_stored_key()
972 UINT8_TO_STREAM(pp, delete_all_flag); in btsnd_hcic_delete_stored_key()
979 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_change_name() local
982 memset(pp, 0, HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
987 UINT16_TO_STREAM(pp, HCI_CHANGE_LOCAL_NAME); in btsnd_hcic_change_name()
988 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
992 ARRAY_TO_STREAM(pp, name, len); in btsnd_hcic_change_name()
999 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_name() local
1004 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_NAME); in btsnd_hcic_read_name()
1005 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_name()
1012 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_page_tout() local
1017 UINT16_TO_STREAM(pp, HCI_WRITE_PAGE_TOUT); in btsnd_hcic_write_page_tout()
1018 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_page_tout()
1020 UINT16_TO_STREAM(pp, timeout); in btsnd_hcic_write_page_tout()
1027 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_scan_enable() local
1032 UINT16_TO_STREAM(pp, HCI_WRITE_SCAN_ENABLE); in btsnd_hcic_write_scan_enable()
1033 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_scan_enable()
1035 UINT8_TO_STREAM(pp, flag); in btsnd_hcic_write_scan_enable()
1042 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pagescan_cfg() local
1047 UINT16_TO_STREAM(pp, HCI_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
1048 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
1050 UINT16_TO_STREAM(pp, interval); in btsnd_hcic_write_pagescan_cfg()
1051 UINT16_TO_STREAM(pp, window); in btsnd_hcic_write_pagescan_cfg()
1058 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inqscan_cfg() local
1063 UINT16_TO_STREAM(pp, HCI_WRITE_INQUIRYSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
1064 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
1066 UINT16_TO_STREAM(pp, interval); in btsnd_hcic_write_inqscan_cfg()
1067 UINT16_TO_STREAM(pp, window); in btsnd_hcic_write_inqscan_cfg()
1074 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_auth_enable() local
1079 UINT16_TO_STREAM(pp, HCI_WRITE_AUTHENTICATION_ENABLE); in btsnd_hcic_write_auth_enable()
1080 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_auth_enable()
1082 UINT8_TO_STREAM(pp, flag); in btsnd_hcic_write_auth_enable()
1089 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_dev_class() local
1094 UINT16_TO_STREAM(pp, HCI_WRITE_CLASS_OF_DEVICE); in btsnd_hcic_write_dev_class()
1095 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM3); in btsnd_hcic_write_dev_class()
1097 DEVCLASS_TO_STREAM(pp, dev_class); in btsnd_hcic_write_dev_class()
1104 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_voice_settings() local
1109 UINT16_TO_STREAM(pp, HCI_WRITE_VOICE_SETTINGS); in btsnd_hcic_write_voice_settings()
1110 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_voice_settings()
1112 UINT16_TO_STREAM(pp, flags); in btsnd_hcic_write_voice_settings()
1119 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_auto_flush_tout() local
1124 UINT16_TO_STREAM(pp, HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_write_auto_flush_tout()
1125 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_write_auto_flush_tout()
1127 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_auto_flush_tout()
1128 UINT16_TO_STREAM(pp, tout); in btsnd_hcic_write_auto_flush_tout()
1135 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_tx_power() local
1140 UINT16_TO_STREAM(pp, HCI_READ_TRANSMIT_POWER_LEVEL); in btsnd_hcic_read_tx_power()
1141 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_TX_POWER); in btsnd_hcic_read_tx_power()
1143 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_tx_power()
1144 UINT8_TO_STREAM(pp, type); in btsnd_hcic_read_tx_power()
1151 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_link_super_tout() local
1156 UINT16_TO_STREAM(pp, HCI_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
1157 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
1159 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_link_super_tout()
1160 UINT16_TO_STREAM(pp, timeout); in btsnd_hcic_write_link_super_tout()
1167 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_cur_iac_lap() local
1172 UINT16_TO_STREAM(pp, HCI_WRITE_CURRENT_IAC_LAP); in btsnd_hcic_write_cur_iac_lap()
1173 UINT8_TO_STREAM(pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_cur_iac_lap()
1175 UINT8_TO_STREAM(pp, num_cur_iac); in btsnd_hcic_write_cur_iac_lap()
1177 for (int i = 0; i < num_cur_iac; i++) LAP_TO_STREAM(pp, iac_lap[i]); in btsnd_hcic_write_cur_iac_lap()
1189 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_sniff_sub_rate() local
1194 UINT16_TO_STREAM(pp, HCI_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
1195 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
1197 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_sniff_sub_rate()
1198 UINT16_TO_STREAM(pp, max_lat); in btsnd_hcic_sniff_sub_rate()
1199 UINT16_TO_STREAM(pp, min_remote_lat); in btsnd_hcic_sniff_sub_rate()
1200 UINT16_TO_STREAM(pp, min_local_lat); in btsnd_hcic_sniff_sub_rate()
1208 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_ext_inquiry_response() local
1213 UINT16_TO_STREAM(pp, HCI_WRITE_EXT_INQ_RESPONSE); in btsnd_hcic_write_ext_inquiry_response()
1214 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXT_INQ_RESP); in btsnd_hcic_write_ext_inquiry_response()
1216 UINT8_TO_STREAM(pp, fec_req); in btsnd_hcic_write_ext_inquiry_response()
1224 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_io_cap_req_reply() local
1229 UINT16_TO_STREAM(pp, HCI_IO_CAPABILITY_REQUEST_REPLY); in btsnd_hcic_io_cap_req_reply()
1230 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_IO_CAP_RESP); in btsnd_hcic_io_cap_req_reply()
1232 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_io_cap_req_reply()
1233 UINT8_TO_STREAM(pp, capability); in btsnd_hcic_io_cap_req_reply()
1234 UINT8_TO_STREAM(pp, oob_present); in btsnd_hcic_io_cap_req_reply()
1235 UINT8_TO_STREAM(pp, auth_req); in btsnd_hcic_io_cap_req_reply()
1243 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_set_up_synchronous_connection() local
1248 UINT16_TO_STREAM(pp, HCI_ENH_SETUP_ESCO_CONNECTION); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1249 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_SET_ESCO_CONN); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1251 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1252 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1253 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1254 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1255 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1256 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_set_up_synchronous_connection()
1258 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1259 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1260 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_set_up_synchronous_connection()
1262 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1263 UINT16_TO_STREAM(pp, p_params->receive_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1264 UINT32_TO_STREAM(pp, p_params->input_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1265 UINT32_TO_STREAM(pp, p_params->output_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1266 UINT8_TO_STREAM(pp, p_params->input_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1267 UINT16_TO_STREAM(pp, p_params->input_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1268 UINT16_TO_STREAM(pp, p_params->input_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1269 UINT8_TO_STREAM(pp, p_params->output_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1270 UINT16_TO_STREAM(pp, p_params->output_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1271 UINT16_TO_STREAM(pp, p_params->output_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1272 UINT16_TO_STREAM(pp, p_params->input_coded_data_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1273 UINT16_TO_STREAM(pp, p_params->output_coded_data_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1274 UINT8_TO_STREAM(pp, p_params->input_pcm_data_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1275 UINT8_TO_STREAM(pp, p_params->output_pcm_data_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1276 UINT8_TO_STREAM(pp, p_params->input_pcm_payload_msb_position); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1277 UINT8_TO_STREAM(pp, p_params->output_pcm_payload_msb_position); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1278 UINT8_TO_STREAM(pp, p_params->input_data_path); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1279 UINT8_TO_STREAM(pp, p_params->output_data_path); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1280 UINT8_TO_STREAM(pp, p_params->input_transport_unit_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1281 UINT8_TO_STREAM(pp, p_params->output_transport_unit_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1282 UINT16_TO_STREAM(pp, p_params->max_latency_ms); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1283 UINT16_TO_STREAM(pp, p_params->packet_types); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1284 UINT8_TO_STREAM(pp, p_params->retransmission_effort); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1292 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_accept_synchronous_connection() local
1297 UINT16_TO_STREAM(pp, HCI_ENH_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_enhanced_accept_synchronous_connection()
1298 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_ACC_ESCO_CONN); in btsnd_hcic_enhanced_accept_synchronous_connection()
1300 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_enhanced_accept_synchronous_connection()
1301 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1302 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1303 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1304 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1305 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_accept_synchronous_connection()
1307 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1308 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1309 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_accept_synchronous_connection()
1311 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1312 UINT16_TO_STREAM(pp, p_params->receive_codec_frame_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1313 UINT32_TO_STREAM(pp, p_params->input_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1314 UINT32_TO_STREAM(pp, p_params->output_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1315 UINT8_TO_STREAM(pp, p_params->input_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1316 UINT16_TO_STREAM(pp, p_params->input_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1317 UINT16_TO_STREAM(pp, p_params->input_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1318 UINT8_TO_STREAM(pp, p_params->output_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1319 UINT16_TO_STREAM(pp, p_params->output_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1320 UINT16_TO_STREAM(pp, p_params->output_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1321 UINT16_TO_STREAM(pp, p_params->input_coded_data_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1322 UINT16_TO_STREAM(pp, p_params->output_coded_data_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1323 UINT8_TO_STREAM(pp, p_params->input_pcm_data_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1324 UINT8_TO_STREAM(pp, p_params->output_pcm_data_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1325 UINT8_TO_STREAM(pp, p_params->input_pcm_payload_msb_position); in btsnd_hcic_enhanced_accept_synchronous_connection()
1326 UINT8_TO_STREAM(pp, p_params->output_pcm_payload_msb_position); in btsnd_hcic_enhanced_accept_synchronous_connection()
1327 UINT8_TO_STREAM(pp, p_params->input_data_path); in btsnd_hcic_enhanced_accept_synchronous_connection()
1328 UINT8_TO_STREAM(pp, p_params->output_data_path); in btsnd_hcic_enhanced_accept_synchronous_connection()
1329 UINT8_TO_STREAM(pp, p_params->input_transport_unit_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1330 UINT8_TO_STREAM(pp, p_params->output_transport_unit_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1331 UINT16_TO_STREAM(pp, p_params->max_latency_ms); in btsnd_hcic_enhanced_accept_synchronous_connection()
1332 UINT16_TO_STREAM(pp, p_params->packet_types); in btsnd_hcic_enhanced_accept_synchronous_connection()
1333 UINT8_TO_STREAM(pp, p_params->retransmission_effort); in btsnd_hcic_enhanced_accept_synchronous_connection()
1341 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_io_cap_req_neg_reply() local
1346 UINT16_TO_STREAM(pp, HCI_IO_CAP_REQ_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
1347 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
1349 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_io_cap_req_neg_reply()
1350 UINT8_TO_STREAM(pp, err_code); in btsnd_hcic_io_cap_req_neg_reply()
1357 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_local_oob_data() local
1362 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_OOB_DATA); in btsnd_hcic_read_local_oob_data()
1363 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_R_LOCAL_OOB); in btsnd_hcic_read_local_oob_data()
1370 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_local_oob_extended_data() local
1375 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_OOB_EXTENDED_DATA); in btsnd_hcic_read_local_oob_extended_data()
1376 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_R_LOCAL_OOB_EXTENDED); in btsnd_hcic_read_local_oob_extended_data()
1383 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_conf_reply() local
1390 UINT16_TO_STREAM(pp, HCI_USER_CONF_VALUE_NEG_REPLY); in btsnd_hcic_user_conf_reply()
1393 UINT16_TO_STREAM(pp, HCI_USER_CONF_REQUEST_REPLY); in btsnd_hcic_user_conf_reply()
1396 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_UCONF_REPLY); in btsnd_hcic_user_conf_reply()
1398 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_conf_reply()
1405 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_passkey_reply() local
1410 UINT16_TO_STREAM(pp, HCI_USER_PASSKEY_REQ_REPLY); in btsnd_hcic_user_passkey_reply()
1411 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_U_PKEY_REPLY); in btsnd_hcic_user_passkey_reply()
1413 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_passkey_reply()
1414 UINT32_TO_STREAM(pp, value); in btsnd_hcic_user_passkey_reply()
1421 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_passkey_neg_reply() local
1426 UINT16_TO_STREAM(pp, HCI_USER_PASSKEY_REQ_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
1427 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
1429 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_passkey_neg_reply()
1437 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rem_oob_reply() local
1442 UINT16_TO_STREAM(pp, HCI_REM_OOB_DATA_REQ_REPLY); in btsnd_hcic_rem_oob_reply()
1443 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REM_OOB_REPLY); in btsnd_hcic_rem_oob_reply()
1445 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rem_oob_reply()
1446 ARRAY16_TO_STREAM(pp, c.data()); in btsnd_hcic_rem_oob_reply()
1447 ARRAY16_TO_STREAM(pp, r.data()); in btsnd_hcic_rem_oob_reply()
1454 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rem_oob_neg_reply() local
1459 UINT16_TO_STREAM(pp, HCI_REM_OOB_DATA_REQ_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
1460 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
1462 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rem_oob_neg_reply()
1475 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_rssi() local
1480 UINT16_TO_STREAM(pp, HCI_READ_RSSI); in btsnd_hcic_read_rssi()
1481 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rssi()
1483 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_rssi()
1515 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_failed_contact_counter() local
1520 UINT16_TO_STREAM(pp, HCI_READ_FAILED_CONTACT_COUNTER); in btsnd_hcic_read_failed_contact_counter()
1521 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_failed_contact_counter()
1523 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_failed_contact_counter()
1530 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enable_test_mode() local
1535 UINT16_TO_STREAM(pp, HCI_ENABLE_DEV_UNDER_TEST_MODE); in btsnd_hcic_enable_test_mode()
1536 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_enable_test_mode()
1543 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inqscan_type() local
1548 UINT16_TO_STREAM(pp, HCI_WRITE_INQSCAN_TYPE); in btsnd_hcic_write_inqscan_type()
1549 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inqscan_type()
1551 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_inqscan_type()
1558 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inquiry_mode() local
1563 UINT16_TO_STREAM(pp, HCI_WRITE_INQUIRY_MODE); in btsnd_hcic_write_inquiry_mode()
1564 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inquiry_mode()
1566 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_write_inquiry_mode()
1573 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pagescan_type() local
1578 UINT16_TO_STREAM(pp, HCI_WRITE_PAGESCAN_TYPE); in btsnd_hcic_write_pagescan_type()
1579 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pagescan_type()
1581 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_pagescan_type()
1614 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_configure_data_path() local
1619 UINT16_TO_STREAM(pp, HCI_CONFIGURE_DATA_PATH); in btsnd_hcic_configure_data_path()
1620 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CONFIGURE_DATA_PATH + size); in btsnd_hcic_configure_data_path()
1621 UINT8_TO_STREAM(pp, data_path_direction); in btsnd_hcic_configure_data_path()
1622 UINT8_TO_STREAM(pp, data_path_id); in btsnd_hcic_configure_data_path()
1623 UINT8_TO_STREAM(pp, vendor_config.size()); in btsnd_hcic_configure_data_path()
1625 ARRAY_TO_STREAM(pp, vendor_config.data(), size); in btsnd_hcic_configure_data_path()