Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/tests/subsys/fs/ext2/src/
Dtestfs_ext_specific.c13 uint32_t calculate_blocks(uint32_t freeb, uint32_t B) in calculate_blocks() argument
17 if (freeb <= 12) { in calculate_blocks()
18 return freeb; in calculate_blocks()
22 freeb -= 12 + 1; /* direct blocks + top block of first level table */ in calculate_blocks()
24 if (freeb <= B) { in calculate_blocks()
25 return blocks + freeb; in calculate_blocks()
29 freeb -= B + 1; /* 1st level blocks + top block of second level table */ in calculate_blocks()
31 if (freeb <= B * (B + 1)) { in calculate_blocks()
32 uint32_t n = freeb / (B + 1); in calculate_blocks()
33 uint32_t r = freeb % (B + 1); in calculate_blocks()
[all …]