Lines Matching refs:BT_HDR

135 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
137 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
138 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code,
140 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb);
141 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code,
143 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code,
145 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code,
147 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code,
149 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code,
151 static BT_HDR* smp_build_master_id_cmd(UNUSED_ATTR uint8_t cmd_code,
153 static BT_HDR* smp_build_id_addr_cmd(UNUSED_ATTR uint8_t cmd_code,
155 static BT_HDR* smp_build_pair_public_key_cmd(UNUSED_ATTR uint8_t cmd_code,
157 static BT_HDR* smp_build_pairing_commitment_cmd(UNUSED_ATTR uint8_t cmd_code,
159 static BT_HDR* smp_build_pair_dhkey_check_cmd(UNUSED_ATTR uint8_t cmd_code,
161 static BT_HDR* smp_build_pairing_keypress_notification_cmd(
334 bool smp_send_msg_to_L2CAP(const RawAddress& rem_bda, BT_HDR* p_toL2CAP) { in smp_send_msg_to_L2CAP()
365 BT_HDR* p_buf; in smp_send_cmd()
448 BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_pairing_cmd()
450 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd()
478 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_confirm_cmd()
481 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + in smp_build_confirm_cmd()
504 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_rand_cmd()
506 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_RAND_CMD_SIZE + in smp_build_rand_cmd()
528 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_encrypt_info_cmd()
531 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ENC_INFO_SIZE + in smp_build_encrypt_info_cmd()
553 static BT_HDR* smp_build_master_id_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_master_id_cmd()
556 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_MASTER_ID_SIZE + in smp_build_master_id_cmd()
579 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_identity_info_cmd()
582 BT_HDR* p_buf = in smp_build_identity_info_cmd()
583 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ID_INFO_SIZE + L2CAP_MIN_OFFSET); in smp_build_identity_info_cmd()
607 static BT_HDR* smp_build_id_addr_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_id_addr_cmd()
610 BT_HDR* p_buf = in smp_build_id_addr_cmd()
611 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ID_ADDR_SIZE + L2CAP_MIN_OFFSET); in smp_build_id_addr_cmd()
633 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_signing_info_cmd()
636 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_SIGN_INFO_SIZE + in smp_build_signing_info_cmd()
658 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code, in smp_build_pairing_fail()
661 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + in smp_build_pairing_fail()
683 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code, in smp_build_security_request()
686 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 2 + L2CAP_MIN_OFFSET); in smp_build_security_request()
710 static BT_HDR* smp_build_pair_public_key_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pair_public_key_cmd()
715 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_PUBL_KEY_SIZE + in smp_build_pair_public_key_cmd()
740 static BT_HDR* smp_build_pairing_commitment_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pairing_commitment_cmd()
743 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_COMMITM_SIZE + in smp_build_pairing_commitment_cmd()
765 static BT_HDR* smp_build_pair_dhkey_check_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pair_dhkey_check_cmd()
768 BT_HDR* p_buf = (BT_HDR*)osi_malloc( in smp_build_pair_dhkey_check_cmd()
769 sizeof(BT_HDR) + SMP_PAIR_DHKEY_CHECK_SIZE + L2CAP_MIN_OFFSET); in smp_build_pair_dhkey_check_cmd()
790 static BT_HDR* smp_build_pairing_keypress_notification_cmd( in smp_build_pairing_keypress_notification_cmd()
793 BT_HDR* p_buf = (BT_HDR*)osi_malloc( in smp_build_pairing_keypress_notification_cmd()
794 sizeof(BT_HDR) + SMP_PAIR_KEYPR_NOTIF_SIZE + L2CAP_MIN_OFFSET); in smp_build_pairing_keypress_notification_cmd()
1166 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + in smp_reject_unexpected_pairing_command()