Lines Matching refs:p
40 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry() local
41 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_inquiry()
43 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY; in btsnd_hcic_inquiry()
44 p->offset = 0; in btsnd_hcic_inquiry()
53 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inquiry()
59 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel() local
60 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_inq_cancel()
62 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL; in btsnd_hcic_inq_cancel()
63 p->offset = 0; in btsnd_hcic_inq_cancel()
67 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inq_cancel()
74 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_per_inq_mode() local
75 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_per_inq_mode()
77 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PER_INQ_MODE; in btsnd_hcic_per_inq_mode()
78 p->offset = 0; in btsnd_hcic_per_inq_mode()
89 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_per_inq_mode()
95 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_exit_per_inq() local
96 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_per_inq()
98 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_EXIT_PER_INQ; in btsnd_hcic_exit_per_inq()
99 p->offset = 0; in btsnd_hcic_exit_per_inq()
103 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_exit_per_inq()
112 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn() local
113 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_create_conn()
116 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN; in btsnd_hcic_create_conn()
118 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN - 1; in btsnd_hcic_create_conn()
120 p->offset = 0; in btsnd_hcic_create_conn()
136 btm_acl_paging (p, dest); in btsnd_hcic_create_conn()
142 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_disconnect() local
143 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_disconnect()
145 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DISCONNECT; in btsnd_hcic_disconnect()
146 p->offset = 0; in btsnd_hcic_disconnect()
153 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_disconnect()
160 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_add_SCO_conn() local
161 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_add_SCO_conn()
163 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ADD_SCO_CONN; in btsnd_hcic_add_SCO_conn()
164 p->offset = 0; in btsnd_hcic_add_SCO_conn()
172 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_add_SCO_conn()
179 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn_cancel() local
180 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_create_conn_cancel()
182 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CREATE_CONN_CANCEL; in btsnd_hcic_create_conn_cancel()
183 p->offset = 0; in btsnd_hcic_create_conn_cancel()
190 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_create_conn_cancel()
196 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_accept_conn() local
197 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_accept_conn()
199 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ACCEPT_CONN; in btsnd_hcic_accept_conn()
200 p->offset = 0; in btsnd_hcic_accept_conn()
208 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_accept_conn()
214 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_reject_conn() local
215 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_reject_conn()
217 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REJECT_CONN; in btsnd_hcic_reject_conn()
218 p->offset = 0; in btsnd_hcic_reject_conn()
227 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_reject_conn()
233 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_link_key_req_reply() local
234 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_link_key_req_reply()
236 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY; in btsnd_hcic_link_key_req_reply()
237 p->offset = 0; in btsnd_hcic_link_key_req_reply()
245 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_link_key_req_reply()
251 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_link_key_neg_reply() local
252 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_link_key_neg_reply()
254 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY; in btsnd_hcic_link_key_neg_reply()
255 p->offset = 0; in btsnd_hcic_link_key_neg_reply()
262 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_link_key_neg_reply()
269 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_pin_code_req_reply() local
270 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_pin_code_req_reply()
273 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY; in btsnd_hcic_pin_code_req_reply()
274 p->offset = 0; in btsnd_hcic_pin_code_req_reply()
289 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_pin_code_req_reply()
295 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_pin_code_neg_reply() local
296 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_pin_code_neg_reply()
298 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY; in btsnd_hcic_pin_code_neg_reply()
299 p->offset = 0; in btsnd_hcic_pin_code_neg_reply()
306 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_pin_code_neg_reply()
312 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_change_conn_type() local
313 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_change_conn_type()
315 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_CONN_TYPE; in btsnd_hcic_change_conn_type()
316 p->offset = 0; in btsnd_hcic_change_conn_type()
324 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_change_conn_type()
330 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_auth_request() local
331 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_auth_request()
333 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_auth_request()
334 p->offset = 0; in btsnd_hcic_auth_request()
341 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_auth_request()
347 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_set_conn_encrypt() local
348 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_set_conn_encrypt()
350 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_CONN_ENCRYPT; in btsnd_hcic_set_conn_encrypt()
351 p->offset = 0; in btsnd_hcic_set_conn_encrypt()
359 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_conn_encrypt()
366 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rmt_name_req() local
367 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_name_req()
369 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RMT_NAME_REQ; in btsnd_hcic_rmt_name_req()
370 p->offset = 0; in btsnd_hcic_rmt_name_req()
380 btm_acl_paging (p, bd_addr); in btsnd_hcic_rmt_name_req()
386 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rmt_name_req_cancel() local
387 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_name_req_cancel()
389 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RMT_NAME_REQ_CANCEL; in btsnd_hcic_rmt_name_req_cancel()
390 p->offset = 0; in btsnd_hcic_rmt_name_req_cancel()
397 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_name_req_cancel()
403 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rmt_features_req() local
404 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_features_req()
406 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_rmt_features_req()
407 p->offset = 0; in btsnd_hcic_rmt_features_req()
414 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_features_req()
420 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rmt_ext_features() local
421 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_ext_features()
423 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_RMT_EXT_FEATURES; in btsnd_hcic_rmt_ext_features()
424 p->offset = 0; in btsnd_hcic_rmt_ext_features()
432 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_ext_features()
438 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rmt_ver_req() local
439 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rmt_ver_req()
441 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_rmt_ver_req()
442 p->offset = 0; in btsnd_hcic_rmt_ver_req()
449 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rmt_ver_req()
455 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_rmt_clk_offset() local
456 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_rmt_clk_offset()
458 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_rmt_clk_offset()
459 p->offset = 0; in btsnd_hcic_read_rmt_clk_offset()
466 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_rmt_clk_offset()
472 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_lmp_handle() local
473 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_lmp_handle()
475 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_lmp_handle()
476 p->offset = 0; in btsnd_hcic_read_lmp_handle()
483 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_lmp_handle()
491 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_setup_esco_conn() local
492 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_setup_esco_conn()
494 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SETUP_ESCO; in btsnd_hcic_setup_esco_conn()
495 p->offset = 0; in btsnd_hcic_setup_esco_conn()
508 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_setup_esco_conn()
517 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_accept_esco_conn() local
518 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_accept_esco_conn()
520 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ACCEPT_ESCO; in btsnd_hcic_accept_esco_conn()
521 p->offset = 0; in btsnd_hcic_accept_esco_conn()
534 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_accept_esco_conn()
540 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_reject_esco_conn() local
541 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_reject_esco_conn()
543 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REJECT_ESCO; in btsnd_hcic_reject_esco_conn()
544 p->offset = 0; in btsnd_hcic_reject_esco_conn()
552 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_reject_esco_conn()
559 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_hold_mode() local
560 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_hold_mode()
562 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_HOLD_MODE; in btsnd_hcic_hold_mode()
563 p->offset = 0; in btsnd_hcic_hold_mode()
572 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_hold_mode()
580 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_sniff_mode() local
581 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_sniff_mode()
583 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SNIFF_MODE; in btsnd_hcic_sniff_mode()
584 p->offset = 0; in btsnd_hcic_sniff_mode()
595 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_sniff_mode()
601 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_exit_sniff_mode() local
602 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_sniff_mode()
604 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_exit_sniff_mode()
605 p->offset = 0; in btsnd_hcic_exit_sniff_mode()
612 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_exit_sniff_mode()
619 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_park_mode() local
620 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_park_mode()
622 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_PARK_MODE; in btsnd_hcic_park_mode()
623 p->offset = 0; in btsnd_hcic_park_mode()
632 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_park_mode()
638 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_exit_park_mode() local
639 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_exit_park_mode()
641 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_exit_park_mode()
642 p->offset = 0; in btsnd_hcic_exit_park_mode()
649 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_exit_park_mode()
657 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_qos_setup() local
658 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_qos_setup()
660 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_QOS_SETUP; in btsnd_hcic_qos_setup()
661 p->offset = 0; in btsnd_hcic_qos_setup()
674 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_qos_setup()
680 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_switch_role() local
681 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_switch_role()
683 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SWITCH_ROLE; in btsnd_hcic_switch_role()
684 p->offset = 0; in btsnd_hcic_switch_role()
692 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_switch_role()
698 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_policy_set() local
699 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_policy_set()
701 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_POLICY_SET; in btsnd_hcic_write_policy_set()
702 p->offset = 0; in btsnd_hcic_write_policy_set()
709 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_policy_set()
715 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_def_policy_set() local
716 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_def_policy_set()
718 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET; in btsnd_hcic_write_def_policy_set()
719 p->offset = 0; in btsnd_hcic_write_def_policy_set()
725 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_def_policy_set()
732 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_set_event_filter() local
733 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_set_event_filter()
735 p->offset = 0; in btsnd_hcic_set_event_filter()
741 p->len = (UINT16)(HCIC_PREAMBLE_SIZE + 2 + filt_cond_len); in btsnd_hcic_set_event_filter()
769 p->len = (UINT16)(HCIC_PREAMBLE_SIZE + 1); in btsnd_hcic_set_event_filter()
775 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_set_event_filter()
781 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_pin_type() local
782 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pin_type()
784 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_pin_type()
785 p->offset = 0; in btsnd_hcic_write_pin_type()
792 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_pin_type()
798 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_delete_stored_key() local
799 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_delete_stored_key()
801 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DELETE_STORED_KEY; in btsnd_hcic_delete_stored_key()
802 p->offset = 0; in btsnd_hcic_delete_stored_key()
810 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_delete_stored_key()
816 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_change_name() local
817 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_change_name()
822 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME; in btsnd_hcic_change_name()
823 p->offset = 0; in btsnd_hcic_change_name()
833 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_change_name()
839 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_name() local
840 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_name()
842 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_read_name()
843 p->offset = 0; in btsnd_hcic_read_name()
848 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_name()
854 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_page_tout() local
855 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_page_tout()
857 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM2; in btsnd_hcic_write_page_tout()
858 p->offset = 0; in btsnd_hcic_write_page_tout()
865 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_page_tout()
871 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_scan_enable() local
872 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_scan_enable()
874 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_scan_enable()
875 p->offset = 0; in btsnd_hcic_write_scan_enable()
882 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_scan_enable()
888 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_pagescan_cfg() local
889 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pagescan_cfg()
891 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG; in btsnd_hcic_write_pagescan_cfg()
892 p->offset = 0; in btsnd_hcic_write_pagescan_cfg()
900 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_pagescan_cfg()
906 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_inqscan_cfg() local
907 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inqscan_cfg()
909 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG; in btsnd_hcic_write_inqscan_cfg()
910 p->offset = 0; in btsnd_hcic_write_inqscan_cfg()
918 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inqscan_cfg()
924 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_auth_enable() local
925 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_auth_enable()
927 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_auth_enable()
928 p->offset = 0; in btsnd_hcic_write_auth_enable()
935 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_auth_enable()
941 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_dev_class() local
942 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_dev_class()
944 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM3; in btsnd_hcic_write_dev_class()
945 p->offset = 0; in btsnd_hcic_write_dev_class()
952 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_dev_class()
958 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_voice_settings() local
959 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_voice_settings()
961 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM2; in btsnd_hcic_write_voice_settings()
962 p->offset = 0; in btsnd_hcic_write_voice_settings()
969 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_voice_settings()
975 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_auto_flush_tout() local
976 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_auto_flush_tout()
978 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_AUTO_FLUSH_TOUT; in btsnd_hcic_write_auto_flush_tout()
979 p->offset = 0; in btsnd_hcic_write_auto_flush_tout()
987 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_auto_flush_tout()
993 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_tx_power() local
994 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_tx_power()
996 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_TX_POWER; in btsnd_hcic_read_tx_power()
997 p->offset = 0; in btsnd_hcic_read_tx_power()
1005 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_tx_power()
1012 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_host_num_xmitted_pkts() local
1013 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_host_num_xmitted_pkts()
1015 p->len = HCIC_PREAMBLE_SIZE + 1 + (num_handles * 4); in btsnd_hcic_host_num_xmitted_pkts()
1016 p->offset = 0; in btsnd_hcic_host_num_xmitted_pkts()
1019 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_host_num_xmitted_pkts()
1028 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_host_num_xmitted_pkts()
1034 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_link_super_tout() local
1035 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_link_super_tout()
1037 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT; in btsnd_hcic_write_link_super_tout()
1038 p->offset = 0; in btsnd_hcic_write_link_super_tout()
1046 btu_hcif_send_cmd (local_controller_id, p); in btsnd_hcic_write_link_super_tout()
1052 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_cur_iac_lap() local
1053 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_cur_iac_lap()
1055 p->len = HCIC_PREAMBLE_SIZE + 1 + (LAP_LEN * num_cur_iac); in btsnd_hcic_write_cur_iac_lap()
1056 p->offset = 0; in btsnd_hcic_write_cur_iac_lap()
1059 UINT8_TO_STREAM (pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_cur_iac_lap()
1066 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_cur_iac_lap()
1078 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_sniff_sub_rate() local
1079 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_sniff_sub_rate()
1081 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SNIFF_SUB_RATE; in btsnd_hcic_sniff_sub_rate()
1082 p->offset = 0; in btsnd_hcic_sniff_sub_rate()
1092 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_sniff_sub_rate()
1100 BT_HDR *p = (BT_HDR *)buffer; in btsnd_hcic_write_ext_inquiry_response() local
1101 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_ext_inquiry_response()
1103 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_EXT_INQ_RESP; in btsnd_hcic_write_ext_inquiry_response()
1104 p->offset = 0; in btsnd_hcic_write_ext_inquiry_response()
1111 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_ext_inquiry_response()
1117 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_io_cap_req_reply() local
1118 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_io_cap_req_reply()
1120 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_IO_CAP_RESP; in btsnd_hcic_io_cap_req_reply()
1121 p->offset = 0; in btsnd_hcic_io_cap_req_reply()
1131 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_io_cap_req_reply()
1137 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_io_cap_req_neg_reply() local
1138 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_io_cap_req_neg_reply()
1140 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY; in btsnd_hcic_io_cap_req_neg_reply()
1141 p->offset = 0; in btsnd_hcic_io_cap_req_neg_reply()
1149 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_io_cap_req_neg_reply()
1155 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_local_oob_data() local
1156 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_local_oob_data()
1158 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_R_LOCAL_OOB; in btsnd_hcic_read_local_oob_data()
1159 p->offset = 0; in btsnd_hcic_read_local_oob_data()
1164 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_local_oob_data()
1170 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_user_conf_reply() local
1171 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_user_conf_reply()
1173 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_UCONF_REPLY; in btsnd_hcic_user_conf_reply()
1174 p->offset = 0; in btsnd_hcic_user_conf_reply()
1191 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_user_conf_reply()
1197 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_user_passkey_reply() local
1198 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_user_passkey_reply()
1200 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_U_PKEY_REPLY; in btsnd_hcic_user_passkey_reply()
1201 p->offset = 0; in btsnd_hcic_user_passkey_reply()
1209 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_user_passkey_reply()
1215 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_user_passkey_neg_reply() local
1216 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_user_passkey_neg_reply()
1218 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY; in btsnd_hcic_user_passkey_neg_reply()
1219 p->offset = 0; in btsnd_hcic_user_passkey_neg_reply()
1226 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_user_passkey_neg_reply()
1232 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rem_oob_reply() local
1233 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rem_oob_reply()
1235 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REM_OOB_REPLY; in btsnd_hcic_rem_oob_reply()
1236 p->offset = 0; in btsnd_hcic_rem_oob_reply()
1245 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rem_oob_reply()
1251 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_rem_oob_neg_reply() local
1252 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_rem_oob_neg_reply()
1254 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY; in btsnd_hcic_rem_oob_neg_reply()
1255 p->offset = 0; in btsnd_hcic_rem_oob_neg_reply()
1262 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_rem_oob_neg_reply()
1269 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_inq_tx_power() local
1270 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_inq_tx_power()
1272 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_R_TX_POWER; in btsnd_hcic_read_inq_tx_power()
1273 p->offset = 0; in btsnd_hcic_read_inq_tx_power()
1278 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_inq_tx_power()
1284 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_send_keypress_notif() local
1285 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_send_keypress_notif()
1287 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SEND_KEYPRESS_NOTIF; in btsnd_hcic_send_keypress_notif()
1288 p->offset = 0; in btsnd_hcic_send_keypress_notif()
1296 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_send_keypress_notif()
1305 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_enhanced_flush() local
1306 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_enhanced_flush()
1308 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ENHANCED_FLUSH; in btsnd_hcic_enhanced_flush()
1309 p->offset = 0; in btsnd_hcic_enhanced_flush()
1316 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_enhanced_flush()
1327 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_get_link_quality() local
1328 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_get_link_quality()
1330 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_get_link_quality()
1331 p->offset = 0; in btsnd_hcic_get_link_quality()
1338 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_get_link_quality()
1344 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_read_rssi() local
1345 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_read_rssi()
1347 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE; in btsnd_hcic_read_rssi()
1348 p->offset = 0; in btsnd_hcic_read_rssi()
1355 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_read_rssi()
1361 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_enable_test_mode() local
1362 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_enable_test_mode()
1364 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_enable_test_mode()
1365 p->offset = 0; in btsnd_hcic_enable_test_mode()
1370 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_enable_test_mode()
1376 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_inqscan_type() local
1377 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inqscan_type()
1379 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_inqscan_type()
1380 p->offset = 0; in btsnd_hcic_write_inqscan_type()
1387 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inqscan_type()
1393 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_inquiry_mode() local
1394 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_inquiry_mode()
1396 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_inquiry_mode()
1397 p->offset = 0; in btsnd_hcic_write_inquiry_mode()
1404 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_inquiry_mode()
1410 BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_write_pagescan_type() local
1411 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_write_pagescan_type()
1413 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1; in btsnd_hcic_write_pagescan_type()
1414 p->offset = 0; in btsnd_hcic_write_pagescan_type()
1421 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_write_pagescan_type()
1433 BT_HDR *p = (BT_HDR *)buffer; in btsnd_hcic_vendor_spec_cmd() local
1434 UINT8 *pp = (UINT8 *)(p + 1); in btsnd_hcic_vendor_spec_cmd()
1436 p->len = HCIC_PREAMBLE_SIZE + len; in btsnd_hcic_vendor_spec_cmd()
1437 p->offset = sizeof(void *); in btsnd_hcic_vendor_spec_cmd()
1446 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_vendor_spec_cmd()