Lines Matching refs:p

300   uint8_t* p;  in l2cu_build_header()  local
305 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET; in l2cu_build_header()
309 UINT16_TO_STREAM(p, (p_lcb->Handle() | (L2CAP_PKT_START_NON_FLUSHABLE in l2cu_build_header()
312 UINT16_TO_STREAM(p, p_lcb->Handle() | l2cb.non_flushable_pbf); in l2cu_build_header()
315 UINT16_TO_STREAM(p, len + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD); in l2cu_build_header()
316 UINT16_TO_STREAM(p, len + L2CAP_CMD_OVERHEAD); in l2cu_build_header()
319 UINT16_TO_STREAM(p, L2CAP_BLE_SIGNALLING_CID); in l2cu_build_header()
321 UINT16_TO_STREAM(p, L2CAP_SIGNALLING_CID); in l2cu_build_header()
325 UINT8_TO_STREAM(p, cmd); in l2cu_build_header()
326 UINT8_TO_STREAM(p, signal_id); in l2cu_build_header()
327 UINT16_TO_STREAM(p, len); in l2cu_build_header()
362 uint8_t* p; in l2cu_send_peer_cmd_reject() local
379 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_cmd_reject()
382 UINT16_TO_STREAM(p, reason); in l2cu_send_peer_cmd_reject()
384 if (param_len >= 2) UINT16_TO_STREAM(p, p1); in l2cu_send_peer_cmd_reject()
386 if (param_len >= 4) UINT16_TO_STREAM(p, p2); in l2cu_send_peer_cmd_reject()
403 uint8_t* p; in l2cu_send_peer_connect_req() local
418 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_connect_req()
421 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_connect_req()
422 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_req()
456 uint8_t* p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + in l2cu_send_peer_connect_rsp() local
459 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_connect_rsp()
460 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_connect_rsp()
461 UINT16_TO_STREAM(p, result); in l2cu_send_peer_connect_rsp()
462 UINT16_TO_STREAM(p, status); in l2cu_send_peer_connect_rsp()
481 uint8_t* p; in l2cu_reject_connection() local
490 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_reject_connection()
493 UINT16_TO_STREAM(p, 0); /* Local CID of 0 */ in l2cu_reject_connection()
494 UINT16_TO_STREAM(p, remote_cid); in l2cu_reject_connection()
495 UINT16_TO_STREAM(p, result); in l2cu_reject_connection()
496 UINT16_TO_STREAM(p, 0); /* Status of 0 */ in l2cu_reject_connection()
515 uint8_t* p; in l2cu_send_credit_based_reconfig_req() local
535 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_credit_based_reconfig_req()
541 UINT16_TO_STREAM(p, p_cfg->mtu); in l2cu_send_credit_based_reconfig_req()
542 UINT16_TO_STREAM(p, p_cfg->mps); in l2cu_send_credit_based_reconfig_req()
548 UINT16_TO_STREAM(p, p_ccb_temp->local_cid); in l2cu_send_credit_based_reconfig_req()
567 uint8_t* p; in l2cu_send_peer_config_req() local
596 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_config_req()
599 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_config_req()
600 UINT16_TO_STREAM(p, p_cfg->flags); /* Flags (continuation) */ in l2cu_send_peer_config_req()
604 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_MTU); in l2cu_send_peer_config_req()
605 UINT8_TO_STREAM(p, L2CAP_CFG_MTU_OPTION_LEN); in l2cu_send_peer_config_req()
606 UINT16_TO_STREAM(p, p_cfg->mtu); in l2cu_send_peer_config_req()
609 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_FLUSH_TOUT); in l2cu_send_peer_config_req()
610 UINT8_TO_STREAM(p, L2CAP_CFG_FLUSH_OPTION_LEN); in l2cu_send_peer_config_req()
611 UINT16_TO_STREAM(p, p_cfg->flush_to); in l2cu_send_peer_config_req()
614 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_QOS); in l2cu_send_peer_config_req()
615 UINT8_TO_STREAM(p, L2CAP_CFG_QOS_OPTION_LEN); in l2cu_send_peer_config_req()
616 UINT8_TO_STREAM(p, p_cfg->qos.qos_flags); in l2cu_send_peer_config_req()
617 UINT8_TO_STREAM(p, p_cfg->qos.service_type); in l2cu_send_peer_config_req()
618 UINT32_TO_STREAM(p, p_cfg->qos.token_rate); in l2cu_send_peer_config_req()
619 UINT32_TO_STREAM(p, p_cfg->qos.token_bucket_size); in l2cu_send_peer_config_req()
620 UINT32_TO_STREAM(p, p_cfg->qos.peak_bandwidth); in l2cu_send_peer_config_req()
621 UINT32_TO_STREAM(p, p_cfg->qos.latency); in l2cu_send_peer_config_req()
622 UINT32_TO_STREAM(p, p_cfg->qos.delay_variation); in l2cu_send_peer_config_req()
625 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_FCR); in l2cu_send_peer_config_req()
626 UINT8_TO_STREAM(p, L2CAP_CFG_FCR_OPTION_LEN); in l2cu_send_peer_config_req()
627 UINT8_TO_STREAM(p, p_cfg->fcr.mode); in l2cu_send_peer_config_req()
628 UINT8_TO_STREAM(p, p_cfg->fcr.tx_win_sz); in l2cu_send_peer_config_req()
629 UINT8_TO_STREAM(p, p_cfg->fcr.max_transmit); in l2cu_send_peer_config_req()
630 UINT16_TO_STREAM(p, p_cfg->fcr.rtrans_tout); in l2cu_send_peer_config_req()
631 UINT16_TO_STREAM(p, p_cfg->fcr.mon_tout); in l2cu_send_peer_config_req()
632 UINT16_TO_STREAM(p, p_cfg->fcr.mps); in l2cu_send_peer_config_req()
636 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_FCS); in l2cu_send_peer_config_req()
637 UINT8_TO_STREAM(p, L2CAP_CFG_FCS_OPTION_LEN); in l2cu_send_peer_config_req()
638 UINT8_TO_STREAM(p, p_cfg->fcs); in l2cu_send_peer_config_req()
642 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_EXT_FLOW); in l2cu_send_peer_config_req()
643 UINT8_TO_STREAM(p, L2CAP_CFG_EXT_FLOW_OPTION_LEN); in l2cu_send_peer_config_req()
644 UINT8_TO_STREAM(p, p_cfg->ext_flow_spec.id); in l2cu_send_peer_config_req()
645 UINT8_TO_STREAM(p, p_cfg->ext_flow_spec.stype); in l2cu_send_peer_config_req()
646 UINT16_TO_STREAM(p, p_cfg->ext_flow_spec.max_sdu_size); in l2cu_send_peer_config_req()
647 UINT32_TO_STREAM(p, p_cfg->ext_flow_spec.sdu_inter_time); in l2cu_send_peer_config_req()
648 UINT32_TO_STREAM(p, p_cfg->ext_flow_spec.access_latency); in l2cu_send_peer_config_req()
649 UINT32_TO_STREAM(p, p_cfg->ext_flow_spec.flush_timeout); in l2cu_send_peer_config_req()
668 uint8_t* p; in l2cu_send_peer_config_rsp() local
690 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_config_rsp()
693 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_config_rsp()
694 UINT16_TO_STREAM(p, in l2cu_send_peer_config_rsp()
696 UINT16_TO_STREAM(p, p_cfg->result); in l2cu_send_peer_config_rsp()
700 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_MTU); in l2cu_send_peer_config_rsp()
701 UINT8_TO_STREAM(p, L2CAP_CFG_MTU_OPTION_LEN); in l2cu_send_peer_config_rsp()
702 UINT16_TO_STREAM(p, p_cfg->mtu); in l2cu_send_peer_config_rsp()
705 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_FLUSH_TOUT); in l2cu_send_peer_config_rsp()
706 UINT8_TO_STREAM(p, L2CAP_CFG_FLUSH_OPTION_LEN); in l2cu_send_peer_config_rsp()
707 UINT16_TO_STREAM(p, p_cfg->flush_to); in l2cu_send_peer_config_rsp()
710 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_QOS); in l2cu_send_peer_config_rsp()
711 UINT8_TO_STREAM(p, L2CAP_CFG_QOS_OPTION_LEN); in l2cu_send_peer_config_rsp()
712 UINT8_TO_STREAM(p, p_cfg->qos.qos_flags); in l2cu_send_peer_config_rsp()
713 UINT8_TO_STREAM(p, p_cfg->qos.service_type); in l2cu_send_peer_config_rsp()
714 UINT32_TO_STREAM(p, p_cfg->qos.token_rate); in l2cu_send_peer_config_rsp()
715 UINT32_TO_STREAM(p, p_cfg->qos.token_bucket_size); in l2cu_send_peer_config_rsp()
716 UINT32_TO_STREAM(p, p_cfg->qos.peak_bandwidth); in l2cu_send_peer_config_rsp()
717 UINT32_TO_STREAM(p, p_cfg->qos.latency); in l2cu_send_peer_config_rsp()
718 UINT32_TO_STREAM(p, p_cfg->qos.delay_variation); in l2cu_send_peer_config_rsp()
721 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_FCR); in l2cu_send_peer_config_rsp()
722 UINT8_TO_STREAM(p, L2CAP_CFG_FCR_OPTION_LEN); in l2cu_send_peer_config_rsp()
723 UINT8_TO_STREAM(p, p_cfg->fcr.mode); in l2cu_send_peer_config_rsp()
724 UINT8_TO_STREAM(p, p_cfg->fcr.tx_win_sz); in l2cu_send_peer_config_rsp()
725 UINT8_TO_STREAM(p, p_cfg->fcr.max_transmit); in l2cu_send_peer_config_rsp()
726 UINT16_TO_STREAM(p, p_ccb->our_cfg.fcr.rtrans_tout); in l2cu_send_peer_config_rsp()
727 UINT16_TO_STREAM(p, p_ccb->our_cfg.fcr.mon_tout); in l2cu_send_peer_config_rsp()
728 UINT16_TO_STREAM(p, p_cfg->fcr.mps); in l2cu_send_peer_config_rsp()
732 UINT8_TO_STREAM(p, L2CAP_CFG_TYPE_EXT_FLOW); in l2cu_send_peer_config_rsp()
733 UINT8_TO_STREAM(p, L2CAP_CFG_EXT_FLOW_OPTION_LEN); in l2cu_send_peer_config_rsp()
734 UINT8_TO_STREAM(p, p_cfg->ext_flow_spec.id); in l2cu_send_peer_config_rsp()
735 UINT8_TO_STREAM(p, p_cfg->ext_flow_spec.stype); in l2cu_send_peer_config_rsp()
736 UINT16_TO_STREAM(p, p_cfg->ext_flow_spec.max_sdu_size); in l2cu_send_peer_config_rsp()
737 UINT32_TO_STREAM(p, p_cfg->ext_flow_spec.sdu_inter_time); in l2cu_send_peer_config_rsp()
738 UINT32_TO_STREAM(p, p_cfg->ext_flow_spec.access_latency); in l2cu_send_peer_config_rsp()
739 UINT32_TO_STREAM(p, p_cfg->ext_flow_spec.flush_timeout); in l2cu_send_peer_config_rsp()
758 uint8_t *p, *p_hci_len, *p_data_end; in l2cu_send_peer_config_rej() local
774 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET; in l2cu_send_peer_config_rej()
778 UINT16_TO_STREAM(p, (p_ccb->p_lcb->Handle() | (L2CAP_PKT_START_NON_FLUSHABLE in l2cu_send_peer_config_rej()
781 UINT16_TO_STREAM(p, (p_ccb->p_lcb->Handle() | in l2cu_send_peer_config_rej()
786 p_hci_len = p; in l2cu_send_peer_config_rej()
787 p += 2; in l2cu_send_peer_config_rej()
790 UINT16_TO_STREAM(p, L2CAP_CMD_OVERHEAD + L2CAP_CONFIG_RSP_LEN + rej_len); in l2cu_send_peer_config_rej()
791 UINT16_TO_STREAM(p, L2CAP_SIGNALLING_CID); in l2cu_send_peer_config_rej()
794 UINT8_TO_STREAM(p, L2CAP_CMD_CONFIG_RSP); in l2cu_send_peer_config_rej()
795 UINT8_TO_STREAM(p, p_ccb->remote_id); in l2cu_send_peer_config_rej()
797 UINT16_TO_STREAM(p, L2CAP_CONFIG_RSP_LEN + rej_len); in l2cu_send_peer_config_rej()
799 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_config_rej()
800 UINT16_TO_STREAM(p, 0); /* Flags = 0 (no continuation) */ in l2cu_send_peer_config_rej()
801 UINT16_TO_STREAM(p, L2CAP_CFG_UNKNOWN_OPTIONS); in l2cu_send_peer_config_rej()
828 memcpy(p, p_data, cfg_len + L2CAP_CFG_OPTION_OVERHEAD); in l2cu_send_peer_config_rej()
829 p += cfg_len + L2CAP_CFG_OPTION_OVERHEAD; in l2cu_send_peer_config_rej()
847 len = (uint16_t)(p - p_hci_len - 2); in l2cu_send_peer_config_rej()
870 uint8_t* p; in l2cu_send_peer_disc_req() local
890 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_disc_req()
893 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_disc_req()
894 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_disc_req()
927 uint8_t* p; in l2cu_send_peer_disc_rsp() local
936 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_disc_rsp()
939 UINT16_TO_STREAM(p, local_cid); in l2cu_send_peer_disc_rsp()
940 UINT16_TO_STREAM(p, remote_cid); in l2cu_send_peer_disc_rsp()
958 uint8_t* p; in l2cu_send_peer_echo_rsp() local
992 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_echo_rsp()
996 ARRAY_TO_STREAM(p, p_data, data_len); in l2cu_send_peer_echo_rsp()
1013 uint8_t* p; in l2cu_send_peer_info_req() local
1027 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_info_req()
1030 UINT16_TO_STREAM(p, info_type); in l2cu_send_peer_info_req()
1052 uint8_t* p; in l2cu_send_peer_info_rsp() local
1083 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_info_rsp()
1086 UINT16_TO_STREAM(p, info_type); in l2cu_send_peer_info_rsp()
1100 UINT16_TO_STREAM(p, L2CAP_INFO_RESP_RESULT_SUCCESS); in l2cu_send_peer_info_rsp()
1103 UINT32_TO_STREAM(p, L2CAP_BLE_EXTFEA_MASK); in l2cu_send_peer_info_rsp()
1106 UINT32_TO_STREAM(p, l2cb.test_info_resp); in l2cu_send_peer_info_rsp()
1108 UINT32_TO_STREAM(p, in l2cu_send_peer_info_rsp()
1113 UINT16_TO_STREAM(p, L2CAP_INFO_RESP_RESULT_SUCCESS); in l2cu_send_peer_info_rsp()
1114 memset(p, 0, L2CAP_FIXED_CHNL_ARRAY_SIZE); in l2cu_send_peer_info_rsp()
1116 p[0] = L2CAP_FIXED_CHNL_SIG_BIT; in l2cu_send_peer_info_rsp()
1119 p[0] |= L2CAP_FIXED_CHNL_CNCTLESS_BIT; in l2cu_send_peer_info_rsp()
1131 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= in l2cu_send_peer_info_rsp()
1136 UINT16_TO_STREAM(p, L2CAP_INFO_RESP_RESULT_SUCCESS); in l2cu_send_peer_info_rsp()
1137 UINT16_TO_STREAM(p, L2CAP_MTU_SIZE); in l2cu_send_peer_info_rsp()
1140 p, L2CAP_INFO_RESP_RESULT_NOT_SUPPORTED); /* 'not supported' */ in l2cu_send_peer_info_rsp()
2892 uint8_t* p; in l2cu_send_peer_ble_par_req() local
2905 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_ble_par_req()
2908 UINT16_TO_STREAM(p, min_int); in l2cu_send_peer_ble_par_req()
2909 UINT16_TO_STREAM(p, max_int); in l2cu_send_peer_ble_par_req()
2910 UINT16_TO_STREAM(p, latency); in l2cu_send_peer_ble_par_req()
2911 UINT16_TO_STREAM(p, timeout); in l2cu_send_peer_ble_par_req()
2929 uint8_t* p; in l2cu_send_peer_ble_par_rsp() local
2938 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_ble_par_rsp()
2941 UINT16_TO_STREAM(p, reason); in l2cu_send_peer_ble_par_rsp()
2958 uint8_t* p; in l2cu_send_peer_ble_credit_based_conn_req() local
2981 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_ble_credit_based_conn_req()
2993 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_ble_credit_based_conn_req()
2994 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_ble_credit_based_conn_req()
2995 UINT16_TO_STREAM(p, mtu); in l2cu_send_peer_ble_credit_based_conn_req()
2996 UINT16_TO_STREAM(p, mps); in l2cu_send_peer_ble_credit_based_conn_req()
2997 UINT16_TO_STREAM(p, initial_credit); in l2cu_send_peer_ble_credit_based_conn_req()
3014 uint8_t* p; in l2cu_send_peer_credit_based_conn_req() local
3039 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_credit_based_conn_req()
3050 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_credit_based_conn_req()
3051 UINT16_TO_STREAM(p, mtu); in l2cu_send_peer_credit_based_conn_req()
3052 UINT16_TO_STREAM(p, mps); in l2cu_send_peer_credit_based_conn_req()
3053 UINT16_TO_STREAM(p, initial_credit); in l2cu_send_peer_credit_based_conn_req()
3058 UINT16_TO_STREAM(p, cid); in l2cu_send_peer_credit_based_conn_req()
3078 uint8_t* p; in l2cu_reject_ble_coc_connection() local
3087 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_reject_ble_coc_connection()
3090 UINT16_TO_STREAM(p, 0); /* Local CID of 0 */ in l2cu_reject_ble_coc_connection()
3091 UINT16_TO_STREAM(p, 0); /* MTU */ in l2cu_reject_ble_coc_connection()
3092 UINT16_TO_STREAM(p, 0); /* MPS */ in l2cu_reject_ble_coc_connection()
3093 UINT16_TO_STREAM(p, 0); /* initial credit */ in l2cu_reject_ble_coc_connection()
3094 UINT16_TO_STREAM(p, result); in l2cu_reject_ble_coc_connection()
3113 uint8_t* p; in l2cu_reject_credit_based_conn_req() local
3124 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_reject_credit_based_conn_req()
3127 memset(p, 0, rsp_len); in l2cu_reject_credit_based_conn_req()
3128 UINT16_TO_STREAM(p, L2CAP_CREDIT_BASED_MIN_MTU); /* dummy MTU to satisy PTS */ in l2cu_reject_credit_based_conn_req()
3129 UINT16_TO_STREAM(p, L2CAP_CREDIT_BASED_MIN_MPS); /* dummy MPS to satisy PTS*/ in l2cu_reject_credit_based_conn_req()
3130 UINT16_TO_STREAM(p, 1); /* dummy initial credit to satisy PTS */ in l2cu_reject_credit_based_conn_req()
3131 UINT16_TO_STREAM(p, result); in l2cu_reject_credit_based_conn_req()
3151 uint8_t* p; in l2cu_send_peer_credit_based_conn_res() local
3164 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_credit_based_conn_res()
3167 memset(p, 0, rsp_len); in l2cu_send_peer_credit_based_conn_res()
3168 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.mtu); /* MTU */ in l2cu_send_peer_credit_based_conn_res()
3169 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.mps); /* MPS */ in l2cu_send_peer_credit_based_conn_res()
3170 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.credits); /* initial credit */ in l2cu_send_peer_credit_based_conn_res()
3181 UINT16_TO_STREAM(p, result); in l2cu_send_peer_credit_based_conn_res()
3191 UINT16_TO_STREAM(p, 0); in l2cu_send_peer_credit_based_conn_res()
3196 UINT16_TO_STREAM(p, cid); in l2cu_send_peer_credit_based_conn_res()
3198 UINT16_TO_STREAM(p, 0); in l2cu_send_peer_credit_based_conn_res()
3240 uint8_t* p; in l2cu_send_ble_reconfig_rsp() local
3251 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_ble_reconfig_rsp()
3254 memset(p, 0, L2CAP_CMD_CREDIT_BASED_RECONFIG_RES_LEN); in l2cu_send_ble_reconfig_rsp()
3255 UINT16_TO_STREAM(p, result); in l2cu_send_ble_reconfig_rsp()
3274 uint8_t* p; in l2cu_send_peer_ble_credit_based_conn_res() local
3285 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_ble_credit_based_conn_res()
3288 UINT16_TO_STREAM(p, p_ccb->local_cid); /* Local CID */ in l2cu_send_peer_ble_credit_based_conn_res()
3289 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.mtu); /* MTU */ in l2cu_send_peer_ble_credit_based_conn_res()
3290 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.mps); /* MPS */ in l2cu_send_peer_ble_credit_based_conn_res()
3291 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.credits); /* initial credit */ in l2cu_send_peer_ble_credit_based_conn_res()
3292 UINT16_TO_STREAM(p, result); in l2cu_send_peer_ble_credit_based_conn_res()
3310 uint8_t* p; in l2cu_send_peer_ble_flow_control_credit() local
3329 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_ble_flow_control_credit()
3332 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_ble_flow_control_credit()
3333 UINT16_TO_STREAM(p, credit_value); in l2cu_send_peer_ble_flow_control_credit()
3350 uint8_t* p; in l2cu_send_peer_ble_credit_based_disconn_req() local
3369 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET + HCI_DATA_PREAMBLE_SIZE + in l2cu_send_peer_ble_credit_based_disconn_req()
3372 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2cu_send_peer_ble_credit_based_disconn_req()
3373 UINT16_TO_STREAM(p, p_ccb->local_cid); in l2cu_send_peer_ble_credit_based_disconn_req()
3453 uint8_t* p; in l2cu_set_acl_hci_header() local
3457 p = (uint8_t*)(p_buf + 1) + p_buf->offset - HCI_DATA_PREAMBLE_SIZE; in l2cu_set_acl_hci_header()
3460 UINT16_TO_STREAM(p, p_ccb->p_lcb->Handle() | (L2CAP_PKT_START_NON_FLUSHABLE in l2cu_set_acl_hci_header()
3468 UINT16_TO_STREAM(p, acl_data_size); in l2cu_set_acl_hci_header()
3470 UINT16_TO_STREAM(p, p_buf->len); in l2cu_set_acl_hci_header()
3476 UINT16_TO_STREAM(p, p_ccb->p_lcb->Handle() | in l2cu_set_acl_hci_header()
3479 UINT16_TO_STREAM(p, p_ccb->p_lcb->Handle() | l2cb.non_flushable_pbf); in l2cu_set_acl_hci_header()
3486 UINT16_TO_STREAM(p, acl_data_size); in l2cu_set_acl_hci_header()
3488 UINT16_TO_STREAM(p, p_buf->len); in l2cu_set_acl_hci_header()