Lines Matching refs:df_cfg
121 static uint8_t cte_info_clear(struct ll_adv_set *adv, struct lll_df_adv_cfg *df_cfg,
141 static uint8_t cte_info_set(struct ll_adv_set *adv, struct lll_df_adv_cfg *df_cfg, uint8_t *ter_idx,
180 adv->df_cfg = NULL; in ull_df_reset()
276 if (!adv->df_cfg) { in ll_df_set_cl_cte_tx_params()
277 adv->df_cfg = df_adv_cfg_acquire(); in ll_df_set_cl_cte_tx_params()
280 cfg = adv->df_cfg; in ll_df_set_cl_cte_tx_params()
316 struct lll_df_adv_cfg *df_cfg; in ll_df_set_cl_cte_tx_enable() local
341 df_cfg = adv->df_cfg; in ll_df_set_cl_cte_tx_enable()
342 if (!df_cfg) { in ll_df_set_cl_cte_tx_enable()
351 if (!df_cfg->is_enabled) { in ll_df_set_cl_cte_tx_enable()
355 err = cte_info_clear(adv, df_cfg, &ter_idx, &pdu); in ll_df_set_cl_cte_tx_enable()
360 df_cfg->is_enabled = 0U; in ll_df_set_cl_cte_tx_enable()
362 if (df_cfg->is_enabled) { in ll_df_set_cl_cte_tx_enable()
366 err = cte_info_set(adv, df_cfg, &ter_idx, &pdu); in ll_df_set_cl_cte_tx_enable()
371 df_cfg->is_enabled = 1U; in ll_df_set_cl_cte_tx_enable()
440 cfg_prev = lll_df_sync_cfg_curr_get(&lll->df_cfg); in ll_df_set_cl_iq_sampling_enable()
441 cfg = lll_df_sync_cfg_alloc(&lll->df_cfg, &cfg_idx); in ll_df_set_cl_iq_sampling_enable()
501 lll_df_sync_cfg_enqueue(&lll->df_cfg, cfg_idx); in ll_df_set_cl_iq_sampling_enable()
519 void ull_df_sync_cfg_init(struct lll_df_sync *df_cfg) in ull_df_sync_cfg_init() argument
521 (void)memset(&df_cfg->cfg, 0, sizeof(df_cfg->cfg)); in ull_df_sync_cfg_init()
522 df_cfg->first = 0U; in ull_df_sync_cfg_init()
523 df_cfg->last = 0U; in ull_df_sync_cfg_init()
526 bool ull_df_sync_cfg_is_not_enabled(struct lll_df_sync *df_cfg) in ull_df_sync_cfg_is_not_enabled() argument
537 if (lll_df_sync_cfg_is_modified(df_cfg)) { in ull_df_sync_cfg_is_not_enabled()
538 cfg = lll_df_sync_cfg_peek(df_cfg); in ull_df_sync_cfg_is_not_enabled()
540 cfg = lll_df_sync_cfg_curr_get(df_cfg); in ull_df_sync_cfg_is_not_enabled()
679 static uint8_t cte_info_set(struct ll_adv_set *adv, struct lll_df_adv_cfg *df_cfg, uint8_t *ter_idx, in cte_info_set() argument
690 cte_info.type = df_cfg->cte_type; in cte_info_set()
691 cte_info.time = df_cfg->cte_length; in cte_info_set()
706 0, df_cfg); in cte_info_set()
710 err = ull_adv_sync_add_cteinfo(lll_sync, pdu_prev, pdu, &cte_info, df_cfg->cte_count); in cte_info_set()
735 static uint8_t cte_info_clear(struct ll_adv_set *adv, struct lll_df_adv_cfg *df_cfg, in cte_info_clear() argument