Lines Matching refs:nr_maps
48 unsigned int nr_maps; in DECLARE_RC_STRUCT() local
70 assert(RC_CHK_ACCESS(maps)->nr_maps <= RC_CHK_ACCESS(maps)->nr_maps_allocated); in check_invariants()
71 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { in check_invariants()
103 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) { in check_invariants()
132 static void maps__set_nr_maps(struct maps *maps, unsigned int nr_maps) in maps__set_nr_maps() argument
134 RC_CHK_ACCESS(maps)->nr_maps = nr_maps; in maps__set_nr_maps()
177 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps()
223 RC_CHK_ACCESS(maps)->nr_maps = 0; in maps__init()
436 unsigned int nr_maps = maps__nr_maps(maps); in __maps__insert() local
439 if (nr_maps + 1 > nr_allocate) { in __maps__insert()
461 maps_by_address[nr_maps] = map__get(new); in __maps__insert()
463 maps_by_name[nr_maps] = map__get(new); in __maps__insert()
465 nr_maps++; in __maps__insert()
466 RC_CHK_ACCESS(maps)->nr_maps = nr_maps; in __maps__insert()
473 if (nr_maps == 1) { in __maps__insert()
481 map__end(maps_by_address[nr_maps - 2]) <= map__start(new)); in __maps__insert()
512 unsigned int nr_maps = maps__nr_maps(maps); in __maps__remove() local
520 (nr_maps - address_idx - 1) * sizeof(*maps_by_address)); in __maps__remove()
528 (nr_maps - name_idx - 1) * sizeof(*maps_by_name)); in __maps__remove()
531 --RC_CHK_ACCESS(maps)->nr_maps; in __maps__remove()
743 unsigned int nr_maps = maps__nr_maps(maps); in __maps__insert_sorted() local
748 assert(first_after_index == nr_maps || in __maps__insert_sorted()
751 assert(first_after_index == nr_maps || !new2 || in __maps__insert_sorted()
754 if (nr_maps + to_add > nr_allocate) { in __maps__insert_sorted()
777 (nr_maps - first_after_index) * sizeof(new1)); in __maps__insert_sorted()
780 maps_by_name[nr_maps] = map__get(new1); in __maps__insert_sorted()
784 maps_by_name[nr_maps + 1] = map__get(new2); in __maps__insert_sorted()
786 RC_CHK_ACCESS(maps)->nr_maps = nr_maps + to_add; in __maps__insert_sorted()
984 RC_CHK_ACCESS(dest)->nr_maps = i + 1; in maps__copy_from()