Lines Matching refs:pp
40 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry() local
45 UINT16_TO_STREAM(pp, HCI_INQUIRY); in btsnd_hcic_inquiry()
46 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQUIRY); in btsnd_hcic_inquiry()
48 LAP_TO_STREAM(pp, inq_lap); in btsnd_hcic_inquiry()
49 UINT8_TO_STREAM(pp, duration); in btsnd_hcic_inquiry()
50 UINT8_TO_STREAM(pp, response_cnt); in btsnd_hcic_inquiry()
57 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel() local
61 UINT16_TO_STREAM(pp, HCI_INQUIRY_CANCEL); in btsnd_hcic_inq_cancel()
62 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQ_CANCEL); in btsnd_hcic_inq_cancel()
71 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_per_inq_mode() local
76 UINT16_TO_STREAM(pp, HCI_PERIODIC_INQUIRY_MODE); in btsnd_hcic_per_inq_mode()
77 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PER_INQ_MODE); in btsnd_hcic_per_inq_mode()
79 UINT16_TO_STREAM(pp, max_period); in btsnd_hcic_per_inq_mode()
80 UINT16_TO_STREAM(pp, min_period); in btsnd_hcic_per_inq_mode()
81 LAP_TO_STREAM(pp, inq_lap); in btsnd_hcic_per_inq_mode()
82 UINT8_TO_STREAM(pp, duration); in btsnd_hcic_per_inq_mode()
83 UINT8_TO_STREAM(pp, response_cnt); in btsnd_hcic_per_inq_mode()
90 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_per_inq() local
94 UINT16_TO_STREAM(pp, HCI_EXIT_PERIODIC_INQUIRY_MODE); in btsnd_hcic_exit_per_inq()
95 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXIT_PER_INQ); in btsnd_hcic_exit_per_inq()
104 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_create_conn() local
113 UINT16_TO_STREAM(pp, HCI_CREATE_CONNECTION); in btsnd_hcic_create_conn()
115 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CREATE_CONN); in btsnd_hcic_create_conn()
117 UINT8_TO_STREAM(pp, (HCIC_PARAM_SIZE_CREATE_CONN - 1)); in btsnd_hcic_create_conn()
119 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_create_conn()
120 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_create_conn()
121 UINT8_TO_STREAM(pp, page_scan_rep_mode); in btsnd_hcic_create_conn()
122 UINT8_TO_STREAM(pp, page_scan_mode); in btsnd_hcic_create_conn()
123 UINT16_TO_STREAM(pp, clock_offset); in btsnd_hcic_create_conn()
125 UINT8_TO_STREAM(pp, allow_switch); in btsnd_hcic_create_conn()
132 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_disconnect() local
137 UINT16_TO_STREAM(pp, HCI_DISCONNECT); in btsnd_hcic_disconnect()
138 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DISCONNECT); in btsnd_hcic_disconnect()
139 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_disconnect()
140 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_disconnect()
147 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_add_SCO_conn() local
152 UINT16_TO_STREAM(pp, HCI_ADD_SCO_CONNECTION); in btsnd_hcic_add_SCO_conn()
153 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ADD_SCO_CONN); in btsnd_hcic_add_SCO_conn()
155 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_add_SCO_conn()
156 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_add_SCO_conn()
163 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_create_conn_cancel() local
168 UINT16_TO_STREAM(pp, HCI_CREATE_CONNECTION_CANCEL); in btsnd_hcic_create_conn_cancel()
169 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CREATE_CONN_CANCEL); in btsnd_hcic_create_conn_cancel()
171 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_create_conn_cancel()
178 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_accept_conn() local
183 UINT16_TO_STREAM(pp, HCI_ACCEPT_CONNECTION_REQUEST); in btsnd_hcic_accept_conn()
184 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ACCEPT_CONN); in btsnd_hcic_accept_conn()
185 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_accept_conn()
186 UINT8_TO_STREAM(pp, role); in btsnd_hcic_accept_conn()
193 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_reject_conn() local
198 UINT16_TO_STREAM(pp, HCI_REJECT_CONNECTION_REQUEST); in btsnd_hcic_reject_conn()
199 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REJECT_CONN); in btsnd_hcic_reject_conn()
201 BDADDR_TO_STREAM(pp, dest); in btsnd_hcic_reject_conn()
202 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_reject_conn()
210 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_link_key_req_reply() local
215 UINT16_TO_STREAM(pp, HCI_LINK_KEY_REQUEST_REPLY); in btsnd_hcic_link_key_req_reply()
216 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LINK_KEY_REQ_REPLY); in btsnd_hcic_link_key_req_reply()
218 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_link_key_req_reply()
219 ARRAY16_TO_STREAM(pp, link_key.data()); in btsnd_hcic_link_key_req_reply()
226 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_link_key_neg_reply() local
231 UINT16_TO_STREAM(pp, HCI_LINK_KEY_REQUEST_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
232 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_LINK_KEY_NEG_REPLY); in btsnd_hcic_link_key_neg_reply()
234 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_link_key_neg_reply()
242 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_pin_code_req_reply() local
248 UINT16_TO_STREAM(pp, HCI_PIN_CODE_REQUEST_REPLY); in btsnd_hcic_pin_code_req_reply()
249 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PIN_CODE_REQ_REPLY); in btsnd_hcic_pin_code_req_reply()
251 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_pin_code_req_reply()
252 UINT8_TO_STREAM(pp, pin_code_len); in btsnd_hcic_pin_code_req_reply()
254 for (i = 0; i < pin_code_len; i++) *pp++ = *pin_code++; in btsnd_hcic_pin_code_req_reply()
256 for (; i < PIN_CODE_LEN; i++) *pp++ = 0; in btsnd_hcic_pin_code_req_reply()
263 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_pin_code_neg_reply() local
268 UINT16_TO_STREAM(pp, HCI_PIN_CODE_REQUEST_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
269 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PIN_CODE_NEG_REPLY); in btsnd_hcic_pin_code_neg_reply()
271 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_pin_code_neg_reply()
278 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_change_conn_type() local
283 UINT16_TO_STREAM(pp, HCI_CHANGE_CONN_PACKET_TYPE); in btsnd_hcic_change_conn_type()
284 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CHANGE_CONN_TYPE); in btsnd_hcic_change_conn_type()
286 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_change_conn_type()
287 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_change_conn_type()
294 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_auth_request() local
299 UINT16_TO_STREAM(pp, HCI_AUTHENTICATION_REQUESTED); in btsnd_hcic_auth_request()
300 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_auth_request()
302 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_auth_request()
309 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_set_conn_encrypt() local
314 UINT16_TO_STREAM(pp, HCI_SET_CONN_ENCRYPTION); in btsnd_hcic_set_conn_encrypt()
315 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SET_CONN_ENCRYPT); in btsnd_hcic_set_conn_encrypt()
317 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_set_conn_encrypt()
318 UINT8_TO_STREAM(pp, enable); in btsnd_hcic_set_conn_encrypt()
327 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_name_req() local
332 UINT16_TO_STREAM(pp, HCI_RMT_NAME_REQUEST); in btsnd_hcic_rmt_name_req()
333 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_NAME_REQ); in btsnd_hcic_rmt_name_req()
335 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rmt_name_req()
336 UINT8_TO_STREAM(pp, page_scan_rep_mode); in btsnd_hcic_rmt_name_req()
337 UINT8_TO_STREAM(pp, page_scan_mode); in btsnd_hcic_rmt_name_req()
338 UINT16_TO_STREAM(pp, clock_offset); in btsnd_hcic_rmt_name_req()
345 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_name_req_cancel() local
350 UINT16_TO_STREAM(pp, HCI_RMT_NAME_REQUEST_CANCEL); in btsnd_hcic_rmt_name_req_cancel()
351 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_NAME_REQ_CANCEL); in btsnd_hcic_rmt_name_req_cancel()
353 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rmt_name_req_cancel()
360 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_features_req() local
365 UINT16_TO_STREAM(pp, HCI_READ_RMT_FEATURES); in btsnd_hcic_rmt_features_req()
366 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_features_req()
368 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_features_req()
375 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_ext_features() local
380 UINT16_TO_STREAM(pp, HCI_READ_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
381 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_RMT_EXT_FEATURES); in btsnd_hcic_rmt_ext_features()
383 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_ext_features()
384 UINT8_TO_STREAM(pp, page_num); in btsnd_hcic_rmt_ext_features()
391 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rmt_ver_req() local
396 UINT16_TO_STREAM(pp, HCI_READ_RMT_VERSION_INFO); in btsnd_hcic_rmt_ver_req()
397 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_rmt_ver_req()
399 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_rmt_ver_req()
406 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_rmt_clk_offset() local
411 UINT16_TO_STREAM(pp, HCI_READ_RMT_CLOCK_OFFSET); in btsnd_hcic_read_rmt_clk_offset()
412 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rmt_clk_offset()
414 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_rmt_clk_offset()
421 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_lmp_handle() local
426 UINT16_TO_STREAM(pp, HCI_READ_LMP_HANDLE); in btsnd_hcic_read_lmp_handle()
427 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_lmp_handle()
429 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_lmp_handle()
439 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_setup_esco_conn() local
444 UINT16_TO_STREAM(pp, HCI_SETUP_ESCO_CONNECTION); in btsnd_hcic_setup_esco_conn()
445 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SETUP_ESCO); in btsnd_hcic_setup_esco_conn()
447 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_setup_esco_conn()
448 UINT32_TO_STREAM(pp, transmit_bandwidth); in btsnd_hcic_setup_esco_conn()
449 UINT32_TO_STREAM(pp, receive_bandwidth); in btsnd_hcic_setup_esco_conn()
450 UINT16_TO_STREAM(pp, max_latency); in btsnd_hcic_setup_esco_conn()
451 UINT16_TO_STREAM(pp, voice); in btsnd_hcic_setup_esco_conn()
452 UINT8_TO_STREAM(pp, retrans_effort); in btsnd_hcic_setup_esco_conn()
453 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_setup_esco_conn()
465 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_accept_esco_conn() local
470 UINT16_TO_STREAM(pp, HCI_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_accept_esco_conn()
471 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ACCEPT_ESCO); in btsnd_hcic_accept_esco_conn()
473 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_accept_esco_conn()
474 UINT32_TO_STREAM(pp, transmit_bandwidth); in btsnd_hcic_accept_esco_conn()
475 UINT32_TO_STREAM(pp, receive_bandwidth); in btsnd_hcic_accept_esco_conn()
476 UINT16_TO_STREAM(pp, max_latency); in btsnd_hcic_accept_esco_conn()
477 UINT16_TO_STREAM(pp, content_fmt); in btsnd_hcic_accept_esco_conn()
478 UINT8_TO_STREAM(pp, retrans_effort); in btsnd_hcic_accept_esco_conn()
479 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_accept_esco_conn()
486 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_reject_esco_conn() local
491 UINT16_TO_STREAM(pp, HCI_REJECT_ESCO_CONNECTION); in btsnd_hcic_reject_esco_conn()
492 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REJECT_ESCO); in btsnd_hcic_reject_esco_conn()
494 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_reject_esco_conn()
495 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_reject_esco_conn()
503 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_hold_mode() local
508 UINT16_TO_STREAM(pp, HCI_HOLD_MODE); in btsnd_hcic_hold_mode()
509 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_HOLD_MODE); in btsnd_hcic_hold_mode()
511 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_hold_mode()
512 UINT16_TO_STREAM(pp, max_hold_period); in btsnd_hcic_hold_mode()
513 UINT16_TO_STREAM(pp, min_hold_period); in btsnd_hcic_hold_mode()
522 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_sniff_mode() local
527 UINT16_TO_STREAM(pp, HCI_SNIFF_MODE); in btsnd_hcic_sniff_mode()
528 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SNIFF_MODE); in btsnd_hcic_sniff_mode()
530 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_sniff_mode()
531 UINT16_TO_STREAM(pp, max_sniff_period); in btsnd_hcic_sniff_mode()
532 UINT16_TO_STREAM(pp, min_sniff_period); in btsnd_hcic_sniff_mode()
533 UINT16_TO_STREAM(pp, sniff_attempt); in btsnd_hcic_sniff_mode()
534 UINT16_TO_STREAM(pp, sniff_timeout); in btsnd_hcic_sniff_mode()
541 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_sniff_mode() local
546 UINT16_TO_STREAM(pp, HCI_EXIT_SNIFF_MODE); in btsnd_hcic_exit_sniff_mode()
547 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_sniff_mode()
549 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_exit_sniff_mode()
557 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_park_mode() local
562 UINT16_TO_STREAM(pp, HCI_PARK_MODE); in btsnd_hcic_park_mode()
563 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_PARK_MODE); in btsnd_hcic_park_mode()
565 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_park_mode()
566 UINT16_TO_STREAM(pp, beacon_max_interval); in btsnd_hcic_park_mode()
567 UINT16_TO_STREAM(pp, beacon_min_interval); in btsnd_hcic_park_mode()
574 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_exit_park_mode() local
579 UINT16_TO_STREAM(pp, HCI_EXIT_PARK_MODE); in btsnd_hcic_exit_park_mode()
580 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_exit_park_mode()
582 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_exit_park_mode()
591 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_qos_setup() local
596 UINT16_TO_STREAM(pp, HCI_QOS_SETUP); in btsnd_hcic_qos_setup()
597 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_QOS_SETUP); in btsnd_hcic_qos_setup()
599 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_qos_setup()
600 UINT8_TO_STREAM(pp, flags); in btsnd_hcic_qos_setup()
601 UINT8_TO_STREAM(pp, service_type); in btsnd_hcic_qos_setup()
602 UINT32_TO_STREAM(pp, token_rate); in btsnd_hcic_qos_setup()
603 UINT32_TO_STREAM(pp, peak); in btsnd_hcic_qos_setup()
604 UINT32_TO_STREAM(pp, latency); in btsnd_hcic_qos_setup()
605 UINT32_TO_STREAM(pp, delay_var); in btsnd_hcic_qos_setup()
612 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_switch_role() local
617 UINT16_TO_STREAM(pp, HCI_SWITCH_ROLE); in btsnd_hcic_switch_role()
618 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SWITCH_ROLE); in btsnd_hcic_switch_role()
620 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_switch_role()
621 UINT8_TO_STREAM(pp, role); in btsnd_hcic_switch_role()
628 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_policy_set() local
632 UINT16_TO_STREAM(pp, HCI_WRITE_POLICY_SETTINGS); in btsnd_hcic_write_policy_set()
633 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_POLICY_SET); in btsnd_hcic_write_policy_set()
635 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_policy_set()
636 UINT16_TO_STREAM(pp, settings); in btsnd_hcic_write_policy_set()
643 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_def_policy_set() local
647 UINT16_TO_STREAM(pp, HCI_WRITE_DEF_POLICY_SETTINGS); in btsnd_hcic_write_def_policy_set()
648 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_DEF_POLICY_SET); in btsnd_hcic_write_def_policy_set()
650 UINT16_TO_STREAM(pp, settings); in btsnd_hcic_write_def_policy_set()
658 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_set_event_filter() local
662 UINT16_TO_STREAM(pp, HCI_SET_EVENT_FILTER); in btsnd_hcic_set_event_filter()
666 UINT8_TO_STREAM(pp, (uint8_t)(2 + filt_cond_len)); in btsnd_hcic_set_event_filter()
668 UINT8_TO_STREAM(pp, filt_type); in btsnd_hcic_set_event_filter()
669 UINT8_TO_STREAM(pp, filt_cond_type); in btsnd_hcic_set_event_filter()
672 DEVCLASS_TO_STREAM(pp, filt_cond); in btsnd_hcic_set_event_filter()
674 DEVCLASS_TO_STREAM(pp, filt_cond); in btsnd_hcic_set_event_filter()
679 BDADDR_TO_STREAM(pp, *((RawAddress*)filt_cond)); in btsnd_hcic_set_event_filter()
685 if (filt_cond_len) ARRAY_TO_STREAM(pp, filt_cond, filt_cond_len); in btsnd_hcic_set_event_filter()
688 UINT8_TO_STREAM(pp, 1); in btsnd_hcic_set_event_filter()
690 UINT8_TO_STREAM(pp, filt_type); in btsnd_hcic_set_event_filter()
698 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pin_type() local
703 UINT16_TO_STREAM(pp, HCI_WRITE_PIN_TYPE); in btsnd_hcic_write_pin_type()
704 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pin_type()
706 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_pin_type()
714 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_delete_stored_key() local
719 UINT16_TO_STREAM(pp, HCI_DELETE_STORED_LINK_KEY); in btsnd_hcic_delete_stored_key()
720 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DELETE_STORED_KEY); in btsnd_hcic_delete_stored_key()
722 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_delete_stored_key()
723 UINT8_TO_STREAM(pp, delete_all_flag); in btsnd_hcic_delete_stored_key()
730 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_change_name() local
733 memset(pp, 0, HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
738 UINT16_TO_STREAM(pp, HCI_CHANGE_LOCAL_NAME); in btsnd_hcic_change_name()
739 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CHANGE_NAME); in btsnd_hcic_change_name()
743 ARRAY_TO_STREAM(pp, name, len); in btsnd_hcic_change_name()
750 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_name() local
755 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_NAME); in btsnd_hcic_read_name()
756 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_read_name()
763 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_page_tout() local
768 UINT16_TO_STREAM(pp, HCI_WRITE_PAGE_TOUT); in btsnd_hcic_write_page_tout()
769 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_page_tout()
771 UINT16_TO_STREAM(pp, timeout); in btsnd_hcic_write_page_tout()
778 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_scan_enable() local
783 UINT16_TO_STREAM(pp, HCI_WRITE_SCAN_ENABLE); in btsnd_hcic_write_scan_enable()
784 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_scan_enable()
786 UINT8_TO_STREAM(pp, flag); in btsnd_hcic_write_scan_enable()
793 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pagescan_cfg() local
798 UINT16_TO_STREAM(pp, HCI_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
799 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PAGESCAN_CFG); in btsnd_hcic_write_pagescan_cfg()
801 UINT16_TO_STREAM(pp, interval); in btsnd_hcic_write_pagescan_cfg()
802 UINT16_TO_STREAM(pp, window); in btsnd_hcic_write_pagescan_cfg()
809 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inqscan_cfg() local
814 UINT16_TO_STREAM(pp, HCI_WRITE_INQUIRYSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
815 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_INQSCAN_CFG); in btsnd_hcic_write_inqscan_cfg()
817 UINT16_TO_STREAM(pp, interval); in btsnd_hcic_write_inqscan_cfg()
818 UINT16_TO_STREAM(pp, window); in btsnd_hcic_write_inqscan_cfg()
825 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_auth_enable() local
830 UINT16_TO_STREAM(pp, HCI_WRITE_AUTHENTICATION_ENABLE); in btsnd_hcic_write_auth_enable()
831 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_auth_enable()
833 UINT8_TO_STREAM(pp, flag); in btsnd_hcic_write_auth_enable()
840 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_dev_class() local
845 UINT16_TO_STREAM(pp, HCI_WRITE_CLASS_OF_DEVICE); in btsnd_hcic_write_dev_class()
846 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM3); in btsnd_hcic_write_dev_class()
848 DEVCLASS_TO_STREAM(pp, dev_class); in btsnd_hcic_write_dev_class()
855 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_voice_settings() local
860 UINT16_TO_STREAM(pp, HCI_WRITE_VOICE_SETTINGS); in btsnd_hcic_write_voice_settings()
861 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM2); in btsnd_hcic_write_voice_settings()
863 UINT16_TO_STREAM(pp, flags); in btsnd_hcic_write_voice_settings()
870 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_auto_flush_tout() local
875 UINT16_TO_STREAM(pp, HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_write_auto_flush_tout()
876 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_write_auto_flush_tout()
878 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_auto_flush_tout()
879 UINT16_TO_STREAM(pp, tout); in btsnd_hcic_write_auto_flush_tout()
886 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_tx_power() local
891 UINT16_TO_STREAM(pp, HCI_READ_TRANSMIT_POWER_LEVEL); in btsnd_hcic_read_tx_power()
892 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_TX_POWER); in btsnd_hcic_read_tx_power()
894 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_tx_power()
895 UINT8_TO_STREAM(pp, type); in btsnd_hcic_read_tx_power()
903 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_host_num_xmitted_pkts() local
908 UINT16_TO_STREAM(pp, HCI_HOST_NUM_PACKETS_DONE); in btsnd_hcic_host_num_xmitted_pkts()
909 UINT8_TO_STREAM(pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_host_num_xmitted_pkts()
911 UINT8_TO_STREAM(pp, num_handles); in btsnd_hcic_host_num_xmitted_pkts()
914 UINT16_TO_STREAM(pp, handle[i]); in btsnd_hcic_host_num_xmitted_pkts()
915 UINT16_TO_STREAM(pp, num_pkts[i]); in btsnd_hcic_host_num_xmitted_pkts()
924 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_link_super_tout() local
929 UINT16_TO_STREAM(pp, HCI_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
930 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_LINK_SUPER_TOUT); in btsnd_hcic_write_link_super_tout()
932 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_write_link_super_tout()
933 UINT16_TO_STREAM(pp, timeout); in btsnd_hcic_write_link_super_tout()
940 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_cur_iac_lap() local
945 UINT16_TO_STREAM(pp, HCI_WRITE_CURRENT_IAC_LAP); in btsnd_hcic_write_cur_iac_lap()
946 UINT8_TO_STREAM(pp, p->len - HCIC_PREAMBLE_SIZE); in btsnd_hcic_write_cur_iac_lap()
948 UINT8_TO_STREAM(pp, num_cur_iac); in btsnd_hcic_write_cur_iac_lap()
950 for (int i = 0; i < num_cur_iac; i++) LAP_TO_STREAM(pp, iac_lap[i]); in btsnd_hcic_write_cur_iac_lap()
964 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_sniff_sub_rate() local
969 UINT16_TO_STREAM(pp, HCI_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
970 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SNIFF_SUB_RATE); in btsnd_hcic_sniff_sub_rate()
972 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_sniff_sub_rate()
973 UINT16_TO_STREAM(pp, max_lat); in btsnd_hcic_sniff_sub_rate()
974 UINT16_TO_STREAM(pp, min_remote_lat); in btsnd_hcic_sniff_sub_rate()
975 UINT16_TO_STREAM(pp, min_local_lat); in btsnd_hcic_sniff_sub_rate()
984 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_ext_inquiry_response() local
989 UINT16_TO_STREAM(pp, HCI_WRITE_EXT_INQ_RESPONSE); in btsnd_hcic_write_ext_inquiry_response()
990 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_EXT_INQ_RESP); in btsnd_hcic_write_ext_inquiry_response()
992 UINT8_TO_STREAM(pp, fec_req); in btsnd_hcic_write_ext_inquiry_response()
1000 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_io_cap_req_reply() local
1005 UINT16_TO_STREAM(pp, HCI_IO_CAPABILITY_REQUEST_REPLY); in btsnd_hcic_io_cap_req_reply()
1006 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_IO_CAP_RESP); in btsnd_hcic_io_cap_req_reply()
1008 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_io_cap_req_reply()
1009 UINT8_TO_STREAM(pp, capability); in btsnd_hcic_io_cap_req_reply()
1010 UINT8_TO_STREAM(pp, oob_present); in btsnd_hcic_io_cap_req_reply()
1011 UINT8_TO_STREAM(pp, auth_req); in btsnd_hcic_io_cap_req_reply()
1019 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_set_up_synchronous_connection() local
1024 UINT16_TO_STREAM(pp, HCI_ENH_SETUP_ESCO_CONNECTION); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1025 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_SET_ESCO_CONN); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1027 UINT16_TO_STREAM(pp, conn_handle); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1028 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1029 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1030 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1031 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1032 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_set_up_synchronous_connection()
1034 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1035 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1036 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_set_up_synchronous_connection()
1038 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1039 UINT16_TO_STREAM(pp, p_params->receive_codec_frame_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1040 UINT32_TO_STREAM(pp, p_params->input_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1041 UINT32_TO_STREAM(pp, p_params->output_bandwidth); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1042 UINT8_TO_STREAM(pp, p_params->input_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1043 UINT16_TO_STREAM(pp, p_params->input_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1044 UINT16_TO_STREAM(pp, p_params->input_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1045 UINT8_TO_STREAM(pp, p_params->output_coding_format.coding_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1046 UINT16_TO_STREAM(pp, p_params->output_coding_format.company_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1047 UINT16_TO_STREAM(pp, p_params->output_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1048 UINT16_TO_STREAM(pp, p_params->input_coded_data_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1049 UINT16_TO_STREAM(pp, p_params->output_coded_data_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1050 UINT8_TO_STREAM(pp, p_params->input_pcm_data_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1051 UINT8_TO_STREAM(pp, p_params->output_pcm_data_format); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1052 UINT8_TO_STREAM(pp, p_params->input_pcm_payload_msb_position); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1053 UINT8_TO_STREAM(pp, p_params->output_pcm_payload_msb_position); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1054 UINT8_TO_STREAM(pp, p_params->input_data_path); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1055 UINT8_TO_STREAM(pp, p_params->output_data_path); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1056 UINT8_TO_STREAM(pp, p_params->input_transport_unit_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1057 UINT8_TO_STREAM(pp, p_params->output_transport_unit_size); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1058 UINT16_TO_STREAM(pp, p_params->max_latency_ms); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1059 UINT16_TO_STREAM(pp, p_params->packet_types); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1060 UINT8_TO_STREAM(pp, p_params->retransmission_effort); in btsnd_hcic_enhanced_set_up_synchronous_connection()
1068 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_accept_synchronous_connection() local
1073 UINT16_TO_STREAM(pp, HCI_ENH_ACCEPT_ESCO_CONNECTION); in btsnd_hcic_enhanced_accept_synchronous_connection()
1074 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENH_ACC_ESCO_CONN); in btsnd_hcic_enhanced_accept_synchronous_connection()
1076 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_enhanced_accept_synchronous_connection()
1077 UINT32_TO_STREAM(pp, p_params->transmit_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1078 UINT32_TO_STREAM(pp, p_params->receive_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1079 UINT8_TO_STREAM(pp, p_params->transmit_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1080 UINT16_TO_STREAM(pp, p_params->transmit_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1081 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_accept_synchronous_connection()
1083 UINT8_TO_STREAM(pp, p_params->receive_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1084 UINT16_TO_STREAM(pp, p_params->receive_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1085 UINT16_TO_STREAM(pp, in btsnd_hcic_enhanced_accept_synchronous_connection()
1087 UINT16_TO_STREAM(pp, p_params->transmit_codec_frame_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1088 UINT16_TO_STREAM(pp, p_params->receive_codec_frame_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1089 UINT32_TO_STREAM(pp, p_params->input_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1090 UINT32_TO_STREAM(pp, p_params->output_bandwidth); in btsnd_hcic_enhanced_accept_synchronous_connection()
1091 UINT8_TO_STREAM(pp, p_params->input_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1092 UINT16_TO_STREAM(pp, p_params->input_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1093 UINT16_TO_STREAM(pp, p_params->input_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1094 UINT8_TO_STREAM(pp, p_params->output_coding_format.coding_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1095 UINT16_TO_STREAM(pp, p_params->output_coding_format.company_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1096 UINT16_TO_STREAM(pp, p_params->output_coding_format.vendor_specific_codec_id); in btsnd_hcic_enhanced_accept_synchronous_connection()
1097 UINT16_TO_STREAM(pp, p_params->input_coded_data_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1098 UINT16_TO_STREAM(pp, p_params->output_coded_data_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1099 UINT8_TO_STREAM(pp, p_params->input_pcm_data_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1100 UINT8_TO_STREAM(pp, p_params->output_pcm_data_format); in btsnd_hcic_enhanced_accept_synchronous_connection()
1101 UINT8_TO_STREAM(pp, p_params->input_pcm_payload_msb_position); in btsnd_hcic_enhanced_accept_synchronous_connection()
1102 UINT8_TO_STREAM(pp, p_params->output_pcm_payload_msb_position); in btsnd_hcic_enhanced_accept_synchronous_connection()
1103 UINT8_TO_STREAM(pp, p_params->input_data_path); in btsnd_hcic_enhanced_accept_synchronous_connection()
1104 UINT8_TO_STREAM(pp, p_params->output_data_path); in btsnd_hcic_enhanced_accept_synchronous_connection()
1105 UINT8_TO_STREAM(pp, p_params->input_transport_unit_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1106 UINT8_TO_STREAM(pp, p_params->output_transport_unit_size); in btsnd_hcic_enhanced_accept_synchronous_connection()
1107 UINT16_TO_STREAM(pp, p_params->max_latency_ms); in btsnd_hcic_enhanced_accept_synchronous_connection()
1108 UINT16_TO_STREAM(pp, p_params->packet_types); in btsnd_hcic_enhanced_accept_synchronous_connection()
1109 UINT8_TO_STREAM(pp, p_params->retransmission_effort); in btsnd_hcic_enhanced_accept_synchronous_connection()
1117 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_io_cap_req_neg_reply() local
1122 UINT16_TO_STREAM(pp, HCI_IO_CAP_REQ_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
1123 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_IO_CAP_NEG_REPLY); in btsnd_hcic_io_cap_req_neg_reply()
1125 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_io_cap_req_neg_reply()
1126 UINT8_TO_STREAM(pp, err_code); in btsnd_hcic_io_cap_req_neg_reply()
1133 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_local_oob_data() local
1138 UINT16_TO_STREAM(pp, HCI_READ_LOCAL_OOB_DATA); in btsnd_hcic_read_local_oob_data()
1139 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_R_LOCAL_OOB); in btsnd_hcic_read_local_oob_data()
1146 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_conf_reply() local
1153 UINT16_TO_STREAM(pp, HCI_USER_CONF_VALUE_NEG_REPLY); in btsnd_hcic_user_conf_reply()
1156 UINT16_TO_STREAM(pp, HCI_USER_CONF_REQUEST_REPLY); in btsnd_hcic_user_conf_reply()
1159 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_UCONF_REPLY); in btsnd_hcic_user_conf_reply()
1161 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_conf_reply()
1168 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_passkey_reply() local
1173 UINT16_TO_STREAM(pp, HCI_USER_PASSKEY_REQ_REPLY); in btsnd_hcic_user_passkey_reply()
1174 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_U_PKEY_REPLY); in btsnd_hcic_user_passkey_reply()
1176 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_passkey_reply()
1177 UINT32_TO_STREAM(pp, value); in btsnd_hcic_user_passkey_reply()
1184 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_user_passkey_neg_reply() local
1189 UINT16_TO_STREAM(pp, HCI_USER_PASSKEY_REQ_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
1190 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_U_PKEY_NEG_REPLY); in btsnd_hcic_user_passkey_neg_reply()
1192 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_user_passkey_neg_reply()
1200 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rem_oob_reply() local
1205 UINT16_TO_STREAM(pp, HCI_REM_OOB_DATA_REQ_REPLY); in btsnd_hcic_rem_oob_reply()
1206 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REM_OOB_REPLY); in btsnd_hcic_rem_oob_reply()
1208 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rem_oob_reply()
1209 ARRAY16_TO_STREAM(pp, c.data()); in btsnd_hcic_rem_oob_reply()
1210 ARRAY16_TO_STREAM(pp, r.data()); in btsnd_hcic_rem_oob_reply()
1217 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_rem_oob_neg_reply() local
1222 UINT16_TO_STREAM(pp, HCI_REM_OOB_DATA_REQ_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
1223 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_REM_OOB_NEG_REPLY); in btsnd_hcic_rem_oob_neg_reply()
1225 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_rem_oob_neg_reply()
1232 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_inq_tx_power() local
1237 UINT16_TO_STREAM(pp, HCI_READ_INQ_TX_POWER_LEVEL); in btsnd_hcic_read_inq_tx_power()
1238 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_R_TX_POWER); in btsnd_hcic_read_inq_tx_power()
1245 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_send_keypress_notif() local
1250 UINT16_TO_STREAM(pp, HCI_SEND_KEYPRESS_NOTIF); in btsnd_hcic_send_keypress_notif()
1251 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_SEND_KEYPRESS_NOTIF); in btsnd_hcic_send_keypress_notif()
1253 BDADDR_TO_STREAM(pp, bd_addr); in btsnd_hcic_send_keypress_notif()
1254 UINT8_TO_STREAM(pp, notif); in btsnd_hcic_send_keypress_notif()
1264 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enhanced_flush() local
1268 UINT16_TO_STREAM(pp, HCI_ENHANCED_FLUSH); in btsnd_hcic_enhanced_flush()
1269 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ENHANCED_FLUSH); in btsnd_hcic_enhanced_flush()
1271 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_enhanced_flush()
1272 UINT8_TO_STREAM(pp, packet_type); in btsnd_hcic_enhanced_flush()
1284 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_get_link_quality() local
1289 UINT16_TO_STREAM(pp, HCI_GET_LINK_QUALITY); in btsnd_hcic_get_link_quality()
1290 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_get_link_quality()
1292 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_get_link_quality()
1299 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_rssi() local
1304 UINT16_TO_STREAM(pp, HCI_READ_RSSI); in btsnd_hcic_read_rssi()
1305 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_rssi()
1307 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_rssi()
1338 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_failed_contact_counter() local
1343 UINT16_TO_STREAM(pp, HCI_READ_FAILED_CONTACT_COUNTER); in btsnd_hcic_read_failed_contact_counter()
1344 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_failed_contact_counter()
1346 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_failed_contact_counter()
1353 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_read_automatic_flush_timeout() local
1358 UINT16_TO_STREAM(pp, HCI_READ_AUTOMATIC_FLUSH_TIMEOUT); in btsnd_hcic_read_automatic_flush_timeout()
1359 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_CMD_HANDLE); in btsnd_hcic_read_automatic_flush_timeout()
1361 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_read_automatic_flush_timeout()
1368 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_enable_test_mode() local
1373 UINT16_TO_STREAM(pp, HCI_ENABLE_DEV_UNDER_TEST_MODE); in btsnd_hcic_enable_test_mode()
1374 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_READ_CMD); in btsnd_hcic_enable_test_mode()
1381 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inqscan_type() local
1386 UINT16_TO_STREAM(pp, HCI_WRITE_INQSCAN_TYPE); in btsnd_hcic_write_inqscan_type()
1387 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inqscan_type()
1389 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_inqscan_type()
1396 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_inquiry_mode() local
1401 UINT16_TO_STREAM(pp, HCI_WRITE_INQUIRY_MODE); in btsnd_hcic_write_inquiry_mode()
1402 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_inquiry_mode()
1404 UINT8_TO_STREAM(pp, mode); in btsnd_hcic_write_inquiry_mode()
1411 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_write_pagescan_type() local
1416 UINT16_TO_STREAM(pp, HCI_WRITE_PAGESCAN_TYPE); in btsnd_hcic_write_pagescan_type()
1417 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_PARAM1); in btsnd_hcic_write_pagescan_type()
1419 UINT8_TO_STREAM(pp, type); in btsnd_hcic_write_pagescan_type()
1432 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_vendor_spec_cmd() local
1437 *((void**)pp) = in btsnd_hcic_vendor_spec_cmd()
1439 pp += sizeof(void*); /* Skip over callback pointer */ in btsnd_hcic_vendor_spec_cmd()
1441 UINT16_TO_STREAM(pp, HCI_GRP_VENDOR_SPECIFIC | opcode); in btsnd_hcic_vendor_spec_cmd()
1442 UINT8_TO_STREAM(pp, len); in btsnd_hcic_vendor_spec_cmd()
1443 ARRAY_TO_STREAM(pp, p_data, len); in btsnd_hcic_vendor_spec_cmd()