Lines Matching refs:sm

238 					 dev_state_name(idev->sm.current_state_id),
241 rnc_state_name(idev->rnc.sm.current_state_id),
271 dev_state_name(idev->sm.current_state_id),
274 rnc_state_name(idev->rnc.sm.current_state_id),
329 sci_change_state(&idev->sm, SCI_DEV_STOPPED);
341 struct sci_base_state_machine *sm = &idev->sm;
342 enum sci_remote_device_states state = sm->current_state_id;
362 sci_change_state(sm, SCI_DEV_STOPPING);
372 sci_change_state(sm, SCI_DEV_STOPPING);
390 sci_change_state(sm, SCI_DEV_STOPPING);
397 struct sci_base_state_machine *sm = &idev->sm;
398 enum sci_remote_device_states state = sm->current_state_id;
420 sci_change_state(sm, SCI_DEV_RESETTING);
427 struct sci_base_state_machine *sm = &idev->sm;
428 enum sci_remote_device_states state = sm->current_state_id;
436 sci_change_state(sm, SCI_DEV_READY);
443 struct sci_base_state_machine *sm = &idev->sm;
444 enum sci_remote_device_states state = sm->current_state_id;
507 sci_change_state(sm, SCI_STP_DEV_NCQ_ERROR);
515 sci_change_state(&idev->sm, SCI_STP_DEV_NCQ_ERROR);
538 struct sci_base_state_machine *sm = &idev->sm;
539 enum sci_remote_device_states state = sm->current_state_id;
565 sci_change_state(&ireq->sm, SCI_REQ_COMPLETED);
572 struct sci_base_state_machine *sm = &idev->sm;
573 enum sci_remote_device_states state = sm->current_state_id;
658 struct sci_base_state_machine *sm = &idev->sm;
659 enum sci_remote_device_states state = sm->current_state_id;
722 sci_change_state(sm, new_state);
758 sci_change_state(&idev->sm, SCI_SMP_DEV_CMD);
794 struct sci_base_state_machine *sm = &idev->sm;
795 enum sci_remote_device_states state = sm->current_state_id;
830 sci_change_state(sm, SCI_STP_DEV_AWAIT_RESET);
832 sci_change_state(sm, SCI_STP_DEV_IDLE);
838 sci_change_state(sm, SCI_SMP_DEV_IDLE);
876 struct sci_base_state_machine *sm = &idev->sm;
877 enum sci_remote_device_states state = sm->current_state_id;
913 sci_change_state(sm, SCI_STP_DEV_CMD);
979 sci_change_state(&idev->sm, SCI_DEV_READY);
990 if (idev->sm.previous_state_id != SCI_STP_DEV_NCQ)
994 static void sci_remote_device_initial_state_enter(struct sci_base_state_machine *sm)
996 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
999 sci_change_state(&idev->sm, SCI_DEV_STOPPED);
1017 struct sci_base_state_machine *sm = &idev->sm;
1018 enum sci_remote_device_states state = sm->current_state_id;
1031 sci_change_state(sm, SCI_DEV_FINAL);
1058 static void sci_remote_device_stopped_state_enter(struct sci_base_state_machine *sm)
1060 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1067 prev_state = idev->sm.previous_state_id;
1074 static void sci_remote_device_starting_state_enter(struct sci_base_state_machine *sm)
1076 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1083 static void sci_remote_device_ready_state_enter(struct sci_base_state_machine *sm)
1085 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1090 sci_change_state(&idev->sm, SCI_STP_DEV_IDLE);
1092 sci_change_state(&idev->sm, SCI_SMP_DEV_IDLE);
1097 static void sci_remote_device_ready_state_exit(struct sci_base_state_machine *sm)
1099 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1110 static void sci_remote_device_resetting_state_enter(struct sci_base_state_machine *sm)
1112 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1121 static void sci_remote_device_resetting_state_exit(struct sci_base_state_machine *sm)
1123 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1132 static void sci_stp_remote_device_ready_idle_substate_enter(struct sci_base_state_machine *sm)
1134 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1149 static void sci_stp_remote_device_ready_cmd_substate_enter(struct sci_base_state_machine *sm)
1151 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1160 static void sci_stp_remote_device_ready_ncq_error_substate_enter(struct sci_base_state_machine *sm)
1162 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1170 static void sci_smp_remote_device_ready_idle_substate_enter(struct sci_base_state_machine *sm)
1172 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1178 static void sci_smp_remote_device_ready_cmd_substate_enter(struct sci_base_state_machine *sm)
1180 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1189 static void sci_smp_remote_device_ready_cmd_substate_exit(struct sci_base_state_machine *sm)
1191 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1254 sci_init_sm(&idev->sm, sci_remote_device_state_table, SCI_DEV_INITIAL);
1455 struct sci_base_state_machine *sm = &idev->sm;
1456 enum sci_remote_device_states state = sm->current_state_id;
1470 sci_change_state(sm, SCI_DEV_STARTING);