Searched refs:sc_blob (Results 1 – 7 of 7) sorted by relevance
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | cpu_ucode.c | 126 if (sc->sc_blob != NULL) in cpu_ucode_apply() 127 firmware_free(sc->sc_blob, sc->sc_blobsize); in cpu_ucode_apply() 128 sc->sc_blob = NULL; in cpu_ucode_apply() 150 set_xen_guest_handle(op.u.microcode.data, sc->sc_blob); in cpu_ucode_apply() 155 if (sc->sc_blob) in cpu_ucode_apply() 156 firmware_free(sc->sc_blob, sc->sc_blobsize); in cpu_ucode_apply() 157 sc->sc_blob = NULL; in cpu_ucode_apply()
|
| H A D | cpu_ucode_amd.c | 213 if (sc->sc_blob == NULL) in cpu_apply_cb() 223 } while ((uintptr_t)((mc.mc_buf) - (uint8_t *)sc->sc_blob) < sc->sc_blobsize); in cpu_apply_cb() 250 KASSERT(sc->sc_blob != NULL); in cpu_ucode_amd_apply() 251 magic = (uint32_t *)sc->sc_blob; in cpu_ucode_amd_apply() 257 mc.mc_buf = &sc->sc_blob[sizeof(*magic)]; in cpu_ucode_amd_apply()
|
| H A D | cpu_ucode_intel.c | 191 uh = (struct intel1_ucode_header *)sc->sc_blob; in cpu_ucode_intel_apply() 199 if (((uintptr_t)sc->sc_blob) & 15) { in cpu_ucode_intel_apply() 205 memcpy(uh, sc->sc_blob, sc->sc_blobsize); in cpu_ucode_intel_apply()
|
| /netbsd-src/sys/kern/ |
| H A D | kern_cpu.c | 593 if (sc->sc_blob != NULL) { in cpu_ucode_load() 594 firmware_free(sc->sc_blob, sc->sc_blobsize); in cpu_ucode_load() 595 sc->sc_blob = NULL; in cpu_ucode_load() 613 sc->sc_blob = firmware_malloc(sc->sc_blobsize); 614 if (sc->sc_blob == NULL) { 620 error = firmware_read(fwh, 0, sc->sc_blob, sc->sc_blobsize); 628 firmware_free(sc->sc_blob, sc->sc_blobsize); 629 sc->sc_blob = NULL;
|
| /netbsd-src/sys/sys/ |
| H A D | cpu.h | 127 char *sc_blob; 121 char *sc_blob; global() member
|
| /netbsd-src/sys/dev/pci/ |
| H A D | if_iwivar.h | 127 char *sc_blob; member
|
| H A D | if_iwi.c | 2247 sc->sc_blob = firmware_malloc(size); in iwi_cache_firmware() 2248 if (sc->sc_blob == NULL) { in iwi_cache_firmware() 2254 error = firmware_read(fwh, 0, sc->sc_blob, size); in iwi_cache_firmware() 2259 hdr = (struct iwi_firmware_hdr *)sc->sc_blob; in iwi_cache_firmware() 2288 fw = sc->sc_blob + sizeof(struct iwi_firmware_hdr); in iwi_cache_firmware() 2305 fail2: firmware_free(sc->sc_blob, sc->sc_blobsize); in iwi_cache_firmware() 2317 firmware_free(sc->sc_blob, sc->sc_blobsize); in iwi_free_firmware()
|