Lines Matching refs:nr_entries
26 __le32 nr_entries; member
113 unsigned nr_entries = le32_to_cpu(ab->nr_entries); in on_entries() local
114 fn(info->value_type.context, element_at(info, ab, 0), nr_entries); in on_entries()
162 (*ab)->nr_entries = cpu_to_le32(0); in alloc_ablock()
176 uint32_t nr_entries, delta, i; in fill_ablock() local
180 BUG_ON(new_nr < le32_to_cpu(ab->nr_entries)); in fill_ablock()
182 nr_entries = le32_to_cpu(ab->nr_entries); in fill_ablock()
183 delta = new_nr - nr_entries; in fill_ablock()
186 for (i = nr_entries; i < new_nr; i++) in fill_ablock()
188 ab->nr_entries = cpu_to_le32(new_nr); in fill_ablock()
199 uint32_t nr_entries, delta; in trim_ablock() local
203 BUG_ON(new_nr > le32_to_cpu(ab->nr_entries)); in trim_ablock()
205 nr_entries = le32_to_cpu(ab->nr_entries); in trim_ablock()
206 delta = nr_entries - new_nr; in trim_ablock()
209 ab->nr_entries = cpu_to_le32(new_nr); in trim_ablock()
709 BUG_ON(le32_to_cpu(ab->nr_entries)); in populate_ablock_with_values()
721 ab->nr_entries = cpu_to_le32(new_nr); in populate_ablock_with_values()
789 if (entry >= le32_to_cpu(ab->nr_entries)) in dm_array_get_value()
821 if (entry >= le32_to_cpu(ab->nr_entries)) { in array_set_value()
866 unsigned nr_entries, max_entries; in walk_ablock() local
876 nr_entries = le32_to_cpu(ab->nr_entries); in walk_ablock()
877 for (i = 0; i < nr_entries; i++) { in walk_ablock()
969 if (c->index >= le32_to_cpu(c->ab->nr_entries)) { in dm_array_cursor_next()
988 uint32_t remaining = le32_to_cpu(c->ab->nr_entries) - c->index; in dm_array_cursor_skip()