• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/isci/scil/

Lines Matching defs:this_smp_phy

78  * @param[in] this_smp_phy The memory space to store a phy
80 * @param[in] expander_phy_id The expander phy id for this_smp_phy.
84 SCIF_SAS_SMP_PHY_T * this_smp_phy,
89 memset(this_smp_phy, 0, sizeof(SCIF_SAS_SMP_PHY_T));
91 this_smp_phy->phy_identifier = expander_phy_id;
92 this_smp_phy->owning_device = owning_device;
94 sci_fast_list_element_init((this_smp_phy), (&this_smp_phy->list_element));
99 (&this_smp_phy->list_element)
106 * @param[in] this_smp_phy The smp phy to be destructed.
111 SCIF_SAS_SMP_PHY_T * this_smp_phy
114 SCIF_SAS_REMOTE_DEVICE_T * owning_device = this_smp_phy->owning_device;
117 if ( ( this_smp_phy->attached_device_type == SMP_EDGE_EXPANDER_DEVICE
118 || this_smp_phy->attached_device_type == SMP_FANOUT_EXPANDER_DEVICE)
119 && this_smp_phy->u.attached_phy != NULL )
122 this_smp_phy->u.attached_phy->attached_device_type = SMP_NO_DEVICE_ATTACHED;
123 this_smp_phy->u.attached_phy->u.attached_phy = NULL;
127 sci_fast_list_remove_element(&this_smp_phy->list_element);
128 scif_sas_controller_free_smp_phy(fw_controller, this_smp_phy);
135 * @param[in] this_smp_phy The memory space to store a phy
138 * @param[in] discover_response The smp DISCOVER response for this_smp_phy.
142 SCIF_SAS_SMP_PHY_T * this_smp_phy,
147 ASSERT (this_smp_phy->owning_device != NULL);
148 ASSERT (this_smp_phy->phy_identifier == discover_response->phy_identifier);
150 this_smp_phy->attached_device_type = (U8)discover_response->u2.sas1_1.attached_device_type;
151 this_smp_phy->routing_attribute = (U8)discover_response->routing_attribute;
152 this_smp_phy->attached_sas_address = discover_response->attached_sas_address;
153 this_smp_phy->config_route_table_index_anchor = 0;
155 if (this_smp_phy->attached_device_type != SMP_EDGE_EXPANDER_DEVICE
156 && this_smp_phy->attached_device_type != SMP_FANOUT_EXPANDER_DEVICE)
159 this_smp_phy->u.end_device = attached_device;
171 * @param[in] this_smp_phy The memory space to store a phy
173 * @param[in] discover_response The smp DISCOVER response for this_smp_phy.
179 SCIF_SAS_SMP_PHY_T * this_smp_phy,
192 this_smp_phy->u.attached_phy = attached_smp_phy;
193 attached_smp_phy->u.attached_phy = this_smp_phy;
206 * @param[in] this_smp_phy One smp phy belongs to a smp phy connection.
214 SCIF_SAS_SMP_PHY_T * this_smp_phy,
222 if ( this_smp_phy->routing_attribute == DIRECT_ROUTING_ATTRIBUTE
225 if ( (this_smp_phy->routing_attribute | attached_smp_phy->routing_attribute)
230 if (this_smp_phy->routing_attribute == TABLE_ROUTING_ATTRIBUTE
233 if ( ! this_smp_phy->owning_device->protocol_device.smp_device.is_table_to_table_supported
244 * resides in the same wide port as this_smp_phy.
246 * @param[in] this_smp_phy The smp phy whose neighbor phy that is in the same
250 * wide port as this_smp_phy.
253 SCIF_SAS_SMP_PHY_T * this_smp_phy
257 &(this_smp_phy->list_element) );
267 if (next_phy->attached_sas_address.high == this_smp_phy->attached_sas_address.high
268 &&next_phy->attached_sas_address.low == this_smp_phy->attached_sas_address.low)
278 * wide port as this_smp_phy.
280 * @param[in] this_smp_phy The smp phy who is the lowest order phy in a wide
284 * wide port as this_smp_phy.
287 SCIF_SAS_SMP_PHY_T * this_smp_phy
291 scif_sas_smp_phy_find_next_phy_in_wide_port(this_smp_phy);
292 SCIF_SAS_SMP_PHY_T * middle_phy = this_smp_phy;
313 * in the same wide port as this_smp_phy.
315 * @param[in] this_smp_phy The smp phy who is the lowest order phy in a wide
319 * wide port as this_smp_phy.
322 SCIF_SAS_SMP_PHY_T * this_smp_phy
326 scif_sas_smp_phy_find_next_phy_in_wide_port(this_smp_phy);
327 SCIF_SAS_SMP_PHY_T * highest_phy = this_smp_phy;