Lines Matching refs:result

329 	int result;
334 result = sddr09_send_scsi_command(us, command, 6);
336 usb_stor_dbg(us, "sddr09_test_unit_ready returns %d\n", result);
338 return result;
350 int result; in sddr09_request_sense() local
357 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense()
358 if (result) in sddr09_request_sense()
359 return result; in sddr09_request_sense()
361 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in sddr09_request_sense()
363 return (result == USB_STOR_XFER_GOOD ? 0 : -EIO); in sddr09_request_sense()
394 int result; in sddr09_readX() local
409 result = sddr09_send_scsi_command(us, command, 12); in sddr09_readX()
411 if (result) { in sddr09_readX()
413 x, result); in sddr09_readX()
414 return result; in sddr09_readX()
417 result = usb_stor_bulk_transfer_sg(us, us->recv_bulk_pipe, in sddr09_readX()
420 if (result != USB_STOR_XFER_GOOD) { in sddr09_readX()
422 x, result); in sddr09_readX()
524 int result; in sddr09_erase() local
536 result = sddr09_send_scsi_command(us, command, 12); in sddr09_erase()
538 if (result) in sddr09_erase()
540 result); in sddr09_erase()
542 return result; in sddr09_erase()
576 int result; in sddr09_writeX() local
594 result = sddr09_send_scsi_command(us, command, 12); in sddr09_writeX()
596 if (result) { in sddr09_writeX()
598 result); in sddr09_writeX()
599 return result; in sddr09_writeX()
602 result = usb_stor_bulk_transfer_sg(us, us->send_bulk_pipe, in sddr09_writeX()
605 if (result != USB_STOR_XFER_GOOD) { in sddr09_writeX()
607 result); in sddr09_writeX()
638 int result, bulklen, nsg, ct;
672 result = sddr09_send_scsi_command(us, command, 4*nsg+3);
674 if (result) {
676 result);
677 return result;
684 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe,
687 if (result != USB_STOR_XFER_GOOD) {
689 result);
713 int result; in sddr09_read_status() local
721 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_status()
722 if (result) in sddr09_read_status()
723 return result; in sddr09_read_status()
725 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in sddr09_read_status()
728 return (result == USB_STOR_XFER_GOOD ? 0 : -EIO); in sddr09_read_status()
742 int result; in sddr09_read_data() local
763 result = 0; in sddr09_read_data()
777 result = -EIO; in sddr09_read_data()
805 result = sddr09_read20(us, address>>1, in sddr09_read_data()
807 if (result) in sddr09_read_data()
821 return result; in sddr09_read_data()
861 int i, result; in sddr09_write_lba() local
892 result = sddr09_read22(us, address>>1, info->blocksize, in sddr09_write_lba()
894 if (result) in sddr09_write_lba()
895 return result; in sddr09_write_lba()
932 result = sddr09_write_inplace(us, address>>1, info->blocksize, in sddr09_write_lba()
935 usb_stor_dbg(us, "sddr09_write_inplace returns %d\n", result); in sddr09_write_lba()
954 return result; in sddr09_write_lba()
969 int result; in sddr09_write_data() local
1007 result = 0; in sddr09_write_data()
1022 result = -EIO; in sddr09_write_data()
1030 result = sddr09_write_lba(us, lba, page, pages, in sddr09_write_data()
1032 if (result) in sddr09_write_data()
1043 return result; in sddr09_write_data()
1074 int result, i; in sddr09_read_deviceID() local
1080 result = sddr09_send_scsi_command(us, command, 12); in sddr09_read_deviceID()
1081 if (result) in sddr09_read_deviceID()
1082 return result; in sddr09_read_deviceID()
1084 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in sddr09_read_deviceID()
1090 return (result == USB_STOR_XFER_GOOD ? 0 : -EIO); in sddr09_read_deviceID()
1095 int result; in sddr09_get_wp() local
1099 result = sddr09_read_status(us, &status); in sddr09_get_wp()
1100 if (result) { in sddr09_get_wp()
1102 return result; in sddr09_get_wp()
1141 int result; in sddr09_get_cardinfo() local
1145 result = sddr09_read_deviceID(us, deviceID); in sddr09_get_cardinfo()
1147 if (result) { in sddr09_get_cardinfo()
1148 usb_stor_dbg(us, "Result of read_deviceID is %d\n", result); in sddr09_get_cardinfo()
1201 int i, j, result; in sddr09_read_map() local
1226 result = -1; in sddr09_read_map()
1240 result = -1; in sddr09_read_map()
1258 result = sddr09_read_control( in sddr09_read_map()
1262 if (result) { in sddr09_read_map()
1263 result = -1; in sddr09_read_map()
1386 result = 0; in sddr09_read_map()
1389 if (result != 0) { in sddr09_read_map()
1396 return result; in sddr09_read_map()
1412 int result; in sddr09_common_init() local
1421 result = usb_reset_configuration(us->pusb_dev); in sddr09_common_init()
1422 usb_stor_dbg(us, "Result of usb_reset_configuration is %d\n", result); in sddr09_common_init()
1423 if (result == -EPIPE) { in sddr09_common_init()
1425 } else if (result != 0) { in sddr09_common_init()
1448 int result; in usb_stor_sddr09_dpcm_init() local
1451 result = sddr09_common_init(us); in usb_stor_sddr09_dpcm_init()
1452 if (result) in usb_stor_sddr09_dpcm_init()
1453 return result; in usb_stor_sddr09_dpcm_init()
1455 result = sddr09_send_command(us, 0x01, USB_DIR_IN, data, 2); in usb_stor_sddr09_dpcm_init()
1456 if (result) { in usb_stor_sddr09_dpcm_init()
1458 return result; in usb_stor_sddr09_dpcm_init()
1464 result = sddr09_send_command(us, 0x08, USB_DIR_IN, data, 2); in usb_stor_sddr09_dpcm_init()
1465 if (result) { in usb_stor_sddr09_dpcm_init()
1467 return result; in usb_stor_sddr09_dpcm_init()
1473 result = sddr09_request_sense(us, data, 18); in usb_stor_sddr09_dpcm_init()
1474 if (result == 0 && data[2] != 0) { in usb_stor_sddr09_dpcm_init()
1541 int result, i; in sddr09_transport() local
1666 result = sddr09_read_data(us, page, pages); in sddr09_transport()
1667 return (result == 0 ? USB_STOR_TRANSPORT_GOOD : in sddr09_transport()
1681 result = sddr09_write_data(us, page, pages); in sddr09_transport()
1682 return (result == 0 ? USB_STOR_TRANSPORT_GOOD : in sddr09_transport()
1709 result = sddr09_send_scsi_command(us, srb->cmnd, 12); in sddr09_transport()
1710 if (result) { in sddr09_transport()
1712 result); in sddr09_transport()
1729 result = usb_stor_bulk_srb(us, pipe, srb); in sddr09_transport()
1731 return (result == USB_STOR_XFER_GOOD ? in sddr09_transport()
1752 int result; in sddr09_probe() local
1754 result = usb_stor_probe1(&us, intf, id, in sddr09_probe()
1757 if (result) in sddr09_probe()
1758 return result; in sddr09_probe()
1772 result = usb_stor_probe2(us); in sddr09_probe()
1773 return result; in sddr09_probe()