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),
328 sci_change_state(&idev->sm, SCI_DEV_STOPPED);
340 struct sci_base_state_machine *sm = &idev->sm;
341 enum sci_remote_device_states state = sm->current_state_id;
361 sci_change_state(sm, SCI_DEV_STOPPING);
371 sci_change_state(sm, SCI_DEV_STOPPING);
389 sci_change_state(sm, SCI_DEV_STOPPING);
396 struct sci_base_state_machine *sm = &idev->sm;
397 enum sci_remote_device_states state = sm->current_state_id;
419 sci_change_state(sm, SCI_DEV_RESETTING);
426 struct sci_base_state_machine *sm = &idev->sm;
427 enum sci_remote_device_states state = sm->current_state_id;
435 sci_change_state(sm, SCI_DEV_READY);
442 struct sci_base_state_machine *sm = &idev->sm;
443 enum sci_remote_device_states state = sm->current_state_id;
506 sci_change_state(sm, SCI_STP_DEV_NCQ_ERROR);
514 sci_change_state(&idev->sm, SCI_STP_DEV_NCQ_ERROR);
537 struct sci_base_state_machine *sm = &idev->sm;
538 enum sci_remote_device_states state = sm->current_state_id;
564 sci_change_state(&ireq->sm, SCI_REQ_COMPLETED);
571 struct sci_base_state_machine *sm = &idev->sm;
572 enum sci_remote_device_states state = sm->current_state_id;
657 struct sci_base_state_machine *sm = &idev->sm;
658 enum sci_remote_device_states state = sm->current_state_id;
721 sci_change_state(sm, new_state);
757 sci_change_state(&idev->sm, SCI_SMP_DEV_CMD);
793 struct sci_base_state_machine *sm = &idev->sm;
794 enum sci_remote_device_states state = sm->current_state_id;
829 sci_change_state(sm, SCI_STP_DEV_AWAIT_RESET);
831 sci_change_state(sm, SCI_STP_DEV_IDLE);
837 sci_change_state(sm, SCI_SMP_DEV_IDLE);
875 struct sci_base_state_machine *sm = &idev->sm;
876 enum sci_remote_device_states state = sm->current_state_id;
912 sci_change_state(sm, SCI_STP_DEV_CMD);
978 sci_change_state(&idev->sm, SCI_DEV_READY);
989 if (idev->sm.previous_state_id != SCI_STP_DEV_NCQ)
993 static void sci_remote_device_initial_state_enter(struct sci_base_state_machine *sm)
995 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
998 sci_change_state(&idev->sm, SCI_DEV_STOPPED);
1016 struct sci_base_state_machine *sm = &idev->sm;
1017 enum sci_remote_device_states state = sm->current_state_id;
1030 sci_change_state(sm, SCI_DEV_FINAL);
1057 static void sci_remote_device_stopped_state_enter(struct sci_base_state_machine *sm)
1059 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1066 prev_state = idev->sm.previous_state_id;
1073 static void sci_remote_device_starting_state_enter(struct sci_base_state_machine *sm)
1075 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1082 static void sci_remote_device_ready_state_enter(struct sci_base_state_machine *sm)
1084 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1089 sci_change_state(&idev->sm, SCI_STP_DEV_IDLE);
1091 sci_change_state(&idev->sm, SCI_SMP_DEV_IDLE);
1096 static void sci_remote_device_ready_state_exit(struct sci_base_state_machine *sm)
1098 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1109 static void sci_remote_device_resetting_state_enter(struct sci_base_state_machine *sm)
1111 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1120 static void sci_remote_device_resetting_state_exit(struct sci_base_state_machine *sm)
1122 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1131 static void sci_stp_remote_device_ready_idle_substate_enter(struct sci_base_state_machine *sm)
1133 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1148 static void sci_stp_remote_device_ready_cmd_substate_enter(struct sci_base_state_machine *sm)
1150 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1159 static void sci_stp_remote_device_ready_ncq_error_substate_enter(struct sci_base_state_machine *sm)
1161 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1169 static void sci_smp_remote_device_ready_idle_substate_enter(struct sci_base_state_machine *sm)
1171 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1177 static void sci_smp_remote_device_ready_cmd_substate_enter(struct sci_base_state_machine *sm)
1179 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1188 static void sci_smp_remote_device_ready_cmd_substate_exit(struct sci_base_state_machine *sm)
1190 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm);
1253 sci_init_sm(&idev->sm, sci_remote_device_state_table, SCI_DEV_INITIAL);
1454 struct sci_base_state_machine *sm = &idev->sm;
1455 enum sci_remote_device_states state = sm->current_state_id;
1469 sci_change_state(sm, SCI_DEV_STARTING);