Lines Matching refs:fib
696 struct fib *fib; in aac_eh_abort() local
707 fib = &aac->fibs[count]; in aac_eh_abort()
708 if (*(u8 *)fib->hw_fib_va != 0 && in aac_eh_abort()
709 (fib->flags & FIB_CONTEXT_FLAG_NATIVE_HBA) && in aac_eh_abort()
710 (fib->callback_data == cmd)) { in aac_eh_abort()
719 fib = aac_fib_alloc(aac); in aac_eh_abort()
720 if (!fib) in aac_eh_abort()
723 tmf = (struct aac_hba_tm_req *)fib->hw_fib_va; in aac_eh_abort()
729 address = (u64)fib->hw_error_pa; in aac_eh_abort()
734 fib->hbacmd_size = sizeof(*tmf); in aac_eh_abort()
737 status = aac_hba_send(HBA_IU_TYPE_SCSI_TM_REQ, fib, in aac_eh_abort()
741 aac_fib_complete(fib); in aac_eh_abort()
742 aac_fib_free(fib); in aac_eh_abort()
780 struct fib *fib = &aac->fibs[count]; in aac_eh_abort() local
782 if (fib->hw_fib_va->header.XferState && in aac_eh_abort()
783 (fib->flags & FIB_CONTEXT_FLAG) && in aac_eh_abort()
784 (fib->callback_data == cmd)) { in aac_eh_abort()
785 fib->flags |= in aac_eh_abort()
802 struct fib *fib = &aac->fibs[count]; in aac_eh_abort() local
804 command = fib->callback_data; in aac_eh_abort()
806 if ((fib->hw_fib_va->header.XferState & in aac_eh_abort()
809 (fib->flags & FIB_CONTEXT_FLAG) && in aac_eh_abort()
812 fib->flags |= in aac_eh_abort()
827 struct fib *fib, u64 tmf_lun) in aac_eh_tmf_lun_reset_fib() argument
833 tmf = (struct aac_hba_tm_req *)fib->hw_fib_va; in aac_eh_tmf_lun_reset_fib()
839 address = (u64)fib->hw_error_pa; in aac_eh_tmf_lun_reset_fib()
845 fib->hbacmd_size = sizeof(*tmf); in aac_eh_tmf_lun_reset_fib()
851 struct fib *fib) in aac_eh_tmf_hard_reset_fib() argument
857 rst = (struct aac_hba_reset_req *)fib->hw_fib_va; in aac_eh_tmf_hard_reset_fib()
861 address = (u64)fib->hw_error_pa; in aac_eh_tmf_hard_reset_fib()
865 fib->hbacmd_size = sizeof(*rst); in aac_eh_tmf_hard_reset_fib()
870 static void aac_tmf_callback(void *context, struct fib *fibptr) in aac_tmf_callback()
910 struct fib *fib; in aac_eh_dev_reset() local
930 fib = aac_fib_alloc(aac); in aac_eh_dev_reset()
931 if (!fib) in aac_eh_dev_reset()
935 command = aac_eh_tmf_lun_reset_fib(info, fib, dev->lun); in aac_eh_dev_reset()
939 status = aac_hba_send(command, fib, in aac_eh_dev_reset()
944 aac_fib_complete(fib); in aac_eh_dev_reset()
945 aac_fib_free(fib); in aac_eh_dev_reset()
974 struct fib *fib; in aac_eh_target_reset() local
993 fib = aac_fib_alloc(aac); in aac_eh_target_reset()
994 if (!fib) in aac_eh_target_reset()
999 command = aac_eh_tmf_hard_reset_fib(info, fib); in aac_eh_target_reset()
1003 status = aac_hba_send(command, fib, in aac_eh_target_reset()
1009 aac_fib_complete(fib); in aac_eh_target_reset()
1010 aac_fib_free(fib); in aac_eh_target_reset()
1044 struct fib *fib = &aac->fibs[count]; in aac_eh_bus_reset() local
1046 if (fib->hw_fib_va->header.XferState && in aac_eh_bus_reset()
1047 (fib->flags & FIB_CONTEXT_FLAG) && in aac_eh_bus_reset()
1048 (fib->flags & FIB_CONTEXT_FLAG_SCSI_CMD)) { in aac_eh_bus_reset()
1052 cmd = (struct scsi_cmnd *)fib->callback_data; in aac_eh_bus_reset()
1060 fib->flags |= FIB_CONTEXT_FLAG_EH_RESET; in aac_eh_bus_reset()
1525 struct fib *fib = &aac->fibs[i]; in __aac_shutdown() local
1526 if (!(fib->hw_fib_va->header.XferState & cpu_to_le32(NoResponseExpected | Async)) && in __aac_shutdown()
1527 (fib->hw_fib_va->header.XferState & cpu_to_le32(ResponseExpected))) in __aac_shutdown()
1528 complete(&fib->event_wait); in __aac_shutdown()
1664 sizeof(struct fib), in aac_probe_one()