Lines Matching refs:n
135 for (size_t n = 0; n < count; n++) { in disk_find_boot() local
137 status = bs->OpenProtocol(list[n], &BlockIoProtocol, (void**) &bio, img, NULL, in disk_find_boot()
144 status = bs->OpenProtocol(list[n], &DevicePathProtocol, (void**) &path, img, NULL, in disk_find_boot()
147 bs->CloseProtocol(list[n], &BlockIoProtocol, img, NULL); in disk_find_boot()
161 printf(" : #%zu, %zuMB%s%s%s%s%s%s\n", n, in disk_find_boot()
172 status = bs->OpenProtocol(list[n], &DiskIoProtocol, (void**) &disk->io, img, NULL, in disk_find_boot()
181 disk->h = list[n]; in disk_find_boot()
188 bs->CloseProtocol(list[n], &BlockIoProtocol, img, NULL); in disk_find_boot()
189 bs->CloseProtocol(list[n], &DevicePathProtocol, img, NULL); in disk_find_boot()
254 for (unsigned n = 0; n < gpt.entries_count; n++) { in disk_find_kernel() local
255 if ((table[n].first == 0) || in disk_find_kernel()
256 (table[n].last == 0) || in disk_find_kernel()
257 (table[n].last < table[n].first)) { in disk_find_kernel()
263 if (!memcmp(table[n].type, GUID_ZIRCON_A, sizeof(GUID_ZIRCON_A))) { in disk_find_kernel()
265 disk->first = table[n].first; in disk_find_kernel()
266 disk->last = table[n].last; in disk_find_kernel()
268 } else if (!memcmp(table[n].type, GUID_ZIRCON_B, sizeof(GUID_ZIRCON_B))) { in disk_find_kernel()
277 unsigned c = table[n].name[i*2 + 0] | (table[n].name[i*2 + 1] << 8); in disk_find_kernel()
285 n, table[n].first, table[n].last, table[n].flags, name, type); in disk_find_kernel()