Lines Matching refs:pdu
58 struct node_rx_conn_iso_estab *pdu; in cc_ntf_established() local
73 pdu = (struct node_rx_conn_iso_estab *)ntf->pdu; in cc_ntf_established()
75 pdu->cis_handle = ctx->data.cis_create.cis_handle; in cc_ntf_established()
76 pdu->status = ctx->data.cis_create.error; in cc_ntf_established()
140 struct pdu_data *pdu; in llcp_rp_cc_tx_rsp() local
147 pdu = (struct pdu_data *)tx->pdu; in llcp_rp_cc_tx_rsp()
186 llcp_pdu_encode_cis_rsp(ctx, pdu); in llcp_rp_cc_tx_rsp()
187 ctx->tx_opcode = pdu->llctrl.opcode; in llcp_rp_cc_tx_rsp()
196 struct pdu_data *pdu; in llcp_rp_cc_tx_reject() local
203 pdu = (struct pdu_data *)tx->pdu; in llcp_rp_cc_tx_reject()
206 llcp_pdu_encode_reject_ext_ind(pdu, opcode, ctx->data.cis_create.error); in llcp_rp_cc_tx_reject()
207 ctx->tx_opcode = pdu->llctrl.opcode; in llcp_rp_cc_tx_reject()
216 struct node_rx_conn_iso_req *pdu; in rp_cc_ntf_create() local
224 pdu = (struct node_rx_conn_iso_req *)ntf->pdu; in rp_cc_ntf_create()
226 pdu->cig_id = ctx->data.cis_create.cig_id; in rp_cc_ntf_create()
227 pdu->cis_id = ctx->data.cis_create.cis_id; in rp_cc_ntf_create()
228 pdu->cis_handle = ctx->data.cis_create.cis_handle; in rp_cc_ntf_create()
303 struct pdu_data *pdu) in rp_cc_check_phy() argument
305 if (!phy_valid(pdu->llctrl.cis_req.c_phy) || in rp_cc_check_phy()
306 !phy_valid(pdu->llctrl.cis_req.p_phy)) { in rp_cc_check_phy()
312 const uint8_t phys = pdu->llctrl.cis_req.p_phy | pdu->llctrl.cis_req.c_phy; in rp_cc_check_phy()
327 struct pdu_data *pdu = (struct pdu_data *)param; in rp_cc_state_wait_rx_cis_req() local
332 llcp_pdu_decode_cis_req(ctx, pdu); in rp_cc_state_wait_rx_cis_req()
335 ctx->data.cis_create.error = rp_cc_check_phy(conn, ctx, pdu); in rp_cc_state_wait_rx_cis_req()
339 ull_peripheral_iso_acquire(conn, &pdu->llctrl.cis_req, in rp_cc_state_wait_rx_cis_req()
387 struct pdu_data *pdu = (struct pdu_data *)param; in rp_cc_state_wait_rx_cis_ind() local
391 llcp_pdu_decode_cis_ind(ctx, pdu); in rp_cc_state_wait_rx_cis_ind()
392 if (!ull_peripheral_iso_setup(&pdu->llctrl.cis_ind, ctx->data.cis_create.cig_id, in rp_cc_state_wait_rx_cis_ind()
562 struct pdu_data *pdu = (struct pdu_data *)rx->pdu; in llcp_rp_cc_rx() local
564 switch (pdu->llctrl.opcode) { in llcp_rp_cc_rx()
566 rp_cc_execute_fsm(conn, ctx, RP_CC_EVT_CIS_REQ, pdu); in llcp_rp_cc_rx()
569 rp_cc_execute_fsm(conn, ctx, RP_CC_EVT_CIS_IND, pdu); in llcp_rp_cc_rx()
573 rp_cc_execute_fsm(conn, ctx, RP_CC_EVT_REJECT, pdu); in llcp_rp_cc_rx()
663 struct pdu_data *pdu; in lp_cc_tx() local
669 pdu = (struct pdu_data *)tx->pdu; in lp_cc_tx()
674 llcp_pdu_encode_cis_req(ctx, pdu); in lp_cc_tx()
677 llcp_pdu_encode_cis_ind(ctx, pdu); in lp_cc_tx()
685 ctx->tx_opcode = pdu->llctrl.opcode; in lp_cc_tx()
693 struct pdu_data *pdu = (struct pdu_data *)rx->pdu; in llcp_lp_cc_rx() local
695 switch (pdu->llctrl.opcode) { in llcp_lp_cc_rx()
697 lp_cc_execute_fsm(conn, ctx, LP_CC_EVT_CIS_RSP, pdu); in llcp_lp_cc_rx()
701 lp_cc_execute_fsm(conn, ctx, LP_CC_EVT_REJECT, pdu); in llcp_lp_cc_rx()
891 struct pdu_data *pdu = (struct pdu_data *)param; in lp_cc_st_wait_rx_cis_rsp() local
910 if (pdu->llctrl.reject_ext_ind.error_code == BT_HCI_ERR_UNSUPP_REMOTE_FEATURE) { in lp_cc_st_wait_rx_cis_rsp()
914 ctx->data.cis_create.error = pdu->llctrl.reject_ext_ind.error_code; in lp_cc_st_wait_rx_cis_rsp()
947 struct pdu_data *pdu; in lp_cc_st_wait_rx_cis_rsp_cancel() local
956 pdu = (struct pdu_data *)tx->pdu; in lp_cc_st_wait_rx_cis_rsp_cancel()
959 llcp_pdu_encode_reject_ext_ind(pdu, PDU_DATA_LLCTRL_TYPE_CIS_RSP, in lp_cc_st_wait_rx_cis_rsp_cancel()