Lines Matching refs:ADV_SIZE
35 unsigned char syslinux_adv[2 * ADV_SIZE];
50 for (i = 8; i < ADV_SIZE - 4; i += 4) in cleanup_adv()
54 set_32((uint32_t *) (advbuf + ADV_SIZE - 4), ADV_MAGIC3); in cleanup_adv()
56 memcpy(advbuf + ADV_SIZE, advbuf, ADV_SIZE); in cleanup_adv()
63 uint8_t advtmp[ADV_SIZE]; in syslinux_setadv()
142 get_32((uint32_t *) (p + ADV_SIZE - 4)) != ADV_MAGIC3) in adv_consistent()
146 for (i = 4; i < ADV_SIZE - 4; i += 4) in adv_consistent()
158 if (adv_consistent(advbuf + 0 * ADV_SIZE)) { in syslinux_validate_adv()
159 memcpy(advbuf + ADV_SIZE, advbuf, ADV_SIZE); in syslinux_validate_adv()
161 } else if (adv_consistent(advbuf + 1 * ADV_SIZE)) { in syslinux_validate_adv()
162 memcpy(advbuf, advbuf + ADV_SIZE, ADV_SIZE); in syslinux_validate_adv()