• Home
  • Raw
  • Download

Lines Matching refs:pp

46     UINT8 *pp;  in btsnd_hcic_inquiry()  local
51 pp = (UINT8 *)(p + 1); in btsnd_hcic_inquiry()
56 UINT16_TO_STREAM (pp, HCI_INQUIRY); in btsnd_hcic_inquiry()
57 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_INQUIRY); in btsnd_hcic_inquiry()
59 LAP_TO_STREAM (pp, inq_lap); in btsnd_hcic_inquiry()
60 UINT8_TO_STREAM (pp, duration); in btsnd_hcic_inquiry()
61 UINT8_TO_STREAM (pp, response_cnt); in btsnd_hcic_inquiry()
70 UINT8 *pp; in btsnd_hcic_inq_cancel() local
75 pp = (UINT8 *)(p + 1); in btsnd_hcic_inq_cancel()
79 UINT16_TO_STREAM (pp, HCI_INQUIRY_CANCEL); in btsnd_hcic_inq_cancel()
80 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_INQ_CANCEL); in btsnd_hcic_inq_cancel()
90 UINT8 *pp; in btsnd_hcic_per_inq_mode() local
95 pp = (UINT8 *)(p + 1); in btsnd_hcic_per_inq_mode()
100 UINT16_TO_STREAM (pp, HCI_PERIODIC_INQUIRY_MODE); in btsnd_hcic_per_inq_mode()
101 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_PER_INQ_MODE); in btsnd_hcic_per_inq_mode()
103 UINT16_TO_STREAM (pp, max_period); in btsnd_hcic_per_inq_mode()
104 UINT16_TO_STREAM (pp, min_period); in btsnd_hcic_per_inq_mode()
105 LAP_TO_STREAM (pp, inq_lap); in btsnd_hcic_per_inq_mode()
106 UINT8_TO_STREAM (pp, duration); in btsnd_hcic_per_inq_mode()
107 UINT8_TO_STREAM (pp, response_cnt); in btsnd_hcic_per_inq_mode()
116 UINT8 *pp; in btsnd_hcic_exit_per_inq() local
121 pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_per_inq()
125 UINT16_TO_STREAM (pp, HCI_EXIT_PERIODIC_INQUIRY_MODE); in btsnd_hcic_exit_per_inq()
126 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_EXIT_PER_INQ); in btsnd_hcic_exit_per_inq()
138 UINT8 *pp; in btsnd_hcic_create_conn() local
143 pp = (UINT8 *)(p + 1); in btsnd_hcic_create_conn()
152 UINT16_TO_STREAM (pp, HCI_CREATE_CONNECTION); in btsnd_hcic_create_conn()
154 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CREATE_CONN); in btsnd_hcic_create_conn()
156 UINT8_TO_STREAM (pp, (HCIC_PARAM_SIZE_CREATE_CONN - 1)); in btsnd_hcic_create_conn()
158 BDADDR_TO_STREAM (pp, dest); in btsnd_hcic_create_conn()
159 UINT16_TO_STREAM (pp, packet_types); in btsnd_hcic_create_conn()
160 UINT8_TO_STREAM (pp, page_scan_rep_mode); in btsnd_hcic_create_conn()
161 UINT8_TO_STREAM (pp, page_scan_mode); in btsnd_hcic_create_conn()
162 UINT16_TO_STREAM (pp, clock_offset); in btsnd_hcic_create_conn()
164 UINT8_TO_STREAM (pp, allow_switch); in btsnd_hcic_create_conn()
178 UINT8 *pp; in btsnd_hcic_disconnect() local
183 pp = (UINT8 *)(p + 1); in btsnd_hcic_disconnect()
188 UINT16_TO_STREAM (pp, HCI_DISCONNECT); in btsnd_hcic_disconnect()
189 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_DISCONNECT); in btsnd_hcic_disconnect()
190 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_disconnect()
191 UINT8_TO_STREAM (pp, reason); in btsnd_hcic_disconnect()
207 UINT8 *pp; in btsnd_hcic_add_SCO_conn() local
212 pp = (UINT8 *)(p + 1); in btsnd_hcic_add_SCO_conn()
217 UINT16_TO_STREAM (pp, HCI_ADD_SCO_CONNECTION); in btsnd_hcic_add_SCO_conn()
218 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_ADD_SCO_CONN); in btsnd_hcic_add_SCO_conn()
220 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_add_SCO_conn()
221 UINT16_TO_STREAM (pp, packet_types); in btsnd_hcic_add_SCO_conn()
231 UINT8 *pp; in btsnd_hcic_create_conn_cancel() local
236 pp = (UINT8 *)(p + 1); in btsnd_hcic_create_conn_cancel()
241 UINT16_TO_STREAM (pp, HCI_CREATE_CONNECTION_CANCEL); in btsnd_hcic_create_conn_cancel()
242 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CREATE_CONN_CANCEL); in btsnd_hcic_create_conn_cancel()
244 BDADDR_TO_STREAM (pp, dest); in btsnd_hcic_create_conn_cancel()
253 UINT8 *pp; in btsnd_hcic_accept_conn() local
258 pp = (UINT8 *)(p + 1); in btsnd_hcic_accept_conn()
263 UINT16_TO_STREAM (pp, HCI_ACCEPT_CONNECTION_REQUEST); in btsnd_hcic_accept_conn()
264 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_ACCEPT_CONN); in btsnd_hcic_accept_conn()
265 BDADDR_TO_STREAM (pp, dest); in btsnd_hcic_accept_conn()
266 UINT8_TO_STREAM (pp, role); in btsnd_hcic_accept_conn()
275 UINT8 *pp; in btsnd_hcic_reject_conn() local
280 pp = (UINT8 *)(p + 1); in btsnd_hcic_reject_conn()
285 UINT16_TO_STREAM (pp, HCI_REJECT_CONNECTION_REQUEST); in btsnd_hcic_reject_conn()
286 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_REJECT_CONN); in btsnd_hcic_reject_conn()
288 BDADDR_TO_STREAM (pp, dest); in btsnd_hcic_reject_conn()
289 UINT8_TO_STREAM (pp, reason); in btsnd_hcic_reject_conn()
298 UINT8 *pp; in btsnd_hcic_link_key_req_reply() local
303 pp = (UINT8 *)(p + 1); in btsnd_hcic_link_key_req_reply()
308 UINT16_TO_STREAM (pp, HCI_LINK_KEY_REQUEST_REPLY); in btsnd_hcic_link_key_req_reply()
309 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY); in btsnd_hcic_link_key_req_reply()
311 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_link_key_req_reply()
312 ARRAY16_TO_STREAM (pp, link_key); in btsnd_hcic_link_key_req_reply()
321 UINT8 *pp; in btsnd_hcic_link_key_neg_reply() local
326 pp = (UINT8 *)(p + 1); in btsnd_hcic_link_key_neg_reply()
331 UINT16_TO_STREAM (pp, HCI_LINK_KEY_REQUEST_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
332 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
334 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_link_key_neg_reply()
344 UINT8 *pp; in btsnd_hcic_pin_code_req_reply() local
350 pp = (UINT8 *)(p + 1); in btsnd_hcic_pin_code_req_reply()
355 UINT16_TO_STREAM (pp, HCI_PIN_CODE_REQUEST_REPLY); in btsnd_hcic_pin_code_req_reply()
356 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY); in btsnd_hcic_pin_code_req_reply()
358 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_pin_code_req_reply()
359 UINT8_TO_STREAM (pp, pin_code_len); in btsnd_hcic_pin_code_req_reply()
362 *pp++ = *pin_code++; in btsnd_hcic_pin_code_req_reply()
365 *pp++ = 0; in btsnd_hcic_pin_code_req_reply()
375 UINT8 *pp; in btsnd_hcic_pin_code_neg_reply() local
380 pp = (UINT8 *)(p + 1); in btsnd_hcic_pin_code_neg_reply()
385 UINT16_TO_STREAM (pp, HCI_PIN_CODE_REQUEST_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
386 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
388 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_pin_code_neg_reply()
397 UINT8 *pp; in btsnd_hcic_change_conn_type() local
402 pp = (UINT8 *)(p + 1); in btsnd_hcic_change_conn_type()
407 UINT16_TO_STREAM (pp, HCI_CHANGE_CONN_PACKET_TYPE); in btsnd_hcic_change_conn_type()
408 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CHANGE_CONN_TYPE); in btsnd_hcic_change_conn_type()
410 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_change_conn_type()
411 UINT16_TO_STREAM (pp, packet_types); in btsnd_hcic_change_conn_type()
420 UINT8 *pp; in btsnd_hcic_auth_request() local
425 pp = (UINT8 *)(p + 1); in btsnd_hcic_auth_request()
430 UINT16_TO_STREAM (pp, HCI_AUTHENTICATION_REQUESTED); in btsnd_hcic_auth_request()
431 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_auth_request()
433 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_auth_request()
442 UINT8 *pp; in btsnd_hcic_set_conn_encrypt() local
447 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_conn_encrypt()
452 UINT16_TO_STREAM (pp, HCI_SET_CONN_ENCRYPTION); in btsnd_hcic_set_conn_encrypt()
453 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_CONN_ENCRYPT); in btsnd_hcic_set_conn_encrypt()
455 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_set_conn_encrypt()
456 UINT8_TO_STREAM (pp, enable); in btsnd_hcic_set_conn_encrypt()
465 UINT8 *pp; in btsnd_hcic_change_link_key() local
470 pp = (UINT8 *)(p + 1); in btsnd_hcic_change_link_key()
475 UINT16_TO_STREAM (pp, HCI_CHANGE_CONN_LINK_KEY); in btsnd_hcic_change_link_key()
476 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_change_link_key()
478 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_change_link_key()
487 UINT8 *pp; in btsnd_hcic_master_link_key() local
492 pp = (UINT8 *)(p + 1); in btsnd_hcic_master_link_key()
497 UINT16_TO_STREAM (pp, HCI_MASTER_LINK_KEY); in btsnd_hcic_master_link_key()
498 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_MASTER_LINK_KEY); in btsnd_hcic_master_link_key()
500 UINT8_TO_STREAM (pp, key_flag); in btsnd_hcic_master_link_key()
510 UINT8 *pp; in btsnd_hcic_rmt_name_req() local
515 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_name_req()
520 UINT16_TO_STREAM (pp, HCI_RMT_NAME_REQUEST); in btsnd_hcic_rmt_name_req()
521 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_RMT_NAME_REQ); in btsnd_hcic_rmt_name_req()
523 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_rmt_name_req()
524 UINT8_TO_STREAM (pp, page_scan_rep_mode); in btsnd_hcic_rmt_name_req()
525 UINT8_TO_STREAM (pp, page_scan_mode); in btsnd_hcic_rmt_name_req()
526 UINT16_TO_STREAM (pp, clock_offset); in btsnd_hcic_rmt_name_req()
540 UINT8 *pp; in btsnd_hcic_rmt_name_req_cancel() local
545 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_name_req_cancel()
550 UINT16_TO_STREAM (pp, HCI_RMT_NAME_REQUEST_CANCEL); in btsnd_hcic_rmt_name_req_cancel()
551 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_RMT_NAME_REQ_CANCEL); in btsnd_hcic_rmt_name_req_cancel()
553 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_rmt_name_req_cancel()
562 UINT8 *pp; in btsnd_hcic_rmt_features_req() local
567 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_features_req()
572 UINT16_TO_STREAM (pp, HCI_READ_RMT_FEATURES); in btsnd_hcic_rmt_features_req()
573 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_features_req()
575 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_rmt_features_req()
584 UINT8 *pp; in btsnd_hcic_rmt_ext_features() local
589 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_ext_features()
594 UINT16_TO_STREAM (pp, HCI_READ_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
595 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
597 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_rmt_ext_features()
598 UINT8_TO_STREAM (pp, page_num); in btsnd_hcic_rmt_ext_features()
607 UINT8 *pp; in btsnd_hcic_rmt_ver_req() local
612 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_ver_req()
617 UINT16_TO_STREAM (pp, HCI_READ_RMT_VERSION_INFO); in btsnd_hcic_rmt_ver_req()
618 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_ver_req()
620 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_rmt_ver_req()
629 UINT8 *pp; in btsnd_hcic_read_rmt_clk_offset() local
634 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_rmt_clk_offset()
639 UINT16_TO_STREAM (pp, HCI_READ_RMT_CLOCK_OFFSET); in btsnd_hcic_read_rmt_clk_offset()
640 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rmt_clk_offset()
642 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_rmt_clk_offset()
651 UINT8 *pp; in btsnd_hcic_read_lmp_handle() local
656 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_lmp_handle()
661 UINT16_TO_STREAM (pp, HCI_READ_LMP_HANDLE); in btsnd_hcic_read_lmp_handle()
662 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_lmp_handle()
664 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_lmp_handle()
675 UINT8 *pp; in btsnd_hcic_setup_esco_conn() local
680 pp = (UINT8 *)(p + 1); in btsnd_hcic_setup_esco_conn()
685 UINT16_TO_STREAM (pp, HCI_SETUP_ESCO_CONNECTION); in btsnd_hcic_setup_esco_conn()
686 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SETUP_ESCO); in btsnd_hcic_setup_esco_conn()
688 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_setup_esco_conn()
689 UINT32_TO_STREAM (pp, tx_bw); in btsnd_hcic_setup_esco_conn()
690 UINT32_TO_STREAM (pp, rx_bw); in btsnd_hcic_setup_esco_conn()
691 UINT16_TO_STREAM (pp, max_latency); in btsnd_hcic_setup_esco_conn()
692 UINT16_TO_STREAM (pp, voice); in btsnd_hcic_setup_esco_conn()
693 UINT8_TO_STREAM (pp, retrans_effort); in btsnd_hcic_setup_esco_conn()
694 UINT16_TO_STREAM (pp, packet_types); in btsnd_hcic_setup_esco_conn()
706 UINT8 *pp; in btsnd_hcic_accept_esco_conn() local
711 pp = (UINT8 *)(p + 1); in btsnd_hcic_accept_esco_conn()
716 UINT16_TO_STREAM (pp, HCI_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_accept_esco_conn()
717 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_ACCEPT_ESCO); in btsnd_hcic_accept_esco_conn()
719 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_accept_esco_conn()
720 UINT32_TO_STREAM (pp, tx_bw); in btsnd_hcic_accept_esco_conn()
721 UINT32_TO_STREAM (pp, rx_bw); in btsnd_hcic_accept_esco_conn()
722 UINT16_TO_STREAM (pp, max_latency); in btsnd_hcic_accept_esco_conn()
723 UINT16_TO_STREAM (pp, content_fmt); in btsnd_hcic_accept_esco_conn()
724 UINT8_TO_STREAM (pp, retrans_effort); in btsnd_hcic_accept_esco_conn()
725 UINT16_TO_STREAM (pp, packet_types); in btsnd_hcic_accept_esco_conn()
734 UINT8 *pp; in btsnd_hcic_reject_esco_conn() local
739 pp = (UINT8 *)(p + 1); in btsnd_hcic_reject_esco_conn()
744 UINT16_TO_STREAM (pp, HCI_REJECT_ESCO_CONNECTION); in btsnd_hcic_reject_esco_conn()
745 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_REJECT_ESCO); in btsnd_hcic_reject_esco_conn()
747 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_reject_esco_conn()
748 UINT8_TO_STREAM (pp, reason); in btsnd_hcic_reject_esco_conn()
758 UINT8 *pp; in btsnd_hcic_hold_mode() local
763 pp = (UINT8 *)(p + 1); in btsnd_hcic_hold_mode()
768 UINT16_TO_STREAM (pp, HCI_HOLD_MODE); in btsnd_hcic_hold_mode()
769 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_HOLD_MODE); in btsnd_hcic_hold_mode()
771 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_hold_mode()
772 UINT16_TO_STREAM (pp, max_hold_period); in btsnd_hcic_hold_mode()
773 UINT16_TO_STREAM (pp, min_hold_period); in btsnd_hcic_hold_mode()
784 UINT8 *pp; in btsnd_hcic_sniff_mode() local
789 pp = (UINT8 *)(p + 1); in btsnd_hcic_sniff_mode()
794 UINT16_TO_STREAM (pp, HCI_SNIFF_MODE); in btsnd_hcic_sniff_mode()
795 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SNIFF_MODE); in btsnd_hcic_sniff_mode()
797 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_sniff_mode()
798 UINT16_TO_STREAM (pp, max_sniff_period); in btsnd_hcic_sniff_mode()
799 UINT16_TO_STREAM (pp, min_sniff_period); in btsnd_hcic_sniff_mode()
800 UINT16_TO_STREAM (pp, sniff_attempt); in btsnd_hcic_sniff_mode()
801 UINT16_TO_STREAM (pp, sniff_timeout); in btsnd_hcic_sniff_mode()
810 UINT8 *pp; in btsnd_hcic_exit_sniff_mode() local
815 pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_sniff_mode()
820 UINT16_TO_STREAM (pp, HCI_EXIT_SNIFF_MODE); in btsnd_hcic_exit_sniff_mode()
821 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_sniff_mode()
823 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_exit_sniff_mode()
833 UINT8 *pp; in btsnd_hcic_park_mode() local
838 pp = (UINT8 *)(p + 1); in btsnd_hcic_park_mode()
843 UINT16_TO_STREAM (pp, HCI_PARK_MODE); in btsnd_hcic_park_mode()
844 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_PARK_MODE); in btsnd_hcic_park_mode()
846 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_park_mode()
847 UINT16_TO_STREAM (pp, beacon_max_interval); in btsnd_hcic_park_mode()
848 UINT16_TO_STREAM (pp, beacon_min_interval); in btsnd_hcic_park_mode()
857 UINT8 *pp; in btsnd_hcic_exit_park_mode() local
862 pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_park_mode()
867 UINT16_TO_STREAM (pp, HCI_EXIT_PARK_MODE); in btsnd_hcic_exit_park_mode()
868 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_park_mode()
870 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_exit_park_mode()
881 UINT8 *pp; in btsnd_hcic_qos_setup() local
886 pp = (UINT8 *)(p + 1); in btsnd_hcic_qos_setup()
891 UINT16_TO_STREAM (pp, HCI_QOS_SETUP); in btsnd_hcic_qos_setup()
892 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_QOS_SETUP); in btsnd_hcic_qos_setup()
894 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_qos_setup()
895 UINT8_TO_STREAM (pp, flags); in btsnd_hcic_qos_setup()
896 UINT8_TO_STREAM (pp, service_type); in btsnd_hcic_qos_setup()
897 UINT32_TO_STREAM (pp, token_rate); in btsnd_hcic_qos_setup()
898 UINT32_TO_STREAM (pp, peak); in btsnd_hcic_qos_setup()
899 UINT32_TO_STREAM (pp, latency); in btsnd_hcic_qos_setup()
900 UINT32_TO_STREAM (pp, delay_var); in btsnd_hcic_qos_setup()
909 UINT8 *pp; in btsnd_hcic_role_discovery() local
914 pp = (UINT8 *)(p + 1); in btsnd_hcic_role_discovery()
919 UINT16_TO_STREAM (pp, HCI_ROLE_DISCOVERY); in btsnd_hcic_role_discovery()
920 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_role_discovery()
922 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_role_discovery()
931 UINT8 *pp; in btsnd_hcic_switch_role() local
936 pp = (UINT8 *)(p + 1); in btsnd_hcic_switch_role()
941 UINT16_TO_STREAM (pp, HCI_SWITCH_ROLE); in btsnd_hcic_switch_role()
942 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SWITCH_ROLE); in btsnd_hcic_switch_role()
944 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_switch_role()
945 UINT8_TO_STREAM (pp, role); in btsnd_hcic_switch_role()
954 UINT8 *pp; in btsnd_hcic_read_policy_set() local
959 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_policy_set()
964 UINT16_TO_STREAM (pp, HCI_READ_POLICY_SETTINGS); in btsnd_hcic_read_policy_set()
965 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_policy_set()
967 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_policy_set()
976 UINT8 *pp; in btsnd_hcic_write_policy_set() local
981 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_policy_set()
985 UINT16_TO_STREAM (pp, HCI_WRITE_POLICY_SETTINGS); in btsnd_hcic_write_policy_set()
986 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_POLICY_SET); in btsnd_hcic_write_policy_set()
988 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_write_policy_set()
989 UINT16_TO_STREAM (pp, settings); in btsnd_hcic_write_policy_set()
998 UINT8 *pp; in btsnd_hcic_read_def_policy_set() local
1003 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_def_policy_set()
1008 UINT16_TO_STREAM (pp, HCI_READ_DEF_POLICY_SETTINGS); in btsnd_hcic_read_def_policy_set()
1009 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_DEF_POLICY_SET); in btsnd_hcic_read_def_policy_set()
1018 UINT8 *pp; in btsnd_hcic_write_def_policy_set() local
1023 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_def_policy_set()
1027 UINT16_TO_STREAM (pp, HCI_WRITE_DEF_POLICY_SETTINGS); in btsnd_hcic_write_def_policy_set()
1028 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET); in btsnd_hcic_write_def_policy_set()
1030 UINT16_TO_STREAM (pp, settings); in btsnd_hcic_write_def_policy_set()
1042 UINT8 *pp; in btsnd_hcic_flow_specification() local
1047 pp = (UINT8 *)(p + 1); in btsnd_hcic_flow_specification()
1052 UINT16_TO_STREAM (pp, HCI_FLOW_SPECIFICATION); in btsnd_hcic_flow_specification()
1053 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_FLOW_SPEC); in btsnd_hcic_flow_specification()
1055 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_flow_specification()
1056 UINT8_TO_STREAM (pp, flags); in btsnd_hcic_flow_specification()
1057 UINT8_TO_STREAM (pp, flow_direct); in btsnd_hcic_flow_specification()
1058 UINT8_TO_STREAM (pp, service_type); in btsnd_hcic_flow_specification()
1059 UINT32_TO_STREAM (pp, token_rate); in btsnd_hcic_flow_specification()
1060 UINT32_TO_STREAM (pp, token_bucket_size); in btsnd_hcic_flow_specification()
1061 UINT32_TO_STREAM (pp, peak); in btsnd_hcic_flow_specification()
1062 UINT32_TO_STREAM (pp, latency); in btsnd_hcic_flow_specification()
1071 UINT8 *pp; in btsnd_hcic_set_event_mask() local
1076 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_mask()
1081 UINT16_TO_STREAM (pp, HCI_SET_EVENT_MASK); in btsnd_hcic_set_event_mask()
1082 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_EVENT_MASK); in btsnd_hcic_set_event_mask()
1083 ARRAY8_TO_STREAM (pp, event_mask); in btsnd_hcic_set_event_mask()
1092 UINT8 *pp; in btsnd_hcic_set_event_mask_page_2() local
1097 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_mask_page_2()
1102 UINT16_TO_STREAM (pp, HCI_SET_EVENT_MASK_PAGE_2); in btsnd_hcic_set_event_mask_page_2()
1103 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_EVENT_MASK_PAGE_2); in btsnd_hcic_set_event_mask_page_2()
1104 ARRAY8_TO_STREAM (pp, event_mask); in btsnd_hcic_set_event_mask_page_2()
1113 UINT8 *pp; in btsnd_hcic_reset() local
1118 pp = (UINT8 *)(p + 1); in btsnd_hcic_reset()
1123 UINT16_TO_STREAM (pp, HCI_RESET); in btsnd_hcic_reset()
1124 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_RESET); in btsnd_hcic_reset()
1142 UINT8 *pp; in btsnd_hcic_set_event_filter() local
1148 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_filter()
1152 UINT16_TO_STREAM (pp, HCI_SET_EVENT_FILTER); in btsnd_hcic_set_event_filter()
1157 UINT8_TO_STREAM (pp, (UINT8)(2 + filt_cond_len)); in btsnd_hcic_set_event_filter()
1159 UINT8_TO_STREAM (pp, filt_type); in btsnd_hcic_set_event_filter()
1160 UINT8_TO_STREAM (pp, filt_cond_type); in btsnd_hcic_set_event_filter()
1164 DEVCLASS_TO_STREAM (pp, filt_cond); in btsnd_hcic_set_event_filter()
1166 DEVCLASS_TO_STREAM (pp, filt_cond); in btsnd_hcic_set_event_filter()
1173 BDADDR_TO_STREAM (pp, filt_cond); in btsnd_hcic_set_event_filter()
1180 ARRAY_TO_STREAM (pp, filt_cond, filt_cond_len); in btsnd_hcic_set_event_filter()
1185 UINT8_TO_STREAM (pp, 1); in btsnd_hcic_set_event_filter()
1187 UINT8_TO_STREAM (pp, filt_type); in btsnd_hcic_set_event_filter()
1197 UINT8 *pp; in btsnd_hcic_flush() local
1202 pp = (UINT8 *)(p + 1); in btsnd_hcic_flush()
1206 UINT16_TO_STREAM (pp, HCI_FLUSH); in btsnd_hcic_flush()
1207 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_flush()
1209 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_flush()
1218 UINT8 *pp; in btsnd_hcic_read_pin_type() local
1223 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_pin_type()
1228 UINT16_TO_STREAM (pp, HCI_READ_PIN_TYPE); in btsnd_hcic_read_pin_type()
1229 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_pin_type()
1238 UINT8 *pp; in btsnd_hcic_write_pin_type() local
1243 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pin_type()
1248 UINT16_TO_STREAM (pp, HCI_WRITE_PIN_TYPE); in btsnd_hcic_write_pin_type()
1249 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pin_type()
1251 UINT8_TO_STREAM (pp, type); in btsnd_hcic_write_pin_type()
1260 UINT8 *pp; in btsnd_hcic_new_unit_key() local
1265 pp = (UINT8 *)(p + 1); in btsnd_hcic_new_unit_key()
1270 UINT16_TO_STREAM (pp, HCI_CREATE_NEW_UNIT_KEY); in btsnd_hcic_new_unit_key()
1271 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_NEW_UNIT_KEY); in btsnd_hcic_new_unit_key()
1280 UINT8 *pp; in btsnd_hcic_read_stored_key() local
1285 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_stored_key()
1290 UINT16_TO_STREAM (pp, HCI_READ_STORED_LINK_KEY); in btsnd_hcic_read_stored_key()
1291 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_STORED_KEY); in btsnd_hcic_read_stored_key()
1293 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_read_stored_key()
1294 UINT8_TO_STREAM (pp, read_all_flag); in btsnd_hcic_read_stored_key()
1304 UINT8 *pp; in btsnd_hcic_write_stored_key() local
1310 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_stored_key()
1316 UINT16_TO_STREAM (pp, HCI_WRITE_STORED_LINK_KEY); in btsnd_hcic_write_stored_key()
1317 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_stored_key()
1322 UINT8_TO_STREAM (pp, num_keys); in btsnd_hcic_write_stored_key()
1326 BDADDR_TO_STREAM (pp, bd_addr[j]); in btsnd_hcic_write_stored_key()
1327 ARRAY16_TO_STREAM (pp, link_key[j]); in btsnd_hcic_write_stored_key()
1337 UINT8 *pp; in btsnd_hcic_delete_stored_key() local
1342 pp = (UINT8 *)(p + 1); in btsnd_hcic_delete_stored_key()
1347 UINT16_TO_STREAM (pp, HCI_DELETE_STORED_LINK_KEY); in btsnd_hcic_delete_stored_key()
1348 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_DELETE_STORED_KEY); in btsnd_hcic_delete_stored_key()
1350 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_delete_stored_key()
1351 UINT8_TO_STREAM (pp, delete_all_flag); in btsnd_hcic_delete_stored_key()
1360 UINT8 *pp; in btsnd_hcic_change_name() local
1366 pp = (UINT8 *)(p + 1); in btsnd_hcic_change_name()
1367 memset(pp, 0, HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
1372 UINT16_TO_STREAM (pp, HCI_CHANGE_LOCAL_NAME); in btsnd_hcic_change_name()
1373 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
1378 ARRAY_TO_STREAM (pp, name, len); in btsnd_hcic_change_name()
1387 UINT8 *pp; in btsnd_hcic_read_name() local
1392 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_name()
1397 UINT16_TO_STREAM (pp, HCI_READ_LOCAL_NAME); in btsnd_hcic_read_name()
1398 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_name()
1407 UINT8 *pp; in btsnd_hcic_read_conn_acc_tout() local
1412 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_conn_acc_tout()
1417 UINT16_TO_STREAM (pp, HCI_READ_CONN_ACCEPT_TOUT); in btsnd_hcic_read_conn_acc_tout()
1418 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_conn_acc_tout()
1427 UINT8 *pp; in btsnd_hcic_write_conn_acc_tout() local
1432 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_conn_acc_tout()
1437 UINT16_TO_STREAM (pp, HCI_WRITE_CONN_ACCEPT_TOUT); in btsnd_hcic_write_conn_acc_tout()
1438 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_conn_acc_tout()
1440 UINT16_TO_STREAM (pp, timeout); in btsnd_hcic_write_conn_acc_tout()
1449 UINT8 *pp; in btsnd_hcic_read_page_tout() local
1454 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_page_tout()
1459 UINT16_TO_STREAM (pp, HCI_READ_PAGE_TOUT); in btsnd_hcic_read_page_tout()
1460 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_page_tout()
1469 UINT8 *pp; in btsnd_hcic_write_page_tout() local
1474 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_tout()
1479 UINT16_TO_STREAM (pp, HCI_WRITE_PAGE_TOUT); in btsnd_hcic_write_page_tout()
1480 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_page_tout()
1482 UINT16_TO_STREAM (pp, timeout); in btsnd_hcic_write_page_tout()
1491 UINT8 *pp; in btsnd_hcic_read_scan_enable() local
1496 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_scan_enable()
1501 UINT16_TO_STREAM (pp, HCI_READ_SCAN_ENABLE); in btsnd_hcic_read_scan_enable()
1502 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_scan_enable()
1511 UINT8 *pp; in btsnd_hcic_write_scan_enable() local
1516 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_scan_enable()
1521 UINT16_TO_STREAM (pp, HCI_WRITE_SCAN_ENABLE); in btsnd_hcic_write_scan_enable()
1522 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_scan_enable()
1524 UINT8_TO_STREAM (pp, flag); in btsnd_hcic_write_scan_enable()
1533 UINT8 *pp; in btsnd_hcic_read_pagescan_cfg() local
1538 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_pagescan_cfg()
1543 UINT16_TO_STREAM (pp, HCI_READ_PAGESCAN_CFG); in btsnd_hcic_read_pagescan_cfg()
1544 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_pagescan_cfg()
1553 UINT8 *pp; in btsnd_hcic_write_pagescan_cfg() local
1558 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pagescan_cfg()
1563 UINT16_TO_STREAM (pp, HCI_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
1564 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
1566 UINT16_TO_STREAM (pp, interval); in btsnd_hcic_write_pagescan_cfg()
1567 UINT16_TO_STREAM (pp, window); in btsnd_hcic_write_pagescan_cfg()
1576 UINT8 *pp; in btsnd_hcic_read_inqscan_cfg() local
1581 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inqscan_cfg()
1586 UINT16_TO_STREAM (pp, HCI_READ_INQUIRYSCAN_CFG); in btsnd_hcic_read_inqscan_cfg()
1587 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_inqscan_cfg()
1596 UINT8 *pp; in btsnd_hcic_write_inqscan_cfg() local
1601 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inqscan_cfg()
1606 UINT16_TO_STREAM (pp, HCI_WRITE_INQUIRYSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
1607 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
1609 UINT16_TO_STREAM (pp, interval); in btsnd_hcic_write_inqscan_cfg()
1610 UINT16_TO_STREAM (pp, window); in btsnd_hcic_write_inqscan_cfg()
1619 UINT8 *pp; in btsnd_hcic_read_auth_enable() local
1624 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_auth_enable()
1629 UINT16_TO_STREAM (pp, HCI_READ_AUTHENTICATION_ENABLE); in btsnd_hcic_read_auth_enable()
1630 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_auth_enable()
1639 UINT8 *pp; in btsnd_hcic_write_auth_enable() local
1644 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_auth_enable()
1649 UINT16_TO_STREAM (pp, HCI_WRITE_AUTHENTICATION_ENABLE); in btsnd_hcic_write_auth_enable()
1650 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_auth_enable()
1652 UINT8_TO_STREAM (pp, flag); in btsnd_hcic_write_auth_enable()
1661 UINT8 *pp; in btsnd_hcic_read_encr_mode() local
1666 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_encr_mode()
1671 UINT16_TO_STREAM (pp, HCI_READ_ENCRYPTION_MODE); in btsnd_hcic_read_encr_mode()
1672 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_encr_mode()
1681 UINT8 *pp; in btsnd_hcic_write_encr_mode() local
1686 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_encr_mode()
1691 UINT16_TO_STREAM (pp, HCI_WRITE_ENCRYPTION_MODE); in btsnd_hcic_write_encr_mode()
1692 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_encr_mode()
1694 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_encr_mode()
1703 UINT8 *pp; in btsnd_hcic_read_dev_class() local
1708 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_dev_class()
1713 UINT16_TO_STREAM (pp, HCI_READ_CLASS_OF_DEVICE); in btsnd_hcic_read_dev_class()
1714 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_dev_class()
1723 UINT8 *pp; in btsnd_hcic_write_dev_class() local
1728 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_dev_class()
1733 UINT16_TO_STREAM (pp, HCI_WRITE_CLASS_OF_DEVICE); in btsnd_hcic_write_dev_class()
1734 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM3); in btsnd_hcic_write_dev_class()
1736 DEVCLASS_TO_STREAM (pp, dev_class); in btsnd_hcic_write_dev_class()
1745 UINT8 *pp; in btsnd_hcic_read_voice_settings() local
1750 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_voice_settings()
1755 UINT16_TO_STREAM (pp, HCI_READ_VOICE_SETTINGS); in btsnd_hcic_read_voice_settings()
1756 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_voice_settings()
1765 UINT8 *pp; in btsnd_hcic_write_voice_settings() local
1770 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_voice_settings()
1775 UINT16_TO_STREAM (pp, HCI_WRITE_VOICE_SETTINGS); in btsnd_hcic_write_voice_settings()
1776 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_voice_settings()
1778 UINT16_TO_STREAM (pp, flags); in btsnd_hcic_write_voice_settings()
1787 UINT8 *pp; in btsnd_hcic_read_auto_flush_tout() local
1792 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_auto_flush_tout()
1797 UINT16_TO_STREAM (pp, HCI_READ_AUTO_FLUSH_TOUT); in btsnd_hcic_read_auto_flush_tout()
1798 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_auto_flush_tout()
1800 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_auto_flush_tout()
1809 UINT8 *pp; in btsnd_hcic_write_auto_flush_tout() local
1814 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_auto_flush_tout()
1819 UINT16_TO_STREAM (pp, HCI_WRITE_AUTO_FLUSH_TOUT); in btsnd_hcic_write_auto_flush_tout()
1820 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_AUTO_FLUSH_TOUT); in btsnd_hcic_write_auto_flush_tout()
1822 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_write_auto_flush_tout()
1823 UINT16_TO_STREAM (pp, tout); in btsnd_hcic_write_auto_flush_tout()
1832 UINT8 *pp; in btsnd_hcic_read_num_bcast_xmit() local
1837 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_num_bcast_xmit()
1842 UINT16_TO_STREAM (pp, HCI_READ_NUM_BCAST_REXMITS); in btsnd_hcic_read_num_bcast_xmit()
1843 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_num_bcast_xmit()
1852 UINT8 *pp; in btsnd_hcic_write_num_bcast_xmit() local
1857 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_num_bcast_xmit()
1862 UINT16_TO_STREAM (pp, HCI_WRITE_NUM_BCAST_REXMITS); in btsnd_hcic_write_num_bcast_xmit()
1863 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_num_bcast_xmit()
1865 UINT8_TO_STREAM (pp, num); in btsnd_hcic_write_num_bcast_xmit()
1874 UINT8 *pp; in btsnd_hcic_read_hold_mode_act() local
1879 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_hold_mode_act()
1884 UINT16_TO_STREAM (pp, HCI_READ_HOLD_MODE_ACTIVITY); in btsnd_hcic_read_hold_mode_act()
1885 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_hold_mode_act()
1894 UINT8 *pp; in btsnd_hcic_write_hold_mode_act() local
1899 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_hold_mode_act()
1904 UINT16_TO_STREAM (pp, HCI_WRITE_HOLD_MODE_ACTIVITY); in btsnd_hcic_write_hold_mode_act()
1905 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_hold_mode_act()
1907 UINT8_TO_STREAM (pp, flags); in btsnd_hcic_write_hold_mode_act()
1916 UINT8 *pp; in btsnd_hcic_read_tx_power() local
1921 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_tx_power()
1926 UINT16_TO_STREAM (pp, HCI_READ_TRANSMIT_POWER_LEVEL); in btsnd_hcic_read_tx_power()
1927 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_TX_POWER); in btsnd_hcic_read_tx_power()
1929 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_tx_power()
1930 UINT8_TO_STREAM (pp, type); in btsnd_hcic_read_tx_power()
1939 UINT8 *pp; in btsnd_hcic_read_sco_flow_enable() local
1944 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_sco_flow_enable()
1949 UINT16_TO_STREAM (pp, HCI_READ_SCO_FLOW_CTRL_ENABLE); in btsnd_hcic_read_sco_flow_enable()
1950 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_sco_flow_enable()
1959 UINT8 *pp; in btsnd_hcic_write_sco_flow_enable() local
1964 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_sco_flow_enable()
1969 UINT16_TO_STREAM (pp, HCI_WRITE_SCO_FLOW_CTRL_ENABLE); in btsnd_hcic_write_sco_flow_enable()
1970 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_sco_flow_enable()
1972 UINT8_TO_STREAM (pp, flag); in btsnd_hcic_write_sco_flow_enable()
1981 UINT8 *pp; in btsnd_hcic_set_host_flow_ctrl() local
1986 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_host_flow_ctrl()
1991 UINT16_TO_STREAM (pp, HCI_SET_HC_TO_HOST_FLOW_CTRL); in btsnd_hcic_set_host_flow_ctrl()
1992 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_set_host_flow_ctrl()
1994 UINT8_TO_STREAM (pp, value); in btsnd_hcic_set_host_flow_ctrl()
2004 UINT8 *pp; in btsnd_hcic_set_host_buf_size() local
2009 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_host_buf_size()
2014 UINT16_TO_STREAM (pp, HCI_HOST_BUFFER_SIZE); in btsnd_hcic_set_host_buf_size()
2015 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_HOST_BUF_SIZE); in btsnd_hcic_set_host_buf_size()
2017 UINT16_TO_STREAM (pp, acl_len); in btsnd_hcic_set_host_buf_size()
2018 UINT8_TO_STREAM (pp, sco_len); in btsnd_hcic_set_host_buf_size()
2019 UINT16_TO_STREAM (pp, acl_num); in btsnd_hcic_set_host_buf_size()
2020 UINT16_TO_STREAM (pp, sco_num); in btsnd_hcic_set_host_buf_size()
2030 UINT8 *pp; in btsnd_hcic_host_num_xmitted_pkts() local
2036 pp = (UINT8 *)(p + 1); in btsnd_hcic_host_num_xmitted_pkts()
2041 UINT16_TO_STREAM (pp, HCI_HOST_NUM_PACKETS_DONE); in btsnd_hcic_host_num_xmitted_pkts()
2042 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_host_num_xmitted_pkts()
2044 UINT8_TO_STREAM (pp, num_handles); in btsnd_hcic_host_num_xmitted_pkts()
2048 UINT16_TO_STREAM (pp, handle[j]); in btsnd_hcic_host_num_xmitted_pkts()
2049 UINT16_TO_STREAM (pp, num_pkts[j]); in btsnd_hcic_host_num_xmitted_pkts()
2059 UINT8 *pp; in btsnd_hcic_read_link_super_tout() local
2064 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_link_super_tout()
2069 UINT16_TO_STREAM (pp, HCI_READ_LINK_SUPER_TOUT); in btsnd_hcic_read_link_super_tout()
2070 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_link_super_tout()
2072 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_link_super_tout()
2081 UINT8 *pp; in btsnd_hcic_write_link_super_tout() local
2086 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_link_super_tout()
2091 UINT16_TO_STREAM (pp, HCI_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
2092 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
2094 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_write_link_super_tout()
2095 UINT16_TO_STREAM (pp, timeout); in btsnd_hcic_write_link_super_tout()
2104 UINT8 *pp; in btsnd_hcic_read_max_iac() local
2109 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_max_iac()
2114 UINT16_TO_STREAM (pp, HCI_READ_NUM_SUPPORTED_IAC); in btsnd_hcic_read_max_iac()
2115 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_max_iac()
2124 UINT8 *pp; in btsnd_hcic_read_cur_iac_lap() local
2129 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_cur_iac_lap()
2134 UINT16_TO_STREAM (pp, HCI_READ_CURRENT_IAC_LAP); in btsnd_hcic_read_cur_iac_lap()
2135 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_cur_iac_lap()
2144 UINT8 *pp; in btsnd_hcic_write_cur_iac_lap() local
2150 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_cur_iac_lap()
2155 UINT16_TO_STREAM (pp, HCI_WRITE_CURRENT_IAC_LAP); in btsnd_hcic_write_cur_iac_lap()
2156 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_cur_iac_lap()
2158 UINT8_TO_STREAM (pp, num_cur_iac); in btsnd_hcic_write_cur_iac_lap()
2161 LAP_TO_STREAM (pp, iac_lap[i]); in btsnd_hcic_write_cur_iac_lap()
2170 UINT8 *pp; in btsnd_hcic_read_page_scan_per() local
2175 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_page_scan_per()
2180 UINT16_TO_STREAM (pp, HCI_READ_PAGESCAN_PERIOD_MODE); in btsnd_hcic_read_page_scan_per()
2181 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_page_scan_per()
2190 UINT8 *pp; in btsnd_hcic_write_page_scan_per() local
2195 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_scan_per()
2200 UINT16_TO_STREAM (pp, HCI_WRITE_PAGESCAN_PERIOD_MODE); in btsnd_hcic_write_page_scan_per()
2201 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_page_scan_per()
2203 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_page_scan_per()
2212 UINT8 *pp; in btsnd_hcic_read_page_scan_mode() local
2217 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_page_scan_mode()
2222 UINT16_TO_STREAM (pp, HCI_READ_PAGESCAN_MODE); in btsnd_hcic_read_page_scan_mode()
2223 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_page_scan_mode()
2232 UINT8 *pp; in btsnd_hcic_write_page_scan_mode() local
2237 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_scan_mode()
2242 UINT16_TO_STREAM (pp, HCI_WRITE_PAGESCAN_MODE); in btsnd_hcic_write_page_scan_mode()
2243 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_page_scan_mode()
2245 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_page_scan_mode()
2260 UINT8 *pp; in btsnd_hcic_sniff_sub_rate() local
2265 pp = (UINT8 *)(p + 1); in btsnd_hcic_sniff_sub_rate()
2270 UINT16_TO_STREAM (pp, HCI_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
2271 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
2273 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_sniff_sub_rate()
2274 UINT16_TO_STREAM (pp, max_lat); in btsnd_hcic_sniff_sub_rate()
2275 UINT16_TO_STREAM (pp, min_remote_lat); in btsnd_hcic_sniff_sub_rate()
2276 UINT16_TO_STREAM (pp, min_local_lat); in btsnd_hcic_sniff_sub_rate()
2288 UINT8 *pp; in btsnd_hcic_read_ext_inquiry_response() local
2293 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_ext_inquiry_response()
2298 UINT16_TO_STREAM (pp, HCI_READ_EXT_INQ_RESPONSE); in btsnd_hcic_read_ext_inquiry_response()
2299 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_ext_inquiry_response()
2308 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_ext_inquiry_response() local
2313 UINT16_TO_STREAM (pp, HCI_WRITE_EXT_INQ_RESPONSE); in btsnd_hcic_write_ext_inquiry_response()
2314 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_EXT_INQ_RESP); in btsnd_hcic_write_ext_inquiry_response()
2316 UINT8_TO_STREAM (pp, fec_req); in btsnd_hcic_write_ext_inquiry_response()
2326 UINT8 *pp; in btsnd_hcic_write_simple_pairing_mode() local
2331 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_simple_pairing_mode()
2336 UINT16_TO_STREAM (pp, HCI_WRITE_SIMPLE_PAIRING_MODE); in btsnd_hcic_write_simple_pairing_mode()
2337 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_W_SIMP_PAIR); in btsnd_hcic_write_simple_pairing_mode()
2339 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_simple_pairing_mode()
2348 UINT8 *pp; in btsnd_hcic_read_simple_pairing_mode() local
2353 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_simple_pairing_mode()
2358 UINT16_TO_STREAM (pp, HCI_READ_SIMPLE_PAIRING_MODE); in btsnd_hcic_read_simple_pairing_mode()
2359 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_R_SIMP_PAIR); in btsnd_hcic_read_simple_pairing_mode()
2368 UINT8 *pp; in btsnd_hcic_write_simp_pair_debug_mode() local
2373 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_simp_pair_debug_mode()
2378 UINT16_TO_STREAM (pp, HCI_WRITE_SIMP_PAIR_DEBUG_MODE); in btsnd_hcic_write_simp_pair_debug_mode()
2379 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SIMP_PAIR_DBUG); in btsnd_hcic_write_simp_pair_debug_mode()
2381 UINT8_TO_STREAM (pp, debug_mode); in btsnd_hcic_write_simp_pair_debug_mode()
2391 UINT8 *pp; in btsnd_hcic_io_cap_req_reply() local
2396 pp = (UINT8 *)(p + 1); in btsnd_hcic_io_cap_req_reply()
2401 UINT16_TO_STREAM (pp, HCI_IO_CAPABILITY_RESPONSE); in btsnd_hcic_io_cap_req_reply()
2402 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_IO_CAP_RESP); in btsnd_hcic_io_cap_req_reply()
2404 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_io_cap_req_reply()
2405 UINT8_TO_STREAM (pp, capability); in btsnd_hcic_io_cap_req_reply()
2406 UINT8_TO_STREAM (pp, oob_present); in btsnd_hcic_io_cap_req_reply()
2407 UINT8_TO_STREAM (pp, auth_req); in btsnd_hcic_io_cap_req_reply()
2416 UINT8 *pp; in btsnd_hcic_io_cap_req_neg_reply() local
2421 pp = (UINT8 *)(p + 1); in btsnd_hcic_io_cap_req_neg_reply()
2426 UINT16_TO_STREAM (pp, HCI_IO_CAP_REQ_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
2427 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
2429 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_io_cap_req_neg_reply()
2430 UINT8_TO_STREAM (pp, err_code); in btsnd_hcic_io_cap_req_neg_reply()
2439 UINT8 *pp; in btsnd_hcic_read_local_oob_data() local
2444 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_oob_data()
2449 UINT16_TO_STREAM (pp, HCI_READ_LOCAL_OOB_DATA); in btsnd_hcic_read_local_oob_data()
2450 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_R_LOCAL_OOB); in btsnd_hcic_read_local_oob_data()
2459 UINT8 *pp; in btsnd_hcic_user_conf_reply() local
2464 pp = (UINT8 *)(p + 1); in btsnd_hcic_user_conf_reply()
2472 UINT16_TO_STREAM (pp, HCI_USER_CONF_VALUE_NEG_REPLY); in btsnd_hcic_user_conf_reply()
2477 UINT16_TO_STREAM (pp, HCI_USER_CONF_REQUEST_REPLY); in btsnd_hcic_user_conf_reply()
2480 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_UCONF_REPLY); in btsnd_hcic_user_conf_reply()
2482 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_user_conf_reply()
2491 UINT8 *pp; in btsnd_hcic_user_passkey_reply() local
2496 pp = (UINT8 *)(p + 1); in btsnd_hcic_user_passkey_reply()
2501 UINT16_TO_STREAM (pp, HCI_USER_PASSKEY_REQ_REPLY); in btsnd_hcic_user_passkey_reply()
2502 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_U_PKEY_REPLY); in btsnd_hcic_user_passkey_reply()
2504 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_user_passkey_reply()
2505 UINT32_TO_STREAM (pp, value); in btsnd_hcic_user_passkey_reply()
2514 UINT8 *pp; in btsnd_hcic_user_passkey_neg_reply() local
2519 pp = (UINT8 *)(p + 1); in btsnd_hcic_user_passkey_neg_reply()
2524 UINT16_TO_STREAM (pp, HCI_USER_PASSKEY_REQ_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
2525 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
2527 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_user_passkey_neg_reply()
2536 UINT8 *pp; in btsnd_hcic_rem_oob_reply() local
2541 pp = (UINT8 *)(p + 1); in btsnd_hcic_rem_oob_reply()
2546 UINT16_TO_STREAM (pp, HCI_REM_OOB_DATA_REQ_REPLY); in btsnd_hcic_rem_oob_reply()
2547 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_REM_OOB_REPLY); in btsnd_hcic_rem_oob_reply()
2549 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_rem_oob_reply()
2550 ARRAY16_TO_STREAM (pp, p_c); in btsnd_hcic_rem_oob_reply()
2551 ARRAY16_TO_STREAM (pp, p_r); in btsnd_hcic_rem_oob_reply()
2560 UINT8 *pp; in btsnd_hcic_rem_oob_neg_reply() local
2565 pp = (UINT8 *)(p + 1); in btsnd_hcic_rem_oob_neg_reply()
2570 UINT16_TO_STREAM (pp, HCI_REM_OOB_DATA_REQ_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
2571 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
2573 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_rem_oob_neg_reply()
2583 UINT8 *pp; in btsnd_hcic_read_inq_tx_power() local
2588 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inq_tx_power()
2593 UINT16_TO_STREAM (pp, HCI_READ_INQ_TX_POWER_LEVEL); in btsnd_hcic_read_inq_tx_power()
2594 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_R_TX_POWER); in btsnd_hcic_read_inq_tx_power()
2603 UINT8 *pp; in btsnd_hcic_write_inq_tx_power() local
2608 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inq_tx_power()
2613 UINT16_TO_STREAM (pp, HCI_WRITE_INQ_TX_POWER_LEVEL); in btsnd_hcic_write_inq_tx_power()
2614 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_W_TX_POWER); in btsnd_hcic_write_inq_tx_power()
2616 INT8_TO_STREAM (pp, level); in btsnd_hcic_write_inq_tx_power()
2626 UINT8 *pp;
2631 pp = (UINT8 *)(p + 1);
2636 UINT16_TO_STREAM (pp, HCI_READ_ERRONEOUS_DATA_RPT);
2637 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_R_ERR_DATA_RPT);
2647 UINT8 *pp; in btsnd_hcic_write_default_erroneous_data_rpt() local
2652 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_default_erroneous_data_rpt()
2657 UINT16_TO_STREAM (pp, HCI_WRITE_ERRONEOUS_DATA_RPT); in btsnd_hcic_write_default_erroneous_data_rpt()
2658 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_W_ERR_DATA_RPT); in btsnd_hcic_write_default_erroneous_data_rpt()
2660 UINT8_TO_STREAM (pp, flag); in btsnd_hcic_write_default_erroneous_data_rpt()
2669 UINT8 *pp; in btsnd_hcic_send_keypress_notif() local
2674 pp = (UINT8 *)(p + 1); in btsnd_hcic_send_keypress_notif()
2679 UINT16_TO_STREAM (pp, HCI_SEND_KEYPRESS_NOTIF); in btsnd_hcic_send_keypress_notif()
2680 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SEND_KEYPRESS_NOTIF); in btsnd_hcic_send_keypress_notif()
2682 BDADDR_TO_STREAM (pp, bd_addr); in btsnd_hcic_send_keypress_notif()
2683 UINT8_TO_STREAM (pp, notif); in btsnd_hcic_send_keypress_notif()
2695 UINT8 *pp; in btsnd_hcic_enhanced_flush() local
2700 pp = (UINT8 *)(p + 1); in btsnd_hcic_enhanced_flush()
2704 UINT16_TO_STREAM (pp, HCI_ENHANCED_FLUSH); in btsnd_hcic_enhanced_flush()
2705 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_ENHANCED_FLUSH); in btsnd_hcic_enhanced_flush()
2707 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_enhanced_flush()
2708 UINT8_TO_STREAM (pp, packet_type); in btsnd_hcic_enhanced_flush()
2719 UINT8 *pp; in btsnd_hcic_refresh_encryption_key() local
2724 pp = (UINT8 *)(p + 1); in btsnd_hcic_refresh_encryption_key()
2728 UINT16_TO_STREAM (pp, HCI_REFRESH_ENCRYPTION_KEY); in btsnd_hcic_refresh_encryption_key()
2729 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_refresh_encryption_key()
2731 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_refresh_encryption_key()
2743 UINT8 *pp; in btsnd_hcic_read_local_ver() local
2748 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_ver()
2753 UINT16_TO_STREAM (pp, HCI_READ_LOCAL_VERSION_INFO); in btsnd_hcic_read_local_ver()
2754 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_local_ver()
2763 UINT8 *pp; in btsnd_hcic_read_local_supported_cmds() local
2768 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_supported_cmds()
2773 UINT16_TO_STREAM (pp, HCI_READ_LOCAL_SUPPORTED_CMDS); in btsnd_hcic_read_local_supported_cmds()
2774 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_local_supported_cmds()
2783 UINT8 *pp; in btsnd_hcic_read_local_features() local
2788 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_features()
2793 UINT16_TO_STREAM (pp, HCI_READ_LOCAL_FEATURES); in btsnd_hcic_read_local_features()
2794 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_local_features()
2803 UINT8 *pp; in btsnd_hcic_read_local_ext_features() local
2808 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_ext_features()
2813 UINT16_TO_STREAM (pp, HCI_READ_LOCAL_EXT_FEATURES); in btsnd_hcic_read_local_ext_features()
2814 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_LOCAL_EXT_FEATURES); in btsnd_hcic_read_local_ext_features()
2816 UINT8_TO_STREAM (pp, page_num); in btsnd_hcic_read_local_ext_features()
2825 UINT8 *pp; in btsnd_hcic_read_buffer_size() local
2830 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_buffer_size()
2835 UINT16_TO_STREAM (pp, HCI_READ_BUFFER_SIZE); in btsnd_hcic_read_buffer_size()
2836 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_buffer_size()
2845 UINT8 *pp; in btsnd_hcic_read_country_code() local
2850 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_country_code()
2855 UINT16_TO_STREAM (pp, HCI_READ_COUNTRY_CODE); in btsnd_hcic_read_country_code()
2856 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_country_code()
2865 UINT8 *pp; in btsnd_hcic_read_bd_addr() local
2870 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_bd_addr()
2875 UINT16_TO_STREAM (pp, HCI_READ_BD_ADDR); in btsnd_hcic_read_bd_addr()
2876 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_bd_addr()
2885 UINT8 *pp; in btsnd_hcic_read_fail_contact_count() local
2890 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_fail_contact_count()
2895 UINT16_TO_STREAM (pp, HCI_READ_FAILED_CONTACT_COUNT); in btsnd_hcic_read_fail_contact_count()
2896 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_fail_contact_count()
2898 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_fail_contact_count()
2907 UINT8 *pp; in btsnd_hcic_reset_fail_contact_count() local
2912 pp = (UINT8 *)(p + 1); in btsnd_hcic_reset_fail_contact_count()
2917 UINT16_TO_STREAM (pp, HCI_RESET_FAILED_CONTACT_COUNT); in btsnd_hcic_reset_fail_contact_count()
2918 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_reset_fail_contact_count()
2920 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_reset_fail_contact_count()
2929 UINT8 *pp; in btsnd_hcic_get_link_quality() local
2934 pp = (UINT8 *)(p + 1); in btsnd_hcic_get_link_quality()
2939 UINT16_TO_STREAM (pp, HCI_GET_LINK_QUALITY); in btsnd_hcic_get_link_quality()
2940 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_get_link_quality()
2942 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_get_link_quality()
2951 UINT8 *pp; in btsnd_hcic_read_rssi() local
2956 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_rssi()
2961 UINT16_TO_STREAM (pp, HCI_READ_RSSI); in btsnd_hcic_read_rssi()
2962 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rssi()
2964 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_rssi()
2973 UINT8 *pp; in btsnd_hcic_read_loopback_mode() local
2978 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_loopback_mode()
2983 UINT16_TO_STREAM (pp, HCI_READ_LOOPBACK_MODE); in btsnd_hcic_read_loopback_mode()
2984 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_loopback_mode()
2993 UINT8 *pp; in btsnd_hcic_write_loopback_mode() local
2998 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_loopback_mode()
3003 UINT16_TO_STREAM (pp, HCI_WRITE_LOOPBACK_MODE); in btsnd_hcic_write_loopback_mode()
3004 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_loopback_mode()
3006 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_loopback_mode()
3015 UINT8 *pp; in btsnd_hcic_enable_test_mode() local
3020 pp = (UINT8 *)(p + 1); in btsnd_hcic_enable_test_mode()
3025 UINT16_TO_STREAM (pp, HCI_ENABLE_DEV_UNDER_TEST_MODE); in btsnd_hcic_enable_test_mode()
3026 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_enable_test_mode()
3035 UINT8 *pp; in btsnd_hcic_write_afh_channel_assessment_mode() local
3040 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_afh_channel_assessment_mode()
3045 UINT16_TO_STREAM (pp, HCI_WRITE_AFH_ASSESSMENT_MODE); in btsnd_hcic_write_afh_channel_assessment_mode()
3046 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_afh_channel_assessment_mode()
3048 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_afh_channel_assessment_mode()
3057 UINT8 *pp; in btsnd_hcic_read_afh_channel_assessment_mode() local
3062 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_afh_channel_assessment_mode()
3067 UINT16_TO_STREAM (pp, HCI_READ_AFH_ASSESSMENT_MODE); in btsnd_hcic_read_afh_channel_assessment_mode()
3068 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_afh_channel_assessment_mode()
3077 UINT8 *pp; in btsnd_hcic_set_afh_channels() local
3084 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_afh_channels()
3089 UINT16_TO_STREAM (pp, HCI_SET_AFH_CHANNELS); in btsnd_hcic_set_afh_channels()
3090 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_AFH_CHANNELS); in btsnd_hcic_set_afh_channels()
3103 *pp++ = channels[i]; in btsnd_hcic_set_afh_channels()
3112 UINT8 *pp; in btsnd_hcic_set_afh_host_channel_class() local
3118 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_afh_host_channel_class()
3123 UINT16_TO_STREAM (pp, HCI_SET_AFH_CHANNELS); in btsnd_hcic_set_afh_host_channel_class()
3124 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_SET_AFH_CHANNELS); in btsnd_hcic_set_afh_host_channel_class()
3128 *pp++ = p_afhchannelmap[9-i]; in btsnd_hcic_set_afh_host_channel_class()
3137 UINT8 *pp; in btsnd_hcic_read_afh_channel_map() local
3142 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_afh_channel_map()
3147 UINT16_TO_STREAM (pp, HCI_READ_AFH_CH_MAP); in btsnd_hcic_read_afh_channel_map()
3148 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_afh_channel_map()
3150 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_afh_channel_map()
3159 UINT8 *pp; in btsnd_hcic_read_clock() local
3164 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_clock()
3169 UINT16_TO_STREAM (pp, HCI_READ_CLOCK); in btsnd_hcic_read_clock()
3170 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CLOCK); in btsnd_hcic_read_clock()
3172 UINT16_TO_STREAM (pp, handle); in btsnd_hcic_read_clock()
3173 UINT8_TO_STREAM (pp, which_clock); in btsnd_hcic_read_clock()
3182 UINT8 *pp; in btsnd_hcic_read_inqscan_type() local
3187 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inqscan_type()
3192 UINT16_TO_STREAM (pp, HCI_READ_INQSCAN_TYPE); in btsnd_hcic_read_inqscan_type()
3193 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_inqscan_type()
3202 UINT8 *pp; in btsnd_hcic_write_inqscan_type() local
3207 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inqscan_type()
3212 UINT16_TO_STREAM (pp, HCI_WRITE_INQSCAN_TYPE); in btsnd_hcic_write_inqscan_type()
3213 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inqscan_type()
3215 UINT8_TO_STREAM (pp, type); in btsnd_hcic_write_inqscan_type()
3224 UINT8 *pp; in btsnd_hcic_read_inquiry_mode() local
3229 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inquiry_mode()
3234 UINT16_TO_STREAM (pp, HCI_READ_INQUIRY_MODE); in btsnd_hcic_read_inquiry_mode()
3235 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_inquiry_mode()
3244 UINT8 *pp; in btsnd_hcic_write_inquiry_mode() local
3249 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inquiry_mode()
3254 UINT16_TO_STREAM (pp, HCI_WRITE_INQUIRY_MODE); in btsnd_hcic_write_inquiry_mode()
3255 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inquiry_mode()
3257 UINT8_TO_STREAM (pp, mode); in btsnd_hcic_write_inquiry_mode()
3266 UINT8 *pp; in btsnd_hcic_read_pagescan_type() local
3271 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_pagescan_type()
3276 UINT16_TO_STREAM (pp, HCI_READ_PAGESCAN_TYPE); in btsnd_hcic_read_pagescan_type()
3277 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_pagescan_type()
3286 UINT8 *pp; in btsnd_hcic_write_pagescan_type() local
3291 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pagescan_type()
3296 UINT16_TO_STREAM (pp, HCI_WRITE_PAGESCAN_TYPE); in btsnd_hcic_write_pagescan_type()
3297 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pagescan_type()
3299 UINT8_TO_STREAM (pp, type); in btsnd_hcic_write_pagescan_type()
3314 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_vendor_spec_cmd() local
3319 *((void **)pp) = p_cmd_cplt_cback; /* Store command complete callback in buffer */ in btsnd_hcic_vendor_spec_cmd()
3320 pp += sizeof(void *); /* Skip over callback pointer */ in btsnd_hcic_vendor_spec_cmd()
3322 UINT16_TO_STREAM (pp, HCI_GRP_VENDOR_SPECIFIC | opcode); in btsnd_hcic_vendor_spec_cmd()
3323 UINT8_TO_STREAM (pp, len); in btsnd_hcic_vendor_spec_cmd()
3324 ARRAY_TO_STREAM (pp, p_data, len); in btsnd_hcic_vendor_spec_cmd()
3349 UINT8 *pp; in btsnd_hcic_nop() local
3354 pp = (UINT8 *)(p + 1); in btsnd_hcic_nop()
3359 UINT16_TO_STREAM (pp, HCI_COMMAND_NONE); in btsnd_hcic_nop()
3360 UINT8_TO_STREAM (pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_nop()