Lines Matching refs:sm
298 struct sci_base_state_machine *sm = &iport->sm; in port_state_machine_change() local
299 enum sci_port_states old_state = sm->current_state_id; in port_state_machine_change()
304 sci_change_state(sm, state); in port_state_machine_change()
708 struct sci_base_state_machine *sm = &iport->sm; in sci_port_general_link_up_handler() local
711 if (sm->current_state_id == SCI_PORT_RESETTING) in sci_port_general_link_up_handler()
789 current_state = iport->sm.current_state_id; in port_timeout()
943 static void sci_port_ready_substate_waiting_enter(struct sci_base_state_machine *sm) in sci_port_ready_substate_waiting_enter() argument
945 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_waiting_enter()
959 struct sci_base_state_machine *sm) in scic_sds_port_ready_substate_waiting_exit() argument
961 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in scic_sds_port_ready_substate_waiting_exit()
965 static void sci_port_ready_substate_operational_enter(struct sci_base_state_machine *sm) in sci_port_ready_substate_operational_enter() argument
968 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_operational_enter()
1026 static void sci_port_ready_substate_operational_exit(struct sci_base_state_machine *sm) in sci_port_ready_substate_operational_exit() argument
1028 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_operational_exit()
1045 static void sci_port_ready_substate_configuring_enter(struct sci_base_state_machine *sm) in sci_port_ready_substate_configuring_enter() argument
1047 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_substate_configuring_enter()
1066 state = iport->sm.current_state_id; in sci_port_start()
1131 state = iport->sm.current_state_id; in sci_port_stop()
1156 state = iport->sm.current_state_id; in sci_port_hard_reset()
1207 state = iport->sm.current_state_id; in sci_port_add_phy()
1276 state = iport->sm.current_state_id; in sci_port_remove_phy()
1316 state = iport->sm.current_state_id; in sci_port_link_up()
1359 state = iport->sm.current_state_id; in sci_port_link_down()
1390 state = iport->sm.current_state_id; in sci_port_start_io()
1410 state = iport->sm.current_state_id; in sci_port_complete_io()
1489 static void sci_port_stopped_state_enter(struct sci_base_state_machine *sm) in sci_port_stopped_state_enter() argument
1491 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_stopped_state_enter()
1493 if (iport->sm.previous_state_id == SCI_PORT_STOPPING) { in sci_port_stopped_state_enter()
1502 static void sci_port_stopped_state_exit(struct sci_base_state_machine *sm) in sci_port_stopped_state_exit() argument
1504 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_stopped_state_exit()
1510 static void sci_port_ready_state_enter(struct sci_base_state_machine *sm) in sci_port_ready_state_enter() argument
1512 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_ready_state_enter()
1516 prev_state = iport->sm.previous_state_id; in sci_port_ready_state_enter()
1531 static void sci_port_resetting_state_exit(struct sci_base_state_machine *sm) in sci_port_resetting_state_exit() argument
1533 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_resetting_state_exit()
1538 static void sci_port_stopping_state_exit(struct sci_base_state_machine *sm) in sci_port_stopping_state_exit() argument
1540 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_stopping_state_exit()
1547 static void sci_port_failed_state_enter(struct sci_base_state_machine *sm) in sci_port_failed_state_enter() argument
1549 struct isci_port *iport = container_of(sm, typeof(*iport), sm); in sci_port_failed_state_enter()
1612 sci_init_sm(&iport->sm, sci_port_state_table, SCI_PORT_STOPPED); in sci_port_construct()