Lines Matching refs:ard
53 struct AddrRangeDesc *ard;
74 *ardp = ard = malloc(RANGE_ALLOC_BLOCK * sizeof *ard);
75 if (!ard)
100 *ardp = ard = realloc(ard, ard_space * sizeof *ard);
101 if (!ard) {
107 ard[ard_count].size = 20;
108 ard[ard_count].BaseAddr = e820buf->start;
109 ard[ard_count].Length = e820buf->len;
110 ard[ard_count].Type = e820buf->type;
121 ard[0].size = 20;
122 ard[0].BaseAddr = 0;
123 ard[0].Length = *dosmem << 10;
124 ard[0].Type = 1;
132 ard[1].size = 20;
133 ard[1].BaseAddr = 1 << 20;
134 ard[1].Length = oreg.ecx.w[0] << 10;
135 ard[1].Type = 1;
138 ard[2].size = 20;
139 ard[2].BaseAddr = 16 << 20;
140 ard[2].Length = oreg.edx.w[0] << 16;
141 ard[2].Type = 1;
155 ard[1].size = 20;
156 ard[1].BaseAddr = 1 << 20;
157 ard[1].Length = oreg.ecx.w[0] << 10;
158 ard[1].Type = 1;
172 struct AddrRangeDesc *ard;
179 nmap = mboot_scan_memory(&ard, &lowmem);
188 start = ard[i].BaseAddr;
189 end = start + ard[i].Length;
203 if (ard[i].Type == 1 && start == highmem) {
206 } else if (ard[i].Type != 1 && start < highrsvd)
218 mbinfo.mmap_addr = map_data(ard, nmap * sizeof *ard, 4, false);
220 mbinfo.mmap_length = nmap * sizeof *ard;