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