Lines Matching refs:rec
213 struct ihex_record *rec = kmalloc(sizeof(struct ihex_record), in usb6fire_fw_ezusb_upload() local
216 if (!rec) in usb6fire_fw_ezusb_upload()
221 kfree(rec); in usb6fire_fw_ezusb_upload()
226 ret = usb6fire_fw_ihex_init(fw, rec); in usb6fire_fw_ezusb_upload()
228 kfree(rec); in usb6fire_fw_ezusb_upload()
238 kfree(rec); in usb6fire_fw_ezusb_upload()
246 while (usb6fire_fw_ihex_next_record(rec)) { /* write firmware */ in usb6fire_fw_ezusb_upload()
247 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, in usb6fire_fw_ezusb_upload()
248 rec->data, rec->len); in usb6fire_fw_ezusb_upload()
250 kfree(rec); in usb6fire_fw_ezusb_upload()
260 kfree(rec); in usb6fire_fw_ezusb_upload()