Home
last modified time | relevance | path

Searched refs:lll (Results 1 – 25 of 112) sorted by relevance

12345

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_sync_iso.c55 static void next_chan_calc(struct lll_sync_iso *lll, uint16_t event_counter,
57 static void isr_rx_iso_data_valid(const struct lll_sync_iso *const lll,
59 static void isr_rx_iso_data_invalid(const struct lll_sync_iso *const lll,
63 static void isr_rx_ctrl_recv(struct lll_sync_iso *lll, struct pdu_bis *pdu);
107 void lll_sync_iso_flush(uint8_t handle, struct lll_sync_iso *lll) in lll_sync_iso_flush() argument
110 ARG_UNUSED(lll); in lll_sync_iso_flush()
121 struct lll_sync_iso *lll; in prepare() local
133 lll = p->param; in prepare()
136 lll->latency_prepare += elapsed; in prepare()
139 lll->window_widening_prepare_us += lll->window_widening_periodic_us * in prepare()
[all …]
Dlll_adv_iso.c59 static void next_chan_calc(struct lll_adv_iso *lll, uint16_t event_counter,
108 struct lll_adv_iso *lll; in prepare() local
120 lll = p->param; in prepare()
123 lll->latency_prepare += elapsed; in prepare()
179 struct lll_adv_iso *lll; in prepare_cb_common() local
198 lll = p->param; in prepare_cb_common()
201 lll->latency_event = lll->latency_prepare - 1U; in prepare_cb_common()
204 event_counter = (lll->payload_count / lll->bn) + lll->latency_event; in prepare_cb_common()
207 lll->payload_count += (lll->latency_prepare * lll->bn); in prepare_cb_common()
208 payload_count = lll->payload_count - lll->bn; in prepare_cb_common()
[all …]
Dlll_peripheral.c72 struct lll_conn *lll; in lll_periph_prepare() local
80 lll = p->param; in lll_periph_prepare()
104 struct lll_conn *lll; local
112 lll = p->param;
116 if (unlikely(lll->handle == 0xFFFF)) {
117 radio_isr_set(lll_isr_early_abort, lll);
127 lll->lazy_prepare = p->lazy;
128 lll->latency_event = lll->latency_prepare + lll->lazy_prepare;
131 event_counter = lll->event_counter + lll->latency_event;
134 lll->event_counter = (event_counter + 1);
[all …]
Dlll_adv_pdu.h35 static inline struct pdu_adv *lll_adv_data_alloc(struct lll_adv *lll, in lll_adv_data_alloc() argument
38 return lll_adv_pdu_alloc(&lll->adv_data, idx); in lll_adv_data_alloc()
41 static inline void lll_adv_data_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_data_enqueue() argument
43 lll_adv_pdu_enqueue(&lll->adv_data, idx); in lll_adv_data_enqueue()
46 static inline struct pdu_adv *lll_adv_data_peek(struct lll_adv *lll) in lll_adv_data_peek() argument
48 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek()
51 static inline struct pdu_adv *lll_adv_data_curr_get(struct lll_adv *lll) in lll_adv_data_curr_get() argument
53 return (void *)lll->adv_data.pdu[lll->adv_data.first]; in lll_adv_data_curr_get()
56 static inline struct pdu_adv *lll_adv_scan_rsp_alloc(struct lll_adv *lll, in lll_adv_scan_rsp_alloc() argument
59 return lll_adv_pdu_alloc(&lll->scan_rsp, idx); in lll_adv_scan_rsp_alloc()
[all …]
Dlll_central.c100 struct lll_conn *lll; in prepare_cb() local
108 lll = p->param; in prepare_cb()
112 if (unlikely(lll->handle == 0xFFFF)) { in prepare_cb()
113 radio_isr_set(lll_isr_early_abort, lll); in prepare_cb()
123 lll->lazy_prepare = p->lazy; in prepare_cb()
124 lll->latency_event = lll->latency_prepare + lll->lazy_prepare; in prepare_cb()
127 event_counter = lll->event_counter + lll->latency_event; in prepare_cb()
130 lll->event_counter = (event_counter + 1); in prepare_cb()
133 lll->latency_prepare = 0; in prepare_cb()
135 if (lll->data_chan_sel) { in prepare_cb()
[all …]
Dlll_adv_sync.c55 static void chain_pdu_aux_ptr_chan_idx_set(struct lll_adv_sync *lll);
56 static void aux_ptr_chan_idx_set(struct lll_adv_sync *lll, struct pdu_adv *pdu);
57 static void switch_radio_complete_and_b2b_tx(const struct lll_adv_sync *lll, uint8_t phy_s);
113 struct lll_adv_sync *lll; local
131 lll = p->param;
134 lll->latency_event = lll->latency_prepare + p->lazy;
137 event_counter = lll->event_counter + lll->latency_event;
140 lll->event_counter = (event_counter + 1);
143 lll->latency_prepare = 0;
146 if ((lll->chm_first != lll->chm_last) &&
[all …]
Dlll_sync.c55 static int isr_rx(struct lll_sync *lll, uint8_t node_type, uint8_t crc_ok,
61 static void isr_rx_done_cleanup(struct lll_sync *lll, uint8_t crc_ok, bool sync_term);
64 static int iq_report_create_put(struct lll_sync *lll, uint8_t rssi_ready,
66 static int iq_report_incomplete_create_put(struct lll_sync *lll);
67 static void iq_report_incomplete_release_put(struct lll_sync *lll);
70 static uint8_t data_channel_calc(struct lll_sync *lll);
124 struct lll_sync *lll; in prepare() local
133 lll = p->param; in prepare()
135 lll->lazy_prepare = p->lazy; in prepare()
138 lll->window_widening_prepare_us += lll->window_widening_periodic_us * in prepare()
[all …]
Dlll_conn.c48 static inline int isr_rx_pdu(struct lll_conn *lll, struct pdu_data *pdu_data_rx,
59 static inline bool create_iq_report(struct lll_conn *lll, uint8_t rssi_ready,
64 static struct pdu_data *get_last_tx_pdu(struct lll_conn *lll);
143 void lll_conn_flush(uint16_t handle, struct lll_conn *lll) in lll_conn_flush() argument
164 struct lll_conn *lll = curr; in lll_conn_central_is_abort_cb() local
167 if (lll->forced) { in lll_conn_central_is_abort_cb()
186 struct lll_conn *lll = curr; in lll_conn_peripheral_is_abort_cb() local
189 if (lll->forced) { in lll_conn_peripheral_is_abort_cb()
207 struct lll_conn *lll; in lll_conn_abort_cb() local
213 lll = param; in lll_conn_abort_cb()
[all …]
Dlll_scan.c74 static inline int isr_rx_pdu(struct lll_scan *lll, struct pdu_adv *pdu_adv_rx,
81 static inline bool isr_scan_init_check(const struct lll_scan *lll,
86 static bool isr_scan_tgta_check(const struct lll_scan *lll, bool init,
89 static inline bool isr_scan_tgta_rpa_check(const struct lll_scan *lll,
94 static int isr_rx_scan_report(struct lll_scan *lll, uint8_t devmatch_ok,
145 bool lll_scan_isr_rx_check(const struct lll_scan *lll, uint8_t irkmatch_ok, in lll_scan_isr_rx_check() argument
149 return (((lll->filter_policy & SCAN_FP_FILTER) == 0U) && in lll_scan_isr_rx_check()
152 (((lll->filter_policy & SCAN_FP_FILTER) != 0U) && in lll_scan_isr_rx_check()
155 return ((lll->filter_policy & SCAN_FP_FILTER) == 0U) || in lll_scan_isr_rx_check()
161 bool lll_scan_adva_check(const struct lll_scan *lll, uint8_t addr_type, in lll_scan_adva_check() argument
[all …]
Dlll_adv_internal.h17 static inline struct pdu_adv *lll_adv_data_latest_get(struct lll_adv *lll, in lll_adv_data_latest_get() argument
20 return lll_adv_pdu_latest_get(&lll->adv_data, is_modified); in lll_adv_data_latest_get()
23 static inline struct pdu_adv *lll_adv_scan_rsp_latest_get(struct lll_adv *lll, in lll_adv_scan_rsp_latest_get() argument
26 return lll_adv_pdu_latest_get(&lll->scan_rsp, is_modified); in lll_adv_scan_rsp_latest_get()
29 static inline struct pdu_adv *lll_adv_scan_rsp_curr_get(struct lll_adv *lll) in lll_adv_scan_rsp_curr_get() argument
31 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.first]; in lll_adv_scan_rsp_curr_get()
36 lll_adv_aux_data_latest_get(struct lll_adv_aux *lll, uint8_t *is_modified) in lll_adv_aux_data_latest_get() argument
38 return lll_adv_pdu_latest_get(&lll->data, is_modified); in lll_adv_aux_data_latest_get()
43 lll_adv_sync_data_latest_get(struct lll_adv_sync *lll, void **extra_data, in lll_adv_sync_data_latest_get() argument
47 return lll_adv_pdu_and_extra_data_latest_get(&lll->data, extra_data, in lll_adv_sync_data_latest_get()
[all …]
Dlll_scan_aux.c60 static void isr_rx(struct lll_scan *lll, struct lll_scan_aux *lll_aux,
62 static int isr_rx_pdu(struct lll_scan *lll, struct lll_scan_aux *lll_aux,
73 static bool isr_rx_connect_rsp_check(struct lll_scan *lll,
260 struct lll_scan *lll; in lll_scan_aux_isr_aux_setup() local
273 lll = ull_scan_lll_is_valid_get(ftr->param); in lll_scan_aux_isr_aux_setup()
274 if (!lll) { in lll_scan_aux_isr_aux_setup()
277 lll = ull_scan_aux_lll_parent_get(lll_aux, NULL); in lll_scan_aux_isr_aux_setup()
330 ull_filter_lll_get((lll->filter_policy & in lll_scan_aux_isr_aux_setup()
340 } else if (IS_ENABLED(CONFIG_BT_CTLR_FILTER_ACCEPT_LIST) && lll->filter_policy) { in lll_scan_aux_isr_aux_setup()
388 bool lll_scan_aux_addr_match_get(const struct lll_scan *lll, in lll_scan_aux_addr_match_get() argument
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll_peripheral.c66 struct lll_conn *lll; in lll_periph_prepare() local
74 lll = p->param; in lll_periph_prepare()
77 lll->periph.window_widening_prepare_us += in lll_periph_prepare()
78 lll->periph.window_widening_periodic_us * (p->lazy + 1); in lll_periph_prepare()
79 if (lll->periph.window_widening_prepare_us > in lll_periph_prepare()
80 lll->periph.window_widening_max_us) { in lll_periph_prepare()
81 lll->periph.window_widening_prepare_us = in lll_periph_prepare()
82 lll->periph.window_widening_max_us; in lll_periph_prepare()
102 struct lll_conn *lll; in prepare_cb() local
109 lll = p->param; in prepare_cb()
[all …]
Dlll_central.c89 struct lll_conn *lll; in prepare_cb() local
95 lll = p->param; in prepare_cb()
101 lll->latency_event = lll->latency_prepare + p->lazy; in prepare_cb()
104 event_counter = lll->event_counter + lll->latency_event; in prepare_cb()
107 lll->event_counter = (event_counter + 1); in prepare_cb()
110 lll->latency_prepare = 0; in prepare_cb()
112 if (lll->data_chan_sel) { in prepare_cb()
114 data_chan_use = lll_chan_sel_2(event_counter, lll->data_chan_id, in prepare_cb()
115 &lll->data_chan_map[0], in prepare_cb()
116 lll->data_chan_count); in prepare_cb()
[all …]
Dlll_conn.c41 static int isr_rx_pdu(struct lll_conn *lll, struct pdu_data *pdu_data_rx,
43 static struct pdu_data *empty_tx_enqueue(struct lll_conn *lll);
90 struct lll_conn *lll; in lll_conn_abort_cb() local
111 lll = prepare_param->param; in lll_conn_abort_cb()
112 lll->latency_prepare += (prepare_param->lazy + 1); in lll_conn_abort_cb()
120 struct lll_conn *lll = param; in lll_conn_isr_rx() local
173 err = isr_rx_pdu(lll, pdu_data_rx, &tx_release, &is_rx_enqueue); in lll_conn_isr_rx()
195 is_empty_pdu_tx_retry = lll->empty; in lll_conn_isr_rx()
196 lll_conn_pdu_tx_prep(lll, &pdu_data_tx); in lll_conn_isr_rx()
208 } else if (!lll->role) { in lll_conn_isr_rx()
[all …]
Dlll_adv_pdu.h21 static inline struct pdu_adv *lll_adv_data_alloc(struct lll_adv *lll, in lll_adv_data_alloc() argument
24 return lll_adv_pdu_alloc(&lll->adv_data, idx); in lll_adv_data_alloc()
27 static inline void lll_adv_data_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_data_enqueue() argument
29 lll_adv_pdu_enqueue(&lll->adv_data, idx); in lll_adv_data_enqueue()
32 static inline struct pdu_adv *lll_adv_data_peek(struct lll_adv *lll) in lll_adv_data_peek() argument
34 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek()
37 static inline struct pdu_adv *lll_adv_scan_rsp_alloc(struct lll_adv *lll, in lll_adv_scan_rsp_alloc() argument
40 return lll_adv_pdu_alloc(&lll->scan_rsp, idx); in lll_adv_scan_rsp_alloc()
43 static inline void lll_adv_scan_rsp_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_scan_rsp_enqueue() argument
45 lll_adv_pdu_enqueue(&lll->scan_rsp, idx); in lll_adv_scan_rsp_enqueue()
[all …]
Dlll_adv_internal.h10 static inline struct pdu_adv *lll_adv_data_latest_get(struct lll_adv *lll, in lll_adv_data_latest_get() argument
13 return lll_adv_pdu_latest_get(&lll->adv_data, is_modified); in lll_adv_data_latest_get()
16 static inline struct pdu_adv *lll_adv_scan_rsp_latest_get(struct lll_adv *lll, in lll_adv_scan_rsp_latest_get() argument
19 return lll_adv_pdu_latest_get(&lll->scan_rsp, is_modified); in lll_adv_scan_rsp_latest_get()
22 static inline struct pdu_adv *lll_adv_data_curr_get(struct lll_adv *lll) in lll_adv_data_curr_get() argument
24 return (void *)lll->adv_data.pdu[lll->adv_data.first]; in lll_adv_data_curr_get()
27 static inline struct pdu_adv *lll_adv_scan_rsp_curr_get(struct lll_adv *lll) in lll_adv_scan_rsp_curr_get() argument
29 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.first]; in lll_adv_scan_rsp_curr_get()
Dlll_scan.c61 static inline bool isr_rx_scan_check(struct lll_scan *lll, uint8_t irkmatch_ok,
63 static inline uint32_t isr_rx_pdu(struct lll_scan *lll, uint8_t devmatch_ok,
67 static inline bool isr_scan_init_check(struct lll_scan *lll,
69 static inline bool isr_scan_init_adva_check(struct lll_scan *lll,
72 static inline bool isr_scan_tgta_check(struct lll_scan *lll, bool init,
75 static inline bool isr_scan_tgta_rpa_check(struct lll_scan *lll,
79 static uint32_t isr_rx_scan_report(struct lll_scan *lll, uint8_t rssi_ready,
126 struct lll_scan *lll = prepare_param->param; in prepare_cb() local
140 if (unlikely(lll->conn && lll->conn->central.initiated)) { in prepare_cb()
159 radio_phy_set(lll->phy, 1); in prepare_cb()
[all …]
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/include/lll/
Dlll_adv_pdu.h18 static inline struct pdu_adv *lll_adv_data_alloc(struct lll_adv *lll, uint8_t *idx) in lll_adv_data_alloc() argument
20 return lll_adv_pdu_alloc(&lll->adv_data, idx); in lll_adv_data_alloc()
23 static inline void lll_adv_data_enqueue(struct lll_adv *lll, uint8_t idx) in lll_adv_data_enqueue() argument
25 lll_adv_pdu_enqueue(&lll->adv_data, idx); in lll_adv_data_enqueue()
28 static inline struct pdu_adv *lll_adv_data_peek(struct lll_adv *lll) in lll_adv_data_peek() argument
30 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek()
33 static inline struct pdu_adv *lll_adv_data_curr_get(struct lll_adv *lll) in lll_adv_data_curr_get() argument
35 return (void *)lll->adv_data.pdu[lll->adv_data.first]; in lll_adv_data_curr_get()
38 static inline struct pdu_adv *lll_adv_scan_rsp_alloc(struct lll_adv *lll, uint8_t *idx) in lll_adv_scan_rsp_alloc() argument
40 return lll_adv_pdu_alloc(&lll->scan_rsp, idx); in lll_adv_scan_rsp_alloc()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_peripheral_iso.c84 if (acl_conn->lll.role == BT_CONN_ROLE_CENTRAL) { in ll_cis_get_acl_awaiting_reply()
165 cig->lll.num_cis--; in ull_peripheral_iso_release()
167 if (!cig->lll.num_cis) { in ull_peripheral_iso_release()
191 memset(&cig->lll, 0, sizeof(cig->lll)); in ull_peripheral_iso_acquire()
195 cig->lll.iso_interval_us = iso_interval_us; in ull_peripheral_iso_acquire()
198 cig->lll.handle = LLL_HANDLE_INVALID; in ull_peripheral_iso_acquire()
199 cig->lll.role = acl->lll.role; in ull_peripheral_iso_acquire()
200 cig->lll.resume_cis = LLL_HANDLE_INVALID; in ull_peripheral_iso_acquire()
207 cig->lll.window_widening_max_us = (iso_interval_us >> 1) - in ull_peripheral_iso_acquire()
209 cig->lll.window_widening_periodic_us_frac = in ull_peripheral_iso_acquire()
[all …]
Dull_sync_iso.c100 struct lll_sync_iso *lll; in ll_big_sync_create() local
186 lll = &sync_iso->lll; in ll_big_sync_create()
187 lll->latency_prepare = 0U; in ll_big_sync_create()
188 lll->latency_event = 0U; in ll_big_sync_create()
189 lll->window_widening_prepare_us = 0U; in ll_big_sync_create()
190 lll->window_widening_event_us = 0U; in ll_big_sync_create()
191 lll->ctrl = 0U; in ll_big_sync_create()
192 lll->cssn_curr = 0U; in ll_big_sync_create()
193 lll->cssn_next = 0U; in ll_big_sync_create()
194 lll->term_reason = 0U; in ll_big_sync_create()
[all …]
Dull_scan.c62 #define IS_PHY_ENABLED(scan_ctx, scan_phy) ((scan_ctx)->lll.phy & (scan_phy))
87 struct lll_scan *lll; in ll_scan_params_set() local
113 lll = &scan->lll; in ll_scan_params_set()
120 lll->phy = 0U; in ll_scan_params_set()
128 lll->phy = phy; in ll_scan_params_set()
131 lll = &scan->lll; in ll_scan_params_set()
136 scan->ticks_window = ull_scan_params_set(lll, type, interval, window, in ll_scan_params_set()
198 is_coded_phy = (scan_coded->lll.phy &
233 struct lll_scan *lll; local
236 lll = &scan_coded->lll;
[all …]
Dull_conn_iso.c104 cig->lll.num_cis = 0U; in ll_conn_iso_group_release()
174 return &cis->lll; in ull_conn_iso_lll_stream_get()
187 if ((cis->group == NULL) || (cis->lll.handle != handle) || !cis->established) { in ll_iso_stream_connected_get()
220 uint16_t cis_handle = cis->lll.handle; in ll_conn_iso_stream_get_by_acl()
231 } else if (cis->lll.acl_handle == conn->lll.handle) { in ll_conn_iso_stream_get_by_acl()
296 return &cis->lll; in ull_conn_iso_lll_stream_get_by_group()
373 return &cis_next->lll; in ull_conn_iso_lll_stream_sorted_get_by_group()
388 return &cig->lll; in ull_conn_iso_lll_group_get_by_stream()
429 node_rx->hdr.handle = cis->lll.acl_handle; in ull_conn_iso_lll_cis_established()
438 struct lll_conn_iso_group *lll; in ull_conn_iso_done() local
[all …]
Dull_conn.c195 if (conn->lll.handle != handle) { in ll_connected_get()
249 force_md_cnt = force_md_cnt_calc(&conn->lll, tx_rate); in ll_tx_mem_enqueue()
266 if (IS_ENABLED(CONFIG_BT_PERIPHERAL) && conn->lll.role) { in ll_tx_mem_enqueue()
319 conn->lll.role) { in ll_conn_update()
363 memcpy(chm, pending_chm, sizeof(conn->lll.data_chan_map)); in ll_chm_get()
365 memcpy(chm, conn->lll.data_chan_map, sizeof(conn->lll.data_chan_map)); in ll_chm_get()
427 if (IS_ENABLED(CONFIG_BT_PERIPHERAL) && conn->lll.role) { in ll_terminate_ind_send()
441 if (cis->group && cis->lll.handle == handle && !cis->established) { in ll_terminate_ind_send()
447 conn = ll_connected_get(cis->lll.acl_handle); in ll_terminate_ind_send()
484 conn = ll_connected_get(cis->lll.acl_handle); in ll_terminate_ind_send()
[all …]
Dull_peripheral.c63 static void invalid_release(struct ull_hdr *hdr, struct lll_conn *lll,
71 struct lll_conn *lll) argument
97 conn = lll->hdr.parent;
133 invalid_release(&adv->ull, lll, link, rx);
152 memcpy(&lll->crc_init[0], &pdu_adv->connect_ind.crc_init[0], 3);
153 memcpy(&lll->access_addr[0], &pdu_adv->connect_ind.access_addr[0], 4);
154 memcpy(&lll->data_chan_map[0], &pdu_adv->connect_ind.chan_map[0],
155 sizeof(lll->data_chan_map));
156 lll->data_chan_count = util_ones_count_get(&lll->data_chan_map[0],
157 sizeof(lll->data_chan_map));
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/
DCMakeLists.txt7 lll/lll.c
8 lll/lll_clock.c
12 lll/lll_adv.c
16 lll/lll_adv_aux.c
20 lll/lll_adv_sync.c
24 lll/lll_adv_iso.c
29 lll/lll_scan.c
33 lll/lll_scan_aux.c
37 lll/lll_sync.c
41 lll/lll_sync_iso.c
[all …]

12345