Home
last modified time | relevance | path

Searched refs:llcp (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-Core-3.4.0/subsys/bluetooth/controller/ll_sw/
Dull_llcp_features.h9 conn->llcp.fex.features_used &= ~ll_feat_mask; in feature_unmask_features()
15 return (conn->llcp.fex.features_used & LL_FEAT_BIT_ENC) != 0; in feature_le_encryption()
24 return (conn->llcp.fex.features_used & LL_FEAT_BIT_CONN_PARAM_REQ) != 0; in feature_conn_param_req()
33 return (conn->llcp.fex.features_used & LL_FEAT_BIT_EXT_REJ_IND) != 0; in feature_ext_rej_ind()
42 return (conn->llcp.fex.features_used & LL_FEAT_BIT_PER_INIT_FEAT_XCHG) != 0; in feature_periph_feat_req()
51 return (conn->llcp.fex.features_used & LL_FEAT_BIT_PING) != 0; in feature_le_ping()
60 return (conn->llcp.fex.features_used & LL_FEAT_BIT_DLE) != 0; in feature_dle()
69 return (conn->llcp.fex.features_used & LL_FEAT_BIT_PRIVACY) != 0; in feature_privacy()
78 return (conn->llcp.fex.features_used & LL_FEAT_BIT_EXT_SCAN) != 0; in feature_ext_scan()
87 return (conn->llcp.fex.features_used & LL_FEAT_BIT_CHAN_SEL_2) != 0; in feature_chan_sel_2()
[all …]
Dull_llcp.c109 if (conn->llcp.tx_buffer_alloc > CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in ull_cp_update_tx_buffer_queue()
110 common_tx_buffer_alloc -= (conn->llcp.tx_buffer_alloc - in ull_cp_update_tx_buffer_queue()
124 if (conn->llcp.tx_buffer_alloc < CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in static_tx_buffer_available()
183 conn->llcp.tx_buffer_alloc++; in llcp_tx_alloc()
185 if (conn->llcp.tx_buffer_alloc > CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in llcp_tx_alloc()
264 if (conn->llcp.tx_q_pause_data_mask == 0) { in llcp_tx_pause_data()
269 conn->llcp.tx_q_pause_data_mask |= pause_mask; in llcp_tx_pause_data()
275 conn->llcp.tx_q_pause_data_mask &= ~resume_mask; in llcp_tx_resume_data()
278 if (conn->llcp.tx_q_pause_data_mask == 0) { in llcp_tx_resume_data()
298 ctx->node_ref.rx->hdr.link->mem = conn->llcp.rx_node_release; in llcp_nodes_release()
[all …]
Dull_llcp_local.c124 conn->llcp.local.state = state; in lr_set_state()
135 sys_slist_append(&conn->llcp.local.pend_proc_list, &ctx->node); in llcp_lr_enqueue()
150 ctx = (struct proc_ctx *)sys_slist_get(&conn->llcp.local.pend_proc_list); in lr_dequeue()
166 ctx = (struct proc_ctx *)sys_slist_peek_head(&conn->llcp.local.pend_proc_list); in llcp_lr_peek()
183 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&conn->llcp.local.pend_proc_list, ctx, tmp, node) { in llcp_lr_peek_proc()
196 return conn->llcp.local.pause == 1U; in llcp_lr_ispaused()
201 conn->llcp.local.pause = 1U; in llcp_lr_pause()
206 conn->llcp.local.pause = 0U; in llcp_lr_resume()
211 conn->llcp.local.prt_expire = conn->llcp.prt_reload; in llcp_lr_prt_restart()
216 conn->llcp.local.prt_expire = value; in llcp_lr_prt_restart_with_value()
[all …]
Dull_llcp_remote.c132 conn->llcp.remote.state = state; in rr_set_state()
137 conn->llcp.remote.incompat = incompat; in llcp_rr_set_incompat()
143 conn->llcp.remote.paused_cmd = proc; in llcp_rr_set_paused_cmd()
150 return conn->llcp.remote.paused_cmd; in llcp_rr_get_paused_cmd()
158 return conn->llcp.remote.incompat; in rr_get_incompat()
163 conn->llcp.remote.collision = collision; in rr_set_collision()
168 return conn->llcp.remote.collision; in llcp_rr_get_collision()
173 sys_slist_append(&conn->llcp.remote.pend_proc_list, &ctx->node); in rr_enqueue()
180 ctx = (struct proc_ctx *)sys_slist_get(&conn->llcp.remote.pend_proc_list); in rr_dequeue()
188 ctx = (struct proc_ctx *)sys_slist_peek_head(&conn->llcp.remote.pend_proc_list); in llcp_rr_peek()
[all …]
Dull_llcp_common.c309 if (conn->llcp.cte_req.is_enabled) { in lp_comm_complete_cte_req()
312 if (conn->llcp.cte_req.req_interval != 0U) { in lp_comm_complete_cte_req()
313 conn->llcp.cte_req.req_expire = in lp_comm_complete_cte_req()
314 conn->llcp.cte_req.req_interval; in lp_comm_complete_cte_req()
319 conn->llcp.cte_req.is_enabled = 0U; in lp_comm_complete_cte_req()
583 return conn->llcp.cis.terminate_ack; in lp_cis_terminated()
622 if (!conn->llcp.vex.sent) {
624 conn->llcp.vex.sent = 1;
673 if (conn->llcp.cte_req.is_enabled &&
717 conn->llcp.cis.terminate_ack = 0U;
[all …]
Dull_llcp_pdu.c158 feature_rsp &= (FEAT_FILT_OCTET0 | conn->llcp.fex.features_used); in llcp_pdu_encode_feature_rsp()
172 sys_put_le64(conn->llcp.fex.features_peer, p->features); in llcp_ntf_encode_feature_rsp()
194 conn->llcp.fex.features_used = features_used(featureset); in llcp_pdu_decode_feature_req()
196 featureset &= (FEAT_FILT_OCTET0 | conn->llcp.fex.features_used); in llcp_pdu_decode_feature_req()
197 conn->llcp.fex.features_peer = featureset; in llcp_pdu_decode_feature_req()
199 conn->llcp.fex.valid = 1; in llcp_pdu_decode_feature_req()
207 conn->llcp.fex.features_used = features_used(featureset); in llcp_pdu_decode_feature_rsp()
208 conn->llcp.fex.features_peer = featureset; in llcp_pdu_decode_feature_rsp()
209 conn->llcp.fex.valid = 1; in llcp_pdu_decode_feature_rsp()
233 conn->llcp.muc.phys = pdu->llctrl.min_used_chans_ind.phys; in llcp_pdu_decode_min_used_chans_ind()
[all …]
Dull_df.c1299 if (conn->llcp.cte_req.is_enabled) { in ll_df_set_conn_cte_req_enable()
1325 conn->llcp.cte_req.is_enabled = 1U; in ll_df_set_conn_cte_req_enable()
1326 conn->llcp.cte_req.req_interval = cte_request_interval; in ll_df_set_conn_cte_req_enable()
1327 conn->llcp.cte_req.cte_type = requested_cte_type; in ll_df_set_conn_cte_req_enable()
1328 conn->llcp.cte_req.min_cte_len = requested_cte_length; in ll_df_set_conn_cte_req_enable()
1370 if (conn->llcp.cte_rsp.is_active) { in ll_df_set_conn_cte_rsp_enable()
1374 conn->llcp.cte_rsp.disable_param = &sem; in ll_df_set_conn_cte_rsp_enable()
1375 conn->llcp.cte_rsp.disable_cb = df_conn_cte_req_disable; in ll_df_set_conn_cte_rsp_enable()
1377 if (!conn->llcp.cte_rsp.is_active) { in ll_df_set_conn_cte_rsp_enable()
Dull_conn_types.h9 enum llcp { enum
162 struct llcp_struct llcp; member
Dull_conn.c873 conn->llcp.prep.ticks_at_expire = ticks_at_expire; in ull_conn_llcp()
874 conn->llcp.prep.remainder = remainder; in ull_conn_llcp()
875 conn->llcp.prep.lazy = lazy; in ull_conn_llcp()
1137 if (conn->llcp.cte_req.req_interval != 0U && conn->llcp.cte_req.req_expire != 0U) { in ull_conn_done()
1138 if (conn->llcp.cte_req.req_expire > elapsed_event) { in ull_conn_done()
1139 conn->llcp.cte_req.req_expire -= elapsed_event; in ull_conn_done()
1146 conn->llcp.cte_req.req_expire = 0U; in ull_conn_done()
1148 err = ull_cp_cte_req(conn, conn->llcp.cte_req.min_cte_len, in ull_conn_done()
1149 conn->llcp.cte_req.cte_type); in ull_conn_done()
2029 conn->llcp.prep.lazy; in ull_conn_event_counter()
[all …]
Dull_llcp_cc.c458 conn->llcp.prep.ticks_at_expire, in rp_cc_check_instant()
459 conn->llcp.prep.remainder, in rp_cc_check_instant()
941 conn->llcp.prep.ticks_at_expire, in lp_cc_check_instant()
942 conn->llcp.prep.remainder, in lp_cc_check_instant()
Dull_central_iso.c774 time_of_intant = HAL_TICKER_TICKS_TO_US(conn->llcp.prep.ticks_at_expire) + in ull_central_iso_setup()
1024 remainder = conn->llcp.prep.remainder; in mfy_cis_offset_get()
Dull_llcp_enc.c707 if (conn->llcp.fex.valid && feature_ext_rej_ind(conn)) { in llcp_rp_enc_tx()
Dull_conn_iso.c1121 conn->llcp.cis.terminate_ack = 1U; in cis_disabled_cb()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/
Dmain.c73 conn[j].llcp.tx_buffer_alloc = 0; in ZTEST()
80 zassert_equal(conn[0].llcp.tx_buffer_alloc, i + 1); in ZTEST()
89 zassert_equal(conn[0].llcp.tx_buffer_alloc, in ZTEST()
107 zassert_equal(conn[j].llcp.tx_buffer_alloc, i + 1); in ZTEST()
117 zassert_equal(conn[0].llcp.tx_buffer_alloc, CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM + in ZTEST()
128 zassert_equal(conn[0].llcp.tx_buffer_alloc, in ZTEST()
137 zassert_equal(conn[0].llcp.tx_buffer_alloc, CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM + in ZTEST()
145 zassert_true(!(conn[2].llcp.tx_buffer_alloc < in ZTEST()
150 zassert_true((conn[2].llcp.tx_buffer_alloc < in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/df/common/src/
Dbt_conn_common.c46 conn->llcp.cte_req.is_enabled = 0U; in ut_bt_create_connection()
48 conn->llcp.fex.features_used |= BIT(BT_LE_FEAT_BIT_CONN_CTE_REQ); in ut_bt_create_connection()
71 conn->llcp.fex.valid = PEER_FEATURES_ARE_VALID; in ut_bt_set_peer_features()
72 conn->llcp.fex.features_peer = features; in ut_bt_set_peer_features()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_cte_req/src/
Dmain.c53 conn.llcp.cte_req.is_enabled = 1U; in cte_req_setup()
61 memset(&conn.llcp.fex, 0, sizeof(conn.llcp.fex)); in fex_setup()
62 conn.llcp.fex.features_used = LL_FEAT; in fex_setup()
63 conn.llcp.fex.features_peer = LL_FEAT; in fex_setup()
65 conn.llcp.fex.valid = 1; in fex_setup()
111 conn.llcp.cte_req.is_enabled = 1U; in ZTEST()
186 conn.llcp.cte_req.is_enabled = 1U; in ZTEST()
405 conn.llcp.cte_req.is_enabled = 1U; in ZTEST()
484 conn.llcp.cte_req.is_enabled = 1U; in ZTEST()
1121 conn.llcp.cte_req.is_enabled = 1U; in test_local_cte_req_wait_for_phy_update_complete_and_disable()
[all …]
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_hci/src/
Dmain.c263 conn_from_pool->llcp.fex.features_used = 0x00; in ZTEST()
264 conn_from_pool->llcp.fex.valid = 1; in ZTEST()
268 conn_from_pool->llcp.fex.features_used = 0xFFFF; in ZTEST()
313 conn_from_pool->llcp.fex.features_used = 0x00; in ZTEST()
316 conn_from_pool->llcp.fex.features_used = 0xFFFFFFFF; in ZTEST()
403 conn_from_pool->llcp.fex.features_used |= BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); in ZTEST()
408 conn_from_pool->llcp.fex.features_used &= ~BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); in ZTEST()
415 conn_from_pool->llcp.fex.features_used |= BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); in ZTEST()
422 conn_from_pool->llcp.fex.features_used |= BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_api/src/
Dmain.c485 memset(&conn.llcp, 0xAA, sizeof(conn.llcp)); in ZTEST()
489 zassert_equal(conn.llcp.local.pause, 0); in ZTEST()
490 zassert_equal(conn.llcp.remote.pause, 0); in ZTEST()
511 peek_ctx = (struct proc_ctx *)sys_slist_peek_head(&conn.llcp.local.pend_proc_list); in ZTEST()
545 peek_ctx = (struct proc_ctx *)sys_slist_peek_head(&conn.llcp.remote.pend_proc_list); in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/common/src/
Dhelper_util.c228 printf(" Local state: %d\n", conn->llcp.local.state); in test_print_conn()
229 printf(" Remote state: %d\n", conn->llcp.remote.state); in test_print_conn()
230 printf(" Collision: %d\n", conn->llcp.remote.collision); in test_print_conn()
231 printf(" Reject: %d\n", conn->llcp.remote.reject_opcode); in test_print_conn()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_cis_terminate/src/
Dmain.c126 conn.llcp.cis.terminate_ack = 1; in test_cis_terminate_loc()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_data_length_update/src/
Dmain.c722 conn.llcp.fex.valid = 0; in ZTEST()
740 conn.llcp.fex.valid = 1; in ZTEST()
741 conn.llcp.fex.features_used = 0; in ZTEST()
758 conn.llcp.fex.features_used = LL_FEAT_BIT_PHY_CODED; in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_version/src/
Dmain.c202 conn.llcp.vex.sent = 0; in ZTEST()
238 conn.llcp.vex.sent = 0; in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_collision/src/
Dmain.c174 conn.llcp.fex.valid = 1; in ZTEST()
645 conn.llcp.fex.valid = 1; in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_conn_update/src/
Dmain.c182 conn->llcp.fex.features_used &= ~BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); in test_unmask_feature_conn_param_req()
187 return (conn->llcp.fex.features_used & BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ)); in test_get_feature_conn_param_req()
1210 conn.llcp.fex.valid = 1; in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/ctrl_encrypt/src/
Dmain.c105 conn.llcp.fex.valid = 1U; in enc_setup()
106 conn.llcp.fex.features_used |= LL_FEAT_BIT_EXT_REJ_IND; in enc_setup()

12