Lines Matching refs:n_regions
39 for (i = 0; i < mp->n_regions; ++i) { in mem_pieces_find()
65 for (i = 0, rp = mp->regions; i < mp->n_regions; ++i, ++rp) { in mem_pieces_remove()
69 if (i >= mp->n_regions) { in mem_pieces_remove()
75 for (; i < mp->n_regions && end > rp->address; ++i, ++rp) { in mem_pieces_remove()
88 if (mp->n_regions >= MEM_PIECES_MAX) in mem_pieces_remove()
90 for (j = mp->n_regions; j > i + 1; --j) in mem_pieces_remove()
92 ++mp->n_regions; in mem_pieces_remove()
102 for (j = i; j < mp->n_regions - 1; ++j) in mem_pieces_remove()
104 --mp->n_regions; in mem_pieces_remove()
117 for (i = 0; i < mp->n_regions; ++i) in mem_pieces_print()
132 if (mp->n_regions >= MEM_PIECES_MAX) in mem_pieces_append()
134 rp = &mp->regions[mp->n_regions++]; in mem_pieces_append()
146 for (i = 1; i < mp->n_regions; ++i) { in mem_pieces_sort()
166 for (i = 0; i < mp->n_regions; i = j) { in mem_pieces_coalesce()
169 for (j = i + 1; j < mp->n_regions in mem_pieces_coalesce()
179 mp->n_regions = d; in mem_pieces_coalesce()