Lines Matching refs:sync

58 prepare_cl_cte_rx_enable_cmd_params(struct net_buf **buf, struct bt_le_per_adv_sync *sync,
61 static int hci_df_set_cl_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable,
278 prepare_cl_cte_rx_enable_cmd_params(struct net_buf **buf, struct bt_le_per_adv_sync *sync, in prepare_cl_cte_rx_enable_cmd_params() argument
304 cp->sync_handle = sys_cpu_to_le16(sync->handle); in prepare_cl_cte_rx_enable_cmd_params()
334 static int hci_df_set_cl_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable, in hci_df_set_cl_cte_rx_enable() argument
348 err = prepare_cl_cte_rx_enable_cmd_params(&buf, sync, params, enable); in hci_df_set_cl_cte_rx_enable()
353 bt_hci_cmd_state_set_init(buf, &state, sync->flags, BT_PER_ADV_SYNC_CTE_ENABLED, enable); in hci_df_set_cl_cte_rx_enable()
361 if (sync->handle != sys_le16_to_cpu(rp->sync_handle)) { in hci_df_set_cl_cte_rx_enable()
364 sync->cte_types = (enable ? params->cte_types : 0); in hci_df_set_cl_cte_rx_enable()
1024 bt_df_set_per_adv_sync_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable, in bt_df_set_per_adv_sync_cte_rx_enable() argument
1031 if (!atomic_test_bit(sync->flags, BT_PER_ADV_SYNC_SYNCED)) { in bt_df_set_per_adv_sync_cte_rx_enable()
1036 !atomic_test_bit(sync->flags, BT_PER_ADV_SYNC_CTE_ENABLED)) { in bt_df_set_per_adv_sync_cte_rx_enable()
1040 return hci_df_set_cl_cte_rx_enable(sync, enable, params); in bt_df_set_per_adv_sync_cte_rx_enable()
1043 int bt_df_per_adv_sync_cte_rx_enable(struct bt_le_per_adv_sync *sync, in bt_df_per_adv_sync_cte_rx_enable() argument
1046 CHECKIF(!sync) { in bt_df_per_adv_sync_cte_rx_enable()
1053 return bt_df_set_per_adv_sync_cte_rx_enable(sync, true, params); in bt_df_per_adv_sync_cte_rx_enable()
1056 int bt_df_per_adv_sync_cte_rx_disable(struct bt_le_per_adv_sync *sync) in bt_df_per_adv_sync_cte_rx_disable() argument
1058 CHECKIF(!sync) { in bt_df_per_adv_sync_cte_rx_disable()
1062 return bt_df_set_per_adv_sync_cte_rx_enable(sync, false, NULL); in bt_df_per_adv_sync_cte_rx_disable()