Lines Matching refs:port_ptr

92 	struct sun_sas_port	    *port_ptr;
108 if ((port_ptr = (struct sun_sas_port *)calloc(1,
114 if ((port_ptr->port_attributes.PortSpecificAttribute.SASPort =
124 S_FREE(port_ptr->port_attributes.PortSpecificAttribute.SASPort);
125 S_FREE(port_ptr);
144 S_FREE(port_ptr->port_attributes.PortSpecificAttribute.SASPort);
145 S_FREE(port_ptr);
155 port_ptr->port_attributes.PortState = HBA_PORTSTATE_OFFLINE;
157 port_ptr->port_attributes.PortState = HBA_PORTSTATE_ONLINE;
160 port_ptr->port_attributes.PortType = HBA_PORTTYPE_SASDEVICE;
162 (void) strlcpy(port_ptr->device_path, portDevpath, MAXPATHLEN + 1);
166 (void) strlcpy(port_ptr->port_attributes.OSDeviceName, cntlLink,
167 sizeof (port_ptr->port_attributes.OSDeviceName));
172 port_ptr->cntlNumber = atoi(++charptr);
174 port_ptr->cntlNumber = -1;
177 (void) snprintf(port_ptr->port_attributes.OSDeviceName,
178 sizeof (port_ptr->port_attributes.OSDeviceName),
184 port_ptr->port_attributes.PortSpecificAttribute.
192 port_ptr->port_attributes.OSDeviceName);
194 S_FREE(port_ptr->port_attributes.PortSpecificAttribute.SASPort);
195 S_FREE(port_ptr);
205 (void) memcpy(port_ptr->port_attributes.
211 port_ptr->port_attributes.OSDeviceName);
220 port_ptr->port_attributes.OSDeviceName);
222 S_FREE(port_ptr->port_attributes.PortSpecificAttribute.SASPort);
223 S_FREE(port_ptr);
233 (void) memcpy(port_ptr->port_attributes.
241 wwnConversion(port_ptr->port_attributes.
252 port_ptr->port_attributes.OSDeviceName);
254 S_FREE(port_ptr->port_attributes.PortSpecificAttribute.SASPort);
255 S_FREE(port_ptr);
258 port_ptr->port_attributes.PortSpecificAttribute.\
262 if (port_ptr->port_attributes.PortSpecificAttribute.\
264 if (get_phy_info(branchNode, port_ptr) != HBA_STATUS_OK) {
267 port_ptr->port_attributes.OSDeviceName);
269 S_FREE(port_ptr->port_attributes.
271 S_FREE(port_ptr);
280 if (devtree_attached_devices(portNode, port_ptr) != HBA_STATUS_OK) {
283 port_ptr->port_attributes.OSDeviceName);
284 S_FREE(port_ptr->port_attributes.PortSpecificAttribute.SASPort);
285 S_FREE(port_ptr);
289 fillDomainPortWWN(port_ptr);
293 port_ptr->index = 0;
294 hba_ptr->first_port = port_ptr;
296 port_ptr->index = hba_ptr->first_port->index + 1;
297 port_ptr->next = hba_ptr->first_port;
298 hba_ptr->first_port = port_ptr;