Lines Matching refs:result
160 int result; in freecom_readdata() local
170 result = usb_stor_bulk_transfer_buf (us, opipe, fxfr, in freecom_readdata()
172 if (result != USB_STOR_XFER_GOOD) { in freecom_readdata()
179 result = usb_stor_bulk_srb(us, ipipe, srb); in freecom_readdata()
182 if (result > USB_STOR_XFER_SHORT) in freecom_readdata()
193 int result; in freecom_writedata() local
203 result = usb_stor_bulk_transfer_buf (us, opipe, fxfr, in freecom_writedata()
205 if (result != USB_STOR_XFER_GOOD) { in freecom_writedata()
212 result = usb_stor_bulk_srb(us, opipe, srb); in freecom_writedata()
215 if (result > USB_STOR_XFER_SHORT) in freecom_writedata()
229 int result; in freecom_transport() local
251 result = usb_stor_bulk_transfer_buf (us, opipe, fcb, in freecom_transport()
257 if (result != USB_STOR_XFER_GOOD) { in freecom_transport()
264 result = usb_stor_bulk_transfer_buf (us, ipipe, fst, in freecom_transport()
266 usb_stor_dbg(us, "foo Status result %d %u\n", result, partial); in freecom_transport()
267 if (result != USB_STOR_XFER_GOOD) in freecom_transport()
291 result = usb_stor_bulk_transfer_buf (us, opipe, fcb, in freecom_transport()
298 if (result != USB_STOR_XFER_GOOD) { in freecom_transport()
304 result = usb_stor_bulk_transfer_buf (us, ipipe, fst, in freecom_transport()
307 usb_stor_dbg(us, "bar Status result %d %u\n", result, partial); in freecom_transport()
308 if (result != USB_STOR_XFER_GOOD) in freecom_transport()
361 result = freecom_readdata (srb, us, ipipe, opipe, length); in freecom_transport()
362 if (result != USB_STOR_TRANSPORT_GOOD) in freecom_transport()
363 return result; in freecom_transport()
366 result = usb_stor_bulk_transfer_buf (us, ipipe, fst, in freecom_transport()
370 if (partial != 4 || result > USB_STOR_XFER_SHORT) in freecom_transport()
390 result = freecom_writedata (srb, us, ipipe, opipe, length); in freecom_transport()
391 if (result != USB_STOR_TRANSPORT_GOOD) in freecom_transport()
392 return result; in freecom_transport()
395 result = usb_stor_bulk_transfer_buf (us, ipipe, fst, in freecom_transport()
398 if (partial != 4 || result > USB_STOR_XFER_SHORT) in freecom_transport()
431 int result; in init_freecom() local
438 result = usb_stor_control_msg(us, us->recv_ctrl_pipe, in init_freecom()
450 result = usb_stor_control_msg(us, us->send_ctrl_pipe, in init_freecom()
452 usb_stor_dbg(us, "result from activate reset is %d\n", result); in init_freecom()
458 result = usb_stor_control_msg(us, us->send_ctrl_pipe, in init_freecom()
460 usb_stor_dbg(us, "result from clear reset is %d\n", result); in init_freecom()
535 int result; in freecom_probe() local
537 result = usb_stor_probe1(&us, intf, id, in freecom_probe()
540 if (result) in freecom_probe()
541 return result; in freecom_probe()
548 result = usb_stor_probe2(us); in freecom_probe()
549 return result; in freecom_probe()