Lines Matching refs:total_size
145 unsigned long total_size, data_size, ext_table_size; in microcode_sanity_check() local
149 total_size = get_totalsize(mc_header); in microcode_sanity_check()
151 if ( (data_size + MC_HEADER_SIZE) > total_size ) in microcode_sanity_check()
164 ext_table_size = total_size - (MC_HEADER_SIZE + data_size); in microcode_sanity_check()
240 unsigned long total_size = get_totalsize(mc_header); in get_matching_microcode() local
249 if ( total_size <= (get_datasize(mc_header) + MC_HEADER_SIZE) ) in get_matching_microcode()
267 new_mc = xmalloc_bytes(total_size); in get_matching_microcode()
274 memcpy(new_mc, mc, total_size); in get_matching_microcode()
330 unsigned long total_size; in get_next_ucode_from_buffer() local
336 total_size = get_totalsize(mc_header); in get_next_ucode_from_buffer()
338 if ( (offset + total_size) > size ) in get_next_ucode_from_buffer()
344 *mc = xmalloc_bytes(total_size); in get_next_ucode_from_buffer()
350 memcpy(*mc, (const void *)(buf + offset), total_size); in get_next_ucode_from_buffer()
351 return offset + total_size; in get_next_ucode_from_buffer()