Lines Matching refs:llctrl
73 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in llcp_pdu_encode_ping_req()
80 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in llcp_pdu_encode_ping_rsp()
91 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_UNKNOWN_RSP; in llcp_pdu_encode_unknown_rsp()
93 pdu->llctrl.unknown_rsp.type = ctx->unknown_response.type; in llcp_pdu_encode_unknown_rsp()
98 ctx->unknown_response.type = pdu->llctrl.unknown_rsp.type; in llcp_pdu_decode_unknown_rsp()
107 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_UNKNOWN_RSP; in llcp_ntf_encode_unknown_rsp()
108 p = &pdu->llctrl.unknown_rsp; in llcp_ntf_encode_unknown_rsp()
138 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_REQ; in llcp_pdu_encode_feature_req()
142 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PER_INIT_FEAT_XCHG; in llcp_pdu_encode_feature_req()
146 p = &pdu->llctrl.feature_req; in llcp_pdu_encode_feature_req()
157 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_RSP; in llcp_pdu_encode_feature_rsp()
159 p = &pdu->llctrl.feature_rsp; in llcp_pdu_encode_feature_rsp()
176 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_RSP; in llcp_ntf_encode_feature_rsp()
177 p = &pdu->llctrl.feature_rsp; in llcp_ntf_encode_feature_rsp()
200 feature_filter(pdu->llctrl.feature_req.features, &featureset); in llcp_pdu_decode_feature_req()
213 feature_filter(pdu->llctrl.feature_rsp.features, &featureset); in llcp_pdu_decode_feature_rsp()
230 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_MIN_USED_CHAN_IND; in llcp_pdu_encode_min_used_chans_ind()
231 p = &pdu->llctrl.min_used_chans_ind; in llcp_pdu_encode_min_used_chans_ind()
240 conn->llcp.muc.phys = pdu->llctrl.min_used_chans_ind.phys; in llcp_pdu_decode_min_used_chans_ind()
241 conn->llcp.muc.min_used_chans = pdu->llctrl.min_used_chans_ind.min_used_chans; in llcp_pdu_decode_min_used_chans_ind()
255 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_TERMINATE_IND; in llcp_pdu_encode_terminate_ind()
256 p = &pdu->llctrl.terminate_ind; in llcp_pdu_encode_terminate_ind()
262 ctx->data.term.error_code = pdu->llctrl.terminate_ind.error_code; in llcp_pdu_decode_terminate_ind()
276 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_VERSION_IND; in llcp_pdu_encode_version_ind()
278 p = &pdu->llctrl.version_ind; in llcp_pdu_encode_version_ind()
292 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_VERSION_IND; in llcp_ntf_encode_version_ind()
294 p = &pdu->llctrl.version_ind; in llcp_ntf_encode_version_ind()
303 conn->llcp.vex.cached.version_number = pdu->llctrl.version_ind.version_number; in llcp_pdu_decode_version_ind()
304 conn->llcp.vex.cached.company_id = sys_le16_to_cpu(pdu->llctrl.version_ind.company_id); in llcp_pdu_decode_version_ind()
306 sys_le16_to_cpu(pdu->llctrl.version_ind.sub_version_number); in llcp_pdu_decode_version_ind()
330 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_REQ; in encode_enc_req()
332 p = &pdu->llctrl.enc_req; in encode_enc_req()
347 p = &pdu->llctrl.enc_req; in llcp_pdu_encode_enc_req()
368 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_RSP; in llcp_pdu_encode_enc_rsp()
370 p = &pdu->llctrl.enc_rsp; in llcp_pdu_encode_enc_rsp()
382 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_START_ENC_REQ; in llcp_pdu_encode_start_enc_req()
390 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_START_ENC_RSP; in llcp_pdu_encode_start_enc_rsp()
398 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_REQ; in llcp_pdu_encode_pause_enc_req()
406 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_RSP; in llcp_pdu_encode_pause_enc_rsp()
414 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_REJECT_IND; in llcp_pdu_encode_reject_ind()
415 pdu->llctrl.reject_ind.error_code = error_code; in llcp_pdu_encode_reject_ind()
422 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_REJECT_EXT_IND; in llcp_pdu_encode_reject_ext_ind()
423 pdu->llctrl.reject_ext_ind.reject_opcode = reject_opcode; in llcp_pdu_encode_reject_ext_ind()
424 pdu->llctrl.reject_ext_ind.error_code = error_code; in llcp_pdu_encode_reject_ext_ind()
429 ctx->reject_ext_ind.reject_opcode = pdu->llctrl.reject_ext_ind.reject_opcode; in llcp_pdu_decode_reject_ext_ind()
430 ctx->reject_ext_ind.error_code = pdu->llctrl.reject_ext_ind.error_code; in llcp_pdu_decode_reject_ext_ind()
439 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_REJECT_EXT_IND; in llcp_ntf_encode_reject_ext_ind()
441 p = (void *)&pdu->llctrl.reject_ext_ind; in llcp_ntf_encode_reject_ext_ind()
455 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_REQ; in llcp_pdu_encode_phy_req()
456 pdu->llctrl.phy_req.rx_phys = ctx->data.pu.rx; in llcp_pdu_encode_phy_req()
457 pdu->llctrl.phy_req.tx_phys = ctx->data.pu.tx; in llcp_pdu_encode_phy_req()
462 ctx->data.pu.rx = pdu->llctrl.phy_req.tx_phys; in llcp_pdu_decode_phy_req()
463 ctx->data.pu.tx = pdu->llctrl.phy_req.rx_phys; in llcp_pdu_decode_phy_req()
471 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_RSP; in llcp_pdu_encode_phy_rsp()
472 pdu->llctrl.phy_rsp.rx_phys = conn->phy_pref_rx; in llcp_pdu_encode_phy_rsp()
473 pdu->llctrl.phy_rsp.tx_phys = conn->phy_pref_tx; in llcp_pdu_encode_phy_rsp()
477 ctx->data.pu.instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in llcp_pdu_decode_phy_update_ind()
478 ctx->data.pu.c_to_p_phy = pdu->llctrl.phy_upd_ind.c_to_p_phy; in llcp_pdu_decode_phy_update_ind()
479 ctx->data.pu.p_to_c_phy = pdu->llctrl.phy_upd_ind.p_to_c_phy; in llcp_pdu_decode_phy_update_ind()
488 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_UPD_IND; in llcp_pdu_encode_phy_update_ind()
489 pdu->llctrl.phy_upd_ind.instant = sys_cpu_to_le16(ctx->data.pu.instant); in llcp_pdu_encode_phy_update_ind()
490 pdu->llctrl.phy_upd_ind.c_to_p_phy = ctx->data.pu.c_to_p_phy; in llcp_pdu_encode_phy_update_ind()
491 pdu->llctrl.phy_upd_ind.p_to_c_phy = ctx->data.pu.p_to_c_phy; in llcp_pdu_encode_phy_update_ind()
495 ctx->data.pu.rx = pdu->llctrl.phy_rsp.tx_phys; in llcp_pdu_decode_phy_rsp()
496 ctx->data.pu.tx = pdu->llctrl.phy_rsp.rx_phys; in llcp_pdu_decode_phy_rsp()
512 pdu->llctrl.opcode = opcode; in encode_conn_param_req_rsp_common()
532 (struct pdu_data_llctrl_conn_param_req_rsp_common *)&pdu->llctrl.conn_param_req, in llcp_pdu_encode_conn_param_req()
539 (struct pdu_data_llctrl_conn_param_req_rsp_common *)&pdu->llctrl.conn_param_rsp, in llcp_pdu_encode_conn_param_rsp()
563 (struct pdu_data_llctrl_conn_param_req_rsp_common *)&pdu->llctrl.conn_param_req); in llcp_pdu_decode_conn_param_req()
569 (struct pdu_data_llctrl_conn_param_req_rsp_common *)&pdu->llctrl.conn_param_rsp); in llcp_pdu_decode_conn_param_rsp()
579 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CONN_UPDATE_IND; in llcp_pdu_encode_conn_update_ind()
581 p = (void *)&pdu->llctrl.conn_update_ind; in llcp_pdu_encode_conn_update_ind()
594 p = (void *)&pdu->llctrl.conn_update_ind; in llcp_pdu_decode_conn_update_ind()
612 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CHAN_MAP_IND; in llcp_pdu_encode_chan_map_update_ind()
613 p = &pdu->llctrl.chan_map_ind; in llcp_pdu_encode_chan_map_update_ind()
620 ctx->data.chmu.instant = sys_le16_to_cpu(pdu->llctrl.chan_map_ind.instant); in llcp_pdu_decode_chan_map_update_ind()
621 memcpy(ctx->data.chmu.chm, pdu->llctrl.chan_map_ind.chm, sizeof(ctx->data.chmu.chm)); in llcp_pdu_decode_chan_map_update_ind()
636 pdu->llctrl.opcode = opcode; in encode_length_req_rsp_common()
646 (struct pdu_data_llctrl_length_req_rsp_common *)&pdu->llctrl.length_req, in llcp_pdu_encode_length_req()
654 (struct pdu_data_llctrl_length_req_rsp_common *)&pdu->llctrl.length_rsp, in llcp_pdu_encode_length_rsp()
662 (struct pdu_data_llctrl_length_req_rsp_common *)&pdu->llctrl.length_rsp, in llcp_ntf_encode_length_change()
723 (struct pdu_data_llctrl_length_req_rsp_common *)&pdu->llctrl.length_req); in llcp_pdu_decode_length_req()
729 (struct pdu_data_llctrl_length_req_rsp_common *)&pdu->llctrl.length_rsp); in llcp_pdu_decode_length_rsp()
743 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_REQ; in llcp_pdu_encode_cte_req()
745 p = &pdu->llctrl.cte_req; in llcp_pdu_encode_cte_req()
764 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_RSP; in llcp_ntf_encode_cte_req()
774 ctx->data.cte_remote_req.min_cte_len = pdu->llctrl.cte_req.min_cte_len_req; in llcp_pdu_decode_cte_req()
775 ctx->data.cte_remote_req.cte_type = pdu->llctrl.cte_req.cte_type_req; in llcp_pdu_decode_cte_req()
782 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_RSP; in llcp_pdu_encode_cte_rsp()
796 ctx->data.cis_create.cig_id = pdu->llctrl.cis_req.cig_id; in llcp_pdu_decode_cis_req()
797 ctx->data.cis_create.cis_id = pdu->llctrl.cis_req.cis_id; in llcp_pdu_decode_cis_req()
798 ctx->data.cis_create.cis_offset_min = sys_get_le24(pdu->llctrl.cis_req.cis_offset_min); in llcp_pdu_decode_cis_req()
799 ctx->data.cis_create.cis_offset_max = sys_get_le24(pdu->llctrl.cis_req.cis_offset_max); in llcp_pdu_decode_cis_req()
801 sys_le16_to_cpu(pdu->llctrl.cis_req.conn_event_count); in llcp_pdu_decode_cis_req()
802 ctx->data.cis_create.iso_interval = sys_le16_to_cpu(pdu->llctrl.cis_req.iso_interval); in llcp_pdu_decode_cis_req()
826 sys_le16_to_cpu(pdu->llctrl.cis_ind.conn_event_count); in llcp_pdu_decode_cis_ind()
838 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_RSP; in llcp_pdu_encode_cis_rsp()
840 p = &pdu->llctrl.cis_rsp; in llcp_pdu_encode_cis_rsp()
855 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_REQ; in llcp_pdu_encode_cis_req()
857 p = &pdu->llctrl.cis_req; in llcp_pdu_encode_cis_req()
890 uint32_t cis_offset_min = sys_get_le24(pdu->llctrl.cis_rsp.cis_offset_min); in llcp_pdu_decode_cis_rsp()
891 uint32_t cis_offset_max = sys_get_le24(pdu->llctrl.cis_rsp.cis_offset_max); in llcp_pdu_decode_cis_rsp()
905 sys_le16_to_cpu(pdu->llctrl.cis_rsp.conn_event_count); in llcp_pdu_decode_cis_rsp()
915 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_IND; in llcp_pdu_encode_cis_ind()
917 p = &pdu->llctrl.cis_ind; in llcp_pdu_encode_cis_ind()
939 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_TERMINATE_IND; in llcp_pdu_encode_cis_terminate_ind()
941 p = &pdu->llctrl.cis_terminate_ind; in llcp_pdu_encode_cis_terminate_ind()
949 ctx->data.cis_term.cig_id = pdu->llctrl.cis_terminate_ind.cig_id; in llcp_pdu_decode_cis_terminate_ind()
950 ctx->data.cis_term.cis_id = pdu->llctrl.cis_terminate_ind.cis_id; in llcp_pdu_decode_cis_terminate_ind()
951 ctx->data.cis_term.error_code = pdu->llctrl.cis_terminate_ind.error_code; in llcp_pdu_decode_cis_terminate_ind()
961 struct pdu_data_llctrl_clock_accuracy_req *p = &pdu->llctrl.clock_accuracy_req; in llcp_pdu_encode_clock_accuracy_req()
965 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CLOCK_ACCURACY_REQ; in llcp_pdu_encode_clock_accuracy_req()
972 struct pdu_data_llctrl_clock_accuracy_rsp *p = &pdu->llctrl.clock_accuracy_rsp; in llcp_pdu_encode_clock_accuracy_rsp()
976 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CLOCK_ACCURACY_RSP; in llcp_pdu_encode_clock_accuracy_rsp()
983 struct pdu_data_llctrl_clock_accuracy_req *p = &pdu->llctrl.clock_accuracy_req; in llcp_pdu_decode_clock_accuracy_req()
990 struct pdu_data_llctrl_clock_accuracy_rsp *p = &pdu->llctrl.clock_accuracy_rsp; in llcp_pdu_decode_clock_accuracy_rsp()
1022 struct pdu_data_llctrl_periodic_sync_ind *p = &pdu->llctrl.periodic_sync_ind; in llcp_pdu_encode_periodic_sync_ind()
1026 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PERIODIC_SYNC_IND; in llcp_pdu_encode_periodic_sync_ind()
1050 struct pdu_data_llctrl_periodic_sync_ind *p = &pdu->llctrl.periodic_sync_ind; in llcp_pdu_decode_periodic_sync_ind()