Home
last modified time | relevance | path

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

12

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp_features.h9 conn->llcp.fex.features_used &= ~ll_feat_mask; in feature_unmask_features()
14 conn->llcp.fex.features_peer &= ~ll_feat_mask; in feature_unmask_peer_features()
20 return (conn->llcp.fex.features_used & LL_FEAT_BIT_ENC) != 0; in feature_le_encryption()
29 return (conn->llcp.fex.features_used & LL_FEAT_BIT_CONN_PARAM_REQ) != 0; in feature_conn_param_req()
38 return (conn->llcp.fex.features_used & LL_FEAT_BIT_EXT_REJ_IND) != 0; in feature_ext_rej_ind()
47 return (conn->llcp.fex.features_used & LL_FEAT_BIT_PER_INIT_FEAT_XCHG) != 0; in feature_periph_feat_req()
56 return (conn->llcp.fex.features_used & LL_FEAT_BIT_PING) != 0; in feature_le_ping()
65 return (conn->llcp.fex.features_used & LL_FEAT_BIT_DLE) != 0; in feature_dle()
74 return (conn->llcp.fex.features_used & LL_FEAT_BIT_PRIVACY) != 0; in feature_privacy()
83 return (conn->llcp.fex.features_used & LL_FEAT_BIT_EXT_SCAN) != 0; in feature_ext_scan()
[all …]
Dull_llcp_local.c130 conn->llcp.local.state = state; in lr_set_state()
141 sys_slist_append(&conn->llcp.local.pend_proc_list, &ctx->node); in llcp_lr_enqueue()
156 ctx = (struct proc_ctx *)sys_slist_get(&conn->llcp.local.pend_proc_list); in lr_dequeue()
172 ctx = (struct proc_ctx *)sys_slist_peek_head(&conn->llcp.local.pend_proc_list); in llcp_lr_peek()
189 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&conn->llcp.local.pend_proc_list, ctx, tmp, node) { in llcp_lr_peek_proc()
202 return conn->llcp.local.pause == 1U; in llcp_lr_ispaused()
207 conn->llcp.local.pause = 1U; in llcp_lr_pause()
212 conn->llcp.local.pause = 0U; in llcp_lr_resume()
217 conn->llcp.local.prt_expire = conn->llcp.prt_reload; in llcp_lr_prt_restart()
222 conn->llcp.local.prt_expire = value; in llcp_lr_prt_restart_with_value()
[all …]
Dull_llcp.c124 if (conn->llcp.tx_buffer_alloc > CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in ull_cp_update_tx_buffer_queue()
125 common_tx_buffer_alloc -= (conn->llcp.tx_buffer_alloc - in ull_cp_update_tx_buffer_queue()
139 if (conn->llcp.tx_buffer_alloc < CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in static_tx_buffer_available()
198 conn->llcp.tx_buffer_alloc++; in llcp_tx_alloc()
200 if (conn->llcp.tx_buffer_alloc > CONFIG_BT_CTLR_LLCP_PER_CONN_TX_CTRL_BUF_NUM) { in llcp_tx_alloc()
279 if (conn->llcp.tx_q_pause_data_mask == 0) { in llcp_tx_pause_data()
284 conn->llcp.tx_q_pause_data_mask |= pause_mask; in llcp_tx_pause_data()
290 conn->llcp.tx_q_pause_data_mask &= ~resume_mask; in llcp_tx_resume_data()
293 if (conn->llcp.tx_q_pause_data_mask == 0) { in llcp_tx_resume_data()
328 ctx->node_ref.rx->hdr.link->mem = conn->llcp.rx_node_release; in llcp_nodes_release()
[all …]
Dull_llcp_remote.c139 conn->llcp.remote.state = state; in rr_set_state()
144 conn->llcp.remote.incompat = incompat; in llcp_rr_set_incompat()
150 conn->llcp.remote.paused_cmd = proc; in llcp_rr_set_paused_cmd()
157 return conn->llcp.remote.paused_cmd; in llcp_rr_get_paused_cmd()
165 return conn->llcp.remote.incompat; in rr_get_incompat()
170 conn->llcp.remote.collision = collision; in rr_set_collision()
175 return conn->llcp.remote.collision; in llcp_rr_get_collision()
180 sys_slist_append(&conn->llcp.remote.pend_proc_list, &ctx->node); in rr_enqueue()
187 ctx = (struct proc_ctx *)sys_slist_get(&conn->llcp.remote.pend_proc_list); in rr_dequeue()
195 ctx = (struct proc_ctx *)sys_slist_peek_head(&conn->llcp.remote.pend_proc_list); in llcp_rr_peek()
[all …]
Dull_llcp_common.c321 if (conn->llcp.cte_req.is_enabled) { in lp_comm_complete_cte_req()
324 if (conn->llcp.cte_req.req_interval != 0U) { in lp_comm_complete_cte_req()
325 conn->llcp.cte_req.req_expire = in lp_comm_complete_cte_req()
326 conn->llcp.cte_req.req_interval; in lp_comm_complete_cte_req()
331 conn->llcp.cte_req.is_enabled = 0U; in lp_comm_complete_cte_req()
595 return conn->llcp.cis.terminate_ack; in lp_cis_terminated()
634 if (!conn->llcp.vex.sent) {
636 conn->llcp.vex.sent = 1;
689 if (conn->llcp.cte_req.is_enabled &&
733 conn->llcp.cis.terminate_ack = 0U;
[all …]
Dull_df.c964 if (conn->llcp.cte_req.is_enabled) { in ll_df_set_conn_cte_req_enable()
990 conn->llcp.cte_req.is_enabled = 1U; in ll_df_set_conn_cte_req_enable()
991 conn->llcp.cte_req.req_interval = cte_request_interval; in ll_df_set_conn_cte_req_enable()
992 conn->llcp.cte_req.cte_type = requested_cte_type; in ll_df_set_conn_cte_req_enable()
993 conn->llcp.cte_req.min_cte_len = requested_cte_length; in ll_df_set_conn_cte_req_enable()
1035 if (conn->llcp.cte_rsp.is_active) { in ll_df_set_conn_cte_rsp_enable()
1039 conn->llcp.cte_rsp.disable_param = &sem; in ll_df_set_conn_cte_rsp_enable()
1040 conn->llcp.cte_rsp.disable_cb = df_conn_cte_req_disable; in ll_df_set_conn_cte_rsp_enable()
1042 if (!conn->llcp.cte_rsp.is_active) { in ll_df_set_conn_cte_rsp_enable()
Dull_llcp_pdu.c165 feature_rsp &= (FEAT_FILT_OCTET0 | conn->llcp.fex.features_used); in llcp_pdu_encode_feature_rsp()
179 sys_put_le64(conn->llcp.fex.features_peer, p->features); in llcp_ntf_encode_feature_rsp()
201 conn->llcp.fex.features_used = features_used(featureset); in llcp_pdu_decode_feature_req()
203 featureset &= (FEAT_FILT_OCTET0 | conn->llcp.fex.features_used); in llcp_pdu_decode_feature_req()
204 conn->llcp.fex.features_peer = featureset; in llcp_pdu_decode_feature_req()
206 conn->llcp.fex.valid = 1; in llcp_pdu_decode_feature_req()
214 conn->llcp.fex.features_used = features_used(featureset); in llcp_pdu_decode_feature_rsp()
215 conn->llcp.fex.features_peer = featureset; in llcp_pdu_decode_feature_rsp()
216 conn->llcp.fex.valid = 1; in llcp_pdu_decode_feature_rsp()
240 conn->llcp.muc.phys = pdu->llctrl.min_used_chans_ind.phys; in llcp_pdu_decode_min_used_chans_ind()
[all …]
Dull_conn_types.h9 enum llcp { enum
175 struct llcp_struct llcp; member
Dull_conn.c960 conn->llcp.prep.ticks_at_expire = ticks_at_expire; in ull_conn_llcp()
961 conn->llcp.prep.remainder = remainder; in ull_conn_llcp()
962 conn->llcp.prep.lazy = lazy; in ull_conn_llcp()
1242 if (conn->llcp.cte_req.req_interval != 0U && conn->llcp.cte_req.req_expire != 0U) { in ull_conn_done()
1243 if (conn->llcp.cte_req.req_expire > elapsed_event) { in ull_conn_done()
1244 conn->llcp.cte_req.req_expire -= elapsed_event; in ull_conn_done()
1251 conn->llcp.cte_req.req_expire = 0U; in ull_conn_done()
1253 err = ull_cp_cte_req(conn, conn->llcp.cte_req.min_cte_len, in ull_conn_done()
1254 conn->llcp.cte_req.cte_type); in ull_conn_done()
2159 conn->llcp.prep.lazy; in ull_conn_event_counter()
[all …]
Dull_llcp_cc.c455 conn->llcp.prep.ticks_at_expire, in rp_cc_check_instant()
456 conn->llcp.prep.remainder, in rp_cc_check_instant()
1003 conn->llcp.prep.ticks_at_expire, in lp_cc_check_instant()
1004 conn->llcp.prep.remainder, in lp_cc_check_instant()
Dull_central_iso.c884 time_of_intant = HAL_TICKER_TICKS_TO_US(conn->llcp.prep.ticks_at_expire) + in ull_central_iso_setup()
1161 remainder = conn->llcp.prep.remainder; in mfy_cis_offset_get()
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/tests/bluetooth/controller/ctrl_periodic_sync/src/
Dmain.c172 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_PAST_RECV); in ZTEST()
221 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_PAST_RECV); in ZTEST()
277 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_PAST_RECV); in ZTEST()
387 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_PAST_RECV); in ZTEST()
506 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_PAST_RECV); in ZTEST()
621 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_PAST_RECV); in ZTEST()
/Zephyr-latest/tests/bluetooth/controller/ctrl_api/src/
Dmain.c484 memset(&conn.llcp, 0xAA, sizeof(conn.llcp)); in ZTEST()
488 zassert_equal(conn.llcp.local.pause, 0); in ZTEST()
489 zassert_equal(conn.llcp.remote.pause, 0); in ZTEST()
510 peek_ctx = (struct proc_ctx *)sys_slist_peek_head(&conn.llcp.local.pend_proc_list); in ZTEST()
544 peek_ctx = (struct proc_ctx *)sys_slist_peek_head(&conn.llcp.remote.pend_proc_list); in ZTEST()
/Zephyr-latest/tests/bluetooth/controller/ctrl_cis_create/src/
Dmain.c565 conn.llcp.fex.valid = 1; in ZTEST()
647 conn.llcp.fex.valid = 1; in ZTEST()
648 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_CIS_PERIPHERAL); in ZTEST()
799 conn.llcp.fex.valid = 1; in ZTEST()
800 conn.llcp.fex.features_peer |= BIT64(BT_LE_FEAT_BIT_CIS_PERIPHERAL); in ZTEST()
853 zassert_equal(conn.llcp.fex.features_peer & BIT64(BT_LE_FEAT_BIT_CIS_PERIPHERAL), 0); in ZTEST()
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_util.c232 printf(" Local state: %d\n", conn->llcp.local.state); in test_print_conn()
233 printf(" Remote state: %d\n", conn->llcp.remote.state); in test_print_conn()
234 printf(" Collision: %d\n", conn->llcp.remote.collision); in test_print_conn()
235 printf(" Reject: %d\n", conn->llcp.remote.reject_opcode); in test_print_conn()
/Zephyr-latest/tests/bluetooth/controller/ctrl_cis_terminate/src/
Dmain.c126 conn.llcp.cis.terminate_ack = 1; in test_cis_terminate_loc()
/Zephyr-latest/tests/bluetooth/controller/ctrl_version/src/
Dmain.c202 conn.llcp.vex.sent = 0; in ZTEST()
238 conn.llcp.vex.sent = 0; in ZTEST()
/Zephyr-latest/tests/bluetooth/controller/ctrl_data_length_update/src/
Dmain.c830 conn.llcp.fex.valid = 0; in ZTEST()
848 conn.llcp.fex.valid = 1; in ZTEST()
849 conn.llcp.fex.features_used = 0; in ZTEST()
866 conn.llcp.fex.features_used = LL_FEAT_BIT_PHY_CODED; in ZTEST()
/Zephyr-latest/tests/bluetooth/controller/ctrl_collision/src/
Dmain.c174 conn.llcp.fex.valid = 1; in ZTEST()
645 conn.llcp.fex.valid = 1; in ZTEST()
/Zephyr-latest/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-latest/tests/bluetooth/controller/ctrl_encrypt/src/
Dmain.c161 conn.llcp.fex.valid = 1U; in enc_setup()
162 conn.llcp.fex.features_used |= LL_FEAT_BIT_EXT_REJ_IND; in enc_setup()

12