Lines Matching defs:nr_maps
49 * @nr_maps: number of maps_by_address, and possibly maps_by_name,
52 unsigned int nr_maps;
74 assert(RC_CHK_ACCESS(maps)->nr_maps <= RC_CHK_ACCESS(maps)->nr_maps_allocated);
75 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) {
107 for (unsigned int i = 0; i < RC_CHK_ACCESS(maps)->nr_maps; i++) {
136 static void maps__set_nr_maps(struct maps *maps, unsigned int nr_maps)
138 RC_CHK_ACCESS(maps)->nr_maps = nr_maps;
181 return RC_CHK_ACCESS(maps)->nr_maps;
241 RC_CHK_ACCESS(maps)->nr_maps = 0;
475 unsigned int nr_maps = maps__nr_maps(maps);
478 if (nr_maps + 1 > nr_allocate) {
500 maps_by_address[nr_maps] = map__get(new);
503 maps_by_name[nr_maps] = map__get(new);
505 nr_maps++;
506 RC_CHK_ACCESS(maps)->nr_maps = nr_maps;
513 if (nr_maps == 1) {
521 map__end(maps_by_address[nr_maps - 2]) <= map__start(new));
545 unsigned int nr_maps = maps__nr_maps(maps);
553 (nr_maps - address_idx - 1) * sizeof(*maps_by_address));
561 (nr_maps - name_idx - 1) * sizeof(*maps_by_name));
564 --RC_CHK_ACCESS(maps)->nr_maps;
788 unsigned int nr_maps = maps__nr_maps(maps);
793 assert(first_after_index == nr_maps ||
796 assert(first_after_index == nr_maps || !new2 ||
799 if (nr_maps + to_add > nr_allocate) {
822 (nr_maps - first_after_index) * sizeof(new1));
825 maps_by_name[nr_maps] = map__get(new1);
829 maps_by_name[nr_maps + 1] = map__get(new2);
831 RC_CHK_ACCESS(maps)->nr_maps = nr_maps + to_add;
967 unsigned int nr_maps = maps__nr_maps(maps);
969 if (i + 1 < nr_maps)
1000 (nr_maps - i - 1) * sizeof(*maps_by_address));
1006 (nr_maps - ni - 1) * sizeof(*maps_by_name));
1008 --RC_CHK_ACCESS(maps)->nr_maps;
1077 RC_CHK_ACCESS(dest)->nr_maps = i + 1;
1133 unsigned int nr_maps = maps__nr_maps(maps);
1135 if (maps_by_address && nr_maps)
1136 mapp = bsearch(&ip, maps_by_address, nr_maps, sizeof(*mapp),