Lines Matching refs:val
107 uint32_t val = 0; in xor_compute() local
111 val = val ^ *(uint32_t *)(ptr + i); in xor_compute()
113 return val; in xor_compute()
116 static uint8_t xor_factorize(uint32_t val) in xor_factorize() argument
118 return (uint8_t)((val & 0xff) ^ ((val >> 8) & 0xff) ^ ((val >> 16) & 0xff) ^ ((val >> 24) & 0xff)); in xor_factorize()
124 uint32_t val; in xor_update() local
128 val = xor_compute(ptr + i * BOOT_UMIP_SECTOR_SIZE, BOOT_UMIP_SECTOR_SIZE); in xor_update()
129 *(uint32_t *)(ptr + 4 * i) = val; in xor_update()
134 val= xor_compute(ptr, BOOT_UMIP_SIZE); in xor_update()
135 *(ptr + BOOT_UMIP_XOR_OFFSET) = xor_factorize(val); in xor_update()
139 val= xor_compute(ptr, BOOT_IFWI_SIZE); in xor_update()
140 *(uint32_t *)(ptr + BOOT_IFWI_XOR_OFFSET) = val; in xor_update()