Lines Matching refs:st

183 	ssize_t st;  in rsxx_cram_read()  local
189 st = rsxx_creg_read(card, CREG_ADD_CRAM + (u32)*ppos, cnt, buf, 1); in rsxx_cram_read()
190 if (!st) in rsxx_cram_read()
191 st = copy_to_user(ubuf, buf, cnt); in rsxx_cram_read()
193 if (st) in rsxx_cram_read()
194 return st; in rsxx_cram_read()
204 ssize_t st; in rsxx_cram_write() local
210 st = copy_from_user(buf, ubuf, cnt); in rsxx_cram_write()
211 if (!st) in rsxx_cram_write()
212 st = rsxx_creg_write(card, CREG_ADD_CRAM + (u32)*ppos, cnt, in rsxx_cram_write()
215 if (st) in rsxx_cram_write()
216 return st; in rsxx_cram_write()
425 int st; in card_state_change() local
447 st = rsxx_get_card_size8(card, &card->size8); in card_state_change()
448 if (st) in card_state_change()
482 int st; in card_event_handler() local
498 st = rsxx_get_card_state(card, &state); in card_event_handler()
499 if (st) { in card_event_handler()
518 int st; in card_shutdown() local
523 st = rsxx_get_card_state(card, &state); in card_shutdown()
524 if (st) in card_shutdown()
525 return st; in card_shutdown()
535 st = rsxx_issue_card_cmd(card, CARD_CMD_SHUTDOWN); in card_shutdown()
536 if (st) in card_shutdown()
537 return st; in card_shutdown()
542 st = rsxx_get_card_state(card, &state); in card_shutdown()
543 if (st) in card_shutdown()
544 return st; in card_shutdown()
558 int st; in rsxx_eeh_frozen() local
574 st = rsxx_eeh_save_issued_dmas(card); in rsxx_eeh_frozen()
575 if (st) in rsxx_eeh_frozen()
576 return st; in rsxx_eeh_frozen()
647 int st; in rsxx_error_detected() local
657 st = rsxx_eeh_frozen(dev); in rsxx_error_detected()
658 if (st) { in rsxx_error_detected()
672 int st; in rsxx_slot_reset() local
677 st = pci_enable_device(dev); in rsxx_slot_reset()
678 if (st) in rsxx_slot_reset()
683 st = rsxx_eeh_fifo_flush_poll(card); in rsxx_slot_reset()
684 if (st) in rsxx_slot_reset()
690 st = rsxx_hw_buffers_init(dev, &card->ctrl[i]); in rsxx_slot_reset()
691 if (st) in rsxx_slot_reset()
699 st = ioread32(card->regmap + ISR); in rsxx_slot_reset()
765 int st; in rsxx_pci_probe() local
779 st = -ENOMEM; in rsxx_pci_probe()
784 st = ida_get_new(&rsxx_disk_ida, &card->disk_id); in rsxx_pci_probe()
786 } while (st == -EAGAIN); in rsxx_pci_probe()
788 if (st) in rsxx_pci_probe()
791 st = pci_enable_device(dev); in rsxx_pci_probe()
792 if (st) in rsxx_pci_probe()
798 st = pci_set_dma_mask(dev, DMA_BIT_MASK(64)); in rsxx_pci_probe()
799 if (st) { in rsxx_pci_probe()
805 st = pci_request_regions(dev, DRIVER_NAME); in rsxx_pci_probe()
806 if (st) { in rsxx_pci_probe()
814 st = -ENOMEM; in rsxx_pci_probe()
821 st = -ENOMEM; in rsxx_pci_probe()
834 st = pci_enable_msi(dev); in rsxx_pci_probe()
835 if (st) in rsxx_pci_probe()
840 st = request_irq(dev->irq, rsxx_isr, IRQF_SHARED, in rsxx_pci_probe()
842 if (st) { in rsxx_pci_probe()
849 st = rsxx_creg_setup(card); in rsxx_pci_probe()
850 if (st) { in rsxx_pci_probe()
859 st = rsxx_compatibility_check(card); in rsxx_pci_probe()
860 if (st) { in rsxx_pci_probe()
863 st = -EINVAL; in rsxx_pci_probe()
868 st = rsxx_load_config(card); in rsxx_pci_probe()
869 if (st) in rsxx_pci_probe()
874 st = rsxx_get_num_targets(card, &card->n_targets); in rsxx_pci_probe()
875 if (st) in rsxx_pci_probe()
881 st = -ENOMEM; in rsxx_pci_probe()
885 st = rsxx_dma_setup(card); in rsxx_pci_probe()
886 if (st) { in rsxx_pci_probe()
901 st = rsxx_setup_dev(card); in rsxx_pci_probe()
902 if (st) in rsxx_pci_probe()
921 st = rsxx_issue_card_cmd(card, CARD_CMD_STARTUP); in rsxx_pci_probe()
922 if (st) in rsxx_pci_probe()
947 st = rsxx_get_card_size8(card, &card->size8); in rsxx_pci_probe()
948 if (st) in rsxx_pci_probe()
954 st = rsxx_get_card_size8(card, &card->size8); in rsxx_pci_probe()
955 if (st) in rsxx_pci_probe()
996 return st; in rsxx_pci_probe()
1003 int st; in rsxx_pci_remove() local
1020 st = card_shutdown(card); in rsxx_pci_remove()
1021 if (st) in rsxx_pci_remove()
1111 int st; in rsxx_core_init() local
1113 st = rsxx_dev_init(); in rsxx_core_init()
1114 if (st) in rsxx_core_init()
1115 return st; in rsxx_core_init()
1117 st = rsxx_dma_init(); in rsxx_core_init()
1118 if (st) in rsxx_core_init()
1121 st = rsxx_creg_init(); in rsxx_core_init()
1122 if (st) in rsxx_core_init()
1132 return st; in rsxx_core_init()