img 132 arch/s390/boot/startup.c void *img; img 150 arch/s390/boot/startup.c img = (void *)vmlinux.default_lma; img 162 arch/s390/boot/startup.c img = decompress_kernel(); img 163 arch/s390/boot/startup.c memmove((void *)vmlinux.default_lma, img, vmlinux.image_size); img 165 arch/s390/boot/startup.c memcpy((void *)vmlinux.default_lma, img, vmlinux.image_size); img 180 arch/s390/boot/startup.c memset(img, 0, vmlinux.image_size); img 431 arch/x86/boot/compressed/kaslr.c static bool mem_avoid_overlap(struct mem_vector *img, img 436 arch/x86/boot/compressed/kaslr.c unsigned long earliest = img->start + img->size; img 440 arch/x86/boot/compressed/kaslr.c if (mem_overlaps(img, &mem_avoid[i]) && img 456 arch/x86/boot/compressed/kaslr.c if (mem_overlaps(img, &avoid) && (avoid.start < earliest)) { img 597 drivers/crypto/qat/qat_common/qat_uclo.c struct icp_qat_uof_image *img, img 607 drivers/crypto/qat/qat_common/qat_uclo.c ((char *)img + sizeof(struct icp_qat_uof_image)); img 32 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c pmu_code(struct nv50_devinit *init, u32 pmu, u32 img, u32 len, bool sec) img 42 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c nvkm_wr32(device, 0x10a184, nvbios_rd32(bios, img + i)); img 52 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c pmu_data(struct nv50_devinit *init, u32 pmu, u32 img, u32 len) img 60 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c nvkm_wr32(device, 0x10a1c4, nvbios_rd32(bios, img + i)); img 144 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c u32 img = nvbios_rd16(bios, bit_I.offset + 0x14); img 146 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c pmu_data(init, pmu, img, len); img 152 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c u32 img = nvbios_rd16(bios, bit_I.offset + 0x18); img 154 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c pmu_data(init, pmu, img, len); img 77 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct ls_ucode_img *img, u64 wpr_addr, img 81 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 84 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 249 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img_r352 *img; img 252 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c img = kzalloc(sizeof(*img), GFP_KERNEL); img 253 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c if (!img) img 256 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c img->base.falcon_id = falcon_id; img 258 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c ret = func->load(sb, func->version_max, &img->base); img 260 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c kfree(img->base.ucode_data); img 261 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c kfree(img->base.sig); img 262 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c kfree(img); img 266 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c img->func = func->version[ret]; img 269 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c if (img->base.sig_size != sizeof(img->lsb_header.signature)) { img 276 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c memcpy(&img->lsb_header.signature, img->base.sig, img->base.sig_size); img 279 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c img->lsb_header.signature.falcon_id = falcon_id; img 281 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c return &img->base; img 303 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img_r352 *img, u32 offset) img 305 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img *_img = &img->base; img 306 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct acr_r352_lsf_wpr_header *whdr = &img->wpr_header; img 307 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct acr_r352_lsf_lsb_header *lhdr = &img->lsb_header; img 309 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct acr_r352_lsf_func *func = img->func; img 383 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img_r352 *img; img 398 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c offset = sizeof(img->wpr_header) * (count + 1); img 404 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c list_for_each_entry(img, imgs, base.node) { img 405 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c offset = acr_r352_ls_img_fill_headers(acr, img, offset); img 425 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img_r352 *img = ls_ucode_img_r352(_img); img 426 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct acr_r352_lsf_func *ls_func = img->func; img 438 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img_r352 *img = ls_ucode_img_r352(_img); img 439 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct acr_r352_lsf_func *ls_func = img->func; img 441 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c nvkm_gpuobj_memcpy_to(wpr_blob, pos, &img->wpr_header, img 442 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c sizeof(img->wpr_header)); img 444 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c nvkm_gpuobj_memcpy_to(wpr_blob, img->wpr_header.lsb_offset, img 445 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c &img->lsb_header, sizeof(img->lsb_header)); img 451 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c nvkm_gpuobj_memcpy_to(wpr_blob, img->lsb_header.bl_data_off, img 455 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c nvkm_gpuobj_memcpy_to(wpr_blob, img->lsb_header.ucode_off, img 458 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c pos += sizeof(img->wpr_header); img 485 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img *img, *t; img 498 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct ls_ucode_img *img; img 500 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c img = acr->func->ls_ucode_img_load(acr, sb, falcon_id); img 501 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c if (IS_ERR(img)) { img 508 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c ret = PTR_ERR(img); img 512 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c list_add_tail(&img->node, &imgs); img 584 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c list_for_each_entry_safe(img, t, &imgs, node) { img 585 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c kfree(img->ucode_data); img 586 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c kfree(img->sig); img 587 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c kfree(img); img 1139 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct ls_ucode_img *img, u64 wpr_addr, img 1142 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 1150 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 32 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c const struct ls_ucode_img *img, u64 wpr_addr, img 36 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 39 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 117 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c const struct ls_ucode_img *img, u64 wpr_addr, img 120 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 126 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 162 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c const struct ls_ucode_img *img, u64 wpr_addr, img 165 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 171 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r361.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 118 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct ls_ucode_img_r367 *img; img 121 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c img = kzalloc(sizeof(*img), GFP_KERNEL); img 122 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c if (!img) img 125 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c img->base.falcon_id = falcon_id; img 127 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c ret = func->load(sb, func->version_max, &img->base); img 129 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c kfree(img->base.ucode_data); img 130 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c kfree(img->base.sig); img 131 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c kfree(img); img 135 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c img->func = func->version[ret]; img 138 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c if (img->base.sig_size != sizeof(img->lsb_header.signature)) { img 145 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c memcpy(&img->lsb_header.signature, img->base.sig, img->base.sig_size); img 148 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c img->lsb_header.signature.falcon_id = falcon_id; img 150 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c return &img->base; img 161 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct ls_ucode_img_r367 *img, u32 offset) img 163 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct ls_ucode_img *_img = &img->base; img 164 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct acr_r367_lsf_wpr_header *whdr = &img->wpr_header; img 165 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct acr_r367_lsf_lsb_header *lhdr = &img->lsb_header; img 167 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c const struct acr_r352_lsf_func *func = img->func; img 239 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct ls_ucode_img_r367 *img; img 254 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c offset = sizeof(img->wpr_header) * (count + 1); img 260 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c list_for_each_entry(img, imgs, base.node) { img 261 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c offset = acr_r367_ls_img_fill_headers(acr, img, offset); img 277 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct ls_ucode_img_r367 *img = ls_ucode_img_r367(_img); img 278 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c const struct acr_r352_lsf_func *ls_func = img->func; img 290 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c struct ls_ucode_img_r367 *img = ls_ucode_img_r367(_img); img 291 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c const struct acr_r352_lsf_func *ls_func = img->func; img 293 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c nvkm_gpuobj_memcpy_to(wpr_blob, pos, &img->wpr_header, img 294 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c sizeof(img->wpr_header)); img 296 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c nvkm_gpuobj_memcpy_to(wpr_blob, img->wpr_header.lsb_offset, img 297 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c &img->lsb_header, sizeof(img->lsb_header)); img 303 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c nvkm_gpuobj_memcpy_to(wpr_blob, img->lsb_header.bl_data_off, img 307 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c nvkm_gpuobj_memcpy_to(wpr_blob, img->lsb_header.ucode_off, img 310 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c pos += sizeof(img->wpr_header); img 32 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r370.c const struct ls_ucode_img *img, u64 wpr_addr, img 36 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r370.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 39 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r370.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 86 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r370.c const struct ls_ucode_img *img, u64 wpr_addr, img 89 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r370.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 95 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r370.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 31 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r375.c const struct ls_ucode_img *img, u64 wpr_addr, img 34 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r375.c const struct ls_ucode_img_desc *pdesc = &img->ucode_desc; img 40 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r375.c base = wpr_addr + img->ucode_off + pdesc->app_start_offset; img 94 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c struct ls_ucode_img *img, const char *falcon_name) img 120 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c img->sig = kmemdup(sig->data, sig->size, GFP_KERNEL); img 121 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c if (!img->sig) { img 125 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c img->sig_size = sig->size; img 127 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c img->ucode_data = ls_ucode_img_build(bl, code, data, img 128 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c &img->ucode_desc); img 129 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c if (IS_ERR(img->ucode_data)) { img 130 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c kfree(img->sig); img 131 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c ret = PTR_ERR(img->ucode_data); img 134 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c img->ucode_size = img->ucode_desc.image_size; img 150 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c struct ls_ucode_img *img) img 152 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c return ls_ucode_img_load_gr(&sb->subdev, maxver, img, "fecs"); img 157 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c struct ls_ucode_img *img) img 159 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c return ls_ucode_img_load_gr(&sb->subdev, maxver, img, "gpccs"); img 42 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c int maxver, struct ls_ucode_img *img) img 52 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c img->ucode_data = kmemdup(image->data, image->size, GFP_KERNEL); img 54 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c if (!img->ucode_data) img 61 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c memcpy(&img->ucode_desc, desc->data, sizeof(img->ucode_desc)); img 62 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c img->ucode_size = ALIGN(img->ucode_desc.app_start_offset + img->ucode_desc.app_size, 256); img 69 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c img->sig_size = sig->size; img 70 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c img->sig = kmemdup(sig->data, sig->size, GFP_KERNEL); img 72 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c if (!img->sig) img 103 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c struct ls_ucode_img *img) img 108 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ret = acr_ls_ucode_load_msgqueue(&sb->subdev, "pmu", maxver, img); img 113 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ret = nvkm_msgqueue_new(img->ucode_desc.app_version, pmu->falcon, img 141 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c struct ls_ucode_img *img) img 146 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ver = acr_ls_ucode_load_msgqueue(&sb->subdev, "sec2", maxver, img); img 151 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ret = nvkm_msgqueue_new(img->ucode_desc.app_version, sec->falcon, img 995 drivers/hid/wacom_sys.c const unsigned len, const void *img) img 1017 drivers/hid/wacom_sys.c memcpy(buf + 3, img + i * chunk_len, chunk_len); img 860 drivers/infiniband/hw/qib/qib_sd7220.c const u8 *img, int len, int offset) img 870 drivers/infiniband/hw/qib/qib_sd7220.c (u8 *)img + sofar, req, 0); img 884 drivers/infiniband/hw/qib/qib_sd7220.c const u8 *img, int len, int offset) img 903 drivers/infiniband/hw/qib/qib_sd7220.c if (readback[idx] != img[idx+sofar]) img 284 drivers/input/rmi4/rmi_f34.h struct image_metadata img; img 578 drivers/input/rmi4/rmi_f34v7.c block_count = f34->v7.img.ui_firmware.size / f34->v7.block_size; img 595 drivers/input/rmi4/rmi_f34v7.c block_count = f34->v7.img.ui_config.size / f34->v7.block_size; img 610 drivers/input/rmi4/rmi_f34v7.c block_count = f34->v7.img.dp_config.size / f34->v7.block_size; img 625 drivers/input/rmi4/rmi_f34v7.c block_count = f34->v7.img.guest_code.size / f34->v7.block_size; img 640 drivers/input/rmi4/rmi_f34v7.c block_count = f34->v7.img.bl_config.size / f34->v7.block_size; img 898 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_data = f34->v7.img.ui_config.data; img 899 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_size = f34->v7.img.ui_config.size; img 908 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_data = f34->v7.img.dp_config.data; img 909 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_size = f34->v7.img.dp_config.size; img 917 drivers/input/rmi4/rmi_f34v7.c return rmi_f34v7_write_f34v7_blocks(f34, f34->v7.img.guest_code.data, img 918 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.guest_code.size / img 928 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_data = f34->v7.img.fl_config.data; img 929 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_size = f34->v7.img.fl_config.size; img 990 drivers/input/rmi4/rmi_f34v7.c f34->v7.config_size = f34->v7.img.bl_config.size; img 1004 drivers/input/rmi4/rmi_f34v7.c blk_count = f34->v7.img.ui_firmware.size / f34->v7.block_size; img 1006 drivers/input/rmi4/rmi_f34v7.c return rmi_f34v7_write_f34v7_blocks(f34, f34->v7.img.ui_firmware.data, img 1012 drivers/input/rmi4/rmi_f34v7.c if (f34->v7.phyaddr.ui_firmware != f34->v7.img.phyaddr.ui_firmware) { img 1017 drivers/input/rmi4/rmi_f34v7.c if (f34->v7.phyaddr.ui_config != f34->v7.img.phyaddr.ui_config) { img 1023 drivers/input/rmi4/rmi_f34v7.c f34->v7.phyaddr.dp_config != f34->v7.img.phyaddr.dp_config) { img 1029 drivers/input/rmi4/rmi_f34v7.c f34->v7.phyaddr.guest_code != f34->v7.img.phyaddr.guest_code) { img 1048 drivers/input/rmi4/rmi_f34v7.c num_of_containers = f34->v7.img.bootloader.size / 4 - 1; img 1051 drivers/input/rmi4/rmi_f34v7.c addr = get_unaligned_le32(f34->v7.img.bootloader.data + i * 4); img 1059 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.bl_config.data = content; img 1060 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.bl_config.size = length; img 1064 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.lockdown.data = content; img 1065 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.lockdown.size = length; img 1086 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.checksum = le32_to_cpu(header->checksum); img 1089 drivers/input/rmi4/rmi_f34v7.c __func__, f34->v7.img.checksum); img 1114 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.ui_firmware.data = content; img 1115 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.ui_firmware.size = length; img 1119 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.ui_config.data = content; img 1120 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.ui_config.size = length; img 1123 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.bl_version = *content; img 1124 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.bootloader.data = content; img 1125 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.bootloader.size = length; img 1129 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.contains_guest_code = true; img 1130 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.guest_code.data = content; img 1131 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.guest_code.size = length; img 1134 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.contains_display_cfg = true; img 1135 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.dp_config.data = content; img 1136 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.dp_config.size = length; img 1139 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.contains_flash_config = true; img 1140 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.fl_config.data = content; img 1141 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.fl_config.size = length; img 1144 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.contains_firmware_id = true; img 1145 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.firmware_id = img 1158 drivers/input/rmi4/rmi_f34v7.c memset(&f34->v7.img, 0x00, sizeof(f34->v7.img)); img 1174 drivers/input/rmi4/rmi_f34v7.c if (!f34->v7.img.contains_flash_config) { img 1180 drivers/input/rmi4/rmi_f34v7.c rmi_f34v7_parse_partition_table(f34, f34->v7.img.fl_config.data, img 1181 drivers/input/rmi4/rmi_f34v7.c &f34->v7.img.blkcount, &f34->v7.img.phyaddr); img 1215 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.contains_display_cfg) { img 1221 drivers/input/rmi4/rmi_f34v7.c if (f34->v7.has_guest_code && f34->v7.img.contains_guest_code) { img 1245 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.ui_firmware.size); img 1252 drivers/input/rmi4/rmi_f34v7.c f34->v7.img.ui_config.size); img 1259 drivers/input/rmi4/rmi_f34v7.c if (f34->v7.has_display_cfg && f34->v7.img.contains_display_cfg) { img 1268 drivers/input/rmi4/rmi_f34v7.c if (f34->v7.has_guest_code && f34->v7.img.contains_guest_code) { img 530 drivers/input/touchscreen/sur40.c struct sur40_image_header *img = (void *)(sur40->bulk_in_buffer); img 569 drivers/input/touchscreen/sur40.c if (le32_to_cpu(img->magic) != VIDEO_HEADER_MAGIC) { img 574 drivers/input/touchscreen/sur40.c if (le32_to_cpu(img->size) != sur40->pix_fmt.sizeimage) { img 737 drivers/media/pci/meye/meye.c static int mchip_uncompress_frame(u8 *img, int imgsize, u8 *buf, int bufsize) img 32 drivers/mtd/parsers/redboot.c struct fis_image_desc *img; img 39 drivers/mtd/parsers/redboot.c static inline int redboot_checksum(struct fis_image_desc *img) img 207 drivers/mtd/parsers/redboot.c new_fl->img = &buf[i]; img 217 drivers/mtd/parsers/redboot.c while(*prev && (*prev)->img->flash_base < new_fl->img->flash_base) img 225 drivers/mtd/parsers/redboot.c if (fl->img->flash_base) { img 231 drivers/mtd/parsers/redboot.c if (tmp_fl->img->flash_base + tmp_fl->img->size + master->erasesize <= tmp_fl->next->img->flash_base) { img 255 drivers/mtd/parsers/redboot.c if (fl->img->flash_base) { img 257 drivers/mtd/parsers/redboot.c parts[0].size = fl->img->flash_base; img 263 drivers/mtd/parsers/redboot.c parts[i].size = fl->img->size; img 264 drivers/mtd/parsers/redboot.c parts[i].offset = fl->img->flash_base; img 267 drivers/mtd/parsers/redboot.c strcpy(names, fl->img->name); img 278 drivers/mtd/parsers/redboot.c if(fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_base) { img 281 drivers/mtd/parsers/redboot.c parts[i].size = fl->next->img->flash_base - parts[i].offset; img 384 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_cfg_img *img) img 397 drivers/net/can/kvaser_pciefd.c res = kvaser_pciefd_spi_cmd(pcie, cmd, ARRAY_SIZE(cmd), (u8 *)img, img 402 drivers/net/can/kvaser_pciefd.c crc_buff = (u8 *)img->params; img 404 drivers/net/can/kvaser_pciefd.c if (le32_to_cpu(img->version) != KVASER_PCIEFD_CFG_SYS_VER) { img 410 drivers/net/can/kvaser_pciefd.c if (le32_to_cpu(img->magic) != KVASER_PCIEFD_CFG_MAGIC) { img 416 drivers/net/can/kvaser_pciefd.c crc = ~crc32_be(0xffffffff, crc_buff, sizeof(img->params)); img 417 drivers/net/can/kvaser_pciefd.c if (le32_to_cpu(img->crc) != crc) { img 427 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_cfg_img *img) img 431 drivers/net/can/kvaser_pciefd.c param = &img->params[KVASER_PCIEFD_CFG_PARAM_NR_CHAN]; img 438 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_cfg_img *img; img 447 drivers/net/can/kvaser_pciefd.c img = kmalloc(KVASER_PCIEFD_CFG_IMG_SZ, GFP_KERNEL); img 448 drivers/net/can/kvaser_pciefd.c if (!img) img 471 drivers/net/can/kvaser_pciefd.c res = kvaser_pciefd_cfg_read_and_verify(pcie, img); img 477 drivers/net/can/kvaser_pciefd.c kvaser_pciefd_cfg_read_params(pcie, img); img 480 drivers/net/can/kvaser_pciefd.c kfree(img); img 2685 drivers/net/ethernet/emulex/benet/be_cmds.c static int be_flash(struct be_adapter *adapter, const u8 *img, img 2710 drivers/net/ethernet/emulex/benet/be_cmds.c memcpy(req->data_buf, img, num_bytes); img 2711 drivers/net/ethernet/emulex/benet/be_cmds.c img += num_bytes; img 374 drivers/net/ethernet/neterion/vxge/vxge-config.c struct eprom_image *img) img 394 drivers/net/ethernet/neterion/vxge/vxge-config.c img[i].is_valid = VXGE_HW_GET_EPROM_IMAGE_VALID(data0); img 395 drivers/net/ethernet/neterion/vxge/vxge-config.c img[i].index = VXGE_HW_GET_EPROM_IMAGE_INDEX(data0); img 396 drivers/net/ethernet/neterion/vxge/vxge-config.c img[i].type = VXGE_HW_GET_EPROM_IMAGE_TYPE(data0); img 397 drivers/net/ethernet/neterion/vxge/vxge-config.c img[i].version = VXGE_HW_GET_EPROM_IMAGE_REV(data0); img 4510 drivers/net/ethernet/neterion/vxge/vxge-main.c struct eprom_image img[VXGE_HW_MAX_ROM_IMAGES]; img 4512 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_eprom_img_ver_get(hldev, img); img 4520 drivers/net/ethernet/neterion/vxge/vxge-main.c hldev->eprom_versions[i] = img[i].version; img 4521 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!img[i].is_valid) img 4525 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_EPROM_IMG_MAJOR(img[i].version), img 4526 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_EPROM_IMG_MINOR(img[i].version), img 4527 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_EPROM_IMG_FIX(img[i].version), img 4528 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_EPROM_IMG_BUILD(img[i].version)); img 487 drivers/net/ethernet/netronome/nfp/bpf/offload.c void *img; img 509 drivers/net/ethernet/netronome/nfp/bpf/offload.c img = nfp_bpf_relo_for_vnic(nfp_prog, nn->app_priv); img 510 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (IS_ERR(img)) img 511 drivers/net/ethernet/netronome/nfp/bpf/offload.c return PTR_ERR(img); img 513 drivers/net/ethernet/netronome/nfp/bpf/offload.c dma_addr = dma_map_single(nn->dp.dev, img, img 517 drivers/net/ethernet/netronome/nfp/bpf/offload.c kfree(img); img 532 drivers/net/ethernet/netronome/nfp/bpf/offload.c kfree(img); img 69 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c const struct fw_img *img; img 80 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c img = &priv->fw->img[priv->cur_ucode]; img 81 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c priv->dbgfs_sram_len = img->sec[IWL_UCODE_SECTION_DATA].len; img 178 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c const struct fw_img *img = &priv->fw->img[IWL_UCODE_WOWLAN]; img 185 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c img->sec[IWL_UCODE_SECTION_DATA].len); img 152 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if (priv->fw->img[IWL_UCODE_WOWLAN].num_sec && img 451 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c const struct fw_img *img; img 494 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c img = &priv->fw->img[IWL_UCODE_WOWLAN]; img 497 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c kzalloc(img->sec[IWL_UCODE_SECTION_DATA].len, img 503 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c img->sec[IWL_UCODE_SECTION_DATA].len / 4); img 392 drivers/net/wireless/intel/iwlwifi/dvm/ucode.c if (!priv->fw->img[IWL_UCODE_INIT].num_sec) img 839 drivers/net/wireless/intel/iwlwifi/fw/dbg.c const struct fw_img *img; img 843 drivers/net/wireless/intel/iwlwifi/fw/dbg.c img = &fwrt->fw->img[fwrt->cur_fw_img]; img 844 drivers/net/wireless/intel/iwlwifi/fw/dbg.c sram_ofs = img->sec[IWL_UCODE_SECTION_DATA].offset; img 845 drivers/net/wireless/intel/iwlwifi/fw/dbg.c sram_len = img->sec[IWL_UCODE_SECTION_DATA].len; img 307 drivers/net/wireless/intel/iwlwifi/fw/dbg.h fwrt->fw->img[fwrt->cur_fw_img].paging_mem_size && img 269 drivers/net/wireless/intel/iwlwifi/fw/img.h struct fw_img img[IWL_UCODE_TYPE_MAX]; img 325 drivers/net/wireless/intel/iwlwifi/fw/img.h return &fw->img[ucode_type]; img 322 drivers/net/wireless/intel/iwlwifi/fw/paging.c const struct fw_img *fw = &fwrt->fw->img[type]; img 163 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img) img 166 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < img->num_sec; i++) img 167 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_free_fw_desc(drv, &img->sec[i]); img 168 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(img->sec); img 185 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_free_fw_img(drv, drv->fw.img + i); img 289 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct fw_img_parsing img[IWL_UCODE_TYPE_MAX]; img 317 drivers/net/wireless/intel/iwlwifi/iwl-drv.c return &pieces->img[type].sec[sec]; img 324 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct fw_img_parsing *img = &pieces->img[type]; img 327 drivers/net/wireless/intel/iwlwifi/iwl-drv.c size_t alloc_size = sizeof(*img->sec) * size; img 329 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (img->sec && img->sec_counter >= size) img 332 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec_memory = krealloc(img->sec, alloc_size, GFP_KERNEL); img 336 drivers/net/wireless/intel/iwlwifi/iwl-drv.c img->sec = sec_memory; img 337 drivers/net/wireless/intel/iwlwifi/iwl-drv.c img->sec_counter = size; img 347 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->img[type].sec[sec].data = data; img 357 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->img[type].sec[sec].size = size; img 364 drivers/net/wireless/intel/iwlwifi/iwl-drv.c return pieces->img[type].sec[sec].size; img 374 drivers/net/wireless/intel/iwlwifi/iwl-drv.c pieces->img[type].sec[sec].offset = offset; img 407 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct fw_img_parsing *img; img 417 drivers/net/wireless/intel/iwlwifi/iwl-drv.c img = &pieces->img[type]; img 419 drivers/net/wireless/intel/iwlwifi/iwl-drv.c alloc_size = sizeof(*img->sec) * (img->sec_counter + 1); img 420 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec = krealloc(img->sec, alloc_size, GFP_KERNEL); img 423 drivers/net/wireless/intel/iwlwifi/iwl-drv.c img->sec = sec; img 425 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec = &img->sec[img->sec_counter]; img 431 drivers/net/wireless/intel/iwlwifi/iwl-drv.c ++img->sec_counter; img 862 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_REGULAR].is_dual_cpus = img 864 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_INIT].is_dual_cpus = img 866 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_WOWLAN].is_dual_cpus = img 1053 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_REGULAR].paging_mem_size = img 1056 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[usniffer_img].paging_mem_size = img 1210 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sec = kcalloc(pieces->img[type].sec_counter, sizeof(*sec), GFP_KERNEL); img 1213 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[type].sec = sec; img 1214 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[type].num_sec = pieces->img[type].sec_counter; img 1216 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < pieces->img[type].sec_counter; i++) img 1615 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < ARRAY_SIZE(pieces->img); i++) img 1616 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(pieces->img[i].sec); img 201 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c const struct fw_img *img; img 210 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c img = &mvm->fw->img[mvm->fwrt.cur_fw_img]; img 211 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c ofs = img->sec[IWL_UCODE_SECTION_DATA].offset; img 212 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c len = img->sec[IWL_UCODE_SECTION_DATA].len; img 235 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c const struct fw_img *img; img 242 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c img = &mvm->fw->img[mvm->fwrt.cur_fw_img]; img 243 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c img_offset = img->sec[IWL_UCODE_SECTION_DATA].offset; img 244 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c img_len = img->sec[IWL_UCODE_SECTION_DATA].len; img 679 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if ((unified || mvm->fw->img[IWL_UCODE_WOWLAN].num_sec) && img 457 drivers/video/fbdev/metronomefb.c u16 *img = (u16 *)(par->metromem_img + index); img 461 drivers/video/fbdev/metronomefb.c *(img + i) = (buf[i] << 5) & 0xE0E0; img 462 drivers/video/fbdev/metronomefb.c csum += *(img + i); img 639 drivers/video/fbdev/tridentfb.c const struct fb_image *img) img 644 drivers/video/fbdev/tridentfb.c if ((info->flags & FBINFO_HWACCEL_DISABLED) || img->depth != 1) { img 645 drivers/video/fbdev/tridentfb.c cfb_imageblit(info, img); img 649 drivers/video/fbdev/tridentfb.c col = img->fg_color; img 652 drivers/video/fbdev/tridentfb.c bgcol = img->bg_color; img 656 drivers/video/fbdev/tridentfb.c col = ((u32 *)(info->pseudo_palette))[img->fg_color]; img 657 drivers/video/fbdev/tridentfb.c bgcol = ((u32 *)(info->pseudo_palette))[img->bg_color]; img 662 drivers/video/fbdev/tridentfb.c par->image_blit(par, img->data, img->dx, img->dy, img 663 drivers/video/fbdev/tridentfb.c img->width, img->height, col, bgcol); img 665 drivers/video/fbdev/tridentfb.c cfb_imageblit(info, img); img 2441 kernel/bpf/syscall.c u8 *img; img 2447 kernel/bpf/syscall.c img = (u8 *) prog->aux->func[i]->bpf_func; img 2448 kernel/bpf/syscall.c if (copy_to_user(uinsns, img, len)) img 694 sound/pci/riptide/riptide.c static int loadfirmware(struct cmdif *cif, const unsigned char *img, img 703 sound/pci/riptide/riptide.c in = img; img 729 sound/pci/riptide/riptide.c if (*img++ == '\n') img 353 sound/soc/codecs/wm0010.c u64 *img; img 426 sound/soc/codecs/wm0010.c img = kzalloc(len, GFP_KERNEL | GFP_DMA); img 427 sound/soc/codecs/wm0010.c if (!img) { img 431 sound/soc/codecs/wm0010.c xfer->t.tx_buf = img; img 433 sound/soc/codecs/wm0010.c byte_swap_64((u64 *)&rec->command, img, len); img 503 sound/soc/codecs/wm0010.c u32 *img; img 518 sound/soc/codecs/wm0010.c img = kzalloc(fw->size, GFP_KERNEL | GFP_DMA); img 519 sound/soc/codecs/wm0010.c if (!img) { img 530 sound/soc/codecs/wm0010.c memcpy(img, &fw->data[0], fw->size); img 535 sound/soc/codecs/wm0010.c t.tx_buf = img; img 563 sound/soc/codecs/wm0010.c kfree(img); img 558 tools/bpf/bpftool/prog.c unsigned char *img = buf; img 604 tools/bpf/bpftool/prog.c disasm_print_insn(img, lens[i], opcodes, img 609 tools/bpf/bpftool/prog.c img += lens[i];