Lines Matching refs:conn_lll
89 struct lll_conn *conn_lll; in ll_create_connection() local
172 conn_lll = lll->conn; in ll_create_connection()
173 conn = HDR_LLL2ULL(conn_lll); in ll_create_connection()
190 conn_lll = &conn->lll; in ll_create_connection()
192 err = util_aa_le32(conn_lll->access_addr); in ll_create_connection()
195 lll_csrand_get(conn_lll->crc_init, sizeof(conn_lll->crc_init)); in ll_create_connection()
197 conn_lll->handle = 0xFFFF; in ll_create_connection()
198 conn_lll->interval = interval; in ll_create_connection()
199 conn_lll->latency = latency; in ll_create_connection()
201 if (!conn_lll->link_tx_free) { in ll_create_connection()
202 conn_lll->link_tx_free = &conn_lll->link_tx; in ll_create_connection()
205 memq_init(conn_lll->link_tx_free, &conn_lll->memq_tx.head, in ll_create_connection()
206 &conn_lll->memq_tx.tail); in ll_create_connection()
207 conn_lll->link_tx_free = NULL; in ll_create_connection()
209 conn_lll->packet_tx_head_len = 0; in ll_create_connection()
210 conn_lll->packet_tx_head_offset = 0; in ll_create_connection()
212 conn_lll->sn = 0; in ll_create_connection()
213 conn_lll->nesn = 0; in ll_create_connection()
214 conn_lll->empty = 0; in ll_create_connection()
221 conn_lll->phy_tx = PHY_1M; in ll_create_connection()
222 conn_lll->phy_tx_time = PHY_1M; in ll_create_connection()
223 conn_lll->phy_flags = PHY_FLAGS_S8; in ll_create_connection()
224 conn_lll->phy_rx = PHY_1M; in ll_create_connection()
232 conn_lll->rssi_latest = BT_HCI_LE_RSSI_NOT_AVAILABLE; in ll_create_connection()
234 conn_lll->rssi_reported = BT_HCI_LE_RSSI_NOT_AVAILABLE; in ll_create_connection()
235 conn_lll->rssi_sample_count = 0; in ll_create_connection()
240 conn_lll->tx_pwr_lvl = RADIO_TXP_DEFAULT; in ll_create_connection()
244 conn_lll->latency_prepare = 0; in ll_create_connection()
245 conn_lll->latency_event = 0; in ll_create_connection()
246 conn_lll->event_counter = 0; in ll_create_connection()
248 conn_lll->data_chan_count = ull_chan_map_get(conn_lll->data_chan_map); in ll_create_connection()
250 conn_lll->data_chan_hop = 5 + (hop % 12); in ll_create_connection()
251 conn_lll->data_chan_sel = 0; in ll_create_connection()
252 conn_lll->data_chan_use = 0; in ll_create_connection()
253 conn_lll->role = 0; in ll_create_connection()
254 conn_lll->central.initiated = 0; in ll_create_connection()
255 conn_lll->central.cancelled = 0; in ll_create_connection()
256 conn_lll->central.forced = 0; in ll_create_connection()
259 memset(&conn_lll->conn_meta, 0, sizeof(conn_lll->conn_meta)); in ll_create_connection()
263 conn_lll->df_rx_cfg.is_initialized = 0U; in ll_create_connection()
264 conn_lll->df_rx_cfg.hdr.elem_size = sizeof(struct lll_df_conn_rx_params); in ll_create_connection()
267 conn_lll->df_tx_cfg.is_initialized = 0U; in ll_create_connection()
268 conn_lll->df_tx_cfg.cte_rsp_en = 0U; in ll_create_connection()
285 conn->appto_reload = (conn->apto_reload > (conn_lll->latency + 6)) ? in ll_create_connection()
286 (conn->apto_reload - (conn_lll->latency + 6)) : in ll_create_connection()
314 conn_lll->tifs_tx_us = EVENT_IFS_DEFAULT_US; in ll_create_connection()
315 conn_lll->tifs_rx_us = EVENT_IFS_DEFAULT_US; in ll_create_connection()
316 conn_lll->tifs_hcto_us = EVENT_IFS_DEFAULT_US; in ll_create_connection()
317 conn_lll->tifs_cis_us = EVENT_IFS_DEFAULT_US; in ll_create_connection()
334 lll->conn = conn_lll; in ll_create_connection()
341 ready_delay_us = lll_radio_tx_ready_delay_get(conn_lll->phy_tx, in ll_create_connection()
342 conn_lll->phy_flags); in ll_create_connection()
349 conn_lll->dle.eff.max_tx_time = MAX(conn_lll->dle.eff.max_tx_time, in ll_create_connection()
352 conn_lll->dle.eff.max_rx_time = MAX(conn_lll->dle.eff.max_rx_time, in ll_create_connection()
356 max_tx_time = conn_lll->dle.eff.max_tx_time; in ll_create_connection()
357 max_rx_time = conn_lll->dle.eff.max_rx_time; in ll_create_connection()
371 slot_us += conn_lll->tifs_rx_us + (EVENT_CLOCK_JITTER_US << 1); in ll_create_connection()
461 struct lll_conn *conn_lll; in ll_connect_disable() local
485 conn_lll = scan_lll->conn; in ll_connect_disable()
486 if (!conn_lll) { in ll_connect_disable()
495 conn_lll->central.cancelled = 1U; in ll_connect_disable()
501 conn_lll = scan_lll->conn; in ll_connect_disable()
502 if (!conn_lll) { in ll_connect_disable()
525 conn = HDR_LLL2ULL(conn_lll); in ll_connect_disable()
625 struct lll_conn *conn_lll; in ull_central_cleanup() local
636 conn_lll = scan->lll.conn; in ull_central_cleanup()
637 LL_ASSERT(conn_lll); in ull_central_cleanup()
640 LL_ASSERT(!conn_lll->link_tx_free); in ull_central_cleanup()
641 link = memq_deinit(&conn_lll->memq_tx.head, in ull_central_cleanup()
642 &conn_lll->memq_tx.tail); in ull_central_cleanup()
644 conn_lll->link_tx_free = link; in ull_central_cleanup()
646 conn = HDR_LLL2ULL(conn_lll); in ull_central_cleanup()
663 conn_lll = scan_coded->lll.conn; in ull_central_cleanup()
664 LL_ASSERT(conn_lll); in ull_central_cleanup()