Lines Matching refs:sm
238 dev_state_name(idev->sm.current_state_id), in isci_remote_device_terminate_requests()
241 rnc_state_name(idev->rnc.sm.current_state_id), in isci_remote_device_terminate_requests()
271 dev_state_name(idev->sm.current_state_id), in isci_remote_device_terminate_requests()
274 rnc_state_name(idev->rnc.sm.current_state_id), in isci_remote_device_terminate_requests()
328 sci_change_state(&idev->sm, SCI_DEV_STOPPED); in rnc_destruct_done()
340 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_stop() local
341 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_stop()
361 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
371 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
389 sci_change_state(sm, SCI_DEV_STOPPING); in sci_remote_device_stop()
396 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_reset() local
397 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_reset()
419 sci_change_state(sm, SCI_DEV_RESETTING); in sci_remote_device_reset()
426 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_reset_complete() local
427 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_reset_complete()
435 sci_change_state(sm, SCI_DEV_READY); in sci_remote_device_reset_complete()
442 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_frame_handler() local
443 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_frame_handler()
506 sci_change_state(sm, SCI_STP_DEV_NCQ_ERROR); in sci_remote_device_frame_handler()
514 sci_change_state(&idev->sm, SCI_STP_DEV_NCQ_ERROR); in sci_remote_device_frame_handler()
537 struct sci_base_state_machine *sm = &idev->sm; in is_remote_device_ready() local
538 enum sci_remote_device_states state = sm->current_state_id; in is_remote_device_ready()
564 sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); in atapi_remote_device_resume_done()
571 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_event_handler() local
572 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_event_handler()
657 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_start_io() local
658 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_start_io()
721 sci_change_state(sm, new_state); in sci_remote_device_start_io()
757 sci_change_state(&idev->sm, SCI_SMP_DEV_CMD); in sci_remote_device_start_io()
793 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_complete_io() local
794 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_complete_io()
829 sci_change_state(sm, SCI_STP_DEV_AWAIT_RESET); in sci_remote_device_complete_io()
831 sci_change_state(sm, SCI_STP_DEV_IDLE); in sci_remote_device_complete_io()
837 sci_change_state(sm, SCI_SMP_DEV_IDLE); in sci_remote_device_complete_io()
875 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_start_task() local
876 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_start_task()
912 sci_change_state(sm, SCI_STP_DEV_CMD); in sci_remote_device_start_task()
978 sci_change_state(&idev->sm, SCI_DEV_READY); in remote_device_resume_done()
989 if (idev->sm.previous_state_id != SCI_STP_DEV_NCQ) in sci_stp_remote_device_ready_idle_substate_resume_complete_handler()
993 static void sci_remote_device_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_device_initial_state_enter() argument
995 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_initial_state_enter()
998 sci_change_state(&idev->sm, SCI_DEV_STOPPED); in sci_remote_device_initial_state_enter()
1016 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_destruct() local
1017 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_destruct()
1030 sci_change_state(sm, SCI_DEV_FINAL); in sci_remote_device_destruct()
1057 static void sci_remote_device_stopped_state_enter(struct sci_base_state_machine *sm) in sci_remote_device_stopped_state_enter() argument
1059 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_stopped_state_enter()
1066 prev_state = idev->sm.previous_state_id; in sci_remote_device_stopped_state_enter()
1073 static void sci_remote_device_starting_state_enter(struct sci_base_state_machine *sm) in sci_remote_device_starting_state_enter() argument
1075 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_starting_state_enter()
1082 static void sci_remote_device_ready_state_enter(struct sci_base_state_machine *sm) in sci_remote_device_ready_state_enter() argument
1084 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_ready_state_enter()
1089 sci_change_state(&idev->sm, SCI_STP_DEV_IDLE); in sci_remote_device_ready_state_enter()
1091 sci_change_state(&idev->sm, SCI_SMP_DEV_IDLE); in sci_remote_device_ready_state_enter()
1096 static void sci_remote_device_ready_state_exit(struct sci_base_state_machine *sm) in sci_remote_device_ready_state_exit() argument
1098 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_ready_state_exit()
1109 static void sci_remote_device_resetting_state_enter(struct sci_base_state_machine *sm) in sci_remote_device_resetting_state_enter() argument
1111 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_resetting_state_enter()
1120 static void sci_remote_device_resetting_state_exit(struct sci_base_state_machine *sm) in sci_remote_device_resetting_state_exit() argument
1122 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_remote_device_resetting_state_exit()
1131 static void sci_stp_remote_device_ready_idle_substate_enter(struct sci_base_state_machine *sm) in sci_stp_remote_device_ready_idle_substate_enter() argument
1133 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_stp_remote_device_ready_idle_substate_enter()
1148 static void sci_stp_remote_device_ready_cmd_substate_enter(struct sci_base_state_machine *sm) in sci_stp_remote_device_ready_cmd_substate_enter() argument
1150 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_stp_remote_device_ready_cmd_substate_enter()
1159 static void sci_stp_remote_device_ready_ncq_error_substate_enter(struct sci_base_state_machine *sm) in sci_stp_remote_device_ready_ncq_error_substate_enter() argument
1161 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_stp_remote_device_ready_ncq_error_substate_enter()
1169 static void sci_smp_remote_device_ready_idle_substate_enter(struct sci_base_state_machine *sm) in sci_smp_remote_device_ready_idle_substate_enter() argument
1171 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_smp_remote_device_ready_idle_substate_enter()
1177 static void sci_smp_remote_device_ready_cmd_substate_enter(struct sci_base_state_machine *sm) in sci_smp_remote_device_ready_cmd_substate_enter() argument
1179 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_smp_remote_device_ready_cmd_substate_enter()
1188 static void sci_smp_remote_device_ready_cmd_substate_exit(struct sci_base_state_machine *sm) in sci_smp_remote_device_ready_cmd_substate_exit() argument
1190 struct isci_remote_device *idev = container_of(sm, typeof(*idev), sm); in sci_smp_remote_device_ready_cmd_substate_exit()
1253 sci_init_sm(&idev->sm, sci_remote_device_state_table, SCI_DEV_INITIAL); in sci_remote_device_construct()
1454 struct sci_base_state_machine *sm = &idev->sm; in sci_remote_device_start() local
1455 enum sci_remote_device_states state = sm->current_state_id; in sci_remote_device_start()
1469 sci_change_state(sm, SCI_DEV_STARTING); in sci_remote_device_start()