Lines Matching refs:firmware

67 				       const struct firmware *firmware)  in falcon_copy_firmware_image()  argument
69 u32 *virt = falcon->firmware.virt; in falcon_copy_firmware_image()
73 for (i = 0; i < firmware->size / sizeof(u32); i++) in falcon_copy_firmware_image()
74 virt[i] = le32_to_cpu(((__le32 *)firmware->data)[i]); in falcon_copy_firmware_image()
79 struct falcon_fw_bin_header_v1 *bin = (void *)falcon->firmware.virt; in falcon_parse_firmware_image()
95 if (bin->size > falcon->firmware.size) { in falcon_parse_firmware_image()
100 os = falcon->firmware.virt + bin->os_header_offset; in falcon_parse_firmware_image()
102 falcon->firmware.bin_data.size = bin->os_size; in falcon_parse_firmware_image()
103 falcon->firmware.bin_data.offset = bin->os_data_offset; in falcon_parse_firmware_image()
104 falcon->firmware.code.offset = os->code_offset; in falcon_parse_firmware_image()
105 falcon->firmware.code.size = os->code_size; in falcon_parse_firmware_image()
106 falcon->firmware.data.offset = os->data_offset; in falcon_parse_firmware_image()
107 falcon->firmware.data.size = os->data_size; in falcon_parse_firmware_image()
117 err = request_firmware(&falcon->firmware.firmware, name, falcon->dev); in falcon_read_firmware()
121 falcon->firmware.size = falcon->firmware.firmware->size; in falcon_read_firmware()
128 const struct firmware *firmware = falcon->firmware.firmware; in falcon_load_firmware() local
132 falcon_copy_firmware_image(falcon, firmware); in falcon_load_firmware()
141 release_firmware(firmware); in falcon_load_firmware()
142 falcon->firmware.firmware = NULL; in falcon_load_firmware()
149 falcon->firmware.virt = NULL; in falcon_init()
156 if (falcon->firmware.firmware) in falcon_exit()
157 release_firmware(falcon->firmware.firmware); in falcon_exit()
166 if (!falcon->firmware.virt) in falcon_boot()
179 falcon_writel(falcon, (falcon->firmware.iova + in falcon_boot()
180 falcon->firmware.bin_data.offset) >> 8, in falcon_boot()
184 for (offset = 0; offset < falcon->firmware.data.size; offset += 256) in falcon_boot()
186 falcon->firmware.data.offset + offset, in falcon_boot()
190 for (offset = 0; offset < falcon->firmware.code.size; offset += 256) in falcon_boot()
191 falcon_copy_chunk(falcon, falcon->firmware.code.offset + offset, in falcon_boot()