iphy              313 drivers/scsi/isci/host.c 	struct isci_phy *iphy;
iphy              334 drivers/scsi/isci/host.c 		iphy = &ihost->phys[index];
iphy              335 drivers/scsi/isci/host.c 		result = sci_phy_frame_handler(iphy, frame_index);
iphy              346 drivers/scsi/isci/host.c 			iphy = &ihost->phys[index];
iphy              347 drivers/scsi/isci/host.c 			result = sci_phy_frame_handler(iphy, frame_index);
iphy              372 drivers/scsi/isci/host.c 	struct isci_phy *iphy;
iphy              452 drivers/scsi/isci/host.c 		iphy = &ihost->phys[index];
iphy              453 drivers/scsi/isci/host.c 		sci_phy_event_handler(iphy, ent);
iphy              838 drivers/scsi/isci/host.c static bool is_phy_starting(struct isci_phy *iphy)
iphy              842 drivers/scsi/isci/host.c 	state = iphy->sm.current_state_id;
iphy              866 drivers/scsi/isci/host.c 		struct isci_phy *iphy = &ihost->phys[i];
iphy              867 drivers/scsi/isci/host.c 		u32 state = iphy->sm.current_state_id;
iphy              875 drivers/scsi/isci/host.c 		else if (!phy_get_non_dummy_port(iphy))
iphy              884 drivers/scsi/isci/host.c 		if ((iphy->is_in_link_training == false && state == SCI_PHY_INITIAL) ||
iphy              885 drivers/scsi/isci/host.c 		    (iphy->is_in_link_training == false && state == SCI_PHY_STOPPED) ||
iphy              886 drivers/scsi/isci/host.c 		    (iphy->is_in_link_training == true && is_phy_starting(iphy)) ||
iphy              905 drivers/scsi/isci/host.c 	struct isci_phy *iphy;
iphy              920 drivers/scsi/isci/host.c 		iphy = &ihost->phys[ihost->next_phy_to_start];
iphy              923 drivers/scsi/isci/host.c 			if (phy_get_non_dummy_port(iphy) == NULL) {
iphy              939 drivers/scsi/isci/host.c 		status = sci_phy_start(iphy);
iphy             1281 drivers/scsi/isci/host.c 		struct isci_phy *iphy = &ihost->phys[i];
iphy             1282 drivers/scsi/isci/host.c 		del_timer_sync(&iphy->sata_timer.timer);
iphy             1744 drivers/scsi/isci/host.c 	struct isci_phy *iphy;
iphy             1765 drivers/scsi/isci/host.c 		iphy = ihost->power_control.requesters[i];
iphy             1766 drivers/scsi/isci/host.c 		if (iphy == NULL)
iphy             1775 drivers/scsi/isci/host.c 		sci_phy_consume_power_handler(iphy);
iphy             1777 drivers/scsi/isci/host.c 		if (iphy->protocol == SAS_PROTOCOL_SSP) {
iphy             1788 drivers/scsi/isci/host.c 				if (requester != NULL && requester != iphy) {
iphy             1790 drivers/scsi/isci/host.c 							  iphy->frame_rcvd.iaf.sas_addr,
iphy             1815 drivers/scsi/isci/host.c 					       struct isci_phy *iphy)
iphy             1817 drivers/scsi/isci/host.c 	BUG_ON(iphy == NULL);
iphy             1821 drivers/scsi/isci/host.c 		sci_phy_consume_power_handler(iphy);
iphy             1847 drivers/scsi/isci/host.c 				       iphy->frame_rcvd.iaf.sas_addr,
iphy             1853 drivers/scsi/isci/host.c 				sci_phy_consume_power_handler(iphy);
iphy             1860 drivers/scsi/isci/host.c 			ihost->power_control.requesters[iphy->phy_index] = iphy;
iphy             1867 drivers/scsi/isci/host.c 					       struct isci_phy *iphy)
iphy             1869 drivers/scsi/isci/host.c 	BUG_ON(iphy == NULL);
iphy             1871 drivers/scsi/isci/host.c 	if (ihost->power_control.requesters[iphy->phy_index])
iphy             1874 drivers/scsi/isci/host.c 	ihost->power_control.requesters[iphy->phy_index] = NULL;
iphy             2382 drivers/scsi/isci/host.c 			    struct isci_phy *iphy)
iphy             2389 drivers/scsi/isci/host.c 						  iport, iphy);
iphy             2394 drivers/scsi/isci/host.c 						  iport, iphy);
iphy             2399 drivers/scsi/isci/host.c 			"unexpected state %d\n", __func__, iphy->phy_index,
iphy             2405 drivers/scsi/isci/host.c 			      struct isci_phy *iphy)
iphy             2411 drivers/scsi/isci/host.c 						   iport, iphy);
iphy             2418 drivers/scsi/isci/host.c 			iphy->phy_index,
iphy              462 drivers/scsi/isci/host.h 					       struct isci_phy *iphy);
iphy              464 drivers/scsi/isci/host.h 					       struct isci_phy *iphy);
iphy              466 drivers/scsi/isci/host.h 			    struct isci_phy *iphy);
iphy              468 drivers/scsi/isci/host.h 			      struct isci_phy *iphy);
iphy               75 drivers/scsi/isci/phy.c enum sas_linkrate sci_phy_linkrate(struct isci_phy *iphy)
iphy               77 drivers/scsi/isci/phy.c 	return iphy->max_negotiated_speed;
iphy               80 drivers/scsi/isci/phy.c static struct isci_host *phy_to_host(struct isci_phy *iphy)
iphy               82 drivers/scsi/isci/phy.c 	struct isci_phy *table = iphy - iphy->phy_index;
iphy               88 drivers/scsi/isci/phy.c static struct device *sciphy_to_dev(struct isci_phy *iphy)
iphy               90 drivers/scsi/isci/phy.c 	return &phy_to_host(iphy)->pdev->dev;
iphy               94 drivers/scsi/isci/phy.c sci_phy_transport_layer_initialization(struct isci_phy *iphy,
iphy               99 drivers/scsi/isci/phy.c 	iphy->transport_layer_registers = reg;
iphy              102 drivers/scsi/isci/phy.c 		&iphy->transport_layer_registers->stp_rni);
iphy              108 drivers/scsi/isci/phy.c 	tl_control = readl(&iphy->transport_layer_registers->control);
iphy              110 drivers/scsi/isci/phy.c 	writel(tl_control, &iphy->transport_layer_registers->control);
iphy              116 drivers/scsi/isci/phy.c sci_phy_link_layer_initialization(struct isci_phy *iphy,
iphy              119 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy              122 drivers/scsi/isci/phy.c 	int phy_idx = iphy->phy_index;
iphy              133 drivers/scsi/isci/phy.c 	iphy->link_layer_registers = llr;
iphy              313 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_STOPPED);
iphy              321 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(tmr, typeof(*iphy), sata_timer);
iphy              322 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy              330 drivers/scsi/isci/phy.c 	dev_dbg(sciphy_to_dev(iphy),
iphy              334 drivers/scsi/isci/phy.c 		 iphy);
iphy              336 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              353 drivers/scsi/isci/phy.c struct isci_port *phy_get_non_dummy_port(struct isci_phy *iphy)
iphy              355 drivers/scsi/isci/phy.c 	struct isci_port *iport = iphy->owning_port;
iphy              360 drivers/scsi/isci/phy.c 	return iphy->owning_port;
iphy              371 drivers/scsi/isci/phy.c 	struct isci_phy *iphy,
iphy              374 drivers/scsi/isci/phy.c 	iphy->owning_port = iport;
iphy              376 drivers/scsi/isci/phy.c 	if (iphy->bcn_received_while_port_unassigned) {
iphy              377 drivers/scsi/isci/phy.c 		iphy->bcn_received_while_port_unassigned = false;
iphy              378 drivers/scsi/isci/phy.c 		sci_port_broadcast_change_received(iphy->owning_port, iphy);
iphy              382 drivers/scsi/isci/phy.c enum sci_status sci_phy_initialize(struct isci_phy *iphy,
iphy              387 drivers/scsi/isci/phy.c 	sci_phy_transport_layer_initialization(iphy, tl);
iphy              390 drivers/scsi/isci/phy.c 	sci_phy_link_layer_initialization(iphy, ll);
iphy              395 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_STOPPED);
iphy              409 drivers/scsi/isci/phy.c void sci_phy_setup_transport(struct isci_phy *iphy, u32 device_id)
iphy              413 drivers/scsi/isci/phy.c 	writel(device_id, &iphy->transport_layer_registers->stp_rni);
iphy              419 drivers/scsi/isci/phy.c 	tl_control = readl(&iphy->transport_layer_registers->control);
iphy              421 drivers/scsi/isci/phy.c 	writel(tl_control, &iphy->transport_layer_registers->control);
iphy              424 drivers/scsi/isci/phy.c static void sci_phy_suspend(struct isci_phy *iphy)
iphy              429 drivers/scsi/isci/phy.c 		readl(&iphy->link_layer_registers->phy_configuration);
iphy              432 drivers/scsi/isci/phy.c 		&iphy->link_layer_registers->phy_configuration);
iphy              434 drivers/scsi/isci/phy.c 	sci_phy_setup_transport(iphy, SCIC_SDS_REMOTE_NODE_CONTEXT_INVALID_INDEX);
iphy              437 drivers/scsi/isci/phy.c void sci_phy_resume(struct isci_phy *iphy)
iphy              442 drivers/scsi/isci/phy.c 		readl(&iphy->link_layer_registers->phy_configuration);
iphy              445 drivers/scsi/isci/phy.c 		&iphy->link_layer_registers->phy_configuration);
iphy              448 drivers/scsi/isci/phy.c void sci_phy_get_sas_address(struct isci_phy *iphy, struct sci_sas_address *sas)
iphy              450 drivers/scsi/isci/phy.c 	sas->high = readl(&iphy->link_layer_registers->source_sas_address_high);
iphy              451 drivers/scsi/isci/phy.c 	sas->low = readl(&iphy->link_layer_registers->source_sas_address_low);
iphy              454 drivers/scsi/isci/phy.c void sci_phy_get_attached_sas_address(struct isci_phy *iphy, struct sci_sas_address *sas)
iphy              458 drivers/scsi/isci/phy.c 	iaf = &iphy->frame_rcvd.iaf;
iphy              462 drivers/scsi/isci/phy.c void sci_phy_get_protocols(struct isci_phy *iphy, struct sci_phy_proto *proto)
iphy              464 drivers/scsi/isci/phy.c 	proto->all = readl(&iphy->link_layer_registers->transmit_identification);
iphy              467 drivers/scsi/isci/phy.c enum sci_status sci_phy_start(struct isci_phy *iphy)
iphy              469 drivers/scsi/isci/phy.c 	enum sci_phy_states state = iphy->sm.current_state_id;
iphy              472 drivers/scsi/isci/phy.c 		dev_dbg(sciphy_to_dev(iphy), "%s: in wrong state: %s\n",
iphy              477 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              481 drivers/scsi/isci/phy.c enum sci_status sci_phy_stop(struct isci_phy *iphy)
iphy              483 drivers/scsi/isci/phy.c 	enum sci_phy_states state = iphy->sm.current_state_id;
iphy              498 drivers/scsi/isci/phy.c 		dev_dbg(sciphy_to_dev(iphy), "%s: in wrong state: %s\n",
iphy              503 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_STOPPED);
iphy              507 drivers/scsi/isci/phy.c enum sci_status sci_phy_reset(struct isci_phy *iphy)
iphy              509 drivers/scsi/isci/phy.c 	enum sci_phy_states state = iphy->sm.current_state_id;
iphy              512 drivers/scsi/isci/phy.c 		dev_dbg(sciphy_to_dev(iphy), "%s: in wrong state: %s\n",
iphy              517 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_RESETTING);
iphy              521 drivers/scsi/isci/phy.c enum sci_status sci_phy_consume_power_handler(struct isci_phy *iphy)
iphy              523 drivers/scsi/isci/phy.c 	enum sci_phy_states state = iphy->sm.current_state_id;
iphy              529 drivers/scsi/isci/phy.c 		enable_spinup = readl(&iphy->link_layer_registers->notify_enable_spinup_control);
iphy              531 drivers/scsi/isci/phy.c 		writel(enable_spinup, &iphy->link_layer_registers->notify_enable_spinup_control);
iphy              534 drivers/scsi/isci/phy.c 		sci_change_state(&iphy->sm, SCI_PHY_SUB_FINAL);
iphy              543 drivers/scsi/isci/phy.c 			readl(&iphy->link_layer_registers->phy_configuration);
iphy              548 drivers/scsi/isci/phy.c 			&iphy->link_layer_registers->phy_configuration);
iphy              554 drivers/scsi/isci/phy.c 			&iphy->link_layer_registers->phy_configuration);
iphy              557 drivers/scsi/isci/phy.c 		sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_PHY_EN);
iphy              562 drivers/scsi/isci/phy.c 		dev_dbg(sciphy_to_dev(iphy), "%s: in wrong state: %s\n",
iphy              568 drivers/scsi/isci/phy.c static void sci_phy_start_sas_link_training(struct isci_phy *iphy)
iphy              576 drivers/scsi/isci/phy.c 	phy_control = readl(&iphy->link_layer_registers->phy_configuration);
iphy              579 drivers/scsi/isci/phy.c 	       &iphy->link_layer_registers->phy_configuration);
iphy              581 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SAS_SPEED_EN);
iphy              583 drivers/scsi/isci/phy.c 	iphy->protocol = SAS_PROTOCOL_SSP;
iphy              586 drivers/scsi/isci/phy.c static void sci_phy_start_sata_link_training(struct isci_phy *iphy)
iphy              592 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_POWER);
iphy              594 drivers/scsi/isci/phy.c 	iphy->protocol = SAS_PROTOCOL_SATA;
iphy              608 drivers/scsi/isci/phy.c static void sci_phy_complete_link_training(struct isci_phy *iphy,
iphy              612 drivers/scsi/isci/phy.c 	iphy->max_negotiated_speed = max_link_rate;
iphy              614 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, next_state);
iphy              661 drivers/scsi/isci/phy.c #define phy_event_dbg(iphy, state, code) \
iphy              662 drivers/scsi/isci/phy.c 	dev_dbg(sciphy_to_dev(iphy), "phy-%d:%d: %s event: %s (%x)\n", \
iphy              663 drivers/scsi/isci/phy.c 		phy_to_host(iphy)->id, iphy->phy_index, \
iphy              666 drivers/scsi/isci/phy.c #define phy_event_warn(iphy, state, code) \
iphy              667 drivers/scsi/isci/phy.c 	dev_warn(sciphy_to_dev(iphy), "phy-%d:%d: %s event: %s (%x)\n", \
iphy              668 drivers/scsi/isci/phy.c 		phy_to_host(iphy)->id, iphy->phy_index, \
iphy              672 drivers/scsi/isci/phy.c void scu_link_layer_set_txcomsas_timeout(struct isci_phy *iphy, u32 timeout)
iphy              677 drivers/scsi/isci/phy.c 	val = readl(&iphy->link_layer_registers->transmit_comsas_signal);
iphy              681 drivers/scsi/isci/phy.c 	writel(val, &iphy->link_layer_registers->transmit_comsas_signal);
iphy              684 drivers/scsi/isci/phy.c enum sci_status sci_phy_event_handler(struct isci_phy *iphy, u32 event_code)
iphy              686 drivers/scsi/isci/phy.c 	enum sci_phy_states state = iphy->sm.current_state_id;
iphy              692 drivers/scsi/isci/phy.c 			sci_phy_start_sas_link_training(iphy);
iphy              693 drivers/scsi/isci/phy.c 			iphy->is_in_link_training = true;
iphy              696 drivers/scsi/isci/phy.c 			sci_phy_start_sata_link_training(iphy);
iphy              697 drivers/scsi/isci/phy.c 			iphy->is_in_link_training = true;
iphy              701 drivers/scsi/isci/phy.c 		       scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_EXTENDED);
iphy              704 drivers/scsi/isci/phy.c 		       sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              707 drivers/scsi/isci/phy.c 			phy_event_dbg(iphy, state, event_code);
iphy              720 drivers/scsi/isci/phy.c 			sci_phy_complete_link_training(iphy, SAS_LINK_RATE_1_5_GBPS,
iphy              725 drivers/scsi/isci/phy.c 			sci_phy_complete_link_training(iphy, SAS_LINK_RATE_3_0_GBPS,
iphy              730 drivers/scsi/isci/phy.c 			sci_phy_complete_link_training(iphy, SAS_LINK_RATE_6_0_GBPS,
iphy              737 drivers/scsi/isci/phy.c 			sci_phy_start_sata_link_training(iphy);
iphy              741 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              744 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              748 drivers/scsi/isci/phy.c 		       scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_EXTENDED);
iphy              751 drivers/scsi/isci/phy.c 		       sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              754 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              763 drivers/scsi/isci/phy.c 			sci_phy_start_sas_link_training(iphy);
iphy              770 drivers/scsi/isci/phy.c 			sci_phy_start_sata_link_training(iphy);
iphy              774 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_EXTENDED);
iphy              777 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              780 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              784 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              787 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              795 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              798 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              801 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              809 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              812 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              824 drivers/scsi/isci/phy.c 			sci_phy_start_sas_link_training(iphy);
iphy              828 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              836 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              839 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              847 drivers/scsi/isci/phy.c 			iphy->protocol = SAS_PROTOCOL_SATA;
iphy              850 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_SPEED_EN);
iphy              856 drivers/scsi/isci/phy.c 			sci_phy_start_sas_link_training(iphy);
iphy              859 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              872 drivers/scsi/isci/phy.c 			sci_phy_complete_link_training(iphy, SAS_LINK_RATE_1_5_GBPS,
iphy              877 drivers/scsi/isci/phy.c 			sci_phy_complete_link_training(iphy, SAS_LINK_RATE_3_0_GBPS,
iphy              882 drivers/scsi/isci/phy.c 			sci_phy_complete_link_training(iphy, SAS_LINK_RATE_6_0_GBPS,
iphy              887 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              890 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              896 drivers/scsi/isci/phy.c 			sci_phy_start_sas_link_training(iphy);
iphy              899 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              908 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_SPEED_EN);
iphy              913 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              916 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              920 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              928 drivers/scsi/isci/phy.c 			scu_link_layer_set_txcomsas_timeout(iphy, SCU_SAS_LINK_LAYER_TXCOMSAS_NEGTIME_DEFAULT);
iphy              931 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              940 drivers/scsi/isci/phy.c 			if (phy_get_non_dummy_port(iphy) != NULL)
iphy              941 drivers/scsi/isci/phy.c 				sci_port_broadcast_change_received(iphy->owning_port, iphy);
iphy              943 drivers/scsi/isci/phy.c 				iphy->bcn_received_while_port_unassigned = true;
iphy              948 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              956 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy              959 drivers/scsi/isci/phy.c 			phy_event_warn(iphy, state, event_code);
iphy              965 drivers/scsi/isci/phy.c 		dev_dbg(sciphy_to_dev(iphy), "%s: in wrong state: %s\n",
iphy              971 drivers/scsi/isci/phy.c enum sci_status sci_phy_frame_handler(struct isci_phy *iphy, u32 frame_index)
iphy              973 drivers/scsi/isci/phy.c 	enum sci_phy_states state = iphy->sm.current_state_id;
iphy              974 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy              994 drivers/scsi/isci/phy.c 			spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags);
iphy              995 drivers/scsi/isci/phy.c 			memcpy(&iphy->frame_rcvd.iaf, &iaf, sizeof(iaf));
iphy              996 drivers/scsi/isci/phy.c 			spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags);
iphy             1009 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, state);
iphy             1012 drivers/scsi/isci/phy.c 			dev_warn(sciphy_to_dev(iphy),
iphy             1037 drivers/scsi/isci/phy.c 			spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags);
iphy             1038 drivers/scsi/isci/phy.c 			sci_controller_copy_sata_response(&iphy->frame_rcvd.fis,
iphy             1041 drivers/scsi/isci/phy.c 			spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags);
iphy             1044 drivers/scsi/isci/phy.c 			sci_change_state(&iphy->sm, SCI_PHY_SUB_FINAL);
iphy             1048 drivers/scsi/isci/phy.c 			dev_warn(sciphy_to_dev(iphy),
iphy             1059 drivers/scsi/isci/phy.c 		dev_dbg(sciphy_to_dev(iphy), "%s: in wrong state: %s\n",
iphy             1068 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1071 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_OSSP_EN);
iphy             1076 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1077 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy             1079 drivers/scsi/isci/phy.c 	sci_controller_power_control_queue_insert(ihost, iphy);
iphy             1084 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1085 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy             1087 drivers/scsi/isci/phy.c 	sci_controller_power_control_queue_remove(ihost, iphy);
iphy             1092 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1093 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy             1095 drivers/scsi/isci/phy.c 	sci_controller_power_control_queue_insert(ihost, iphy);
iphy             1100 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1101 drivers/scsi/isci/phy.c 	struct isci_host *ihost = iphy->owning_port->owning_controller;
iphy             1103 drivers/scsi/isci/phy.c 	sci_controller_power_control_queue_remove(ihost, iphy);
iphy             1108 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1110 drivers/scsi/isci/phy.c 	sci_mod_timer(&iphy->sata_timer, SCIC_SDS_SATA_LINK_TRAINING_TIMEOUT);
iphy             1115 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1117 drivers/scsi/isci/phy.c 	sci_del_timer(&iphy->sata_timer);
iphy             1122 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1124 drivers/scsi/isci/phy.c 	sci_mod_timer(&iphy->sata_timer, SCIC_SDS_SATA_LINK_TRAINING_TIMEOUT);
iphy             1129 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1131 drivers/scsi/isci/phy.c 	sci_del_timer(&iphy->sata_timer);
iphy             1136 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1138 drivers/scsi/isci/phy.c 	if (sci_port_link_detected(iphy->owning_port, iphy)) {
iphy             1146 drivers/scsi/isci/phy.c 		sci_phy_resume(iphy);
iphy             1148 drivers/scsi/isci/phy.c 		sci_mod_timer(&iphy->sata_timer,
iphy             1151 drivers/scsi/isci/phy.c 		iphy->is_in_link_training = false;
iphy             1156 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1158 drivers/scsi/isci/phy.c 	sci_del_timer(&iphy->sata_timer);
iphy             1163 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1168 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_READY);
iphy             1180 drivers/scsi/isci/phy.c 	struct isci_phy *iphy)
iphy             1187 drivers/scsi/isci/phy.c 		readl(&iphy->link_layer_registers->phy_configuration);
iphy             1193 drivers/scsi/isci/phy.c 	       &iphy->link_layer_registers->phy_configuration);
iphy             1196 drivers/scsi/isci/phy.c 	enable_spinup_value = readl(&iphy->link_layer_registers->notify_enable_spinup_control);
iphy             1198 drivers/scsi/isci/phy.c 	writel(enable_spinup_value, &iphy->link_layer_registers->notify_enable_spinup_control);
iphy             1201 drivers/scsi/isci/phy.c static void scu_link_layer_start_oob(struct isci_phy *iphy)
iphy             1203 drivers/scsi/isci/phy.c 	struct scu_link_layer_registers __iomem *ll = iphy->link_layer_registers;
iphy             1232 drivers/scsi/isci/phy.c 	struct isci_phy *iphy)
iphy             1240 drivers/scsi/isci/phy.c 		readl(&iphy->link_layer_registers->phy_configuration);
iphy             1246 drivers/scsi/isci/phy.c 	       &iphy->link_layer_registers->phy_configuration);
iphy             1252 drivers/scsi/isci/phy.c 	       &iphy->link_layer_registers->phy_configuration);
iphy             1257 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1258 drivers/scsi/isci/phy.c 	struct isci_port *iport = iphy->owning_port;
iphy             1265 drivers/scsi/isci/phy.c 	sci_del_timer(&iphy->sata_timer);
iphy             1267 drivers/scsi/isci/phy.c 	scu_link_layer_stop_protocol_engine(iphy);
iphy             1269 drivers/scsi/isci/phy.c 	if (iphy->sm.previous_state_id != SCI_PHY_INITIAL)
iphy             1270 drivers/scsi/isci/phy.c 		sci_controller_link_down(ihost, phy_get_non_dummy_port(iphy), iphy);
iphy             1275 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1276 drivers/scsi/isci/phy.c 	struct isci_port *iport = iphy->owning_port;
iphy             1279 drivers/scsi/isci/phy.c 	scu_link_layer_stop_protocol_engine(iphy);
iphy             1280 drivers/scsi/isci/phy.c 	scu_link_layer_start_oob(iphy);
iphy             1283 drivers/scsi/isci/phy.c 	iphy->protocol = SAS_PROTOCOL_NONE;
iphy             1284 drivers/scsi/isci/phy.c 	iphy->bcn_received_while_port_unassigned = false;
iphy             1286 drivers/scsi/isci/phy.c 	if (iphy->sm.previous_state_id == SCI_PHY_READY)
iphy             1287 drivers/scsi/isci/phy.c 		sci_controller_link_down(ihost, phy_get_non_dummy_port(iphy), iphy);
iphy             1289 drivers/scsi/isci/phy.c 	sci_change_state(&iphy->sm, SCI_PHY_SUB_INITIAL);
iphy             1294 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1295 drivers/scsi/isci/phy.c 	struct isci_port *iport = iphy->owning_port;
iphy             1298 drivers/scsi/isci/phy.c 	sci_controller_link_up(ihost, phy_get_non_dummy_port(iphy), iphy);
iphy             1303 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1305 drivers/scsi/isci/phy.c 	sci_phy_suspend(iphy);
iphy             1310 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
iphy             1316 drivers/scsi/isci/phy.c 	sci_port_deactivate_phy(iphy->owning_port, iphy, false);
iphy             1318 drivers/scsi/isci/phy.c 	if (iphy->protocol == SAS_PROTOCOL_SSP) {
iphy             1319 drivers/scsi/isci/phy.c 		scu_link_layer_tx_hard_reset(iphy);
iphy             1324 drivers/scsi/isci/phy.c 		sci_change_state(&iphy->sm, SCI_PHY_STARTING);
iphy             1375 drivers/scsi/isci/phy.c void sci_phy_construct(struct isci_phy *iphy,
iphy             1378 drivers/scsi/isci/phy.c 	sci_init_sm(&iphy->sm, sci_phy_state_table, SCI_PHY_INITIAL);
iphy             1381 drivers/scsi/isci/phy.c 	iphy->owning_port = iport;
iphy             1382 drivers/scsi/isci/phy.c 	iphy->phy_index = phy_index;
iphy             1383 drivers/scsi/isci/phy.c 	iphy->bcn_received_while_port_unassigned = false;
iphy             1384 drivers/scsi/isci/phy.c 	iphy->protocol = SAS_PROTOCOL_NONE;
iphy             1385 drivers/scsi/isci/phy.c 	iphy->link_layer_registers = NULL;
iphy             1386 drivers/scsi/isci/phy.c 	iphy->max_negotiated_speed = SAS_LINK_RATE_UNKNOWN;
iphy             1389 drivers/scsi/isci/phy.c 	sci_init_timer(&iphy->sata_timer, phy_sata_timeout);
iphy             1392 drivers/scsi/isci/phy.c void isci_phy_init(struct isci_phy *iphy, struct isci_host *ihost, int index)
iphy             1402 drivers/scsi/isci/phy.c 	memcpy(iphy->sas_addr, &sas_addr, sizeof(sas_addr));
iphy             1404 drivers/scsi/isci/phy.c 	iphy->sas_phy.enabled = 0;
iphy             1405 drivers/scsi/isci/phy.c 	iphy->sas_phy.id = index;
iphy             1406 drivers/scsi/isci/phy.c 	iphy->sas_phy.sas_addr = &iphy->sas_addr[0];
iphy             1407 drivers/scsi/isci/phy.c 	iphy->sas_phy.frame_rcvd = (u8 *)&iphy->frame_rcvd;
iphy             1408 drivers/scsi/isci/phy.c 	iphy->sas_phy.ha = &ihost->sas_ha;
iphy             1409 drivers/scsi/isci/phy.c 	iphy->sas_phy.lldd_phy = iphy;
iphy             1410 drivers/scsi/isci/phy.c 	iphy->sas_phy.enabled = 1;
iphy             1411 drivers/scsi/isci/phy.c 	iphy->sas_phy.class = SAS;
iphy             1412 drivers/scsi/isci/phy.c 	iphy->sas_phy.iproto = SAS_PROTOCOL_ALL;
iphy             1413 drivers/scsi/isci/phy.c 	iphy->sas_phy.tproto = 0;
iphy             1414 drivers/scsi/isci/phy.c 	iphy->sas_phy.type = PHY_TYPE_PHYSICAL;
iphy             1415 drivers/scsi/isci/phy.c 	iphy->sas_phy.role = PHY_ROLE_INITIATOR;
iphy             1416 drivers/scsi/isci/phy.c 	iphy->sas_phy.oob_mode = OOB_NOT_CONNECTED;
iphy             1417 drivers/scsi/isci/phy.c 	iphy->sas_phy.linkrate = SAS_LINK_RATE_UNKNOWN;
iphy             1418 drivers/scsi/isci/phy.c 	memset(&iphy->frame_rcvd, 0, sizeof(iphy->frame_rcvd));
iphy             1436 drivers/scsi/isci/phy.c 	struct isci_phy *iphy = sas_phy->lldd_phy;
iphy             1443 drivers/scsi/isci/phy.c 		__func__, sas_phy, func, buf, iphy, port);
iphy             1448 drivers/scsi/isci/phy.c 		scu_link_layer_start_oob(iphy);
iphy             1449 drivers/scsi/isci/phy.c 		sci_phy_stop(iphy);
iphy             1455 drivers/scsi/isci/phy.c 		scu_link_layer_start_oob(iphy);
iphy             1456 drivers/scsi/isci/phy.c 		sci_phy_stop(iphy);
iphy             1457 drivers/scsi/isci/phy.c 		sci_phy_start(iphy);
iphy             1465 drivers/scsi/isci/phy.c 		ret = isci_port_perform_hard_reset(ihost, port->lldd_port, iphy);
iphy             1472 drivers/scsi/isci/phy.c 		r = iphy->link_layer_registers;
iphy              108 drivers/scsi/isci/phy.h 	struct isci_phy *iphy = container_of(sas_phy, typeof(*iphy), sas_phy);
iphy              110 drivers/scsi/isci/phy.h 	return iphy;
iphy              400 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              404 drivers/scsi/isci/phy.h struct isci_port *phy_get_non_dummy_port(struct isci_phy *iphy);
iphy              407 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              411 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              416 drivers/scsi/isci/phy.h 	struct isci_phy *iphy);
iphy              419 drivers/scsi/isci/phy.h 	struct isci_phy *iphy);
iphy              422 drivers/scsi/isci/phy.h 	struct isci_phy *iphy);
iphy              425 drivers/scsi/isci/phy.h 	struct isci_phy *iphy);
iphy              428 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              432 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              436 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              440 drivers/scsi/isci/phy.h 	struct isci_phy *iphy);
iphy              443 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              447 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              452 drivers/scsi/isci/phy.h 	struct isci_phy *iphy,
iphy              454 drivers/scsi/isci/phy.h enum sas_linkrate sci_phy_linkrate(struct isci_phy *iphy);
iphy              457 drivers/scsi/isci/phy.h void isci_phy_init(struct isci_phy *iphy, struct isci_host *ihost, int index);
iphy               94 drivers/scsi/isci/port.c 		struct isci_phy *iphy = iport->phy_table[index];
iphy               96 drivers/scsi/isci/port.c 		if (!iphy)
iphy               98 drivers/scsi/isci/port.c 		sci_phy_get_protocols(iphy, proto);
iphy              145 drivers/scsi/isci/port.c 	struct isci_phy *iphy;
iphy              150 drivers/scsi/isci/port.c 		iphy = iport->phy_table[i];
iphy              151 drivers/scsi/isci/port.c 		if (!iphy)
iphy              153 drivers/scsi/isci/port.c 		val = readl(&iphy->link_layer_registers->link_layer_control);
iphy              155 drivers/scsi/isci/port.c 		writel(val, &iphy->link_layer_registers->link_layer_control);
iphy              161 drivers/scsi/isci/port.c 					 struct isci_phy *iphy)
iphy              165 drivers/scsi/isci/port.c 		__func__, iphy, &iphy->sas_phy);
iphy              167 drivers/scsi/isci/port.c 	ihost->sas_ha.notify_port_event(&iphy->sas_phy, PORTE_BROADCAST_RCVD);
iphy              173 drivers/scsi/isci/port.c 			      struct isci_phy *iphy)
iphy              183 drivers/scsi/isci/port.c 	spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags);
iphy              187 drivers/scsi/isci/port.c 	if (iphy->protocol == SAS_PROTOCOL_SATA) {
iphy              190 drivers/scsi/isci/port.c 		iphy->sas_phy.oob_mode = SATA_OOB_MODE;
iphy              191 drivers/scsi/isci/port.c 		iphy->sas_phy.frame_rcvd_size = sizeof(struct dev_to_host_fis);
iphy              205 drivers/scsi/isci/port.c 		memcpy(&iphy->sas_phy.attached_sas_addr,
iphy              207 drivers/scsi/isci/port.c 	} else if (iphy->protocol == SAS_PROTOCOL_SSP) {
iphy              208 drivers/scsi/isci/port.c 		iphy->sas_phy.oob_mode = SAS_OOB_MODE;
iphy              209 drivers/scsi/isci/port.c 		iphy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame);
iphy              212 drivers/scsi/isci/port.c 		memcpy(iphy->sas_phy.attached_sas_addr,
iphy              213 drivers/scsi/isci/port.c 		       iphy->frame_rcvd.iaf.sas_addr, SAS_ADDR_SIZE);
iphy              219 drivers/scsi/isci/port.c 	iphy->sas_phy.phy->negotiated_linkrate = sci_phy_linkrate(iphy);
iphy              221 drivers/scsi/isci/port.c 	spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags);
iphy              226 drivers/scsi/isci/port.c 		isci_host->sas_ha.notify_port_event(&iphy->sas_phy,
iphy              332 drivers/scsi/isci/port.c 			struct isci_phy *iphy = &ihost->phys[phy_idx];
iphy              338 drivers/scsi/isci/port.c 			isci_port_link_down(ihost, iphy, isci_port);
iphy              447 drivers/scsi/isci/port.c 	struct isci_phy *iphy;
iphy              453 drivers/scsi/isci/port.c 		iphy = iport->phy_table[index];
iphy              454 drivers/scsi/isci/port.c 		if (iphy && sci_port_active_phy(iport, iphy))
iphy              455 drivers/scsi/isci/port.c 			return iphy;
iphy              461 drivers/scsi/isci/port.c static enum sci_status sci_port_set_phy(struct isci_port *iport, struct isci_phy *iphy)
iphy              467 drivers/scsi/isci/port.c 	if (!iport->phy_table[iphy->phy_index] &&
iphy              468 drivers/scsi/isci/port.c 	    !phy_get_non_dummy_port(iphy) &&
iphy              469 drivers/scsi/isci/port.c 	    sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) {
iphy              474 drivers/scsi/isci/port.c 		iport->phy_table[iphy->phy_index] = iphy;
iphy              475 drivers/scsi/isci/port.c 		sci_phy_set_port(iphy, iport);
iphy              483 drivers/scsi/isci/port.c static enum sci_status sci_port_clear_phy(struct isci_port *iport, struct isci_phy *iphy)
iphy              486 drivers/scsi/isci/port.c 	if (iport->phy_table[iphy->phy_index] == iphy &&
iphy              487 drivers/scsi/isci/port.c 	    phy_get_non_dummy_port(iphy) == iport) {
iphy              491 drivers/scsi/isci/port.c 		sci_phy_set_port(iphy, &ihost->ports[SCI_MAX_PORTS]);
iphy              492 drivers/scsi/isci/port.c 		iport->phy_table[iphy->phy_index] = NULL;
iphy              512 drivers/scsi/isci/port.c 	struct isci_phy *iphy;
iphy              518 drivers/scsi/isci/port.c 	iphy = sci_port_get_a_connected_phy(iport);
iphy              519 drivers/scsi/isci/port.c 	if (iphy) {
iphy              520 drivers/scsi/isci/port.c 		if (iphy->protocol != SAS_PROTOCOL_SATA) {
iphy              521 drivers/scsi/isci/port.c 			sci_phy_get_attached_sas_address(iphy, sas);
iphy              523 drivers/scsi/isci/port.c 			sci_phy_get_sas_address(iphy, sas);
iphy              524 drivers/scsi/isci/port.c 			sas->low += iphy->phy_index;
iphy              615 drivers/scsi/isci/port.c static void sci_port_resume_phy(struct isci_port *iport, struct isci_phy *iphy)
iphy              617 drivers/scsi/isci/port.c 	sci_phy_resume(iphy);
iphy              618 drivers/scsi/isci/port.c 	iport->enabled_phy_mask |= 1 << iphy->phy_index;
iphy              622 drivers/scsi/isci/port.c 				  struct isci_phy *iphy,
iphy              627 drivers/scsi/isci/port.c 	if (iphy->protocol != SAS_PROTOCOL_SATA && (flags & PF_RESUME))
iphy              628 drivers/scsi/isci/port.c 		sci_phy_resume(iphy);
iphy              630 drivers/scsi/isci/port.c 	iport->active_phy_mask |= 1 << iphy->phy_index;
iphy              632 drivers/scsi/isci/port.c 	sci_controller_clear_invalid_phy(ihost, iphy);
iphy              635 drivers/scsi/isci/port.c 		isci_port_link_up(ihost, iport, iphy);
iphy              638 drivers/scsi/isci/port.c void sci_port_deactivate_phy(struct isci_port *iport, struct isci_phy *iphy,
iphy              643 drivers/scsi/isci/port.c 	iport->active_phy_mask &= ~(1 << iphy->phy_index);
iphy              644 drivers/scsi/isci/port.c 	iport->enabled_phy_mask &= ~(1 << iphy->phy_index);
iphy              646 drivers/scsi/isci/port.c 		iport->last_active_phy = iphy->phy_index;
iphy              648 drivers/scsi/isci/port.c 	iphy->max_negotiated_speed = SAS_LINK_RATE_UNKNOWN;
iphy              655 drivers/scsi/isci/port.c 		writel(iphy->phy_index,
iphy              656 drivers/scsi/isci/port.c 			&iport->port_pe_configuration_register[iphy->phy_index]);
iphy              659 drivers/scsi/isci/port.c 		isci_port_link_down(ihost, iphy, iport);
iphy              662 drivers/scsi/isci/port.c static void sci_port_invalid_link_up(struct isci_port *iport, struct isci_phy *iphy)
iphy              671 drivers/scsi/isci/port.c 	if ((ihost->invalid_phy_mask & (1 << iphy->phy_index)) == 0) {
iphy              672 drivers/scsi/isci/port.c 		ihost->invalid_phy_mask |= 1 << iphy->phy_index;
iphy              689 drivers/scsi/isci/port.c 					     struct isci_phy *iphy,
iphy              696 drivers/scsi/isci/port.c 	sci_phy_get_attached_sas_address(iphy, &phy_sas_address);
iphy              708 drivers/scsi/isci/port.c 		sci_port_activate_phy(iport, iphy, flags);
iphy              712 drivers/scsi/isci/port.c 		sci_port_invalid_link_up(iport, iphy);
iphy              754 drivers/scsi/isci/port.c bool sci_port_link_detected(struct isci_port *iport, struct isci_phy *iphy)
iphy              757 drivers/scsi/isci/port.c 	    (iphy->protocol == SAS_PROTOCOL_SATA)) {
iphy              759 drivers/scsi/isci/port.c 			sci_port_invalid_link_up(iport, iphy);
iphy              763 drivers/scsi/isci/port.c 			struct isci_port *dst_port = &(ihost->ports[iphy->phy_index]);
iphy              764 drivers/scsi/isci/port.c 			writel(iphy->phy_index,
iphy              765 drivers/scsi/isci/port.c 			       &dst_port->port_pe_configuration_register[iphy->phy_index]);
iphy              849 drivers/scsi/isci/port.c 	struct isci_phy *iphy;
iphy              856 drivers/scsi/isci/port.c 		iphy = iport->phy_table[index];
iphy              857 drivers/scsi/isci/port.c 		if (iphy && sci_port_active_phy(iport, iphy) &&
iphy              858 drivers/scsi/isci/port.c 		    iphy->max_negotiated_speed < max_allowed_speed)
iphy              859 drivers/scsi/isci/port.c 			max_allowed_speed = iphy->max_negotiated_speed;
iphy             1149 drivers/scsi/isci/port.c 	struct isci_phy *iphy = NULL;
iphy             1161 drivers/scsi/isci/port.c 	for (phy_index = 0; phy_index < SCI_MAX_PHYS && !iphy; phy_index++) {
iphy             1162 drivers/scsi/isci/port.c 		iphy = iport->phy_table[phy_index];
iphy             1163 drivers/scsi/isci/port.c 		if (iphy && !sci_port_active_phy(iport, iphy)) {
iphy             1168 drivers/scsi/isci/port.c 			iphy = NULL;
iphy             1173 drivers/scsi/isci/port.c 	if (!iphy)
iphy             1175 drivers/scsi/isci/port.c 	status = sci_phy_reset(iphy);
iphy             1197 drivers/scsi/isci/port.c 				      struct isci_phy *iphy)
iphy             1218 drivers/scsi/isci/port.c 			sci_phy_get_sas_address(iphy, &phy_sas_address);
iphy             1224 drivers/scsi/isci/port.c 		return sci_port_set_phy(iport, iphy);
iphy             1228 drivers/scsi/isci/port.c 		status = sci_port_set_phy(iport, iphy);
iphy             1233 drivers/scsi/isci/port.c 		sci_port_general_link_up_handler(iport, iphy, PF_NOTIFY|PF_RESUME);
iphy             1239 drivers/scsi/isci/port.c 		status = sci_port_set_phy(iport, iphy);
iphy             1243 drivers/scsi/isci/port.c 		sci_port_general_link_up_handler(iport, iphy, PF_NOTIFY);
iphy             1268 drivers/scsi/isci/port.c 					 struct isci_phy *iphy)
iphy             1277 drivers/scsi/isci/port.c 		return sci_port_clear_phy(iport, iphy);
iphy             1279 drivers/scsi/isci/port.c 		status = sci_port_clear_phy(iport, iphy);
iphy             1283 drivers/scsi/isci/port.c 		sci_port_deactivate_phy(iport, iphy, true);
iphy             1289 drivers/scsi/isci/port.c 		status = sci_port_clear_phy(iport, iphy);
iphy             1293 drivers/scsi/isci/port.c 		sci_port_deactivate_phy(iport, iphy, true);
iphy             1309 drivers/scsi/isci/port.c 				      struct isci_phy *iphy)
iphy             1319 drivers/scsi/isci/port.c 		sci_port_activate_phy(iport, iphy, PF_NOTIFY|PF_RESUME);
iphy             1325 drivers/scsi/isci/port.c 		sci_port_general_link_up_handler(iport, iphy, PF_NOTIFY|PF_RESUME);
iphy             1342 drivers/scsi/isci/port.c 		sci_port_general_link_up_handler(iport, iphy, PF_RESUME);
iphy             1352 drivers/scsi/isci/port.c 					struct isci_phy *iphy)
iphy             1359 drivers/scsi/isci/port.c 		sci_port_deactivate_phy(iport, iphy, true);
iphy             1372 drivers/scsi/isci/port.c 		sci_port_deactivate_phy(iport, iphy, false);
iphy             1635 drivers/scsi/isci/port.c void sci_port_broadcast_change_received(struct isci_port *iport, struct isci_phy *iphy)
iphy             1640 drivers/scsi/isci/port.c 	isci_port_bc_change_received(ihost, iport, iphy);
iphy             1649 drivers/scsi/isci/port.c 				 struct isci_phy *iphy)
iphy             1747 drivers/scsi/isci/port.c 	struct isci_phy *iphy = to_iphy(phy);
iphy             1761 drivers/scsi/isci/port.c 		if (iport->active_phy_mask & 1 << iphy->phy_index)
iphy              212 drivers/scsi/isci/port.h 	struct isci_phy *iphy);
iphy              216 drivers/scsi/isci/port.h 	struct isci_phy *iphy);
iphy              226 drivers/scsi/isci/port.h 	struct isci_phy *iphy,
iphy              231 drivers/scsi/isci/port.h 	struct isci_phy *iphy);
iphy              238 drivers/scsi/isci/port.h 				      struct isci_phy *iphy);
iphy              240 drivers/scsi/isci/port.h 					struct isci_phy *iphy);
iphy              259 drivers/scsi/isci/port.h 	struct isci_phy *iphy);
iphy              281 drivers/scsi/isci/port.h 				 struct isci_phy *iphy);
iphy              117 drivers/scsi/isci/port_config.c 	struct isci_phy *iphy)
iphy              130 drivers/scsi/isci/port_config.c 	sci_phy_get_sas_address(iphy, &phy_sas_address);
iphy              131 drivers/scsi/isci/port_config.c 	sci_phy_get_attached_sas_address(iphy, &phy_attached_device_address);
iphy              344 drivers/scsi/isci/port_config.c 		struct isci_phy *iphy = &ihost->phys[index];
iphy              348 drivers/scsi/isci/port_config.c 						    phy_get_non_dummy_port(iphy),
iphy              349 drivers/scsi/isci/port_config.c 						    iphy);
iphy              360 drivers/scsi/isci/port_config.c 				       struct isci_phy *iphy)
iphy              369 drivers/scsi/isci/port_config.c 	port_agent->phy_ready_mask |= (1 << iphy->phy_index);
iphy              370 drivers/scsi/isci/port_config.c 	sci_port_link_up(iport, iphy);
iphy              371 drivers/scsi/isci/port_config.c 	if ((iport->active_phy_mask & (1 << iphy->phy_index)))
iphy              372 drivers/scsi/isci/port_config.c 		port_agent->phy_configured_mask |= (1 << iphy->phy_index);
iphy              396 drivers/scsi/isci/port_config.c 	struct isci_phy *iphy)
iphy              406 drivers/scsi/isci/port_config.c 		port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
iphy              407 drivers/scsi/isci/port_config.c 		port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);
iphy              424 drivers/scsi/isci/port_config.c 		sci_port_link_down(iport, iphy);
iphy              483 drivers/scsi/isci/port_config.c 					       struct isci_phy *iphy,
iphy              491 drivers/scsi/isci/port_config.c 	iport = sci_port_configuration_agent_find_port(ihost, iphy);
iphy              494 drivers/scsi/isci/port_config.c 		if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index))
iphy              505 drivers/scsi/isci/port_config.c 		for (port_index = port_agent->phy_valid_port_range[iphy->phy_index].min_index;
iphy              506 drivers/scsi/isci/port_config.c 		     port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index;
iphy              512 drivers/scsi/isci/port_config.c 			if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) {
iphy              517 drivers/scsi/isci/port_config.c 				if (iport->active_phy_mask > (1 << iphy->phy_index)) {
iphy              526 drivers/scsi/isci/port_config.c 				if (iport->physical_port_index == iphy->phy_index) {
iphy              572 drivers/scsi/isci/port_config.c 		status = sci_port_add_phy(iport, iphy);
iphy              575 drivers/scsi/isci/port_config.c 			port_agent->phy_configured_mask |= (1 << iphy->phy_index);
iphy              606 drivers/scsi/isci/port_config.c 				       struct isci_phy *iphy)
iphy              608 drivers/scsi/isci/port_config.c 	u8 phy_index  = iphy->phy_index;
iphy              618 drivers/scsi/isci/port_config.c 		sci_port_link_up(iport, iphy);
iphy              639 drivers/scsi/isci/port_config.c 	struct isci_phy *iphy)
iphy              641 drivers/scsi/isci/port_config.c 	port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
iphy              645 drivers/scsi/isci/port_config.c 	if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) {
iphy              648 drivers/scsi/isci/port_config.c 		status = sci_port_remove_phy(iport, iphy);
iphy              651 drivers/scsi/isci/port_config.c 			port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);
iphy              765 drivers/scsi/isci/task.c 			struct isci_phy *iphy = &ihost->phys[phy->number];
iphy              768 drivers/scsi/isci/task.c 								  iphy);