Lines Matching refs:num
692 size_t num = 0; in num_matching_cache_entries() local
697 num++; in num_matching_cache_entries()
701 return num; in num_matching_cache_entries()
719 size_t num; in ZTEST_F() local
729 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F()
730 zassert_equal(num, 0, "uninitialized cache"); in ZTEST_F()
738 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F()
739 zassert_equal(num, 1, "cache not updated after write"); in ZTEST_F()
741 num = num_matching_cache_entries(ate_addr, false, &fixture->fs); in ZTEST_F()
742 zassert_equal(num, 1, "invalid cache entry after write"); in ZTEST_F()
750 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F()
751 zassert_equal(num, 1, "uninitialized cache after restart"); in ZTEST_F()
753 num = num_matching_cache_entries(ate_addr, false, &fixture->fs); in ZTEST_F()
754 zassert_equal(num, 1, "invalid cache entry after restart"); in ZTEST_F()
793 size_t num; in ZTEST_F() local
811 num = num_matching_cache_entries(0ULL << ADDR_SECT_SHIFT, true, &fixture->fs); in ZTEST_F()
812 zassert_equal(num, 1, "invalid cache content after filling sector 0"); in ZTEST_F()
827 num = num_matching_cache_entries(0ULL << ADDR_SECT_SHIFT, true, &fixture->fs); in ZTEST_F()
828 zassert_equal(num, 0, "not invalidated cache entries aftetr gc"); in ZTEST_F()
830 num = num_matching_cache_entries(2ULL << ADDR_SECT_SHIFT, true, &fixture->fs); in ZTEST_F()
831 zassert_equal(num, 2, "invalid cache content after gc"); in ZTEST_F()
843 size_t num; in ZTEST_F() local
862 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F()
863 TC_PRINT("Cache occupancy: %u\n", (unsigned int)num); in ZTEST_F()
864 zassert_between_inclusive(num, MIN_CACHE_OCCUPANCY, CONFIG_ZMS_LOOKUP_CACHE_SIZE, in ZTEST_F()
885 num = num_occupied_cache_entries(&fixture->fs); in ZTEST_F()
886 TC_PRINT("Cache occupancy: %u\n", (unsigned int)num); in ZTEST_F()
887 zassert_between_inclusive(num, MIN_CACHE_OCCUPANCY, CONFIG_ZMS_LOOKUP_CACHE_SIZE, in ZTEST_F()