Lines Matching refs:target

150   grub_uint8_t *targetebda, *target;
195 target = targetebda;
206 for (; target < targetebda + 0x400 - v2->length; target += 0x10)
207 if (grub_memcmp (target, "RSD PTR ", 8) == 0
208 && grub_byte_checksum (target,
210 && ((struct grub_acpi_rsdp_v10 *) target)->revision != 0
211 && ((struct grub_acpi_rsdp_v20 *) target)->length <= v2->length)
213 grub_memcpy (target, v2, v2->length);
214 grub_dprintf ("acpi", "Copying rsdpv2 to %p\n", target);
215 v2inebda = target;
216 target += v2->length;
217 target = (grub_uint8_t *) ((((long) target - 1) | 0xf) + 1);
226 for (; target < targetebda + 0x400 - sizeof (struct grub_acpi_rsdp_v10);
227 target += 0x10)
228 if (grub_memcmp (target, "RSD PTR ", 8) == 0
229 && grub_byte_checksum (target,
232 grub_memcpy (target, v1, sizeof (struct grub_acpi_rsdp_v10));
233 grub_dprintf ("acpi", "Copying rsdpv1 to %p\n", target);
234 v1inebda = target;
235 target += sizeof (struct grub_acpi_rsdp_v10);
236 target = (grub_uint8_t *) ((((long) target - 1) | 0xf) + 1);
242 target = targetebda + 0x100;
248 for (; target < targetebda + 0x400 - v2->length; target += 0x10)
249 if (iszero (target, v2->length))
251 grub_dprintf ("acpi", "Copying rsdpv2 to %p\n", target);
252 grub_memcpy (target, v2, v2->length);
253 v2inebda = target;
254 target += v2->length;
255 target = (grub_uint8_t *) ((((long) target - 1) | 0xf) + 1);
264 for (; target < targetebda + 0x400 - sizeof (struct grub_acpi_rsdp_v10);
265 target += 0x10)
266 if (iszero (target, sizeof (struct grub_acpi_rsdp_v10)))
268 grub_dprintf ("acpi", "Copying rsdpv1 to %p\n", target);
269 grub_memcpy (target, v1, sizeof (struct grub_acpi_rsdp_v10));
270 v1inebda = target;
271 target += sizeof (struct grub_acpi_rsdp_v10);
272 target = (grub_uint8_t *) ((((long) target - 1) | 0xf) + 1);
286 for (target = targetebda;
287 target < targetebda + 0x400 - sizeof (struct grub_acpi_rsdp_v10);
288 target += 0x10)
289 if (grub_memcmp (target, "RSD PTR ", 8) == 0
290 && grub_byte_checksum (target,
292 && target != v1inebda && target != v2inebda)
293 *target = 0;