Lines Matching refs:BT_HDR
136 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
138 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
139 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code,
141 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb);
142 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code,
144 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code,
146 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code,
148 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code,
150 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code,
152 static BT_HDR* smp_build_central_id_cmd(UNUSED_ATTR uint8_t cmd_code,
154 static BT_HDR* smp_build_id_addr_cmd(UNUSED_ATTR uint8_t cmd_code,
156 static BT_HDR* smp_build_pair_public_key_cmd(UNUSED_ATTR uint8_t cmd_code,
158 static BT_HDR* smp_build_pairing_commitment_cmd(UNUSED_ATTR uint8_t cmd_code,
160 static BT_HDR* smp_build_pair_dhkey_check_cmd(UNUSED_ATTR uint8_t cmd_code,
162 static BT_HDR* smp_build_pairing_keypress_notification_cmd(
335 bool smp_send_msg_to_L2CAP(const RawAddress& rem_bda, BT_HDR* p_toL2CAP) { in smp_send_msg_to_L2CAP()
376 BT_HDR* p_buf; in smp_send_cmd()
460 BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_pairing_cmd()
462 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd()
490 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_confirm_cmd()
493 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + in smp_build_confirm_cmd()
516 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb) { in smp_build_rand_cmd()
518 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_RAND_CMD_SIZE + in smp_build_rand_cmd()
540 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_encrypt_info_cmd()
543 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ENC_INFO_SIZE + in smp_build_encrypt_info_cmd()
565 static BT_HDR* smp_build_central_id_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_central_id_cmd()
568 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_CENTRAL_ID_SIZE + in smp_build_central_id_cmd()
591 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_identity_info_cmd()
594 BT_HDR* p_buf = in smp_build_identity_info_cmd()
595 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ID_INFO_SIZE + L2CAP_MIN_OFFSET); in smp_build_identity_info_cmd()
619 static BT_HDR* smp_build_id_addr_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_id_addr_cmd()
622 BT_HDR* p_buf = in smp_build_id_addr_cmd()
623 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ID_ADDR_SIZE + L2CAP_MIN_OFFSET); in smp_build_id_addr_cmd()
645 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_signing_info_cmd()
648 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_SIGN_INFO_SIZE + in smp_build_signing_info_cmd()
670 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code, in smp_build_pairing_fail()
673 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + in smp_build_pairing_fail()
695 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code, in smp_build_security_request()
698 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 2 + L2CAP_MIN_OFFSET); in smp_build_security_request()
722 static BT_HDR* smp_build_pair_public_key_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pair_public_key_cmd()
727 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_PUBL_KEY_SIZE + in smp_build_pair_public_key_cmd()
752 static BT_HDR* smp_build_pairing_commitment_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pairing_commitment_cmd()
755 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_COMMITM_SIZE + in smp_build_pairing_commitment_cmd()
777 static BT_HDR* smp_build_pair_dhkey_check_cmd(UNUSED_ATTR uint8_t cmd_code, in smp_build_pair_dhkey_check_cmd()
780 BT_HDR* p_buf = (BT_HDR*)osi_malloc( in smp_build_pair_dhkey_check_cmd()
781 sizeof(BT_HDR) + SMP_PAIR_DHKEY_CHECK_SIZE + L2CAP_MIN_OFFSET); in smp_build_pair_dhkey_check_cmd()
802 static BT_HDR* smp_build_pairing_keypress_notification_cmd( in smp_build_pairing_keypress_notification_cmd()
805 BT_HDR* p_buf = (BT_HDR*)osi_malloc( in smp_build_pairing_keypress_notification_cmd()
806 sizeof(BT_HDR) + SMP_PAIR_KEYPR_NOTIF_SIZE + L2CAP_MIN_OFFSET); in smp_build_pairing_keypress_notification_cmd()
1177 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + in smp_reject_unexpected_pairing_command()