Lines Matching refs:ihost

77 	struct isci_host *ihost;  in sciport_to_dev()  local
83 ihost = container_of(table, typeof(*ihost), ports[0]); in sciport_to_dev()
85 return &ihost->pdev->dev; in sciport_to_dev()
159 static void isci_port_bc_change_received(struct isci_host *ihost, in isci_port_bc_change_received() argument
163 dev_dbg(&ihost->pdev->dev, in isci_port_bc_change_received()
319 struct isci_host *ihost = isci_port->owning_controller; in isci_port_hard_reset_complete() local
321 dev_dbg(&ihost->pdev->dev, in isci_port_hard_reset_complete()
333 struct isci_phy *iphy = &ihost->phys[phy_idx]; in isci_port_hard_reset_complete()
339 isci_port_link_down(ihost, iphy, isci_port); in isci_port_hard_reset_complete()
348 wake_up(&ihost->eventq); in isci_port_hard_reset_complete()
365 struct isci_host *ihost = iport->owning_controller; in sci_port_is_valid_phy_assignment() local
366 struct sci_user_parameters *user = &ihost->user_parameters; in sci_port_is_valid_phy_assignment()
490 struct isci_host *ihost = iport->owning_controller; in sci_port_clear_phy() local
493 sci_phy_set_port(iphy, &ihost->ports[SCI_MAX_PORTS]); in sci_port_clear_phy()
574 struct isci_host *ihost = iport->owning_controller; in sci_port_construct_dummy_task() local
577 task_context = &ihost->task_context_table[ISCI_TAG_TCI(tag)]; in sci_port_construct_dummy_task()
594 struct isci_host *ihost = iport->owning_controller; in sci_port_destroy_dummy_resources() local
597 isci_free_tag(ihost, iport->reserved_tag); in sci_port_destroy_dummy_resources()
600 sci_remote_node_table_release_remote_node_index(&ihost->available_remote_nodes, in sci_port_destroy_dummy_resources()
627 struct isci_host *ihost = iport->owning_controller; in sci_port_activate_phy() local
634 sci_controller_clear_invalid_phy(ihost, iphy); in sci_port_activate_phy()
637 isci_port_link_up(ihost, iport, iphy); in sci_port_activate_phy()
643 struct isci_host *ihost = iport->owning_controller; in sci_port_deactivate_phy() local
661 isci_port_link_down(ihost, iphy, iport); in sci_port_deactivate_phy()
666 struct isci_host *ihost = iport->owning_controller; in sci_port_invalid_link_up() local
673 if ((ihost->invalid_phy_mask & (1 << iphy->phy_index)) == 0) { in sci_port_invalid_link_up()
674 ihost->invalid_phy_mask |= 1 << iphy->phy_index; in sci_port_invalid_link_up()
675 dev_warn(&ihost->pdev->dev, "Invalid link up!\n"); in sci_port_invalid_link_up()
766 struct isci_host *ihost = iport->owning_controller; in sci_port_link_detected() local
767 struct isci_port *dst_port = &(ihost->ports[iphy->phy_index]); in sci_port_link_detected()
780 struct isci_host *ihost = iport->owning_controller; in port_timeout() local
784 spin_lock_irqsave(&ihost->scic_lock, flags); in port_timeout()
818 spin_unlock_irqrestore(&ihost->scic_lock, flags); in port_timeout()
887 struct isci_host *ihost = iport->owning_controller; in sci_port_post_dummy_request() local
892 tc = &ihost->task_context_table[ISCI_TAG_TCI(tag)]; in sci_port_post_dummy_request()
899 sci_controller_post_request(ihost, command); in sci_port_post_dummy_request()
912 struct isci_host *ihost = iport->owning_controller; in sci_port_abort_dummy_request() local
917 tc = &ihost->task_context_table[ISCI_TAG_TCI(tag)]; in sci_port_abort_dummy_request()
924 sci_controller_post_request(ihost, command); in sci_port_abort_dummy_request()
969 struct isci_host *ihost = iport->owning_controller; in sci_port_ready_substate_operational_enter() local
971 dev_dbg(&ihost->pdev->dev, "%s: port%d ready\n", in sci_port_ready_substate_operational_enter()
995 struct isci_host *ihost = iport->owning_controller; in sci_port_invalidate_dummy_remote_node() local
1001 rnc = &ihost->remote_node_context_table[rni]; in sci_port_invalidate_dummy_remote_node()
1009 readl(&ihost->smu_registers->interrupt_status); /* flush */ in sci_port_invalidate_dummy_remote_node()
1015 sci_controller_post_request(ihost, command); in sci_port_invalidate_dummy_remote_node()
1029 struct isci_host *ihost = iport->owning_controller; in sci_port_ready_substate_operational_exit() local
1038 dev_dbg(&ihost->pdev->dev, "%s: port%d !ready\n", in sci_port_ready_substate_operational_exit()
1048 struct isci_host *ihost = iport->owning_controller; in sci_port_ready_substate_configuring_enter() local
1051 dev_dbg(&ihost->pdev->dev, "%s: port%d !ready\n", in sci_port_ready_substate_configuring_enter()
1061 struct isci_host *ihost = iport->owning_controller; in sci_port_start() local
1084 &ihost->available_remote_nodes, 1); in sci_port_start()
1096 tag = isci_alloc_tag(ihost); in sci_port_start()
1463 struct isci_host *ihost = iport->owning_controller; in sci_port_post_dummy_remote_node() local
1469 rnc = &ihost->remote_node_context_table[rni]; in sci_port_post_dummy_remote_node()
1475 sci_controller_post_request(ihost, command); in sci_port_post_dummy_remote_node()
1480 readl(&ihost->smu_registers->interrupt_status); /* flush */ in sci_port_post_dummy_remote_node()
1486 sci_controller_post_request(ihost, command); in sci_port_post_dummy_remote_node()
1513 struct isci_host *ihost = iport->owning_controller; in sci_port_ready_state_enter() local
1520 dev_dbg(&ihost->pdev->dev, "%s: port%d !ready\n", in sci_port_ready_state_enter()
1610 struct isci_host *ihost) in sci_port_construct() argument
1621 iport->owning_controller = ihost; in sci_port_construct()
1640 struct isci_host *ihost = iport->owning_controller; in sci_port_broadcast_change_received() local
1643 isci_port_bc_change_received(ihost, iport, iphy); in sci_port_broadcast_change_received()
1646 static void wait_port_reset(struct isci_host *ihost, struct isci_port *iport) in wait_port_reset() argument
1648 wait_event(ihost->eventq, !test_bit(IPORT_RESET_PENDING, &iport->state)); in wait_port_reset()
1651 int isci_port_perform_hard_reset(struct isci_host *ihost, struct isci_port *iport, in isci_port_perform_hard_reset() argument
1658 dev_dbg(&ihost->pdev->dev, "%s: iport = %p\n", in isci_port_perform_hard_reset()
1661 spin_lock_irqsave(&ihost->scic_lock, flags); in isci_port_perform_hard_reset()
1667 spin_unlock_irqrestore(&ihost->scic_lock, flags); in isci_port_perform_hard_reset()
1670 wait_port_reset(ihost, iport); in isci_port_perform_hard_reset()
1672 dev_dbg(&ihost->pdev->dev, in isci_port_perform_hard_reset()
1679 dev_err(&ihost->pdev->dev, in isci_port_perform_hard_reset()
1685 wake_up(&ihost->eventq); in isci_port_perform_hard_reset()
1688 dev_err(&ihost->pdev->dev, in isci_port_perform_hard_reset()
1700 struct isci_host *ihost = dev_to_ihost(dev); in isci_ata_check_ready() local
1705 spin_lock_irqsave(&ihost->scic_lock, flags); in isci_ata_check_ready()
1707 spin_unlock_irqrestore(&ihost->scic_lock, flags); in isci_ata_check_ready()
1724 struct isci_host *ihost = phy->ha->lldd_ha; in isci_port_deformed() local
1735 spin_lock_irqsave(&ihost->scic_lock, flags); in isci_port_deformed()
1740 spin_unlock_irqrestore(&ihost->scic_lock, flags); in isci_port_deformed()
1743 dev_dbg(&ihost->pdev->dev, "%s: port: %ld\n", in isci_port_deformed()
1744 __func__, (long) (iport - &ihost->ports[0])); in isci_port_deformed()
1749 struct isci_host *ihost = phy->ha->lldd_ha; in isci_port_formed() local
1759 wait_for_start(ihost); in isci_port_formed()
1761 spin_lock_irqsave(&ihost->scic_lock, flags); in isci_port_formed()
1763 iport = &ihost->ports[i]; in isci_port_formed()
1767 spin_unlock_irqrestore(&ihost->scic_lock, flags); in isci_port_formed()