Lines Matching refs:p
45 BT_HDR *p; in btsnd_hcic_inquiry() local
48 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_INQUIRY)) == NULL) in btsnd_hcic_inquiry()
51 pp = (UINT8 *)(p + 1); in btsnd_hcic_inquiry()
53 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY; in btsnd_hcic_inquiry()
54 p->offset = 0; in btsnd_hcic_inquiry()
63 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inquiry()
69 BT_HDR *p; in btsnd_hcic_inq_cancel() local
72 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_INQ_CANCEL)) == NULL) in btsnd_hcic_inq_cancel()
75 pp = (UINT8 *)(p + 1); in btsnd_hcic_inq_cancel()
77 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL; in btsnd_hcic_inq_cancel()
78 p->offset = 0; in btsnd_hcic_inq_cancel()
82 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inq_cancel()
89 BT_HDR *p; in btsnd_hcic_per_inq_mode() local
92 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_PER_INQ_MODE)) == NULL) in btsnd_hcic_per_inq_mode()
95 pp = (UINT8 *)(p + 1); in btsnd_hcic_per_inq_mode()
97 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PER_INQ_MODE; in btsnd_hcic_per_inq_mode()
98 p->offset = 0; in btsnd_hcic_per_inq_mode()
109 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_per_inq_mode()
115 BT_HDR *p; in btsnd_hcic_exit_per_inq() local
118 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_EXIT_PER_INQ)) == NULL) in btsnd_hcic_exit_per_inq()
121 pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_per_inq()
123 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_EXIT_PER_INQ; in btsnd_hcic_exit_per_inq()
124 p->offset = 0; in btsnd_hcic_exit_per_inq()
128 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_exit_per_inq()
137 BT_HDR *p; in btsnd_hcic_create_conn() local
140 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CREATE_CONN)) == NULL) in btsnd_hcic_create_conn()
143 pp = (UINT8 *)(p + 1); in btsnd_hcic_create_conn()
146 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN; in btsnd_hcic_create_conn()
148 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN - 1; in btsnd_hcic_create_conn()
150 p->offset = 0; in btsnd_hcic_create_conn()
168 btm_acl_paging (p, dest); in btsnd_hcic_create_conn()
170 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_create_conn()
177 BT_HDR *p; in btsnd_hcic_disconnect() local
180 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_DISCONNECT)) == NULL) in btsnd_hcic_disconnect()
183 pp = (UINT8 *)(p + 1); in btsnd_hcic_disconnect()
185 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DISCONNECT; in btsnd_hcic_disconnect()
186 p->offset = 0; in btsnd_hcic_disconnect()
193 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_disconnect()
206 BT_HDR *p; in btsnd_hcic_add_SCO_conn() local
209 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_ADD_SCO_CONN)) == NULL) in btsnd_hcic_add_SCO_conn()
212 pp = (UINT8 *)(p + 1); in btsnd_hcic_add_SCO_conn()
214 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ADD_SCO_CONN; in btsnd_hcic_add_SCO_conn()
215 p->offset = 0; in btsnd_hcic_add_SCO_conn()
223 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_add_SCO_conn()
230 BT_HDR *p; in btsnd_hcic_create_conn_cancel() local
233 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CREATE_CONN_CANCEL)) == NULL) in btsnd_hcic_create_conn_cancel()
236 pp = (UINT8 *)(p + 1); in btsnd_hcic_create_conn_cancel()
238 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN_CANCEL; in btsnd_hcic_create_conn_cancel()
239 p->offset = 0; in btsnd_hcic_create_conn_cancel()
246 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_create_conn_cancel()
252 BT_HDR *p; in btsnd_hcic_accept_conn() local
255 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_ACCEPT_CONN)) == NULL) in btsnd_hcic_accept_conn()
258 pp = (UINT8 *)(p + 1); in btsnd_hcic_accept_conn()
260 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ACCEPT_CONN; in btsnd_hcic_accept_conn()
261 p->offset = 0; in btsnd_hcic_accept_conn()
268 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_accept_conn()
274 BT_HDR *p; in btsnd_hcic_reject_conn() local
277 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_REJECT_CONN)) == NULL) in btsnd_hcic_reject_conn()
280 pp = (UINT8 *)(p + 1); in btsnd_hcic_reject_conn()
282 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REJECT_CONN; in btsnd_hcic_reject_conn()
283 p->offset = 0; in btsnd_hcic_reject_conn()
291 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_reject_conn()
297 BT_HDR *p; in btsnd_hcic_link_key_req_reply() local
300 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY)) == NULL) in btsnd_hcic_link_key_req_reply()
303 pp = (UINT8 *)(p + 1); in btsnd_hcic_link_key_req_reply()
305 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY; in btsnd_hcic_link_key_req_reply()
306 p->offset = 0; in btsnd_hcic_link_key_req_reply()
314 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_link_key_req_reply()
320 BT_HDR *p; in btsnd_hcic_link_key_neg_reply() local
323 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY)) == NULL) in btsnd_hcic_link_key_neg_reply()
326 pp = (UINT8 *)(p + 1); in btsnd_hcic_link_key_neg_reply()
328 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY; in btsnd_hcic_link_key_neg_reply()
329 p->offset = 0; in btsnd_hcic_link_key_neg_reply()
336 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_link_key_neg_reply()
343 BT_HDR *p; in btsnd_hcic_pin_code_req_reply() local
347 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY)) == NULL) in btsnd_hcic_pin_code_req_reply()
350 pp = (UINT8 *)(p + 1); in btsnd_hcic_pin_code_req_reply()
352 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY; in btsnd_hcic_pin_code_req_reply()
353 p->offset = 0; in btsnd_hcic_pin_code_req_reply()
368 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_pin_code_req_reply()
374 BT_HDR *p; in btsnd_hcic_pin_code_neg_reply() local
377 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY)) == NULL) in btsnd_hcic_pin_code_neg_reply()
380 pp = (UINT8 *)(p + 1); in btsnd_hcic_pin_code_neg_reply()
382 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY; in btsnd_hcic_pin_code_neg_reply()
383 p->offset = 0; in btsnd_hcic_pin_code_neg_reply()
390 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_pin_code_neg_reply()
396 BT_HDR *p; in btsnd_hcic_change_conn_type() local
399 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CHANGE_CONN_TYPE)) == NULL) in btsnd_hcic_change_conn_type()
402 pp = (UINT8 *)(p + 1); in btsnd_hcic_change_conn_type()
404 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_CONN_TYPE; in btsnd_hcic_change_conn_type()
405 p->offset = 0; in btsnd_hcic_change_conn_type()
413 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_change_conn_type()
419 BT_HDR *p; in btsnd_hcic_auth_request() local
422 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_auth_request()
425 pp = (UINT8 *)(p + 1); in btsnd_hcic_auth_request()
427 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_auth_request()
428 p->offset = 0; in btsnd_hcic_auth_request()
435 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_auth_request()
441 BT_HDR *p; in btsnd_hcic_set_conn_encrypt() local
444 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_CONN_ENCRYPT)) == NULL) in btsnd_hcic_set_conn_encrypt()
447 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_conn_encrypt()
449 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_CONN_ENCRYPT; in btsnd_hcic_set_conn_encrypt()
450 p->offset = 0; in btsnd_hcic_set_conn_encrypt()
458 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_conn_encrypt()
464 BT_HDR *p; in btsnd_hcic_change_link_key() local
467 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_change_link_key()
470 pp = (UINT8 *)(p + 1); in btsnd_hcic_change_link_key()
472 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_change_link_key()
473 p->offset = 0; in btsnd_hcic_change_link_key()
480 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_change_link_key()
486 BT_HDR *p; in btsnd_hcic_master_link_key() local
489 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_MASTER_LINK_KEY)) == NULL) in btsnd_hcic_master_link_key()
492 pp = (UINT8 *)(p + 1); in btsnd_hcic_master_link_key()
494 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_MASTER_LINK_KEY; in btsnd_hcic_master_link_key()
495 p->offset = 0; in btsnd_hcic_master_link_key()
502 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_master_link_key()
509 BT_HDR *p; in btsnd_hcic_rmt_name_req() local
512 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_RMT_NAME_REQ)) == NULL) in btsnd_hcic_rmt_name_req()
515 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_name_req()
517 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RMT_NAME_REQ; in btsnd_hcic_rmt_name_req()
518 p->offset = 0; in btsnd_hcic_rmt_name_req()
530 btm_acl_paging (p, bd_addr); in btsnd_hcic_rmt_name_req()
532 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_name_req()
539 BT_HDR *p; in btsnd_hcic_rmt_name_req_cancel() local
542 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_RMT_NAME_REQ_CANCEL)) == NULL) in btsnd_hcic_rmt_name_req_cancel()
545 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_name_req_cancel()
547 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RMT_NAME_REQ_CANCEL; in btsnd_hcic_rmt_name_req_cancel()
548 p->offset = 0; in btsnd_hcic_rmt_name_req_cancel()
555 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_name_req_cancel()
561 BT_HDR *p; in btsnd_hcic_rmt_features_req() local
564 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_rmt_features_req()
567 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_features_req()
569 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_rmt_features_req()
570 p->offset = 0; in btsnd_hcic_rmt_features_req()
577 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_features_req()
583 BT_HDR *p; in btsnd_hcic_rmt_ext_features() local
586 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_RMT_EXT_FEATURES)) == NULL) in btsnd_hcic_rmt_ext_features()
589 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_ext_features()
591 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RMT_EXT_FEATURES; in btsnd_hcic_rmt_ext_features()
592 p->offset = 0; in btsnd_hcic_rmt_ext_features()
600 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_ext_features()
606 BT_HDR *p; in btsnd_hcic_rmt_ver_req() local
609 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_rmt_ver_req()
612 pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_ver_req()
614 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_rmt_ver_req()
615 p->offset = 0; in btsnd_hcic_rmt_ver_req()
622 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_ver_req()
628 BT_HDR *p; in btsnd_hcic_read_rmt_clk_offset() local
631 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_rmt_clk_offset()
634 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_rmt_clk_offset()
636 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_rmt_clk_offset()
637 p->offset = 0; in btsnd_hcic_read_rmt_clk_offset()
644 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_rmt_clk_offset()
650 BT_HDR *p; in btsnd_hcic_read_lmp_handle() local
653 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_lmp_handle()
656 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_lmp_handle()
658 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_lmp_handle()
659 p->offset = 0; in btsnd_hcic_read_lmp_handle()
666 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_lmp_handle()
674 BT_HDR *p; in btsnd_hcic_setup_esco_conn() local
677 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SETUP_ESCO)) == NULL) in btsnd_hcic_setup_esco_conn()
680 pp = (UINT8 *)(p + 1); in btsnd_hcic_setup_esco_conn()
682 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SETUP_ESCO; in btsnd_hcic_setup_esco_conn()
683 p->offset = 0; in btsnd_hcic_setup_esco_conn()
696 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_setup_esco_conn()
705 BT_HDR *p; in btsnd_hcic_accept_esco_conn() local
708 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_ACCEPT_ESCO)) == NULL) in btsnd_hcic_accept_esco_conn()
711 pp = (UINT8 *)(p + 1); in btsnd_hcic_accept_esco_conn()
713 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ACCEPT_ESCO; in btsnd_hcic_accept_esco_conn()
714 p->offset = 0; in btsnd_hcic_accept_esco_conn()
727 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_accept_esco_conn()
733 BT_HDR *p; in btsnd_hcic_reject_esco_conn() local
736 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_REJECT_ESCO)) == NULL) in btsnd_hcic_reject_esco_conn()
739 pp = (UINT8 *)(p + 1); in btsnd_hcic_reject_esco_conn()
741 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REJECT_ESCO; in btsnd_hcic_reject_esco_conn()
742 p->offset = 0; in btsnd_hcic_reject_esco_conn()
750 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_reject_esco_conn()
757 BT_HDR *p; in btsnd_hcic_hold_mode() local
760 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_HOLD_MODE)) == NULL) in btsnd_hcic_hold_mode()
763 pp = (UINT8 *)(p + 1); in btsnd_hcic_hold_mode()
765 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_HOLD_MODE; in btsnd_hcic_hold_mode()
766 p->offset = 0; in btsnd_hcic_hold_mode()
775 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_hold_mode()
783 BT_HDR *p; in btsnd_hcic_sniff_mode() local
786 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SNIFF_MODE)) == NULL) in btsnd_hcic_sniff_mode()
789 pp = (UINT8 *)(p + 1); in btsnd_hcic_sniff_mode()
791 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SNIFF_MODE; in btsnd_hcic_sniff_mode()
792 p->offset = 0; in btsnd_hcic_sniff_mode()
803 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_sniff_mode()
809 BT_HDR *p; in btsnd_hcic_exit_sniff_mode() local
812 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_exit_sniff_mode()
815 pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_sniff_mode()
817 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_exit_sniff_mode()
818 p->offset = 0; in btsnd_hcic_exit_sniff_mode()
825 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_exit_sniff_mode()
832 BT_HDR *p; in btsnd_hcic_park_mode() local
835 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_PARK_MODE)) == NULL) in btsnd_hcic_park_mode()
838 pp = (UINT8 *)(p + 1); in btsnd_hcic_park_mode()
840 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PARK_MODE; in btsnd_hcic_park_mode()
841 p->offset = 0; in btsnd_hcic_park_mode()
850 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_park_mode()
856 BT_HDR *p; in btsnd_hcic_exit_park_mode() local
859 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_exit_park_mode()
862 pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_park_mode()
864 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_exit_park_mode()
865 p->offset = 0; in btsnd_hcic_exit_park_mode()
872 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_exit_park_mode()
880 BT_HDR *p; in btsnd_hcic_qos_setup() local
883 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_QOS_SETUP)) == NULL) in btsnd_hcic_qos_setup()
886 pp = (UINT8 *)(p + 1); in btsnd_hcic_qos_setup()
888 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_QOS_SETUP; in btsnd_hcic_qos_setup()
889 p->offset = 0; in btsnd_hcic_qos_setup()
902 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_qos_setup()
908 BT_HDR *p; in btsnd_hcic_role_discovery() local
911 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_role_discovery()
914 pp = (UINT8 *)(p + 1); in btsnd_hcic_role_discovery()
916 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_role_discovery()
917 p->offset = 0; in btsnd_hcic_role_discovery()
924 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_role_discovery()
930 BT_HDR *p; in btsnd_hcic_switch_role() local
933 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SWITCH_ROLE)) == NULL) in btsnd_hcic_switch_role()
936 pp = (UINT8 *)(p + 1); in btsnd_hcic_switch_role()
938 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SWITCH_ROLE; in btsnd_hcic_switch_role()
939 p->offset = 0; in btsnd_hcic_switch_role()
947 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_switch_role()
953 BT_HDR *p; in btsnd_hcic_read_policy_set() local
956 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_policy_set()
959 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_policy_set()
961 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_policy_set()
962 p->offset = 0; in btsnd_hcic_read_policy_set()
969 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_policy_set()
975 BT_HDR *p; in btsnd_hcic_write_policy_set() local
978 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_POLICY_SET)) == NULL) in btsnd_hcic_write_policy_set()
981 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_policy_set()
983 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_POLICY_SET; in btsnd_hcic_write_policy_set()
984 p->offset = 0; in btsnd_hcic_write_policy_set()
991 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_policy_set()
997 BT_HDR *p; in btsnd_hcic_read_def_policy_set() local
1000 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_DEF_POLICY_SET)) == NULL) in btsnd_hcic_read_def_policy_set()
1003 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_def_policy_set()
1005 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_DEF_POLICY_SET; in btsnd_hcic_read_def_policy_set()
1006 p->offset = 0; in btsnd_hcic_read_def_policy_set()
1011 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_def_policy_set()
1017 BT_HDR *p; in btsnd_hcic_write_def_policy_set() local
1020 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET)) == NULL) in btsnd_hcic_write_def_policy_set()
1023 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_def_policy_set()
1025 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET; in btsnd_hcic_write_def_policy_set()
1026 p->offset = 0; in btsnd_hcic_write_def_policy_set()
1032 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_def_policy_set()
1041 BT_HDR *p; in btsnd_hcic_flow_specification() local
1044 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_FLOW_SPEC)) == NULL) in btsnd_hcic_flow_specification()
1047 pp = (UINT8 *)(p + 1); in btsnd_hcic_flow_specification()
1049 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_FLOW_SPEC; in btsnd_hcic_flow_specification()
1050 p->offset = 0; in btsnd_hcic_flow_specification()
1064 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_flow_specification()
1070 BT_HDR *p; in btsnd_hcic_set_event_mask() local
1073 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_EVENT_MASK)) == NULL) in btsnd_hcic_set_event_mask()
1076 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_mask()
1078 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_EVENT_MASK; in btsnd_hcic_set_event_mask()
1079 p->offset = 0; in btsnd_hcic_set_event_mask()
1085 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_set_event_mask()
1091 BT_HDR *p; in btsnd_hcic_set_event_mask_page_2() local
1094 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_EVENT_MASK_PAGE_2)) == NULL) in btsnd_hcic_set_event_mask_page_2()
1097 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_mask_page_2()
1099 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_EVENT_MASK_PAGE_2; in btsnd_hcic_set_event_mask_page_2()
1100 p->offset = 0; in btsnd_hcic_set_event_mask_page_2()
1106 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_set_event_mask_page_2()
1112 BT_HDR *p; in btsnd_hcic_reset() local
1115 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_RESET)) == NULL) in btsnd_hcic_reset()
1118 pp = (UINT8 *)(p + 1); in btsnd_hcic_reset()
1120 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RESET; in btsnd_hcic_reset()
1121 p->offset = 0; in btsnd_hcic_reset()
1126 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_reset()
1141 BT_HDR *p; in btsnd_hcic_set_event_filter() local
1145 if ((p = HCI_GET_CMD_BUF(2 + filt_cond_len)) == NULL) in btsnd_hcic_set_event_filter()
1148 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_filter()
1150 p->offset = 0; in btsnd_hcic_set_event_filter()
1156 p->len = (UINT16)(HCIC_PREAMBLE_SIZE + 2 + filt_cond_len); in btsnd_hcic_set_event_filter()
1184 p->len = (UINT16)(HCIC_PREAMBLE_SIZE + 1); in btsnd_hcic_set_event_filter()
1190 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_event_filter()
1196 BT_HDR *p; in btsnd_hcic_flush() local
1199 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_flush()
1202 pp = (UINT8 *)(p + 1); in btsnd_hcic_flush()
1204 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_flush()
1205 p->offset = 0; in btsnd_hcic_flush()
1211 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_flush()
1217 BT_HDR *p; in btsnd_hcic_read_pin_type() local
1220 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_pin_type()
1223 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_pin_type()
1225 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_pin_type()
1226 p->offset = 0; in btsnd_hcic_read_pin_type()
1231 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_pin_type()
1237 BT_HDR *p; in btsnd_hcic_write_pin_type() local
1240 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_pin_type()
1243 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pin_type()
1245 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_pin_type()
1246 p->offset = 0; in btsnd_hcic_write_pin_type()
1253 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_pin_type()
1259 BT_HDR *p; in btsnd_hcic_new_unit_key() local
1262 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_NEW_UNIT_KEY)) == NULL) in btsnd_hcic_new_unit_key()
1265 pp = (UINT8 *)(p + 1); in btsnd_hcic_new_unit_key()
1267 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_NEW_UNIT_KEY; in btsnd_hcic_new_unit_key()
1268 p->offset = 0; in btsnd_hcic_new_unit_key()
1273 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_new_unit_key()
1279 BT_HDR *p; in btsnd_hcic_read_stored_key() local
1282 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_STORED_KEY)) == NULL) in btsnd_hcic_read_stored_key()
1285 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_stored_key()
1287 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_STORED_KEY; in btsnd_hcic_read_stored_key()
1288 p->offset = 0; in btsnd_hcic_read_stored_key()
1296 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_stored_key()
1303 BT_HDR *p; in btsnd_hcic_write_stored_key() local
1307 if ((p = HCI_GET_CMD_BUF(1 + (num_keys * (BD_ADDR_LEN + LINK_KEY_LEN)))) == NULL) in btsnd_hcic_write_stored_key()
1310 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_stored_key()
1313 p->len = HCIC_PREAMBLE_SIZE + 1 + (num_keys * (BD_ADDR_LEN + LINK_KEY_LEN)); in btsnd_hcic_write_stored_key()
1314 p->offset = 0; in btsnd_hcic_write_stored_key()
1317 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_stored_key()
1330 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_stored_key()
1336 BT_HDR *p; in btsnd_hcic_delete_stored_key() local
1339 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_DELETE_STORED_KEY)) == NULL) in btsnd_hcic_delete_stored_key()
1342 pp = (UINT8 *)(p + 1); in btsnd_hcic_delete_stored_key()
1344 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DELETE_STORED_KEY; in btsnd_hcic_delete_stored_key()
1345 p->offset = 0; in btsnd_hcic_delete_stored_key()
1353 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_delete_stored_key()
1359 BT_HDR *p; in btsnd_hcic_change_name() local
1363 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CHANGE_NAME)) == NULL) in btsnd_hcic_change_name()
1366 pp = (UINT8 *)(p + 1); in btsnd_hcic_change_name()
1368 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME; in btsnd_hcic_change_name()
1369 p->offset = 0; in btsnd_hcic_change_name()
1376 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_change_name()
1382 BT_HDR *p; in btsnd_hcic_read_name() local
1385 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_name()
1388 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_name()
1390 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_name()
1391 p->offset = 0; in btsnd_hcic_read_name()
1396 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_name()
1402 BT_HDR *p; in btsnd_hcic_read_conn_acc_tout() local
1405 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_conn_acc_tout()
1408 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_conn_acc_tout()
1410 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_conn_acc_tout()
1411 p->offset = 0; in btsnd_hcic_read_conn_acc_tout()
1416 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_read_conn_acc_tout()
1422 BT_HDR *p; in btsnd_hcic_write_conn_acc_tout() local
1425 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM2)) == NULL) in btsnd_hcic_write_conn_acc_tout()
1428 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_conn_acc_tout()
1430 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM2; in btsnd_hcic_write_conn_acc_tout()
1431 p->offset = 0; in btsnd_hcic_write_conn_acc_tout()
1438 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_write_conn_acc_tout()
1444 BT_HDR *p; in btsnd_hcic_read_page_tout() local
1447 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_page_tout()
1450 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_page_tout()
1452 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_page_tout()
1453 p->offset = 0; in btsnd_hcic_read_page_tout()
1458 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_page_tout()
1464 BT_HDR *p; in btsnd_hcic_write_page_tout() local
1467 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM2)) == NULL) in btsnd_hcic_write_page_tout()
1470 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_tout()
1472 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM2; in btsnd_hcic_write_page_tout()
1473 p->offset = 0; in btsnd_hcic_write_page_tout()
1480 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_page_tout()
1486 BT_HDR *p; in btsnd_hcic_read_scan_enable() local
1489 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_scan_enable()
1492 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_scan_enable()
1494 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_scan_enable()
1495 p->offset = 0; in btsnd_hcic_read_scan_enable()
1500 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_scan_enable()
1506 BT_HDR *p; in btsnd_hcic_write_scan_enable() local
1509 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_scan_enable()
1512 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_scan_enable()
1514 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_scan_enable()
1515 p->offset = 0; in btsnd_hcic_write_scan_enable()
1522 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_scan_enable()
1528 BT_HDR *p; in btsnd_hcic_read_pagescan_cfg() local
1531 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_pagescan_cfg()
1534 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_pagescan_cfg()
1536 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_pagescan_cfg()
1537 p->offset = 0; in btsnd_hcic_read_pagescan_cfg()
1542 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_pagescan_cfg()
1548 BT_HDR *p; in btsnd_hcic_write_pagescan_cfg() local
1551 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG)) == NULL) in btsnd_hcic_write_pagescan_cfg()
1554 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pagescan_cfg()
1556 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG; in btsnd_hcic_write_pagescan_cfg()
1557 p->offset = 0; in btsnd_hcic_write_pagescan_cfg()
1565 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_pagescan_cfg()
1571 BT_HDR *p; in btsnd_hcic_read_inqscan_cfg() local
1574 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_inqscan_cfg()
1577 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inqscan_cfg()
1579 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_inqscan_cfg()
1580 p->offset = 0; in btsnd_hcic_read_inqscan_cfg()
1585 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_inqscan_cfg()
1591 BT_HDR *p; in btsnd_hcic_write_inqscan_cfg() local
1594 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG)) == NULL) in btsnd_hcic_write_inqscan_cfg()
1597 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inqscan_cfg()
1599 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG; in btsnd_hcic_write_inqscan_cfg()
1600 p->offset = 0; in btsnd_hcic_write_inqscan_cfg()
1608 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inqscan_cfg()
1614 BT_HDR *p; in btsnd_hcic_read_auth_enable() local
1617 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_auth_enable()
1620 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_auth_enable()
1622 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_auth_enable()
1623 p->offset = 0; in btsnd_hcic_read_auth_enable()
1628 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_auth_enable()
1634 BT_HDR *p; in btsnd_hcic_write_auth_enable() local
1637 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_auth_enable()
1640 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_auth_enable()
1642 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_auth_enable()
1643 p->offset = 0; in btsnd_hcic_write_auth_enable()
1650 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_auth_enable()
1656 BT_HDR *p; in btsnd_hcic_read_encr_mode() local
1659 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_encr_mode()
1662 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_encr_mode()
1664 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_encr_mode()
1665 p->offset = 0; in btsnd_hcic_read_encr_mode()
1670 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_encr_mode()
1676 BT_HDR *p; in btsnd_hcic_write_encr_mode() local
1679 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_encr_mode()
1682 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_encr_mode()
1684 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_encr_mode()
1685 p->offset = 0; in btsnd_hcic_write_encr_mode()
1692 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_encr_mode()
1698 BT_HDR *p; in btsnd_hcic_read_dev_class() local
1701 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_dev_class()
1704 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_dev_class()
1706 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_dev_class()
1707 p->offset = 0; in btsnd_hcic_read_dev_class()
1712 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_dev_class()
1718 BT_HDR *p; in btsnd_hcic_write_dev_class() local
1721 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM3)) == NULL) in btsnd_hcic_write_dev_class()
1724 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_dev_class()
1726 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM3; in btsnd_hcic_write_dev_class()
1727 p->offset = 0; in btsnd_hcic_write_dev_class()
1734 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_dev_class()
1740 BT_HDR *p; in btsnd_hcic_read_voice_settings() local
1743 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_voice_settings()
1746 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_voice_settings()
1748 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_voice_settings()
1749 p->offset = 0; in btsnd_hcic_read_voice_settings()
1754 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_voice_settings()
1760 BT_HDR *p; in btsnd_hcic_write_voice_settings() local
1763 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM2)) == NULL) in btsnd_hcic_write_voice_settings()
1766 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_voice_settings()
1768 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM2; in btsnd_hcic_write_voice_settings()
1769 p->offset = 0; in btsnd_hcic_write_voice_settings()
1776 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_voice_settings()
1782 BT_HDR *p; in btsnd_hcic_read_auto_flush_tout() local
1785 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_auto_flush_tout()
1788 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_auto_flush_tout()
1790 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_auto_flush_tout()
1791 p->offset = 0; in btsnd_hcic_read_auto_flush_tout()
1798 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_auto_flush_tout()
1804 BT_HDR *p; in btsnd_hcic_write_auto_flush_tout() local
1807 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_AUTO_FLUSH_TOUT)) == NULL) in btsnd_hcic_write_auto_flush_tout()
1810 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_auto_flush_tout()
1812 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_AUTO_FLUSH_TOUT; in btsnd_hcic_write_auto_flush_tout()
1813 p->offset = 0; in btsnd_hcic_write_auto_flush_tout()
1821 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_auto_flush_tout()
1827 BT_HDR *p; in btsnd_hcic_read_num_bcast_xmit() local
1830 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_num_bcast_xmit()
1833 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_num_bcast_xmit()
1835 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_num_bcast_xmit()
1836 p->offset = 0; in btsnd_hcic_read_num_bcast_xmit()
1841 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_num_bcast_xmit()
1847 BT_HDR *p; in btsnd_hcic_write_num_bcast_xmit() local
1850 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_num_bcast_xmit()
1853 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_num_bcast_xmit()
1855 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_num_bcast_xmit()
1856 p->offset = 0; in btsnd_hcic_write_num_bcast_xmit()
1863 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_num_bcast_xmit()
1869 BT_HDR *p; in btsnd_hcic_read_hold_mode_act() local
1872 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_hold_mode_act()
1875 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_hold_mode_act()
1877 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_hold_mode_act()
1878 p->offset = 0; in btsnd_hcic_read_hold_mode_act()
1883 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_hold_mode_act()
1889 BT_HDR *p; in btsnd_hcic_write_hold_mode_act() local
1892 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_hold_mode_act()
1895 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_hold_mode_act()
1897 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_hold_mode_act()
1898 p->offset = 0; in btsnd_hcic_write_hold_mode_act()
1905 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_hold_mode_act()
1911 BT_HDR *p; in btsnd_hcic_read_tx_power() local
1914 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_TX_POWER)) == NULL) in btsnd_hcic_read_tx_power()
1917 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_tx_power()
1919 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_TX_POWER; in btsnd_hcic_read_tx_power()
1920 p->offset = 0; in btsnd_hcic_read_tx_power()
1928 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_tx_power()
1934 BT_HDR *p; in btsnd_hcic_read_sco_flow_enable() local
1937 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_sco_flow_enable()
1940 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_sco_flow_enable()
1942 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_sco_flow_enable()
1943 p->offset = 0; in btsnd_hcic_read_sco_flow_enable()
1948 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_sco_flow_enable()
1954 BT_HDR *p; in btsnd_hcic_write_sco_flow_enable() local
1957 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_sco_flow_enable()
1960 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_sco_flow_enable()
1962 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_sco_flow_enable()
1963 p->offset = 0; in btsnd_hcic_write_sco_flow_enable()
1970 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_sco_flow_enable()
1976 BT_HDR *p; in btsnd_hcic_set_host_flow_ctrl() local
1979 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_set_host_flow_ctrl()
1982 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_host_flow_ctrl()
1984 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_set_host_flow_ctrl()
1985 p->offset = 0; in btsnd_hcic_set_host_flow_ctrl()
1992 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_host_flow_ctrl()
1999 BT_HDR *p; in btsnd_hcic_set_host_buf_size() local
2002 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_HOST_BUF_SIZE)) == NULL) in btsnd_hcic_set_host_buf_size()
2005 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_host_buf_size()
2007 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_HOST_BUF_SIZE; in btsnd_hcic_set_host_buf_size()
2008 p->offset = 0; in btsnd_hcic_set_host_buf_size()
2018 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_host_buf_size()
2025 BT_HDR *p; in btsnd_hcic_host_num_xmitted_pkts() local
2029 if ((p = HCI_GET_CMD_BUF(1 + (num_handles * 4))) == NULL) in btsnd_hcic_host_num_xmitted_pkts()
2032 pp = (UINT8 *)(p + 1); in btsnd_hcic_host_num_xmitted_pkts()
2034 p->len = HCIC_PREAMBLE_SIZE + 1 + (num_handles * 4); in btsnd_hcic_host_num_xmitted_pkts()
2035 p->offset = 0; in btsnd_hcic_host_num_xmitted_pkts()
2038 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_host_num_xmitted_pkts()
2048 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_host_num_xmitted_pkts()
2054 BT_HDR *p; in btsnd_hcic_read_link_super_tout() local
2057 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_link_super_tout()
2060 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_link_super_tout()
2062 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_link_super_tout()
2063 p->offset = 0; in btsnd_hcic_read_link_super_tout()
2070 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_read_link_super_tout()
2076 BT_HDR *p; in btsnd_hcic_write_link_super_tout() local
2079 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT)) == NULL) in btsnd_hcic_write_link_super_tout()
2082 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_link_super_tout()
2084 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT; in btsnd_hcic_write_link_super_tout()
2085 p->offset = 0; in btsnd_hcic_write_link_super_tout()
2093 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_write_link_super_tout()
2099 BT_HDR *p; in btsnd_hcic_read_max_iac() local
2102 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_max_iac()
2105 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_max_iac()
2107 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_max_iac()
2108 p->offset = 0; in btsnd_hcic_read_max_iac()
2113 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_max_iac()
2119 BT_HDR *p; in btsnd_hcic_read_cur_iac_lap() local
2122 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_cur_iac_lap()
2125 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_cur_iac_lap()
2127 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_cur_iac_lap()
2128 p->offset = 0; in btsnd_hcic_read_cur_iac_lap()
2133 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_cur_iac_lap()
2139 BT_HDR *p; in btsnd_hcic_write_cur_iac_lap() local
2143 if ((p = HCI_GET_CMD_BUF(1 + (LAP_LEN * num_cur_iac))) == NULL) in btsnd_hcic_write_cur_iac_lap()
2146 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_cur_iac_lap()
2148 p->len = HCIC_PREAMBLE_SIZE + 1 + (LAP_LEN * num_cur_iac); in btsnd_hcic_write_cur_iac_lap()
2149 p->offset = 0; in btsnd_hcic_write_cur_iac_lap()
2152 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_cur_iac_lap()
2159 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_cur_iac_lap()
2165 BT_HDR *p; in btsnd_hcic_read_page_scan_per() local
2168 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_page_scan_per()
2171 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_page_scan_per()
2173 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_page_scan_per()
2174 p->offset = 0; in btsnd_hcic_read_page_scan_per()
2179 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_page_scan_per()
2185 BT_HDR *p; in btsnd_hcic_write_page_scan_per() local
2188 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_page_scan_per()
2191 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_scan_per()
2193 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_page_scan_per()
2194 p->offset = 0; in btsnd_hcic_write_page_scan_per()
2201 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_page_scan_per()
2207 BT_HDR *p; in btsnd_hcic_read_page_scan_mode() local
2210 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_page_scan_mode()
2213 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_page_scan_mode()
2215 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_page_scan_mode()
2216 p->offset = 0; in btsnd_hcic_read_page_scan_mode()
2221 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_page_scan_mode()
2227 BT_HDR *p; in btsnd_hcic_write_page_scan_mode() local
2230 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_page_scan_mode()
2233 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_scan_mode()
2235 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_page_scan_mode()
2236 p->offset = 0; in btsnd_hcic_write_page_scan_mode()
2243 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_page_scan_mode()
2255 BT_HDR *p; in btsnd_hcic_sniff_sub_rate() local
2258 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SNIFF_SUB_RATE)) == NULL) in btsnd_hcic_sniff_sub_rate()
2261 pp = (UINT8 *)(p + 1); in btsnd_hcic_sniff_sub_rate()
2263 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SNIFF_SUB_RATE; in btsnd_hcic_sniff_sub_rate()
2264 p->offset = 0; in btsnd_hcic_sniff_sub_rate()
2274 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_sniff_sub_rate()
2283 BT_HDR *p; in btsnd_hcic_read_ext_inquiry_response() local
2286 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_ext_inquiry_response()
2289 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_ext_inquiry_response()
2291 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_ext_inquiry_response()
2292 p->offset = 0; in btsnd_hcic_read_ext_inquiry_response()
2297 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_ext_inquiry_response()
2303 BT_HDR *p = (BT_HDR *)buffer; in btsnd_hcic_write_ext_inquiry_response() local
2304 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_ext_inquiry_response()
2306 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_EXT_INQ_RESP; in btsnd_hcic_write_ext_inquiry_response()
2307 p->offset = 0; in btsnd_hcic_write_ext_inquiry_response()
2314 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_ext_inquiry_response()
2321 BT_HDR *p; in btsnd_hcic_write_simple_pairing_mode() local
2324 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_W_SIMP_PAIR)) == NULL) in btsnd_hcic_write_simple_pairing_mode()
2327 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_simple_pairing_mode()
2329 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_W_SIMP_PAIR; in btsnd_hcic_write_simple_pairing_mode()
2330 p->offset = 0; in btsnd_hcic_write_simple_pairing_mode()
2337 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_simple_pairing_mode()
2343 BT_HDR *p; in btsnd_hcic_read_simple_pairing_mode() local
2346 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_R_SIMP_PAIR)) == NULL) in btsnd_hcic_read_simple_pairing_mode()
2349 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_simple_pairing_mode()
2351 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_R_SIMP_PAIR; in btsnd_hcic_read_simple_pairing_mode()
2352 p->offset = 0; in btsnd_hcic_read_simple_pairing_mode()
2357 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_simple_pairing_mode()
2363 BT_HDR *p; in btsnd_hcic_write_simp_pair_debug_mode() local
2366 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SIMP_PAIR_DBUG)) == NULL) in btsnd_hcic_write_simp_pair_debug_mode()
2369 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_simp_pair_debug_mode()
2371 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SIMP_PAIR_DBUG; in btsnd_hcic_write_simp_pair_debug_mode()
2372 p->offset = 0; in btsnd_hcic_write_simp_pair_debug_mode()
2379 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_simp_pair_debug_mode()
2386 BT_HDR *p; in btsnd_hcic_io_cap_req_reply() local
2389 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_IO_CAP_RESP)) == NULL) in btsnd_hcic_io_cap_req_reply()
2392 pp = (UINT8 *)(p + 1); in btsnd_hcic_io_cap_req_reply()
2394 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_IO_CAP_RESP; in btsnd_hcic_io_cap_req_reply()
2395 p->offset = 0; in btsnd_hcic_io_cap_req_reply()
2405 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_io_cap_req_reply()
2411 BT_HDR *p; in btsnd_hcic_io_cap_req_neg_reply() local
2414 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY)) == NULL) in btsnd_hcic_io_cap_req_neg_reply()
2417 pp = (UINT8 *)(p + 1); in btsnd_hcic_io_cap_req_neg_reply()
2419 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY; in btsnd_hcic_io_cap_req_neg_reply()
2420 p->offset = 0; in btsnd_hcic_io_cap_req_neg_reply()
2428 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_io_cap_req_neg_reply()
2434 BT_HDR *p; in btsnd_hcic_read_local_oob_data() local
2437 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_R_LOCAL_OOB)) == NULL) in btsnd_hcic_read_local_oob_data()
2440 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_oob_data()
2442 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_R_LOCAL_OOB; in btsnd_hcic_read_local_oob_data()
2443 p->offset = 0; in btsnd_hcic_read_local_oob_data()
2448 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_local_oob_data()
2454 BT_HDR *p; in btsnd_hcic_user_conf_reply() local
2457 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_UCONF_REPLY)) == NULL) in btsnd_hcic_user_conf_reply()
2460 pp = (UINT8 *)(p + 1); in btsnd_hcic_user_conf_reply()
2462 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_UCONF_REPLY; in btsnd_hcic_user_conf_reply()
2463 p->offset = 0; in btsnd_hcic_user_conf_reply()
2480 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_user_conf_reply()
2486 BT_HDR *p; in btsnd_hcic_user_passkey_reply() local
2489 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_U_PKEY_REPLY)) == NULL) in btsnd_hcic_user_passkey_reply()
2492 pp = (UINT8 *)(p + 1); in btsnd_hcic_user_passkey_reply()
2494 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_U_PKEY_REPLY; in btsnd_hcic_user_passkey_reply()
2495 p->offset = 0; in btsnd_hcic_user_passkey_reply()
2503 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_user_passkey_reply()
2509 BT_HDR *p; in btsnd_hcic_user_passkey_neg_reply() local
2512 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY)) == NULL) in btsnd_hcic_user_passkey_neg_reply()
2515 pp = (UINT8 *)(p + 1); in btsnd_hcic_user_passkey_neg_reply()
2517 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY; in btsnd_hcic_user_passkey_neg_reply()
2518 p->offset = 0; in btsnd_hcic_user_passkey_neg_reply()
2525 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_user_passkey_neg_reply()
2531 BT_HDR *p; in btsnd_hcic_rem_oob_reply() local
2534 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_REM_OOB_REPLY)) == NULL) in btsnd_hcic_rem_oob_reply()
2537 pp = (UINT8 *)(p + 1); in btsnd_hcic_rem_oob_reply()
2539 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REM_OOB_REPLY; in btsnd_hcic_rem_oob_reply()
2540 p->offset = 0; in btsnd_hcic_rem_oob_reply()
2549 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rem_oob_reply()
2555 BT_HDR *p; in btsnd_hcic_rem_oob_neg_reply() local
2558 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY)) == NULL) in btsnd_hcic_rem_oob_neg_reply()
2561 pp = (UINT8 *)(p + 1); in btsnd_hcic_rem_oob_neg_reply()
2563 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY; in btsnd_hcic_rem_oob_neg_reply()
2564 p->offset = 0; in btsnd_hcic_rem_oob_neg_reply()
2571 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rem_oob_neg_reply()
2578 BT_HDR *p; in btsnd_hcic_read_inq_tx_power() local
2581 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_R_TX_POWER)) == NULL) in btsnd_hcic_read_inq_tx_power()
2584 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inq_tx_power()
2586 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_R_TX_POWER; in btsnd_hcic_read_inq_tx_power()
2587 p->offset = 0; in btsnd_hcic_read_inq_tx_power()
2592 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_inq_tx_power()
2598 BT_HDR *p; in btsnd_hcic_write_inq_tx_power() local
2601 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_W_TX_POWER)) == NULL) in btsnd_hcic_write_inq_tx_power()
2604 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inq_tx_power()
2606 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_W_TX_POWER; in btsnd_hcic_write_inq_tx_power()
2607 p->offset = 0; in btsnd_hcic_write_inq_tx_power()
2614 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inq_tx_power()
2621 BT_HDR *p;
2624 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_R_ERR_DATA_RPT)) == NULL)
2627 pp = (UINT8 *)(p + 1);
2629 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_R_ERR_DATA_RPT;
2630 p->offset = 0;
2635 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p);
2642 BT_HDR *p; in btsnd_hcic_write_default_erroneous_data_rpt() local
2645 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_W_ERR_DATA_RPT)) == NULL) in btsnd_hcic_write_default_erroneous_data_rpt()
2648 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_default_erroneous_data_rpt()
2650 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_W_ERR_DATA_RPT; in btsnd_hcic_write_default_erroneous_data_rpt()
2651 p->offset = 0; in btsnd_hcic_write_default_erroneous_data_rpt()
2658 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_default_erroneous_data_rpt()
2664 BT_HDR *p; in btsnd_hcic_send_keypress_notif() local
2667 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SEND_KEYPRESS_NOTIF)) == NULL) in btsnd_hcic_send_keypress_notif()
2670 pp = (UINT8 *)(p + 1); in btsnd_hcic_send_keypress_notif()
2672 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SEND_KEYPRESS_NOTIF; in btsnd_hcic_send_keypress_notif()
2673 p->offset = 0; in btsnd_hcic_send_keypress_notif()
2681 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_send_keypress_notif()
2690 BT_HDR *p; in btsnd_hcic_enhanced_flush() local
2693 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_ENHANCED_FLUSH)) == NULL) in btsnd_hcic_enhanced_flush()
2696 pp = (UINT8 *)(p + 1); in btsnd_hcic_enhanced_flush()
2698 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ENHANCED_FLUSH; in btsnd_hcic_enhanced_flush()
2699 p->offset = 0; in btsnd_hcic_enhanced_flush()
2706 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_enhanced_flush()
2714 BT_HDR *p; in btsnd_hcic_refresh_encryption_key() local
2717 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_refresh_encryption_key()
2720 pp = (UINT8 *)(p + 1); in btsnd_hcic_refresh_encryption_key()
2722 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_refresh_encryption_key()
2723 p->offset = 0; in btsnd_hcic_refresh_encryption_key()
2729 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_refresh_encryption_key()
2738 BT_HDR *p; in btsnd_hcic_read_local_ver() local
2741 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_local_ver()
2744 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_ver()
2746 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_local_ver()
2747 p->offset = 0; in btsnd_hcic_read_local_ver()
2752 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_read_local_ver()
2758 BT_HDR *p; in btsnd_hcic_read_local_supported_cmds() local
2761 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_local_supported_cmds()
2764 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_supported_cmds()
2766 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_local_supported_cmds()
2767 p->offset = 0; in btsnd_hcic_read_local_supported_cmds()
2772 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_read_local_supported_cmds()
2778 BT_HDR *p; in btsnd_hcic_read_local_features() local
2781 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_local_features()
2784 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_features()
2786 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_local_features()
2787 p->offset = 0; in btsnd_hcic_read_local_features()
2792 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_local_features()
2798 BT_HDR *p; in btsnd_hcic_read_local_ext_features() local
2801 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_LOCAL_EXT_FEATURES)) == NULL) in btsnd_hcic_read_local_ext_features()
2804 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_ext_features()
2806 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_LOCAL_EXT_FEATURES; in btsnd_hcic_read_local_ext_features()
2807 p->offset = 0; in btsnd_hcic_read_local_ext_features()
2814 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_local_ext_features()
2820 BT_HDR *p; in btsnd_hcic_read_buffer_size() local
2823 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_buffer_size()
2826 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_buffer_size()
2828 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_buffer_size()
2829 p->offset = 0; in btsnd_hcic_read_buffer_size()
2834 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_buffer_size()
2840 BT_HDR *p; in btsnd_hcic_read_country_code() local
2843 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_country_code()
2846 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_country_code()
2848 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_country_code()
2849 p->offset = 0; in btsnd_hcic_read_country_code()
2854 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_country_code()
2860 BT_HDR *p; in btsnd_hcic_read_bd_addr() local
2863 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_bd_addr()
2866 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_bd_addr()
2868 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_bd_addr()
2869 p->offset = 0; in btsnd_hcic_read_bd_addr()
2874 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_bd_addr()
2880 BT_HDR *p; in btsnd_hcic_read_fail_contact_count() local
2883 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_fail_contact_count()
2886 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_fail_contact_count()
2888 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_fail_contact_count()
2889 p->offset = 0; in btsnd_hcic_read_fail_contact_count()
2896 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_read_fail_contact_count()
2902 BT_HDR *p; in btsnd_hcic_reset_fail_contact_count() local
2905 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_reset_fail_contact_count()
2908 pp = (UINT8 *)(p + 1); in btsnd_hcic_reset_fail_contact_count()
2910 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_reset_fail_contact_count()
2911 p->offset = 0; in btsnd_hcic_reset_fail_contact_count()
2918 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_reset_fail_contact_count()
2924 BT_HDR *p; in btsnd_hcic_get_link_quality() local
2927 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_get_link_quality()
2930 pp = (UINT8 *)(p + 1); in btsnd_hcic_get_link_quality()
2932 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_get_link_quality()
2933 p->offset = 0; in btsnd_hcic_get_link_quality()
2940 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_get_link_quality()
2946 BT_HDR *p; in btsnd_hcic_read_rssi() local
2949 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_rssi()
2952 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_rssi()
2954 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_rssi()
2955 p->offset = 0; in btsnd_hcic_read_rssi()
2962 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_rssi()
2968 BT_HDR *p; in btsnd_hcic_read_loopback_mode() local
2971 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_loopback_mode()
2974 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_loopback_mode()
2976 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_loopback_mode()
2977 p->offset = 0; in btsnd_hcic_read_loopback_mode()
2982 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_loopback_mode()
2988 BT_HDR *p; in btsnd_hcic_write_loopback_mode() local
2991 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_loopback_mode()
2994 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_loopback_mode()
2996 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_loopback_mode()
2997 p->offset = 0; in btsnd_hcic_write_loopback_mode()
3004 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_loopback_mode()
3010 BT_HDR *p; in btsnd_hcic_enable_test_mode() local
3013 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_enable_test_mode()
3016 pp = (UINT8 *)(p + 1); in btsnd_hcic_enable_test_mode()
3018 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_enable_test_mode()
3019 p->offset = 0; in btsnd_hcic_enable_test_mode()
3024 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_enable_test_mode()
3030 BT_HDR *p; in btsnd_hcic_write_afh_channel_assessment_mode() local
3033 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_afh_channel_assessment_mode()
3036 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_afh_channel_assessment_mode()
3038 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_afh_channel_assessment_mode()
3039 p->offset = 0; in btsnd_hcic_write_afh_channel_assessment_mode()
3046 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_afh_channel_assessment_mode()
3052 BT_HDR *p; in btsnd_hcic_read_afh_channel_assessment_mode() local
3055 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_afh_channel_assessment_mode()
3058 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_afh_channel_assessment_mode()
3060 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_afh_channel_assessment_mode()
3061 p->offset = 0; in btsnd_hcic_read_afh_channel_assessment_mode()
3066 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_afh_channel_assessment_mode()
3072 BT_HDR *p; in btsnd_hcic_set_afh_channels() local
3077 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_AFH_CHANNELS)) == NULL) in btsnd_hcic_set_afh_channels()
3080 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_afh_channels()
3082 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_AFH_CHANNELS; in btsnd_hcic_set_afh_channels()
3083 p->offset = 0; in btsnd_hcic_set_afh_channels()
3101 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_afh_channels()
3107 BT_HDR *p; in btsnd_hcic_set_afh_host_channel_class() local
3111 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_AFH_CHANNELS)) == NULL) in btsnd_hcic_set_afh_host_channel_class()
3114 pp = (UINT8 *)(p + 1); in btsnd_hcic_set_afh_host_channel_class()
3116 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_AFH_CHANNELS; in btsnd_hcic_set_afh_host_channel_class()
3117 p->offset = 0; in btsnd_hcic_set_afh_host_channel_class()
3126 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_afh_host_channel_class()
3132 BT_HDR *p; in btsnd_hcic_read_afh_channel_map() local
3135 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_CMD_HANDLE)) == NULL) in btsnd_hcic_read_afh_channel_map()
3138 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_afh_channel_map()
3140 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_afh_channel_map()
3141 p->offset = 0; in btsnd_hcic_read_afh_channel_map()
3148 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_afh_channel_map()
3154 BT_HDR *p; in btsnd_hcic_read_clock() local
3157 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CLOCK)) == NULL) in btsnd_hcic_read_clock()
3160 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_clock()
3162 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CLOCK; in btsnd_hcic_read_clock()
3163 p->offset = 0; in btsnd_hcic_read_clock()
3171 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_clock()
3177 BT_HDR *p; in btsnd_hcic_read_inqscan_type() local
3180 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_inqscan_type()
3183 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inqscan_type()
3185 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_inqscan_type()
3186 p->offset = 0; in btsnd_hcic_read_inqscan_type()
3191 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_inqscan_type()
3197 BT_HDR *p; in btsnd_hcic_write_inqscan_type() local
3200 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_inqscan_type()
3203 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inqscan_type()
3205 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_inqscan_type()
3206 p->offset = 0; in btsnd_hcic_write_inqscan_type()
3213 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inqscan_type()
3219 BT_HDR *p; in btsnd_hcic_read_inquiry_mode() local
3222 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_inquiry_mode()
3225 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inquiry_mode()
3227 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_inquiry_mode()
3228 p->offset = 0; in btsnd_hcic_read_inquiry_mode()
3233 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_inquiry_mode()
3239 BT_HDR *p; in btsnd_hcic_write_inquiry_mode() local
3242 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_inquiry_mode()
3245 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inquiry_mode()
3247 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_inquiry_mode()
3248 p->offset = 0; in btsnd_hcic_write_inquiry_mode()
3255 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inquiry_mode()
3261 BT_HDR *p; in btsnd_hcic_read_pagescan_type() local
3264 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_read_pagescan_type()
3267 pp = (UINT8 *)(p + 1); in btsnd_hcic_read_pagescan_type()
3269 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_pagescan_type()
3270 p->offset = 0; in btsnd_hcic_read_pagescan_type()
3275 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_pagescan_type()
3281 BT_HDR *p; in btsnd_hcic_write_pagescan_type() local
3284 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_PARAM1)) == NULL) in btsnd_hcic_write_pagescan_type()
3287 pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pagescan_type()
3289 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_pagescan_type()
3290 p->offset = 0; in btsnd_hcic_write_pagescan_type()
3297 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_pagescan_type()
3309 BT_HDR *p = (BT_HDR *)buffer; in btsnd_hcic_vendor_spec_cmd() local
3310 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_vendor_spec_cmd()
3312 p->len = HCIC_PREAMBLE_SIZE + len; in btsnd_hcic_vendor_spec_cmd()
3313 p->offset = sizeof(void *); in btsnd_hcic_vendor_spec_cmd()
3322 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_vendor_spec_cmd()
3327 UINT8 *p; in btsnd_hcic_data() local
3334 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in btsnd_hcic_data()
3336 UINT16_TO_STREAM (p, handle | ((boundary & 3) << 12) | ((broadcast & 3) << 14)); in btsnd_hcic_data()
3337 UINT16_TO_STREAM (p, len); in btsnd_hcic_data()
3344 BT_HDR *p; in btsnd_hcic_nop() local
3347 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_READ_CMD)) == NULL) in btsnd_hcic_nop()
3350 pp = (UINT8 *)(p + 1); in btsnd_hcic_nop()
3352 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_nop()
3353 p->offset = 0; in btsnd_hcic_nop()
3358 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_nop()