*/
static void scic_sds_phy_starting_initial_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy, SCIC_SDS_PHY_STARTING_SUBSTATE_INITIAL);
*/
static void scic_sds_phy_starting_await_ossp_en_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy, SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_OSSP_EN
static void scic_sds_phy_starting_await_sas_speed_en_substate_enter(
void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy, SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SAS_SPEED_EN
*/
static void scic_sds_phy_starting_await_iaf_uf_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy, SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_IAF_UF
*/
static void scic_sds_phy_starting_await_sas_power_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy, SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SAS_POWER
*/
static void scic_sds_phy_starting_await_sas_power_substate_exit(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_controller_power_control_queue_remove(
scic_sds_phy_get_controller(sci_phy), sci_phy
*/
static void scic_sds_phy_starting_await_sata_power_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy, SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SATA_POWER
*/
static void scic_sds_phy_starting_await_sata_power_substate_exit(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_controller_power_control_queue_remove(
scic_sds_phy_get_controller(sci_phy),
*/
static void scic_sds_phy_starting_await_sata_phy_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy,
static inline void scic_sds_phy_starting_await_sata_phy_substate_exit(
void *object)
{
- struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
isci_timer_stop(sci_phy->sata_timeout_timer);
}
*/
static void scic_sds_phy_starting_await_sata_speed_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy,
static inline void scic_sds_phy_starting_await_sata_speed_substate_exit(
void *object)
{
- struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
isci_timer_stop(sci_phy->sata_timeout_timer);
}
static void scic_sds_phy_starting_await_sig_fis_uf_substate_enter(void *object)
{
bool continue_to_ready_state;
- struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(
sci_phy,
static inline void scic_sds_phy_starting_await_sig_fis_uf_substate_exit(
void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
isci_timer_stop(sci_phy->sata_timeout_timer);
}
*/
static void scic_sds_phy_starting_final_substate_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = container_of(object, typeof(*sci_phy), parent);
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_starting_substate_handlers(sci_phy,
SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL);
*/
static void scic_sds_phy_initial_state_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_base_state_handlers(sci_phy, SCI_BASE_PHY_STATE_INITIAL);
}
*/
static void scic_sds_phy_stopped_state_enter(void *object)
{
- struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
struct scic_sds_controller *scic = scic_sds_phy_get_controller(sci_phy);
struct isci_host *ihost = scic->ihost;
- sci_phy = (struct scic_sds_phy *)object;
-
/*
* @todo We need to get to the controller to place this PE in a
* reset state
*/
static void scic_sds_phy_starting_state_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_base_state_handlers(sci_phy, SCI_BASE_PHY_STATE_STARTING);
*/
static void scic_sds_phy_ready_state_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_base_state_handlers(sci_phy, SCI_BASE_PHY_STATE_READY);
*/
static void scic_sds_phy_ready_state_exit(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_suspend(sci_phy);
}
*/
static void scic_sds_phy_resetting_state_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_base_state_handlers(sci_phy, SCI_BASE_PHY_STATE_RESETTING);
*/
static void scic_sds_phy_final_state_enter(void *object)
{
- struct scic_sds_phy *sci_phy;
-
- sci_phy = (struct scic_sds_phy *)object;
+ struct scic_sds_phy *sci_phy = object;
scic_sds_phy_set_base_state_handlers(sci_phy, SCI_BASE_PHY_STATE_FINAL);
struct scic_sds_port *owning_port, u8 phy_index)
{
- sci_phy->parent.private = NULL;
sci_base_state_machine_construct(&sci_phy->state_machine,
- &sci_phy->parent,
+ sci_phy,
scic_sds_phy_state_table,
SCI_BASE_PHY_STATE_INITIAL);
/* Initialize the the substate machines */
sci_base_state_machine_construct(&sci_phy->starting_substate_machine,
- &sci_phy->parent,
+ sci_phy,
scic_sds_phy_starting_substates,
SCIC_SDS_PHY_STARTING_SUBSTATE_INITIAL);
}