Lines Matching refs:unit_size

74 	unaccepted_table->unit_size = EFI_UNACCEPTED_UNIT_SIZE;
90 * The accepted memory bitmap only works at unit_size granularity. Take
99 u64 unit_size = unaccepted_table->unit_size;
100 u64 unit_mask = unaccepted_table->unit_size - 1;
105 * immediately accepting all regions under 2*unit_size. This is
110 * Consider case like this (assuming unit_size == 2MB):
117 * the bitmap. But, the 0MB->4MB region is <2*unit_size and will be
120 if (end - start < 2 * unit_size) {
127 * unit_size area will remain to be marked in the bitmap.
130 /* Immediately accept a <unit_size piece at the start: */
132 arch_accept_memory(start, round_up(start, unit_size));
133 start = round_up(start, unit_size);
136 /* Immediately accept a <unit_size piece at the end: */
138 arch_accept_memory(round_down(end, unit_size), end);
139 end = round_down(end, unit_size);
161 if (end > bitmap_size * unit_size * BITS_PER_BYTE) {
164 phys_start = bitmap_size * unit_size * BITS_PER_BYTE +
169 end = bitmap_size * unit_size * BITS_PER_BYTE;
173 * 'start' and 'end' are now both unit_size-aligned.
177 start / unit_size, (end - start) / unit_size);
184 u64 unit_size;
189 unit_size = unaccepted_table->unit_size;
205 if (end > unaccepted_table->size * unit_size * BITS_PER_BYTE)
206 end = unaccepted_table->size * unit_size * BITS_PER_BYTE;
208 range_start = start / unit_size;
209 bitmap_size = DIV_ROUND_UP(end, unit_size);
215 phys_start = range_start * unit_size + unaccepted_table->phys_base;
216 phys_end = range_end * unit_size + unaccepted_table->phys_base;