Home
last modified time | relevance | path

Searched refs:get_device_nbr (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/
Dmain.c101 uint device_number = get_device_nbr(); in backchannel_init()
123 device_numbers[0] = get_device_nbr() + 1; in backchannel_init()
128 device_numbers[0] = get_device_nbr() - 1; in backchannel_init()
133 device_numbers[0] = get_device_nbr() + 1; in backchannel_init()
135 device_numbers[1] = get_device_nbr() - 1; in backchannel_init()
151 uint8_t sync_msg[MSG_SIZE] = { get_device_nbr() }; in backchannel_sync_send()
165 if (sync_msg[0] != get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/common/
Dsync.c24 uint device_number = get_device_nbr(); in backchannel_init()
42 uint8_t sync_msg[MSG_SIZE] = { get_device_nbr() }; in backchannel_sync_send()
55 if (sync_msg[0] != get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/tests/bsim/babblekit/src/
Dsync.c23 uint device_number = get_device_nbr(); in bk_sync_init()
42 uint8_t sync_msg[MSG_SIZE] = { get_device_nbr() }; in bk_sync_send()
57 if (sync_msg[0] != get_device_nbr()) { in bk_sync_wait()
Ddevice.c12 return get_device_nbr(); in bk_device_get_number()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/caching/src/
Dcommon.c28 uint device_number = get_device_nbr(); in backchannel_init()
43 uint8_t sync_msg[MSG_SIZE] = { get_device_nbr() }; in backchannel_sync_send()
56 if (sync_msg[0] != get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/
Dbs_bt_utils.c35 uint device_number = get_device_nbr(); in backchannel_init()
49 uint8_t sync_msg[MSG_SIZE] = { get_device_nbr() }; in backchannel_sync_send()
63 if (sync_msg[0] != get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Dbs_bt_utils.c33 uint device_number = get_device_nbr(); in backchannel_init()
47 uint8_t sync_msg[MSG_SIZE] = {get_device_nbr()}; in backchannel_sync_send()
59 if (sync_msg[0] != get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/tests/bsim/bluetooth/host/att/long_read/
Dbs_sync.c40 uint self = get_device_nbr(); in setup_backchannels()
83 LOG_DBG("%llu d%u enter", counter, get_device_nbr()); in bt_testlib_bs_sync_all()
86 if (get_device_nbr() == 0) { in bt_testlib_bs_sync_all()
104 LOG_DBG("%llu d%u exit", counter, get_device_nbr()); in bt_testlib_bs_sync_all()
Dmain.c117 if (get_device_nbr() == 0) { in bs_sync_all_log()
139 bool central = (get_device_nbr() == CENTRAL_DEVICE_NBR); in test_long_read()
183 bool central = (get_device_nbr() == CENTRAL_DEVICE_NBR); in the_test()
184 bool peripheral = (get_device_nbr() == PERIPHERAL_DEVICE_NBR); in the_test()
/Zephyr-latest/tests/bsim/bluetooth/host/att/open_close/src/
Dbs_sync.c40 uint self = get_device_nbr(); in setup_backchannels()
83 LOG_DBG("%llu d%u enter", counter, get_device_nbr()); in bt_testlib_bs_sync_all()
86 if (get_device_nbr() == 0) { in bt_testlib_bs_sync_all()
104 LOG_DBG("%llu d%u exit", counter, get_device_nbr()); in bt_testlib_bs_sync_all()
Dmain.c88 if (get_device_nbr() == 0) { in bs_sync_all_log()
126 bool central = (get_device_nbr() == CENTRAL_DEVICE_NBR); in a_test_iteration()
127 bool peripheral = (get_device_nbr() == PERIPHERAL_DEVICE_NBR); in a_test_iteration()
217 bool peripheral = (get_device_nbr() == PERIPHERAL_DEVICE_NBR); in the_test()
/Zephyr-latest/tests/bsim/bluetooth/host/att/timeout/
Dmain.c80 if (get_device_nbr() == 0) { in bs_sync_all_log()
178 bool central = (get_device_nbr() == CENTRAL_DEVICE_NBR); in test_timeout()
179 bool peripheral = (get_device_nbr() == PERIPHERAL_DEVICE_NBR); in test_timeout()
245 bool central = (get_device_nbr() == CENTRAL_DEVICE_NBR); in disconnected()
246 bool peripheral = (get_device_nbr() == PERIPHERAL_DEVICE_NBR); in disconnected()
271 bool peripheral = (get_device_nbr() == PERIPHERAL_DEVICE_NBR); in the_test()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/ccc_store/src/
Dcommon.c14 uint8_t sync_msg[BC_MSG_SIZE] = {get_device_nbr(), device_nbr}; /* src, dst */ in backchannel_sync_send()
29 if (sync_msg[0] == device_nbr && sync_msg[1] == get_device_nbr()) { in backchannel_sync_wait()
Dcentral.c261 uint device_number = get_device_nbr(); in central_backchannel_init()
Dperipheral.c223 uint device_number = get_device_nbr(); in peripheral_backchannel_init()
/Zephyr-latest/tests/bsim/bluetooth/host/security/ccc_update/src/
Dcommon.c14 uint8_t sync_msg[BC_MSG_SIZE] = {get_device_nbr(), device_nbr}; /* src, dst */ in backchannel_sync_send()
29 if (sync_msg[0] == device_nbr && sync_msg[1] == get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/boards/native/nrf_bsim/common/
Dbsim_args_runner.h27 unsigned int get_device_nbr(void);
Dbsim_args_runner.c323 unsigned int get_device_nbr(void) in get_device_nbr() function
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt/src/
Dcommon.c185 uint device_number = get_device_nbr(); in backchannel_init()
200 uint8_t sync_msg[MSG_SIZE] = { get_device_nbr() }; in backchannel_sync_send()
213 if (sync_msg[0] != get_device_nbr()) { in backchannel_sync_wait()
/Zephyr-latest/tests/bsim/bluetooth/host/att/read_fill_buf/server/
Dmain.c44 __ASSERT_NO_MSG(get_device_nbr() == 1); in the_test()
/Zephyr-latest/tests/bsim/bluetooth/samples/battery_service/src/
Dcentral_test.c482 if (get_device_nbr() == 1) { /* One device for Indication */ in subscribe_battery_level_status()
590 if (get_device_nbr() == 1) { in test_bas_central_main()
610 if (get_device_nbr() == 1) { in test_bas_central_main()
618 if (get_device_nbr() == 1) { in test_bas_central_main()
633 if (get_device_nbr() == 1) { in test_bas_central_main()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Ddistribute_keyid.c30 BT_MESH_KEY_ID_RANGE_SIZE * get_device_nbr())
Dtest_heartbeat.c38 pub_cfg.addr = PUBLISHER_ADDR_START + get_device_nbr(); in test_publish_init()
39 pub_cfg.dev_key[0] = get_device_nbr(); in test_publish_init()
Dtest_brg.c86 ASSERT_EQUAL(1, get_device_nbr()); in test_bridge_init()
91 ASSERT_TRUE_MSG(get_device_nbr() >= 2, "Regular devices must be initialized after " in test_device_init()
95 dev_uuid[6] = get_device_nbr() + 1; in test_device_init()
98 dev_uuid[8] = get_device_nbr() - 1; in test_device_init()
384 ASSERT_TRUE_MSG(get_device_nbr() != REMOTE_NODES_MULTICAST + 1, in device_data_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/att/retry_on_sec_err/server/
Dmain.c38 __ASSERT_NO_MSG(get_device_nbr() == 1); in test_common()

12