Lines Matching refs:size
65 * The body size field of the microcode code header specifies the size
67 * size of DWORD. The total size field must be in multiples of 1K
105 ucode_checksum_intel(uint32_t sum, uint32_t size, uint8_t *code)
110 i = size >> 2;
118 ucode_validate_amd(uint8_t *ucodep, int size)
124 if (ucodep == NULL || size <= 0)
128 size -= 4;
133 size -= 4;
137 size -= 4;
138 if (((count = *ptr++) > size) || (count % 16))
143 size -= count;
146 * minimum valid size:
147 * - type and size fields (8 bytes)
151 while (size >= 100) {
153 size -= 4;
157 size -= 4;
158 if (((count = *ptr++) > size) ||
164 size -= count;
167 if (size)
174 ucode_validate_intel(uint8_t *ucodep, int size)
179 if (ucodep == NULL || size <= 0)
182 for (remaining = size; remaining > 0; ) {
185 uint8_t *curbuf = &ucodep[size - remaining];