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