Lines Matching refs:rv
528 int rv = 0; in mtip_device_reset() local
534 rv = -EFAULT; in mtip_device_reset()
543 return rv; in mtip_device_reset()
791 int group, tag, bit, reissue, rv; in mtip_handle_tfe() local
872 rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, in mtip_handle_tfe()
875 if (rv) { in mtip_handle_tfe()
1096 int rv = IRQ_NONE; in mtip_handle_irq() local
1102 rv = IRQ_HANDLED; in mtip_handle_irq()
1154 return rv; in mtip_handle_irq()
1167 return rv; in mtip_handle_irq()
1302 int rv = 0, ready2go = 1; in mtip_exec_internal_command() local
1386 if (rv == -ERESTARTSYS) { /* interrupted */ in mtip_exec_internal_command()
1390 rv = -EINTR; in mtip_exec_internal_command()
1392 } else if (rv == 0) /* timeout */ in mtip_exec_internal_command()
1399 fis->command, rv, timeout); in mtip_exec_internal_command()
1407 rv = -ENXIO; in mtip_exec_internal_command()
1411 rv = -EAGAIN; in mtip_exec_internal_command()
1423 rv = -ENXIO; in mtip_exec_internal_command()
1429 rv = -ENXIO; in mtip_exec_internal_command()
1441 rv = -EIO; in mtip_exec_internal_command()
1456 rv = -ENXIO; in mtip_exec_internal_command()
1459 rv = -EAGAIN; in mtip_exec_internal_command()
1466 if (rv >= 0 && mtip_pause_ncq(port, fis)) { in mtip_exec_internal_command()
1468 return rv; in mtip_exec_internal_command()
1473 return rv; in mtip_exec_internal_command()
1517 int rv = 0; in mtip_get_identify() local
1545 rv = -1; in mtip_get_identify()
1582 rv = -EFAULT; in mtip_get_identify()
1588 return rv; in mtip_get_identify()
1602 int rv; in mtip_standby_immediate() local
1613 rv = mtip_exec_internal_command(port, in mtip_standby_immediate()
1623 if (rv) in mtip_standby_immediate()
1627 return rv; in mtip_standby_immediate()
1718 int rv, i; in mtip_get_smart_attr() local
1738 rv = mtip_get_smart_data(port, port->smart_buf, port->smart_buf_dma); in mtip_get_smart_attr()
1739 if (rv) { in mtip_get_smart_attr()
1741 return rv; in mtip_get_smart_attr()
1754 rv = -EINVAL; in mtip_get_smart_attr()
1757 return rv; in mtip_get_smart_attr()
1775 int i, rv = 0; in mtip_send_trim() local
1830 rv = -EIO; in mtip_send_trim()
1833 return rv; in mtip_send_trim()
2025 int rv = 0, xfer_sz = command[3]; in exec_drive_command() local
2081 rv = -EFAULT; in exec_drive_command()
2102 rv = -EFAULT; in exec_drive_command()
2110 return rv; in exec_drive_command()
2128 unsigned int rv = 0; in implicit_sector() local
2140 rv = 1; in implicit_sector()
2144 rv = 1; in implicit_sector()
2149 rv = 1; in implicit_sector()
2154 rv = 1; in implicit_sector()
2157 return rv; in implicit_sector()
3228 int rv; in mtip_hw_init() local
3238 rv = -EIO; in mtip_hw_init()
3284 rv = -ENOMEM; in mtip_hw_init()
3374 rv = -ENODEV; in mtip_hw_init()
3382 rv = -EFAULT; in mtip_hw_init()
3391 rv = -EIO; in mtip_hw_init()
3404 rv = devm_request_irq(&dd->pdev->dev, in mtip_hw_init()
3411 if (rv) { in mtip_hw_init()
3432 rv = -EFAULT; in mtip_hw_init()
3437 rv = -EFAULT; in mtip_hw_init()
3449 rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, in mtip_hw_init()
3452 if (rv) { in mtip_hw_init()
3484 return rv; in mtip_hw_init()
3509 return rv; in mtip_hw_init()
3960 int rv = 0, wait_for_rebuild = 0; in mtip_block_initialize() local
3974 rv = -EINVAL; in mtip_block_initialize()
3982 rv = -EINVAL; in mtip_block_initialize()
3992 rv = ida_get_new(&rssd_index_ida, &index); in mtip_block_initialize()
3994 } while (rv == -EAGAIN); in mtip_block_initialize()
3996 if (rv) in mtip_block_initialize()
3999 rv = rssd_disk_name_format("rssd", in mtip_block_initialize()
4003 if (rv) in mtip_block_initialize()
4026 rv = -ENOMEM; in mtip_block_initialize()
4064 rv = -EIO; in mtip_block_initialize()
4085 return rv; /* service thread created for handling rebuild */ in mtip_block_initialize()
4096 rv = -EFAULT; in mtip_block_initialize()
4101 rv = wait_for_rebuild; in mtip_block_initialize()
4103 return rv; in mtip_block_initialize()
4127 return rv; in mtip_block_initialize()
4299 int rv = 0; in mtip_pci_probe() local
4330 rv = pcim_enable_device(pdev); in mtip_pci_probe()
4331 if (rv < 0) { in mtip_pci_probe()
4337 rv = pcim_iomap_regions(pdev, 1 << MTIP_ABAR, MTIP_DRV_NAME); in mtip_pci_probe()
4338 if (rv < 0) { in mtip_pci_probe()
4344 rv = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); in mtip_pci_probe()
4346 if (rv) { in mtip_pci_probe()
4347 rv = pci_set_consistent_dma_mask(pdev, in mtip_pci_probe()
4349 if (rv) { in mtip_pci_probe()
4372 rv = -ENOMEM; in mtip_pci_probe()
4431 rv = pci_enable_msi(pdev); in mtip_pci_probe()
4432 if (rv) { in mtip_pci_probe()
4439 rv = mtip_block_initialize(dd); in mtip_pci_probe()
4440 if (rv < 0) { in mtip_pci_probe()
4451 if (rv != MTIP_FTL_REBUILD_MAGIC) in mtip_pci_probe()
4454 rv = 0; /* device in rebuild state, return 0 from probe */ in mtip_pci_probe()
4478 return rv; in mtip_pci_probe()
4480 return rv; in mtip_pci_probe()
4545 int rv = 0; in mtip_pci_suspend() local
4557 rv = mtip_block_suspend(dd); in mtip_pci_suspend()
4558 if (rv < 0) { in mtip_pci_suspend()
4561 return rv; in mtip_pci_suspend()
4574 return rv; in mtip_pci_suspend()
4586 int rv = 0; in mtip_pci_resume() local
4603 rv = pcim_enable_device(pdev); in mtip_pci_resume()
4604 if (rv < 0) { in mtip_pci_resume()
4615 rv = mtip_block_resume(dd); in mtip_pci_resume()
4616 if (rv < 0) in mtip_pci_resume()
4622 return rv; in mtip_pci_resume()