Lines Matching full:conn

148 static void enc_setup_lll(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t role)  in enc_setup_lll()  argument
153 ecb_encrypt(&ctx->data.enc.ltk[0], &ctx->data.enc.skd[0], NULL, &conn->lll.ccm_rx.key[0]); in enc_setup_lll()
156 memcpy(&conn->lll.ccm_tx.key[0], &conn->lll.ccm_rx.key[0], sizeof(conn->lll.ccm_tx.key)); in enc_setup_lll()
159 memcpy(&conn->lll.ccm_tx.iv[0], &conn->lll.ccm_rx.iv[0], sizeof(conn->lll.ccm_tx.iv)); in enc_setup_lll()
162 conn->lll.ccm_tx.counter = 0U; in enc_setup_lll()
163 conn->lll.ccm_rx.counter = 0U; in enc_setup_lll()
170 conn->lll.ccm_tx.direction = 0U; in enc_setup_lll()
171 conn->lll.ccm_rx.direction = 1U; in enc_setup_lll()
173 conn->lll.ccm_tx.direction = 1U; in enc_setup_lll()
174 conn->lll.ccm_rx.direction = 0U; in enc_setup_lll()
183 static struct node_tx *llcp_lp_enc_tx(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t opcode) in llcp_lp_enc_tx() argument
189 tx = llcp_tx_alloc(conn, ctx); in llcp_lp_enc_tx()
215 llcp_tx_enqueue(conn, tx); in llcp_lp_enc_tx()
218 llcp_lr_prt_restart(conn); in llcp_lp_enc_tx()
223 static void lp_enc_ntf(struct ll_conn *conn, struct proc_ctx *ctx) in lp_enc_ntf() argument
234 ntf->hdr.handle = conn->lll.handle; in lp_enc_ntf()
254 static void lp_enc_complete(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in lp_enc_complete() argument
256 lp_enc_ntf(conn, ctx); in lp_enc_complete()
257 llcp_lr_complete(conn); in lp_enc_complete()
261 static void lp_enc_store_m(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) in lp_enc_store_m() argument
269 memcpy(&conn->lll.ccm_rx.iv[0], pdu->llctrl.enc_req.ivm, sizeof(pdu->llctrl.enc_req.ivm)); in lp_enc_store_m()
272 static void lp_enc_send_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_send_enc_req() argument
277 if (!llcp_tx_alloc_peek(conn, ctx)) { in lp_enc_send_enc_req()
280 tx = llcp_lp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_ENC_REQ); in lp_enc_send_enc_req()
281 lp_enc_store_m(conn, ctx, (struct pdu_data *)tx->pdu); in lp_enc_send_enc_req()
287 llcp_rr_pause(conn); in lp_enc_send_enc_req()
292 static void lp_enc_send_pause_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_send_pause_enc_req() argument
295 if (!llcp_tx_alloc_peek(conn, ctx)) { in lp_enc_send_pause_enc_req()
298 llcp_lp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_REQ); in lp_enc_send_pause_enc_req()
305 static void lp_enc_send_pause_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_send_pause_enc_rsp() argument
308 if (!llcp_tx_alloc_peek(conn, ctx)) { in lp_enc_send_pause_enc_rsp()
311 llcp_lp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_RSP); in lp_enc_send_pause_enc_rsp()
318 conn->lll.enc_tx = 0U; in lp_enc_send_pause_enc_rsp()
321 conn->lll.enc_rx = 0U; in lp_enc_send_pause_enc_rsp()
325 static void lp_enc_send_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_send_start_enc_rsp() argument
328 if (!llcp_tx_alloc_peek(conn, ctx)) { in lp_enc_send_start_enc_rsp()
331 enc_setup_lll(conn, ctx, BT_HCI_ROLE_CENTRAL); in lp_enc_send_start_enc_rsp()
332 llcp_lp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_START_ENC_RSP); in lp_enc_send_start_enc_rsp()
339 conn->lll.enc_tx = 1U; in lp_enc_send_start_enc_rsp()
342 conn->lll.enc_rx = 1U; in lp_enc_send_start_enc_rsp()
346 static void lp_enc_st_wait_tx_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_wait_tx_enc_req() argument
351 lp_enc_send_enc_req(conn, ctx, evt, param); in lp_enc_st_wait_tx_enc_req()
359 static void lp_enc_store_s(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) in lp_enc_store_s() argument
367 memcpy(&conn->lll.ccm_rx.iv[4], pdu->llctrl.enc_rsp.ivs, sizeof(pdu->llctrl.enc_rsp.ivs)); in lp_enc_store_s()
397 static void lp_enc_st_wait_rx_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_wait_rx_enc_rsp() argument
405 ull_conn_pause_rx_data(conn); in lp_enc_st_wait_rx_enc_rsp()
406 lp_enc_store_s(conn, ctx, pdu); in lp_enc_st_wait_rx_enc_rsp()
424 llcp_tx_resume_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in lp_enc_st_wait_rx_enc_rsp()
430 llcp_rr_resume(conn); in lp_enc_st_wait_rx_enc_rsp()
433 lp_enc_complete(conn, ctx, evt, param); in lp_enc_st_wait_rx_enc_rsp()
441 static void lp_enc_st_wait_rx_start_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_wait_rx_start_enc_req() argument
448 lp_enc_send_start_enc_rsp(conn, ctx, evt, param); in lp_enc_st_wait_rx_start_enc_req()
452 llcp_tx_resume_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in lp_enc_st_wait_rx_start_enc_req()
454 ull_conn_resume_rx_data(conn); in lp_enc_st_wait_rx_start_enc_req()
460 llcp_rr_resume(conn); in lp_enc_st_wait_rx_start_enc_req()
465 lp_enc_complete(conn, ctx, evt, param); in lp_enc_st_wait_rx_start_enc_req()
473 static void lp_enc_st_wait_tx_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_wait_tx_start_enc_rsp() argument
478 lp_enc_send_start_enc_rsp(conn, ctx, evt, param); in lp_enc_st_wait_tx_start_enc_rsp()
486 static void lp_enc_st_wait_rx_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_wait_rx_start_enc_rsp() argument
492 llcp_tx_resume_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in lp_enc_st_wait_rx_start_enc_rsp()
494 ull_conn_resume_rx_data(conn); in lp_enc_st_wait_rx_start_enc_rsp()
498 llcp_rr_resume(conn); in lp_enc_st_wait_rx_start_enc_rsp()
503 lp_enc_complete(conn, ctx, evt, param); in lp_enc_st_wait_rx_start_enc_rsp()
511 static void lp_enc_st_unencrypted(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_unencrypted() argument
517 llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in lp_enc_st_unencrypted()
518 lp_enc_send_enc_req(conn, ctx, evt, param); in lp_enc_st_unencrypted()
526 static void lp_enc_state_encrypted(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_state_encrypted() argument
532 llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in lp_enc_state_encrypted()
533 lp_enc_send_pause_enc_req(conn, ctx, evt, param); in lp_enc_state_encrypted()
541 static void lp_enc_st_idle(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in lp_enc_st_idle() argument
547 lp_enc_state_encrypted(conn, ctx, evt, param); in lp_enc_st_idle()
549 lp_enc_st_unencrypted(conn, ctx, evt, param); in lp_enc_st_idle()
558 static void lp_enc_state_wait_tx_pause_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, in lp_enc_state_wait_tx_pause_enc_req() argument
563 lp_enc_send_pause_enc_req(conn, ctx, evt, param); in lp_enc_state_wait_tx_pause_enc_req()
571 static void lp_enc_state_wait_rx_pause_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, in lp_enc_state_wait_rx_pause_enc_rsp() argument
580 ull_conn_pause_rx_data(conn); in lp_enc_state_wait_rx_pause_enc_rsp()
581 lp_enc_send_pause_enc_rsp(conn, ctx, evt, param); in lp_enc_state_wait_rx_pause_enc_rsp()
589 static void lp_enc_state_wait_tx_pause_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, in lp_enc_state_wait_tx_pause_enc_rsp() argument
594 lp_enc_send_pause_enc_rsp(conn, ctx, evt, param); in lp_enc_state_wait_tx_pause_enc_rsp()
602 static void lp_enc_execute_fsm(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in lp_enc_execute_fsm() argument
606 lp_enc_st_idle(conn, ctx, evt, param); in lp_enc_execute_fsm()
610 lp_enc_st_unencrypted(conn, ctx, evt, param); in lp_enc_execute_fsm()
613 lp_enc_st_wait_tx_enc_req(conn, ctx, evt, param); in lp_enc_execute_fsm()
616 lp_enc_st_wait_rx_enc_rsp(conn, ctx, evt, param); in lp_enc_execute_fsm()
619 lp_enc_st_wait_rx_start_enc_req(conn, ctx, evt, param); in lp_enc_execute_fsm()
622 lp_enc_st_wait_tx_start_enc_rsp(conn, ctx, evt, param); in lp_enc_execute_fsm()
625 lp_enc_st_wait_rx_start_enc_rsp(conn, ctx, evt, param); in lp_enc_execute_fsm()
629 lp_enc_state_encrypted(conn, ctx, evt, param); in lp_enc_execute_fsm()
632 lp_enc_state_wait_tx_pause_enc_req(conn, ctx, evt, param); in lp_enc_execute_fsm()
635 lp_enc_state_wait_rx_pause_enc_rsp(conn, ctx, evt, param); in lp_enc_execute_fsm()
638 lp_enc_state_wait_tx_pause_enc_rsp(conn, ctx, evt, param); in lp_enc_execute_fsm()
646 void llcp_lp_enc_rx(struct ll_conn *conn, struct proc_ctx *ctx, struct node_rx_pdu *rx) in llcp_lp_enc_rx() argument
652 lp_enc_execute_fsm(conn, ctx, LP_ENC_EVT_ENC_RSP, pdu); in llcp_lp_enc_rx()
655 lp_enc_execute_fsm(conn, ctx, LP_ENC_EVT_START_ENC_REQ, pdu); in llcp_lp_enc_rx()
658 lp_enc_execute_fsm(conn, ctx, LP_ENC_EVT_START_ENC_RSP, pdu); in llcp_lp_enc_rx()
662 lp_enc_execute_fsm(conn, ctx, LP_ENC_EVT_REJECT, pdu); in llcp_lp_enc_rx()
665 lp_enc_execute_fsm(conn, ctx, LP_ENC_EVT_PAUSE_ENC_RSP, pdu); in llcp_lp_enc_rx()
685 conn->llcp_terminate.reason_final = BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL; in llcp_lp_enc_rx()
689 void llcp_lp_enc_run(struct ll_conn *conn, struct proc_ctx *ctx, void *param) in llcp_lp_enc_run() argument
691 lp_enc_execute_fsm(conn, ctx, LP_ENC_EVT_RUN, param); in llcp_lp_enc_run()
701 static struct node_tx *llcp_rp_enc_tx(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t opcode) in llcp_rp_enc_tx() argument
707 tx = llcp_tx_alloc(conn, ctx); in llcp_rp_enc_tx()
727 if (conn->llcp.fex.valid && feature_ext_rej_ind(conn)) { in llcp_rp_enc_tx()
741 llcp_tx_enqueue(conn, tx); in llcp_rp_enc_tx()
744 llcp_rr_prt_restart(conn); in llcp_rp_enc_tx()
749 static void rp_enc_ntf_ltk(struct ll_conn *conn, struct proc_ctx *ctx) in rp_enc_ntf_ltk() argument
763 ntf->hdr.handle = conn->lll.handle; in rp_enc_ntf_ltk()
775 static void rp_enc_ntf(struct ll_conn *conn, struct proc_ctx *ctx) in rp_enc_ntf() argument
786 ntf->hdr.handle = conn->lll.handle; in rp_enc_ntf()
802 static void rp_enc_send_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt,
805 static void rp_enc_complete(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in rp_enc_complete() argument
807 rp_enc_ntf(conn, ctx); in rp_enc_complete()
808 rp_enc_send_start_enc_rsp(conn, ctx, evt, param); in rp_enc_complete()
811 static void rp_enc_store_s(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) in rp_enc_store_s() argument
819 memcpy(&conn->lll.ccm_rx.iv[4], pdu->llctrl.enc_rsp.ivs, sizeof(pdu->llctrl.enc_rsp.ivs)); in rp_enc_store_s()
822 static void rp_enc_send_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_send_enc_rsp() argument
827 if (!llcp_tx_alloc_peek(conn, ctx)) { in rp_enc_send_enc_rsp()
832 tx = llcp_rp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_ENC_RSP); in rp_enc_send_enc_rsp()
833 rp_enc_store_s(conn, ctx, (struct pdu_data *)tx->pdu); in rp_enc_send_enc_rsp()
835 rp_enc_ntf_ltk(conn, ctx); in rp_enc_send_enc_rsp()
840 static void rp_enc_send_start_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_send_start_enc_req() argument
843 if (!llcp_tx_alloc_peek(conn, ctx)) { in rp_enc_send_start_enc_req()
846 enc_setup_lll(conn, ctx, BT_HCI_ROLE_PERIPHERAL); in rp_enc_send_start_enc_req()
847 llcp_rp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_START_ENC_REQ); in rp_enc_send_start_enc_req()
853 conn->lll.enc_rx = 1U; in rp_enc_send_start_enc_req()
857 static void rp_enc_send_reject_ind(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_send_reject_ind() argument
860 if (!llcp_tx_alloc_peek(conn, ctx)) { in rp_enc_send_reject_ind()
863 llcp_rp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_REJECT_IND); in rp_enc_send_reject_ind()
864 llcp_rr_complete(conn); in rp_enc_send_reject_ind()
875 llcp_tx_resume_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in rp_enc_send_reject_ind()
877 ull_conn_resume_rx_data(conn); in rp_enc_send_reject_ind()
879 llcp_lr_resume(conn); in rp_enc_send_reject_ind()
892 static void rp_enc_send_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_send_start_enc_rsp() argument
895 if (!llcp_tx_alloc_peek(conn, ctx)) { in rp_enc_send_start_enc_rsp()
898 llcp_rp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_START_ENC_RSP); in rp_enc_send_start_enc_rsp()
899 llcp_rr_complete(conn); in rp_enc_send_start_enc_rsp()
903 llcp_tx_resume_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in rp_enc_send_start_enc_rsp()
905 ull_conn_resume_rx_data(conn); in rp_enc_send_start_enc_rsp()
908 llcp_lr_resume(conn); in rp_enc_send_start_enc_rsp()
911 conn->lll.enc_tx = 1U; in rp_enc_send_start_enc_rsp()
915 static void rp_enc_send_pause_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_send_pause_enc_rsp() argument
918 if (!llcp_tx_alloc_peek(conn, ctx)) { in rp_enc_send_pause_enc_rsp()
921 llcp_rp_enc_tx(conn, ctx, PDU_DATA_LLCTRL_TYPE_PAUSE_ENC_RSP); in rp_enc_send_pause_enc_rsp()
927 conn->lll.enc_rx = 0U; in rp_enc_send_pause_enc_rsp()
931 static void rp_enc_store_m(struct ll_conn *conn, struct proc_ctx *ctx, struct pdu_data *pdu) in rp_enc_store_m() argument
947 memcpy(&conn->lll.ccm_rx.iv[0], pdu->llctrl.enc_req.ivm, sizeof(pdu->llctrl.enc_req.ivm)); in rp_enc_store_m()
950 static void rp_enc_state_wait_rx_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_wait_rx_enc_req() argument
956 llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in rp_enc_state_wait_rx_enc_req()
958 ull_conn_pause_rx_data(conn); in rp_enc_state_wait_rx_enc_req()
961 llcp_lr_pause(conn); in rp_enc_state_wait_rx_enc_req()
963 rp_enc_store_m(conn, ctx, param); in rp_enc_state_wait_rx_enc_req()
965 rp_enc_send_enc_rsp(conn, ctx, evt, param); in rp_enc_state_wait_rx_enc_req()
973 static void rp_enc_state_wait_tx_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_wait_tx_enc_rsp() argument
978 rp_enc_send_enc_rsp(conn, ctx, evt, param); in rp_enc_state_wait_tx_enc_rsp()
986 static void rp_enc_state_wait_ltk_reply(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_wait_ltk_reply() argument
1007 static void rp_enc_state_wait_ltk_reply_continue(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_ltk_reply_continue() argument
1012 rp_enc_send_start_enc_req(conn, ctx, evt, param); in rp_enc_state_wait_ltk_reply_continue()
1020 static void rp_enc_state_wait_tx_start_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_tx_start_enc_req() argument
1025 rp_enc_send_start_enc_req(conn, ctx, evt, param); in rp_enc_state_wait_tx_start_enc_req()
1033 static void rp_enc_state_wait_tx_reject_ind(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_wait_tx_reject_ind() argument
1038 rp_enc_send_reject_ind(conn, ctx, evt, param); in rp_enc_state_wait_tx_reject_ind()
1046 static void rp_enc_state_wait_rx_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_rx_start_enc_rsp() argument
1051 rp_enc_complete(conn, ctx, evt, param); in rp_enc_state_wait_rx_start_enc_rsp()
1059 static void rp_enc_state_wait_tx_start_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_tx_start_enc_rsp() argument
1064 rp_enc_send_start_enc_rsp(conn, ctx, evt, param); in rp_enc_state_wait_tx_start_enc_rsp()
1072 static void rp_enc_state_encrypted(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_encrypted() argument
1085 static void rp_enc_state_unencrypted(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_unencrypted() argument
1098 static void rp_enc_state_idle(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, in rp_enc_state_idle() argument
1104 rp_enc_state_encrypted(conn, ctx, evt, param); in rp_enc_state_idle()
1106 rp_enc_state_unencrypted(conn, ctx, evt, param); in rp_enc_state_idle()
1114 static void rp_enc_state_wait_rx_pause_enc_req(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_rx_pause_enc_req() argument
1126 struct ll_conn_iso_stream *cis = ll_conn_iso_stream_get_by_acl(conn, NULL); in rp_enc_state_wait_rx_pause_enc_req()
1133 rp_enc_send_reject_ind(conn, ctx, evt, param); in rp_enc_state_wait_rx_pause_enc_req()
1140 llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION); in rp_enc_state_wait_rx_pause_enc_req()
1145 ull_conn_pause_rx_data(conn); in rp_enc_state_wait_rx_pause_enc_req()
1146 rp_enc_send_pause_enc_rsp(conn, ctx, evt, param); in rp_enc_state_wait_rx_pause_enc_req()
1154 static void rp_enc_state_wait_tx_pause_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_tx_pause_enc_rsp() argument
1159 rp_enc_send_pause_enc_rsp(conn, ctx, evt, param); in rp_enc_state_wait_tx_pause_enc_rsp()
1167 static void rp_enc_state_wait_rx_pause_enc_rsp(struct ll_conn *conn, struct proc_ctx *ctx, in rp_enc_state_wait_rx_pause_enc_rsp() argument
1178 conn->lll.enc_tx = 0U; in rp_enc_state_wait_rx_pause_enc_rsp()
1186 static void rp_enc_execute_fsm(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t evt, void *param) in rp_enc_execute_fsm() argument
1190 rp_enc_state_idle(conn, ctx, evt, param); in rp_enc_execute_fsm()
1194 rp_enc_state_unencrypted(conn, ctx, evt, param); in rp_enc_execute_fsm()
1197 rp_enc_state_wait_rx_enc_req(conn, ctx, evt, param); in rp_enc_execute_fsm()
1200 rp_enc_state_wait_tx_enc_rsp(conn, ctx, evt, param); in rp_enc_execute_fsm()
1203 rp_enc_state_wait_ltk_reply(conn, ctx, evt, param); in rp_enc_execute_fsm()
1206 rp_enc_state_wait_ltk_reply_continue(conn, ctx, evt, param); in rp_enc_execute_fsm()
1209 rp_enc_state_wait_tx_start_enc_req(conn, ctx, evt, param); in rp_enc_execute_fsm()
1212 rp_enc_state_wait_tx_reject_ind(conn, ctx, evt, param); in rp_enc_execute_fsm()
1215 rp_enc_state_wait_rx_start_enc_rsp(conn, ctx, evt, param); in rp_enc_execute_fsm()
1218 rp_enc_state_wait_tx_start_enc_rsp(conn, ctx, evt, param); in rp_enc_execute_fsm()
1222 rp_enc_state_encrypted(conn, ctx, evt, param); in rp_enc_execute_fsm()
1225 rp_enc_state_wait_rx_pause_enc_req(conn, ctx, evt, param); in rp_enc_execute_fsm()
1228 rp_enc_state_wait_tx_pause_enc_rsp(conn, ctx, evt, param); in rp_enc_execute_fsm()
1231 rp_enc_state_wait_rx_pause_enc_rsp(conn, ctx, evt, param); in rp_enc_execute_fsm()
1239 void llcp_rp_enc_rx(struct ll_conn *conn, struct proc_ctx *ctx, struct node_rx_pdu *rx) in llcp_rp_enc_rx() argument
1245 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_ENC_REQ, pdu); in llcp_rp_enc_rx()
1248 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_START_ENC_RSP, pdu); in llcp_rp_enc_rx()
1251 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_PAUSE_ENC_REQ, pdu); in llcp_rp_enc_rx()
1254 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_PAUSE_ENC_RSP, pdu); in llcp_rp_enc_rx()
1274 conn->llcp_terminate.reason_final = BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL; in llcp_rp_enc_rx()
1278 void llcp_rp_enc_ltk_req_reply(struct ll_conn *conn, struct proc_ctx *ctx) in llcp_rp_enc_ltk_req_reply() argument
1280 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_LTK_REQ_REPLY, NULL); in llcp_rp_enc_ltk_req_reply()
1283 void llcp_rp_enc_ltk_req_neg_reply(struct ll_conn *conn, struct proc_ctx *ctx) in llcp_rp_enc_ltk_req_neg_reply() argument
1285 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_LTK_REQ_NEG_REPLY, NULL); in llcp_rp_enc_ltk_req_neg_reply()
1288 bool llcp_rp_enc_ltk_req_reply_allowed(struct ll_conn *conn, struct proc_ctx *ctx) in llcp_rp_enc_ltk_req_reply_allowed() argument
1293 void llcp_rp_enc_run(struct ll_conn *conn, struct proc_ctx *ctx, void *param) in llcp_rp_enc_run() argument
1295 rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_RUN, param); in llcp_rp_enc_run()