Lines Matching refs:sas_device

114 	struct _sas_device *sas_device;  in _transport_get_port_id_by_rphy()  local
134 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_port_id_by_rphy()
135 if (sas_device) { in _transport_get_port_id_by_rphy()
136 port_id = sas_device->port->port_id; in _transport_get_port_id_by_rphy()
137 sas_device_put(sas_device); in _transport_get_port_id_by_rphy()
691 struct _sas_device *sas_device = NULL; in mpt3sas_transport_port_add() local
771 sas_device = mpt3sas_get_sdev_by_addr(ioc, in mpt3sas_transport_port_add()
774 if (!sas_device) { in mpt3sas_transport_port_add()
779 sas_device->pend_sas_rphy_add = 1; in mpt3sas_transport_port_add()
810 sas_device->rphy = rphy; in mpt3sas_transport_port_add()
814 sas_device->sas_address; in mpt3sas_transport_port_add()
817 sas_device->sas_address; in mpt3sas_transport_port_add()
844 sas_device->pend_sas_rphy_add = 0; in mpt3sas_transport_port_add()
845 sas_device_put(sas_device); in mpt3sas_transport_port_add()
1477 struct _sas_device *sas_device; in _transport_get_enclosure_identifier() local
1482 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_enclosure_identifier()
1483 if (sas_device) { in _transport_get_enclosure_identifier()
1484 *identifier = sas_device->enclosure_logical_id; in _transport_get_enclosure_identifier()
1486 sas_device_put(sas_device); in _transport_get_enclosure_identifier()
1506 struct _sas_device *sas_device; in _transport_get_bay_identifier() local
1511 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_bay_identifier()
1512 if (sas_device) { in _transport_get_bay_identifier()
1513 rc = sas_device->slot; in _transport_get_bay_identifier()
1514 sas_device_put(sas_device); in _transport_get_bay_identifier()