Lines Matching refs:elem_idx
307 static void verify_model_item(struct bt_mesh_comp_p1_model_item *mod_item, int elem_idx, in verify_model_item() argument
310 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_present, in verify_model_item()
312 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].format, mod_item->format); in verify_model_item()
313 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].ext_item_cnt, in verify_model_item()
316 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_id, in verify_model_item()
321 static void verify_ext_item(struct bt_mesh_comp_p1_ext_item *ext_item, int elem_idx, int mod_idx, in verify_ext_item() argument
326 switch (elem_idx * 100 + (mod_idx + offset)) { in verify_ext_item()
340 FAIL("Unexpected call to %s (elem %d, mod %d, offset %d)", __func__, elem_idx, in verify_ext_item()
363 int elem_idx = 0; in verify_cdp1() local
366 ASSERT_EQUAL(test_p1_elems[elem_idx].nsig, p1_elem->nsig); in verify_cdp1()
367 ASSERT_EQUAL(test_p1_elems[elem_idx].nvnd, p1_elem->nvnd); in verify_cdp1()
371 verify_model_item(mod_item, elem_idx, mod_idx, 0); in verify_cdp1()
377 verify_ext_item(ext_item, elem_idx, mod_idx, 0); in verify_cdp1()
383 verify_model_item(mod_item, elem_idx, mod_idx, p1_elem->nsig); in verify_cdp1()
389 verify_ext_item(ext_item, elem_idx, mod_idx, p1_elem->nsig); in verify_cdp1()
392 elem_idx++; in verify_cdp1()