Lines Matching refs:p_buf
308 const uint8_t* p_buf, size_t buf_len) { in smp_log_metrics() argument
314 STREAM_TO_UINT8(cmd, p_buf); in smp_log_metrics()
318 STREAM_TO_UINT8(failure_reason, p_buf); in smp_log_metrics()
365 BT_HDR* p_buf; in smp_send_cmd() local
373 p_buf = (*smp_cmd_build_act[cmd_code])(cmd_code, p_cb); in smp_send_cmd()
375 if (p_buf != NULL && smp_send_msg_to_L2CAP(p_cb->pairing_bda, p_buf)) { in smp_send_cmd()
450 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd() local
455 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd()
464 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd()
466 p_buf->len = SMP_PAIRING_REQ_SIZE; in smp_build_pairing_cmd()
468 return p_buf; in smp_build_pairing_cmd()
481 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + in smp_build_confirm_cmd() local
486 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_confirm_cmd()
491 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_confirm_cmd()
492 p_buf->len = SMP_CONFIRM_CMD_SIZE; in smp_build_confirm_cmd()
494 return p_buf; in smp_build_confirm_cmd()
506 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_RAND_CMD_SIZE + in smp_build_rand_cmd() local
511 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_rand_cmd()
515 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_rand_cmd()
516 p_buf->len = SMP_RAND_CMD_SIZE; in smp_build_rand_cmd()
518 return p_buf; in smp_build_rand_cmd()
531 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ENC_INFO_SIZE + in smp_build_encrypt_info_cmd() local
536 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_encrypt_info_cmd()
540 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_encrypt_info_cmd()
541 p_buf->len = SMP_ENC_INFO_SIZE; in smp_build_encrypt_info_cmd()
543 return p_buf; in smp_build_encrypt_info_cmd()
556 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_MASTER_ID_SIZE + in smp_build_master_id_cmd() local
561 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_master_id_cmd()
566 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_master_id_cmd()
567 p_buf->len = SMP_MASTER_ID_SIZE; in smp_build_master_id_cmd()
569 return p_buf; in smp_build_master_id_cmd()
582 BT_HDR* p_buf = in smp_build_identity_info_cmd() local
587 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_identity_info_cmd()
594 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_identity_info_cmd()
595 p_buf->len = SMP_ID_INFO_SIZE; in smp_build_identity_info_cmd()
597 return p_buf; in smp_build_identity_info_cmd()
610 BT_HDR* p_buf = in smp_build_id_addr_cmd() local
615 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_id_addr_cmd()
620 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_id_addr_cmd()
621 p_buf->len = SMP_ID_ADDR_SIZE; in smp_build_id_addr_cmd()
623 return p_buf; in smp_build_id_addr_cmd()
636 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_SIGN_INFO_SIZE + in smp_build_signing_info_cmd() local
641 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_signing_info_cmd()
645 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_signing_info_cmd()
646 p_buf->len = SMP_SIGN_INFO_SIZE; in smp_build_signing_info_cmd()
648 return p_buf; in smp_build_signing_info_cmd()
661 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + in smp_build_pairing_fail() local
666 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_fail()
670 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_fail()
671 p_buf->len = SMP_PAIR_FAIL_SIZE; in smp_build_pairing_fail()
673 return p_buf; in smp_build_pairing_fail()
686 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 2 + L2CAP_MIN_OFFSET); in smp_build_security_request() local
690 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_security_request()
694 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_security_request()
695 p_buf->len = SMP_SECURITY_REQUEST_SIZE; in smp_build_security_request()
700 return p_buf; in smp_build_security_request()
715 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_PUBL_KEY_SIZE + in smp_build_pair_public_key_cmd() local
723 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pair_public_key_cmd()
727 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pair_public_key_cmd()
728 p_buf->len = SMP_PAIR_PUBL_KEY_SIZE; in smp_build_pair_public_key_cmd()
730 return p_buf; in smp_build_pair_public_key_cmd()
743 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_COMMITM_SIZE + in smp_build_pairing_commitment_cmd() local
748 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_commitment_cmd()
752 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_commitment_cmd()
753 p_buf->len = SMP_PAIR_COMMITM_SIZE; in smp_build_pairing_commitment_cmd()
755 return p_buf; in smp_build_pairing_commitment_cmd()
768 BT_HDR* p_buf = (BT_HDR*)osi_malloc( in smp_build_pair_dhkey_check_cmd() local
773 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pair_dhkey_check_cmd()
777 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pair_dhkey_check_cmd()
778 p_buf->len = SMP_PAIR_DHKEY_CHECK_SIZE; in smp_build_pair_dhkey_check_cmd()
780 return p_buf; in smp_build_pair_dhkey_check_cmd()
793 BT_HDR* p_buf = (BT_HDR*)osi_malloc( in smp_build_pairing_keypress_notification_cmd() local
798 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_keypress_notification_cmd()
802 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_keypress_notification_cmd()
803 p_buf->len = SMP_PAIR_KEYPR_NOTIF_SIZE; in smp_build_pairing_keypress_notification_cmd()
805 return p_buf; 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() local
1171 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_reject_unexpected_pairing_command()
1175 p_buf->offset = L2CAP_MIN_OFFSET; in smp_reject_unexpected_pairing_command()
1176 p_buf->len = SMP_PAIR_FAIL_SIZE; in smp_reject_unexpected_pairing_command()
1178 smp_send_msg_to_L2CAP(bd_addr, p_buf); in smp_reject_unexpected_pairing_command()