Lines Matching refs:ret
153 int usb_pkt_cnt = 0, ret; in download_head() local
173 ret = dfu_write(dfu_get_entity(alt_setting_num), in download_head()
176 if (ret) { in download_head()
178 ret, *cnt); in download_head()
179 return ret; in download_head()
215 int ret; in download_tail() local
232 ret = dfu_write(dfu_entity, transfer_buffer, left, cnt++); in download_tail()
233 if (ret) { in download_tail()
234 pr_err("DFU write failed [%d]: left: %llu", ret, left); in download_tail()
235 return ret; in download_tail()
246 ret = dfu_flush(dfu_entity, transfer_buffer, 0, cnt); in download_tail()
247 if (ret) in download_tail()
250 return ret; in download_tail()
257 int file_type, ret = 0; in process_rqt_download() local
276 ret = rsp->ack; in process_rqt_download()
296 ret = rsp->ack; in process_rqt_download()
311 ret = rsp->ack; in process_rqt_download()
320 ret = -ENOTSUPP; in process_rqt_download()
324 return ret; in process_rqt_download()
330 int ret = -EINVAL; in process_data() local
338 ret = process_rqt_info(rqt); in process_data()
341 ret = process_rqt_cmd(rqt); in process_data()
344 ret = (int) process_rqt_download(rqt); in process_data()
353 return ret; in process_data()
716 int ret; in thor_handle() local
721 ret = thor_rx_data(); in thor_handle()
723 if (ret > 0) { in thor_handle()
724 ret = process_data(); in thor_handle()
726 if (ret == RESET_DONE) in thor_handle()
729 if (ret < 0) in thor_handle()
730 return ret; in thor_handle()