Lines Matching refs:rv

524 	int rv = 0;  in mtip_device_reset()  local
530 rv = -EFAULT; in mtip_device_reset()
539 return rv; in mtip_device_reset()
608 int group, tag, bit, reissue, rv; in mtip_handle_tfe() local
680 rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, in mtip_handle_tfe()
683 if (rv) { in mtip_handle_tfe()
880 int rv = IRQ_NONE; in mtip_handle_irq() local
886 rv = IRQ_HANDLED; in mtip_handle_irq()
941 return rv; in mtip_handle_irq()
954 return rv; in mtip_handle_irq()
1104 int rv = 0; in mtip_exec_internal_command() local
1180 if ((rv = wait_for_completion_interruptible_timeout( in mtip_exec_internal_command()
1184 if (rv == -ERESTARTSYS) { /* interrupted */ in mtip_exec_internal_command()
1189 rv = -EINTR; in mtip_exec_internal_command()
1191 } else if (rv == 0) /* timeout */ in mtip_exec_internal_command()
1198 fis->command, rv, timeout); in mtip_exec_internal_command()
1206 rv = -ENXIO; in mtip_exec_internal_command()
1210 rv = -EAGAIN; in mtip_exec_internal_command()
1222 rv = -ENXIO; in mtip_exec_internal_command()
1228 rv = -ENXIO; in mtip_exec_internal_command()
1240 rv = -EIO; in mtip_exec_internal_command()
1255 rv = -ENXIO; in mtip_exec_internal_command()
1258 rv = -EAGAIN; in mtip_exec_internal_command()
1265 if (rv >= 0 && mtip_pause_ncq(port, fis)) { in mtip_exec_internal_command()
1267 return rv; in mtip_exec_internal_command()
1271 return rv; in mtip_exec_internal_command()
1346 int rv = 0; in mtip_get_identify() local
1374 rv = -1; in mtip_get_identify()
1417 rv = -EFAULT; in mtip_get_identify()
1423 return rv; in mtip_get_identify()
1437 int rv; in mtip_standby_immediate() local
1451 rv = mtip_exec_internal_command(port, in mtip_standby_immediate()
1461 if (rv) in mtip_standby_immediate()
1465 return rv; in mtip_standby_immediate()
1556 int rv, i; in mtip_get_smart_attr() local
1576 rv = mtip_get_smart_data(port, port->smart_buf, port->smart_buf_dma); in mtip_get_smart_attr()
1577 if (rv) { in mtip_get_smart_attr()
1579 return rv; in mtip_get_smart_attr()
1592 rv = -EINVAL; in mtip_get_smart_attr()
1595 return rv; in mtip_get_smart_attr()
1613 int i, rv = 0; in mtip_send_trim() local
1668 rv = -EIO; in mtip_send_trim()
1671 return rv; in mtip_send_trim()
1870 int rv = 0, xfer_sz = command[3]; in exec_drive_command() local
1929 rv = -EFAULT; in exec_drive_command()
1950 rv = -EFAULT; in exec_drive_command()
1958 return rv; in exec_drive_command()
1976 unsigned int rv = 0; in implicit_sector() local
1988 rv = 1; in implicit_sector()
1992 rv = 1; in implicit_sector()
1997 rv = 1; in implicit_sector()
2002 rv = 1; in implicit_sector()
2005 return rv; in implicit_sector()
2569 int rv = 0; in mtip_hw_read_device_status() local
2586 rv = -EFAULT; in mtip_hw_read_device_status()
2589 return rv ? rv : *offset; in mtip_hw_read_device_status()
2599 int n, rv = 0; in mtip_hw_read_registers() local
2653 rv = -EFAULT; in mtip_hw_read_registers()
2656 return rv ? rv : *offset; in mtip_hw_read_registers()
2665 int rv = 0; in mtip_hw_read_flags() local
2685 rv = -EFAULT; in mtip_hw_read_flags()
2688 return rv ? rv : *offset; in mtip_hw_read_flags()
3136 int rv; in mtip_hw_get_identify() local
3149 rv = mtip_read_log_page(dd->port, ATA_LOG_SATA_NCQ, in mtip_hw_get_identify()
3152 if (rv) { in mtip_hw_get_identify()
3185 return rv; in mtip_hw_get_identify()
3199 int rv; in mtip_hw_init() local
3207 rv = -EIO; in mtip_hw_init()
3243 rv = mtip_dma_alloc(dd); in mtip_hw_init()
3244 if (rv < 0) in mtip_hw_init()
3268 rv = -ENODEV; in mtip_hw_init()
3276 rv = -EFAULT; in mtip_hw_init()
3285 rv = -EIO; in mtip_hw_init()
3298 rv = devm_request_irq(&dd->pdev->dev, in mtip_hw_init()
3305 if (rv) { in mtip_hw_init()
3319 rv = -EFAULT; in mtip_hw_init()
3323 return rv; in mtip_hw_init()
3342 return rv; in mtip_hw_init()
3347 int rv = 0; in mtip_standby_drive() local
3358 rv = mtip_standby_immediate(dd->port); in mtip_standby_drive()
3359 if (rv) in mtip_standby_drive()
3363 return rv; in mtip_standby_drive()
3926 int rv = 0, wait_for_rebuild = 0; in mtip_block_initialize() local
3935 rv = -EINVAL; in mtip_block_initialize()
3943 rv = -EINVAL; in mtip_block_initialize()
3953 rv = ida_get_new(&rssd_index_ida, &index); in mtip_block_initialize()
3955 } while (rv == -EAGAIN); in mtip_block_initialize()
3957 if (rv) in mtip_block_initialize()
3960 rv = rssd_disk_name_format("rssd", in mtip_block_initialize()
3964 if (rv) in mtip_block_initialize()
3988 rv = blk_mq_alloc_tag_set(&dd->tags); in mtip_block_initialize()
3989 if (rv) { in mtip_block_initialize()
4000 rv = -ENOMEM; in mtip_block_initialize()
4013 rv = -EINVAL; in mtip_block_initialize()
4053 rv = -EIO; in mtip_block_initialize()
4074 return rv; /* service thread created for handling rebuild */ in mtip_block_initialize()
4085 rv = -EFAULT; in mtip_block_initialize()
4090 rv = wait_for_rebuild; in mtip_block_initialize()
4092 return rv; in mtip_block_initialize()
4120 return rv; in mtip_block_initialize()
4384 int rv = 0; in mtip_pci_probe() local
4415 rv = pcim_enable_device(pdev); in mtip_pci_probe()
4416 if (rv < 0) { in mtip_pci_probe()
4422 rv = pcim_iomap_regions(pdev, 1 << MTIP_ABAR, MTIP_DRV_NAME); in mtip_pci_probe()
4423 if (rv < 0) { in mtip_pci_probe()
4429 rv = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); in mtip_pci_probe()
4431 if (rv) { in mtip_pci_probe()
4432 rv = pci_set_consistent_dma_mask(pdev, in mtip_pci_probe()
4434 if (rv) { in mtip_pci_probe()
4457 rv = -ENOMEM; in mtip_pci_probe()
4516 rv = pci_enable_msi(pdev); in mtip_pci_probe()
4517 if (rv) { in mtip_pci_probe()
4526 rv = mtip_block_initialize(dd); in mtip_pci_probe()
4527 if (rv < 0) { in mtip_pci_probe()
4538 if (rv != MTIP_FTL_REBUILD_MAGIC) in mtip_pci_probe()
4541 rv = 0; /* device in rebuild state, return 0 from probe */ in mtip_pci_probe()
4567 return rv; in mtip_pci_probe()
4569 return rv; in mtip_pci_probe()
4644 int rv = 0; in mtip_pci_suspend() local
4656 rv = mtip_block_suspend(dd); in mtip_pci_suspend()
4657 if (rv < 0) { in mtip_pci_suspend()
4660 return rv; in mtip_pci_suspend()
4673 return rv; in mtip_pci_suspend()
4685 int rv = 0; in mtip_pci_resume() local
4702 rv = pcim_enable_device(pdev); in mtip_pci_resume()
4703 if (rv < 0) { in mtip_pci_resume()
4714 rv = mtip_block_resume(dd); in mtip_pci_resume()
4715 if (rv < 0) in mtip_pci_resume()
4721 return rv; in mtip_pci_resume()