Lines Matching refs:port
156 struct asd_port *port;
163 port = &asd_ha->asd_ports[i];
165 /* Check for wide port */
166 if (port->num_phys > 0 &&
167 memcmp(port->sas_addr, sas_phy->sas_addr,
169 memcmp(port->attached_sas_addr,
175 /* Find a free port */
176 if (port->num_phys == 0 && free_port == NULL) {
177 free_port = port;
181 /* Use a free port if this doesn't form a wide port */
183 port = free_port;
184 BUG_ON(!port);
185 memcpy(port->sas_addr, sas_phy->sas_addr,
187 memcpy(port->attached_sas_addr,
191 port->num_phys++;
192 port->phy_mask |= (1U << sas_phy->id);
193 phy->asd_port = port;
203 struct asd_port *port = phy->asd_port;
208 if (port) {
209 port->num_phys--;
210 port->phy_mask &= ~(1U << sas_phy->id);
334 /* The sequencer disables all phys on that port.
779 /* initiator port settings are in the hi nibble */