Lines Matching refs:nr_maps
45 * @nr_maps: number of maps_by_address, and possibly maps_by_name,
48 unsigned int nr_maps;
70 assert(RC_CHK_ACCESS(maps)->nr_maps <= RC_CHK_ACCESS(maps)->nr_maps_allocated);
71 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) {
103 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) {
132 static void maps__set_nr_maps(struct maps *maps, unsigned int nr_maps)
134 RC_CHK_ACCESS(maps)->nr_maps = nr_maps;
177 return RC_CHK_ACCESS(maps)->nr_maps;
223 RC_CHK_ACCESS(maps)->nr_maps = 0;
454 unsigned int nr_maps = maps__nr_maps(maps);
457 if (nr_maps + 1 > nr_allocate) {
479 maps_by_address[nr_maps] = map__get(new);
481 maps_by_name[nr_maps] = map__get(new);
483 nr_maps++;
484 RC_CHK_ACCESS(maps)->nr_maps = nr_maps;
491 if (nr_maps == 1) {
499 map__end(maps_by_address[nr_maps - 2]) <= map__start(new));
525 unsigned int nr_maps = maps__nr_maps(maps);
533 (nr_maps - address_idx - 1) * sizeof(*maps_by_address));
541 (nr_maps - name_idx - 1) * sizeof(*maps_by_name));
544 --RC_CHK_ACCESS(maps)->nr_maps;
756 unsigned int nr_maps = maps__nr_maps(maps);
761 assert(first_after_index == nr_maps ||
764 assert(first_after_index == nr_maps || !new2 ||
767 if (nr_maps + to_add > nr_allocate) {
790 (nr_maps - first_after_index) * sizeof(new1));
793 maps_by_name[nr_maps] = map__get(new1);
797 maps_by_name[nr_maps + 1] = map__get(new2);
799 RC_CHK_ACCESS(maps)->nr_maps = nr_maps + to_add;
1024 RC_CHK_ACCESS(dest)->nr_maps = i + 1;
1087 unsigned int nr_maps = maps__nr_maps(maps);
1089 if (maps_by_address && nr_maps)
1090 mapp = bsearch(&ip, maps_by_address, nr_maps, sizeof(*mapp),