Lines Matching refs:port
158 struct asd_port *port;
165 port = &asd_ha->asd_ports[i];
167 /* Check for wide port */
168 if (port->num_phys > 0 &&
169 memcmp(port->sas_addr, sas_phy->sas_addr,
171 memcmp(port->attached_sas_addr,
177 /* Find a free port */
178 if (port->num_phys == 0 && free_port == NULL) {
179 free_port = port;
183 /* Use a free port if this doesn't form a wide port */
185 port = free_port;
186 BUG_ON(!port);
187 memcpy(port->sas_addr, sas_phy->sas_addr,
189 memcpy(port->attached_sas_addr,
193 port->num_phys++;
194 port->phy_mask |= (1U << sas_phy->id);
195 phy->asd_port = port;
205 struct asd_port *port = phy->asd_port;
210 if (port) {
211 port->num_phys--;
212 port->phy_mask &= ~(1U << sas_phy->id);
337 /* The sequencer disables all phys on that port.
785 /* initiator port settings are in the hi nibble */