Lines Matching full:firmware
11 #include <linux/firmware.h>
38 * Parse INTEL HEX firmware file to extract address and data.
48 pr_err("invalid firmware file\n"); in parse_hex_line()
93 const struct firmware *firmware) { in as102_firmware_upload() argument
104 for (total_read_bytes = 0; total_read_bytes < firmware->size; ) { in as102_firmware_upload()
109 (u8 *) (firmware->data + total_read_bytes), in as102_firmware_upload()
120 if (total_read_bytes == firmware->size) { in as102_firmware_upload()
158 const struct firmware *firmware = NULL; in as102_fw_upload() local
172 /* allocate buffer to store firmware upload command and data */ in as102_fw_upload()
179 /* request kernel to locate firmware file: part1 */ in as102_fw_upload()
180 errno = request_firmware(&firmware, fw1, &dev->dev); in as102_fw_upload()
182 pr_err("%s: unable to locate firmware file: %s\n", in as102_fw_upload()
187 /* initiate firmware upload */ in as102_fw_upload()
188 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
190 pr_err("%s: error during firmware upload part1\n", in as102_fw_upload()
195 pr_info("%s: firmware: %s loaded with success\n", in as102_fw_upload()
197 release_firmware(firmware); in as102_fw_upload()
198 firmware = NULL; in as102_fw_upload()
203 /* request kernel to locate firmware file: part2 */ in as102_fw_upload()
204 errno = request_firmware(&firmware, fw2, &dev->dev); in as102_fw_upload()
206 pr_err("%s: unable to locate firmware file: %s\n", in as102_fw_upload()
211 /* initiate firmware upload */ in as102_fw_upload()
212 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
214 pr_err("%s: error during firmware upload part2\n", in as102_fw_upload()
219 pr_info("%s: firmware: %s loaded with success\n", in as102_fw_upload()
223 release_firmware(firmware); in as102_fw_upload()