Lines Matching refs:scan

120 	struct ll_scan_set *scan;  in ll_sync_create()  local
125 scan = ull_scan_set_get(SCAN_HANDLE_1M); in ll_sync_create()
126 if (!scan || scan->periodic.sync) { in ll_sync_create()
153 scan->periodic.cancelled = 0U; in ll_sync_create()
154 scan->periodic.state = LL_SYNC_STATE_IDLE; in ll_sync_create()
155 scan->periodic.filter_policy = in ll_sync_create()
161 scan->periodic.filter_policy; in ll_sync_create()
164 if (!scan->periodic.filter_policy) { in ll_sync_create()
182 sync->lll.filter_policy = scan->periodic.filter_policy; in ll_sync_create()
186 scan->periodic.sync = sync; in ll_sync_create()
189 scan->lll.is_sync = 1U; in ll_sync_create()
445 struct ll_scan_set *scan; in ll_sync_create_cancel() local
449 scan = ull_scan_set_get(SCAN_HANDLE_1M); in ll_sync_create_cancel()
450 if (!scan || !scan->periodic.sync) { in ll_sync_create_cancel()
469 scan->periodic.cancelled = 1U; in ll_sync_create_cancel()
474 sync = scan->periodic.sync; in ll_sync_create_cancel()
883 void ull_sync_setup_addr_check(struct ll_sync_set *sync, struct ll_scan_set *scan, in ull_sync_setup_addr_check() argument
888 scan->periodic.filter_policy) { in ull_sync_setup_addr_check()
899 scan->periodic.state = LL_SYNC_STATE_ADDR_MATCH; in ull_sync_setup_addr_check()
914 scan->periodic.state = LL_SYNC_STATE_ADDR_MATCH; in ull_sync_setup_addr_check()
921 scan->periodic.state = LL_SYNC_STATE_ADDR_MATCH; in ull_sync_setup_addr_check()
933 scan->periodic.state = LL_SYNC_STATE_ADDR_MATCH; in ull_sync_setup_addr_check()
938 bool ull_sync_setup_sid_match(struct ll_sync_set *sync, struct ll_scan_set *scan, uint8_t sid) in ull_sync_setup_sid_match() argument
940 return (scan->periodic.state == LL_SYNC_STATE_ADDR_MATCH) && in ull_sync_setup_sid_match()
942 scan->periodic.filter_policy && in ull_sync_setup_sid_match()
945 (!scan->periodic.filter_policy && in ull_sync_setup_sid_match()
949 void ull_sync_setup(struct ll_scan_set *scan, uint8_t phy, in ull_sync_setup() argument
973 sync = scan->periodic.sync; in ull_sync_setup()
1062 scan->periodic.state = LL_SYNC_STATE_CREATED; in ull_sync_setup()
1067 if (scan == scan_1m) { in ull_sync_setup()
1169 struct ll_scan_set *scan; in ull_sync_setup_reset() local
1172 scan = ull_scan_set_get(SCAN_HANDLE_1M); in ull_sync_setup_reset()
1174 scan->periodic.sync = NULL; in ull_sync_setup_reset()
1177 scan->lll.is_sync = 0U; in ull_sync_setup_reset()
1181 scan = ull_scan_set_get(SCAN_HANDLE_PHY_CODED); in ull_sync_setup_reset()
1183 scan->periodic.sync = NULL; in ull_sync_setup_reset()
1186 scan->lll.is_sync = 0U; in ull_sync_setup_reset()