Home
last modified time | relevance | path

Searched refs:buf_id (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/einprogress/src/
Ddut.c38 int buf_id = net_buf_id(destroyed_buf); in bt_testing_trace_event_acl_pool_destroy() local
40 __ASSERT_NO_MSG(0 <= buf_id && buf_id < ARRAY_SIZE(acl_pool_refs_held)); in bt_testing_trace_event_acl_pool_destroy()
41 TEST_ASSERT(acl_pool_refs_held[buf_id] == 0, in bt_testing_trace_event_acl_pool_destroy()
47 int buf_id = net_buf_id(buf); in acl_pool_refs_held_add() local
49 __ASSERT_NO_MSG(0 <= buf_id && buf_id < BT_BUF_ACL_RX_COUNT); in acl_pool_refs_held_add()
50 atomic_inc(&acl_pool_refs_held[buf_id]); in acl_pool_refs_held_add()
55 int buf_id = net_buf_id(buf); in acl_pool_refs_held_remove() local
57 __ASSERT_NO_MSG(0 <= buf_id && buf_id < ARRAY_SIZE(acl_pool_refs_held)); in acl_pool_refs_held_remove()
58 atomic_val_t old = atomic_dec(&acl_pool_refs_held[buf_id]); in acl_pool_refs_held_remove()
/Zephyr-latest/tests/bluetooth/mesh/delayable_msg/src/
Dmain.c94 static void set_expectation(struct net_buf_simple *buf, uint32_t *buf_id) in set_expectation() argument
99 ztest_expect_data(bt_mesh_access_send, cb_data, buf_id); in set_expectation()
137 uint32_t buf_id = 0x55aa55aa; in ZTEST() local
147 set_expectation(&buf, &buf_id); in ZTEST()
148 zexpect_ok(bt_mesh_delayable_msg_manage(&gctx, &buf, SRC_ADDR, &send_cb, &buf_id)); in ZTEST()
273 uint32_t buf_id = 0x55aa55aa; in ZTEST() local
286 zexpect_ok(bt_mesh_delayable_msg_manage(&gctx, &buf1, SRC_ADDR, &send_cb, &buf_id)); in ZTEST()
294 zexpect_ok(bt_mesh_delayable_msg_manage(&gctx, &buf2, SRC_ADDR, &send_cb, &buf_id)); in ZTEST()
303 zexpect_ok(bt_mesh_delayable_msg_manage(&gctx, &buf3, SRC_ADDR, &send_cb, &buf_id)); in ZTEST()
/Zephyr-latest/drivers/adc/
Dadc_renesas_rz.c55 uint16_t buf_id; member
128 &sample_buffer[data->buf_id]); in adc_rz_isr()
132 data->buf_id = data->buf_id + 1; in adc_rz_isr()
202 data->buf_id = 0; in adc_rz_start_read()
271 data->buf_id = 0; in adc_context_update_buffer_pointer()
Dadc_renesas_ra.c68 uint16_t buf_id; member
132 fsp_err = R_ADC_Read(&data->adc, channel_id, &sample_buffer[data->buf_id]); in adc_ra_isr()
136 data->buf_id = data->buf_id + 1; in adc_ra_isr()
208 data->buf_id = 0; in adc_ra_start_read()
276 data->buf_id = 0; in adc_context_update_buffer_pointer()