Lines Matching refs:size
149 uint64_t size; in ucode_equiv_cpu_amd() local
159 if (kobj_get_filesize(eq, &size) < 0) { in ucode_equiv_cpu_amd()
165 if (size == 0 || in ucode_equiv_cpu_amd()
166 size % sizeof (*ucode_eqtbl_amd) != 0) { in ucode_equiv_cpu_amd()
172 ucode_eqtbl_amd = kmem_zalloc(size, KM_NOSLEEP); in ucode_equiv_cpu_amd()
179 size, 0); in ucode_equiv_cpu_amd()
182 if (count != size) { in ucode_equiv_cpu_amd()
189 size / sizeof (*ucode_eqtbl_amd); in ucode_equiv_cpu_amd()
220 ucode_file_amd_t *ucodefp, int size) in ucode_match_amd() argument
224 if (ucodefp == NULL || size < sizeof (ucode_header_amd_t)) in ucode_match_amd()
234 size > offsetof(ucode_file_amd_t, uf_code_present) && in ucode_match_amd()
351 ucode_extract_amd(ucode_update_t *uusp, uint8_t *ucodep, int size) in ucode_extract_amd() argument
362 ptr += 2; size -= 8; in ucode_extract_amd()
364 count = *ptr++; size -= 4; in ucode_extract_amd()
378 ptr += count >> 2; size -= count; in ucode_extract_amd()
380 if (!size) in ucode_extract_amd()
383 ptr++; size -= 4; in ucode_extract_amd()
384 count = *ptr++; size -= 4; in ucode_extract_amd()