Lines Matching refs:vphy
443 struct virtual_phy *vphy, *vphy_next; in mpt3sas_get_vphy_by_phy() local
448 list_for_each_entry_safe(vphy, vphy_next, &port->vphys_list, list) { in mpt3sas_get_vphy_by_phy()
449 if (vphy->phy_mask & (1 << phy)) in mpt3sas_get_vphy_by_phy()
450 return vphy; in mpt3sas_get_vphy_by_phy()
5950 struct virtual_phy *vphy, *vphy_next; in _scsih_update_vphys_after_reset() local
5960 list_for_each_entry_safe(vphy, vphy_next, in _scsih_update_vphys_after_reset()
5962 vphy->flags |= MPT_VPHY_FLAG_DIRTY_PHY; in _scsih_update_vphys_after_reset()
6037 list_for_each_entry_safe(vphy, vphy_next, in _scsih_update_vphys_after_reset()
6043 if (!(vphy->flags & MPT_VPHY_FLAG_DIRTY_PHY)) in _scsih_update_vphys_after_reset()
6051 if (vphy->sas_address != attached_sas_addr) in _scsih_update_vphys_after_reset()
6057 if (!(vphy->phy_mask & (1 << i))) in _scsih_update_vphys_after_reset()
6058 vphy->phy_mask = (1 << i); in _scsih_update_vphys_after_reset()
6093 list_move(&vphy->list, in _scsih_update_vphys_after_reset()
6117 vphy->flags &= ~MPT_VPHY_FLAG_DIRTY_PHY; in _scsih_update_vphys_after_reset()
6359 struct virtual_phy *vphy, *vphy_next; in _scsih_del_dirty_vphy() local
6365 list_for_each_entry_safe(vphy, vphy_next, in _scsih_del_dirty_vphy()
6367 if (vphy->flags & MPT_VPHY_FLAG_DIRTY_PHY) { in _scsih_del_dirty_vphy()
6370 vphy, port->port_id, in _scsih_del_dirty_vphy()
6371 vphy->phy_mask)); in _scsih_del_dirty_vphy()
6372 port->vphys_mask &= ~vphy->phy_mask; in _scsih_del_dirty_vphy()
6373 list_del(&vphy->list); in _scsih_del_dirty_vphy()
6374 kfree(vphy); in _scsih_del_dirty_vphy()
6524 struct virtual_phy *vphy; in _scsih_alloc_vphy() local
6531 vphy = mpt3sas_get_vphy_by_phy(ioc, port, phy_num); in _scsih_alloc_vphy()
6532 if (!vphy) { in _scsih_alloc_vphy()
6533 vphy = kzalloc(sizeof(struct virtual_phy), GFP_KERNEL); in _scsih_alloc_vphy()
6534 if (!vphy) in _scsih_alloc_vphy()
6545 vphy->phy_mask |= (1 << phy_num); in _scsih_alloc_vphy()
6547 list_add_tail(&vphy->list, &port->vphys_list); in _scsih_alloc_vphy()
6551 vphy, port->port_id, phy_num); in _scsih_alloc_vphy()
6553 return vphy; in _scsih_alloc_vphy()