Lines Matching refs:scan

74 static inline void conn_release(struct ll_scan_set *scan);
92 struct ll_scan_set *scan; in ll_create_connection() local
104 scan = ull_scan_is_disabled_get(SCAN_HANDLE_1M); in ll_create_connection()
105 if (!scan) { in ll_create_connection()
134 lll = &scan->lll; in ll_create_connection()
147 scan = scan_coded; in ll_create_connection()
160 lll = &scan->lll; in ll_create_connection()
168 lll = &scan->lll; in ll_create_connection()
398 scan->own_addr_type = own_addr_type; in ll_create_connection()
403 scan->ticks_window = ull_scan_params_set(lll, 0U, scan_interval, in ll_create_connection()
412 conn_release(scan); in ll_create_connection()
417 return ull_scan_enable(scan); in ll_create_connection()
425 struct ll_scan_set *scan; in ll_connect_enable() local
427 scan = ull_scan_set_get(SCAN_HANDLE_1M); in ll_connect_enable()
432 conn_release(scan); in ll_connect_enable()
438 (scan->lll.phy & PHY_1M)) { in ll_connect_enable()
439 err = ull_scan_enable(scan); in ll_connect_enable()
446 scan = ull_scan_set_get(SCAN_HANDLE_PHY_CODED); in ll_connect_enable()
447 err = ull_scan_enable(scan); in ll_connect_enable()
462 struct ll_scan_set *scan; in ll_connect_disable() local
465 scan = ull_scan_is_enabled_get(SCAN_HANDLE_1M); in ll_connect_disable()
474 if (!scan) { in ll_connect_disable()
481 scan_lll = &scan->lll; in ll_connect_disable()
509 if (scan) { in ll_connect_disable()
510 err = ull_scan_disable(SCAN_HANDLE_1M, scan); in ll_connect_disable()
592 struct ll_scan_set *scan; in ull_central_reset() local
594 scan = ull_scan_is_enabled_get(SCAN_HANDLE_1M); in ull_central_reset()
603 if (scan) { in ull_central_reset()
604 scan->is_enabled = 0U; in ull_central_reset()
605 scan->lll.conn = NULL; in ull_central_reset()
608 scan = scan_other; in ull_central_reset()
612 LL_ASSERT(scan); in ull_central_reset()
614 scan->is_enabled = 0U; in ull_central_reset()
615 scan->lll.conn = NULL; in ull_central_reset()
626 struct ll_scan_set *scan; in ull_central_cleanup() local
635 scan = HDR_LLL2ULL(rx_free->rx_ftr.param); in ull_central_cleanup()
636 conn_lll = scan->lll.conn; in ull_central_cleanup()
638 scan->lll.conn = NULL; in ull_central_cleanup()
652 scan->is_enabled = 0U; in ull_central_cleanup()
655 scan->lll.phy = 0U; in ull_central_cleanup()
662 if (scan_coded && scan_coded != scan) { in ull_central_cleanup()
681 struct ll_scan_set *scan; local
743 scan = HDR_LLL2ULL(ftr->param);
747 cc->timeout = scan->lll.conn_timeout;
833 ticker_id_scan = TICKER_ID_SCAN_BASE + ull_scan_handle_get(scan);
840 ticker_op_stop_scan_cb, scan);
851 if (scan_other == scan) {
1020 struct ll_scan_set *scan; local
1036 scan = param;
1037 hdr = &scan->ull;
1038 mfy.param = &scan->lll;
1057 static inline void conn_release(struct ll_scan_set *scan) argument
1064 lll = scan->lll.conn;
1079 scan->lll.conn = NULL;