port_agent 887 drivers/scsi/isci/host.c (ihost->port_agent.phy_ready_mask != ihost->port_agent.phy_configured_mask)) port_agent 1285 drivers/scsi/isci/host.c del_timer_sync(&ihost->port_agent.timer.timer); port_agent 1633 drivers/scsi/isci/host.c sci_port_configuration_agent_construct(&ihost->port_agent); port_agent 2233 drivers/scsi/isci/host.c result = sci_port_configuration_agent_initialize(ihost, &ihost->port_agent); port_agent 2388 drivers/scsi/isci/host.c ihost->port_agent.link_up_handler(ihost, &ihost->port_agent, port_agent 2393 drivers/scsi/isci/host.c ihost->port_agent.link_up_handler(ihost, &ihost->port_agent, port_agent 2410 drivers/scsi/isci/host.c ihost->port_agent.link_down_handler(ihost, &ihost->port_agent, port_agent 157 drivers/scsi/isci/host.h struct sci_port_configuration_agent port_agent; port_agent 508 drivers/scsi/isci/host.h struct sci_port_configuration_agent *port_agent); port_agent 512 drivers/scsi/isci/host.h struct sci_port_configuration_agent *port_agent); port_agent 161 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent) port_agent 169 drivers/scsi/isci/port_config.c if (port_agent->phy_valid_port_range[0].max_index != 0 || port_agent 170 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[1].max_index != 1 || port_agent 171 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[2].max_index != 2 || port_agent 172 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[3].max_index != 3) port_agent 178 drivers/scsi/isci/port_config.c if (port_agent->phy_valid_port_range[0].min_index == 0 && port_agent 179 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[1].min_index == 0 && port_agent 180 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[2].min_index == 0 && port_agent 181 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[3].min_index == 0) port_agent 189 drivers/scsi/isci/port_config.c if (port_agent->phy_valid_port_range[2].min_index == 1) { port_agent 208 drivers/scsi/isci/port_config.c if (port_agent->phy_valid_port_range[0].min_index == 0 && port_agent 209 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[1].min_index == 1) { port_agent 222 drivers/scsi/isci/port_config.c if (port_agent->phy_valid_port_range[2].min_index == 2 && port_agent 223 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[3].min_index == 3) { port_agent 243 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent) port_agent 279 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].min_index = port_index; port_agent 280 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].max_index = phy_index; port_agent 307 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].min_index = port_index; port_agent 308 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].max_index = phy_index; port_agent 318 drivers/scsi/isci/port_config.c return sci_port_configuration_agent_validate_ports(ihost, port_agent); port_agent 325 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent; port_agent 330 drivers/scsi/isci/port_config.c port_agent = container_of(tmr, typeof(*port_agent), timer); port_agent 331 drivers/scsi/isci/port_config.c ihost = container_of(port_agent, typeof(*ihost), port_agent); port_agent 338 drivers/scsi/isci/port_config.c port_agent->timer_pending = false; port_agent 341 drivers/scsi/isci/port_config.c configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask; port_agent 347 drivers/scsi/isci/port_config.c port_agent->link_up_handler(ihost, port_agent, port_agent 358 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent, port_agent 369 drivers/scsi/isci/port_config.c port_agent->phy_ready_mask |= (1 << iphy->phy_index); port_agent 372 drivers/scsi/isci/port_config.c port_agent->phy_configured_mask |= (1 << iphy->phy_index); port_agent 394 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent, port_agent 406 drivers/scsi/isci/port_config.c port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); port_agent 407 drivers/scsi/isci/port_config.c port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); port_agent 415 drivers/scsi/isci/port_config.c if ((port_agent->phy_configured_mask == 0x0000) && port_agent 416 drivers/scsi/isci/port_config.c (port_agent->phy_ready_mask != 0x0000) && port_agent 417 drivers/scsi/isci/port_config.c !port_agent->timer_pending) { port_agent 418 drivers/scsi/isci/port_config.c port_agent->timer_pending = true; port_agent 420 drivers/scsi/isci/port_config.c sci_mod_timer(&port_agent->timer, port_agent 433 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent) port_agent 455 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].min_index = port_index; port_agent 456 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].max_index = phy_index; port_agent 458 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].min_index = phy_index; port_agent 459 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[phy_index].max_index = phy_index; port_agent 465 drivers/scsi/isci/port_config.c return sci_port_configuration_agent_validate_ports(ihost, port_agent); port_agent 474 drivers/scsi/isci/port_config.c static void sci_apc_agent_start_timer(struct sci_port_configuration_agent *port_agent, port_agent 477 drivers/scsi/isci/port_config.c port_agent->timer_pending = true; port_agent 478 drivers/scsi/isci/port_config.c sci_mod_timer(&port_agent->timer, timeout); port_agent 482 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent, port_agent 505 drivers/scsi/isci/port_config.c for (port_index = port_agent->phy_valid_port_range[iphy->phy_index].min_index; port_agent 506 drivers/scsi/isci/port_config.c port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index; port_agent 575 drivers/scsi/isci/port_config.c port_agent->phy_configured_mask |= (1 << iphy->phy_index); port_agent 580 drivers/scsi/isci/port_config.c sci_apc_agent_start_timer(port_agent, port_agent 604 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent, port_agent 612 drivers/scsi/isci/port_config.c port_agent->phy_ready_mask |= 1 << phy_index; port_agent 613 drivers/scsi/isci/port_config.c sci_apc_agent_start_timer(port_agent, port_agent 617 drivers/scsi/isci/port_config.c port_agent->phy_ready_mask |= 1 << phy_index; port_agent 637 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent, port_agent 641 drivers/scsi/isci/port_config.c port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); port_agent 645 drivers/scsi/isci/port_config.c if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) { port_agent 651 drivers/scsi/isci/port_config.c port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); port_agent 660 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent; port_agent 665 drivers/scsi/isci/port_config.c port_agent = container_of(tmr, typeof(*port_agent), timer); port_agent 666 drivers/scsi/isci/port_config.c ihost = container_of(port_agent, typeof(*ihost), port_agent); port_agent 673 drivers/scsi/isci/port_config.c port_agent->timer_pending = false; port_agent 675 drivers/scsi/isci/port_config.c configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask; port_agent 684 drivers/scsi/isci/port_config.c sci_apc_agent_configure_ports(ihost, port_agent, port_agent 708 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent) port_agent 712 drivers/scsi/isci/port_config.c port_agent->phy_configured_mask = 0x00; port_agent 713 drivers/scsi/isci/port_config.c port_agent->phy_ready_mask = 0x00; port_agent 715 drivers/scsi/isci/port_config.c port_agent->link_up_handler = NULL; port_agent 716 drivers/scsi/isci/port_config.c port_agent->link_down_handler = NULL; port_agent 718 drivers/scsi/isci/port_config.c port_agent->timer_pending = false; port_agent 721 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[index].min_index = 0; port_agent 722 drivers/scsi/isci/port_config.c port_agent->phy_valid_port_range[index].max_index = 0; port_agent 728 drivers/scsi/isci/port_config.c return ihost->port_agent.link_up_handler == sci_apc_agent_link_up; port_agent 733 drivers/scsi/isci/port_config.c struct sci_port_configuration_agent *port_agent) port_agent 742 drivers/scsi/isci/port_config.c ihost, port_agent); port_agent 744 drivers/scsi/isci/port_config.c port_agent->link_up_handler = sci_mpc_agent_link_up; port_agent 745 drivers/scsi/isci/port_config.c port_agent->link_down_handler = sci_mpc_agent_link_down; port_agent 747 drivers/scsi/isci/port_config.c sci_init_timer(&port_agent->timer, mpc_agent_timeout); port_agent 750 drivers/scsi/isci/port_config.c ihost, port_agent); port_agent 752 drivers/scsi/isci/port_config.c port_agent->link_up_handler = sci_apc_agent_link_up; port_agent 753 drivers/scsi/isci/port_config.c port_agent->link_down_handler = sci_apc_agent_link_down; port_agent 755 drivers/scsi/isci/port_config.c sci_init_timer(&port_agent->timer, apc_agent_timeout);