Lines Matching refs:errno
105 int total_read_bytes = 0, errno = 0; in as102_firmware_upload() local
134 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
137 if (errno < 0) in as102_firmware_upload()
149 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
154 if (errno < 0) in as102_firmware_upload()
161 return (errno == 0) ? total_read_bytes : errno; in as102_firmware_upload()
166 int errno = -EFAULT; in as102_fw_upload() local
184 errno = -ENOMEM; in as102_fw_upload()
189 errno = request_firmware(&firmware, fw1, &dev->dev); in as102_fw_upload()
190 if (errno < 0) { in as102_fw_upload()
197 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
198 if (errno < 0) { in as102_fw_upload()
212 errno = request_firmware(&firmware, fw2, &dev->dev); in as102_fw_upload()
213 if (errno < 0) { in as102_fw_upload()
220 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
221 if (errno < 0) { in as102_fw_upload()
233 return errno; in as102_fw_upload()