Lines Matching refs:ADV_SIZE
31 unsigned char syslinux_adv[2 * ADV_SIZE];
42 for (i = 8; i < ADV_SIZE - 4; i += 4) in cleanup_adv()
46 *(uint32_t *)(advbuf + ADV_SIZE - 4) = ADV_MAGIC3; in cleanup_adv()
48 memcpy(advbuf + ADV_SIZE, advbuf, ADV_SIZE); in cleanup_adv()
64 *(uint32_t *)(p + ADV_SIZE - 4) != ADV_MAGIC3) in adv_consistent()
68 for (i = 4; i < ADV_SIZE - 4; i += 4) in adv_consistent()
80 if (adv_consistent(advbuf + 0 * ADV_SIZE)) { in syslinux_validate_adv()
81 memcpy(advbuf + ADV_SIZE, advbuf, ADV_SIZE); in syslinux_validate_adv()
83 } else if (adv_consistent(advbuf + 1 * ADV_SIZE)) { in syslinux_validate_adv()
84 memcpy(advbuf, advbuf + ADV_SIZE, ADV_SIZE); in syslinux_validate_adv()
164 } else if (st.FileSize < 2 * ADV_SIZE) { in read_adv()
168 } else if (efi_xpread(fd, syslinux_adv, 2 * ADV_SIZE, in read_adv()
169 st.FileSize - 2 * ADV_SIZE) != 2 * ADV_SIZE) { in read_adv()
218 unsigned char advtmp[2 * ADV_SIZE]; in efi_adv_write()
246 } else if (st.FileSize < 2 * ADV_SIZE) { in efi_adv_write()
250 } else if (efi_xpread(fd, advtmp, 2 * ADV_SIZE, in efi_adv_write()
251 st.FileSize - 2 * ADV_SIZE) != 2 * ADV_SIZE) { in efi_adv_write()
273 if (efi_xpwrite(fd, advbuf, 2 * ADV_SIZE, in efi_adv_write()
274 st.FileSize - 2 * ADV_SIZE) != 2 * ADV_SIZE) { in efi_adv_write()