Lines Matching defs:patch

97  * microcode patch we found to match.
108 * Microcode patch container file is prepended to the initrd in cpio
184 * Check whether there is a valid, non-truncated microcode patch section at the
187 * On success, @sh_psize returns the patch size according to the section header,
197 pr_debug("Truncated patch section.\n");
223 * a patch of the indicated @sh_psize (and also whether this size does not
256 * Verify the patch in @buf.
260 * positive: patch is not for this family, skip it
283 * Check if the remaining buffer is big enough to contain a patch of
293 pr_debug("Per-family patch size mismatch.\n");
338 * doesn't contain a patch for the CPU, scan through the whole container
360 * found a patch already. If so, use it.
374 /* Skip patch section header too: */
381 * If we have found a patch (desc->mc), it means we're looking at the
382 * container which has a patch for this CPU so return 0 to mean, @ucode
424 /* verify patch application was successful */
434 * patch container file in initrd, traverse equivalent cpu table, look for a
435 * matching microcode patch, and update, all in initrd memory in place.
568 /* we already have the latest patch */
580 /* no patch found, add it */
637 * a patch could have been loaded early, set uci->mc so that
669 /* need to apply patch? */
741 * we can skip over the next patch. If we return a negative value, we
750 struct ucode_patch *patch;
758 patch = kzalloc(sizeof(*patch), GFP_KERNEL);
759 if (!patch) {
764 patch->data = kmemdup(fw + SECTION_HDR_SIZE, *patch_size, GFP_KERNEL);
765 if (!patch->data) {
767 kfree(patch);
770 patch->size = *patch_size;
775 INIT_LIST_HEAD(&patch->plist);
776 patch->patch_id = mc_hdr->patch_id;
777 patch->equiv_cpu = proc_id;
780 __func__, patch->patch_id, proc_id);
783 update_cache(patch);