Lines Matching refs:pdu

158 	struct pdu_data *pdu;  in lp_comm_tx()  local
164 pdu = (struct pdu_data *)tx->pdu; in lp_comm_tx()
170 llcp_pdu_encode_ping_req(pdu); in lp_comm_tx()
175 llcp_pdu_encode_feature_req(conn, pdu); in lp_comm_tx()
180 llcp_pdu_encode_min_used_chans_ind(ctx, pdu); in lp_comm_tx()
186 llcp_pdu_encode_version_ind(pdu); in lp_comm_tx()
190 llcp_pdu_encode_terminate_ind(ctx, pdu); in lp_comm_tx()
196 llcp_pdu_encode_cis_terminate_ind(ctx, pdu); in lp_comm_tx()
203 llcp_pdu_encode_length_req(conn, pdu); in lp_comm_tx()
209 llcp_pdu_encode_cte_req(ctx, pdu); in lp_comm_tx()
215 llcp_pdu_encode_clock_accuracy_req(ctx, pdu); in lp_comm_tx()
224 ctx->tx_opcode = pdu->llctrl.opcode; in lp_comm_tx()
247 struct pdu_data *pdu) in lp_comm_ntf_feature_exchange() argument
251 llcp_ntf_encode_feature_rsp(conn, pdu); in lp_comm_ntf_feature_exchange()
254 llcp_ntf_encode_unknown_rsp(ctx, pdu); in lp_comm_ntf_feature_exchange()
263 struct pdu_data *pdu) in lp_comm_ntf_version_ind() argument
267 llcp_ntf_encode_version_ind(conn, pdu); in lp_comm_ntf_version_ind()
277 struct pdu_data *pdu) in lp_comm_ntf_length_change() argument
279 llcp_ntf_encode_length_change(conn, pdu); in lp_comm_ntf_length_change()
291 static void lp_comm_ntf_cte_req(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) in lp_comm_ntf_cte_req() argument
297 llcp_ntf_encode_cte_req(pdu); in lp_comm_ntf_cte_req()
301 llcp_ntf_encode_unknown_rsp(ctx, pdu); in lp_comm_ntf_cte_req()
304 llcp_ntf_encode_reject_ext_ind(ctx, pdu); in lp_comm_ntf_cte_req()
375 static void lp_comm_ntf_sca(struct node_rx_pdu *ntf, struct proc_ctx *ctx, struct pdu_data *pdu) in lp_comm_ntf_sca() argument
377 struct node_rx_sca *pdu_sca = (struct node_rx_sca *)pdu; in lp_comm_ntf_sca()
389 struct pdu_data *pdu; in lp_comm_ntf() local
402 pdu = (struct pdu_data *)ntf->pdu; in lp_comm_ntf()
406 lp_comm_ntf_feature_exchange(conn, ctx, pdu); in lp_comm_ntf()
409 lp_comm_ntf_version_ind(conn, ctx, pdu); in lp_comm_ntf()
413 lp_comm_ntf_length_change(conn, ctx, pdu); in lp_comm_ntf()
418 lp_comm_ntf_cte_req(conn, ctx, pdu); in lp_comm_ntf()
423 lp_comm_ntf_sca(ntf, ctx, pdu); in lp_comm_ntf()
789 static void lp_comm_rx_decode(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) argument
791 ctx->response_opcode = pdu->llctrl.opcode;
793 switch (pdu->llctrl.opcode) {
800 llcp_pdu_decode_feature_rsp(conn, pdu);
815 llcp_pdu_decode_version_ind(conn, pdu);
818 llcp_pdu_decode_unknown_rsp(ctx, pdu);
826 llcp_pdu_decode_length_rsp(conn, pdu);
831 llcp_pdu_decode_cte_rsp(ctx, pdu);
836 llcp_pdu_decode_clock_accuracy_rsp(ctx, pdu);
840 llcp_pdu_decode_reject_ext_ind(ctx, pdu);
928 lp_comm_execute_fsm(conn, ctx, LP_COMMON_EVT_ACK, tx->pdu);
933 lp_comm_execute_fsm(conn, ctx, LP_COMMON_EVT_RESPONSE, rx->pdu);
962 static void rp_comm_rx_decode(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) argument
964 ctx->response_opcode = pdu->llctrl.opcode;
966 switch (pdu->llctrl.opcode) {
980 llcp_pdu_decode_feature_req(conn, pdu);
992 llcp_pdu_decode_min_used_chans_ind(conn, pdu);
996 llcp_pdu_decode_version_ind(conn, pdu);
999 llcp_pdu_decode_terminate_ind(ctx, pdu);
1005 llcp_pdu_decode_cis_terminate_ind(ctx, pdu);
1012 llcp_pdu_decode_length_req(conn, pdu);
1027 llcp_pdu_decode_cte_req(ctx, pdu);
1032 llcp_pdu_decode_clock_accuracy_req(ctx, pdu);
1044 struct pdu_data *pdu; local
1050 pdu = (struct pdu_data *)tx->pdu;
1056 llcp_pdu_encode_ping_rsp(pdu);
1061 llcp_pdu_encode_feature_rsp(conn, pdu);
1065 llcp_pdu_encode_version_ind(pdu);
1070 llcp_pdu_encode_length_rsp(conn, pdu);
1097 llcp_pdu_encode_cte_rsp(ctx, pdu);
1100 llcp_pdu_encode_reject_ext_ind(pdu, PDU_DATA_LLCTRL_TYPE_CTE_REQ, err_code);
1111 llcp_pdu_encode_clock_accuracy_rsp(ctx, pdu);
1121 ctx->tx_opcode = pdu->llctrl.opcode;
1145 struct pdu_data *pdu; local
1161 pdu = (struct pdu_data *)ntf->pdu;
1163 llcp_ntf_encode_length_change(conn, pdu);
1424 rp_comm_execute_fsm(conn, ctx, RP_COMMON_EVT_REQUEST, rx->pdu);
1429 rp_comm_execute_fsm(conn, ctx, RP_COMMON_EVT_ACK, tx->pdu);