Lines Matching refs:vphy

444 	struct virtual_phy *vphy, *vphy_next;  in mpt3sas_get_vphy_by_phy()  local
449 list_for_each_entry_safe(vphy, vphy_next, &port->vphys_list, list) { in mpt3sas_get_vphy_by_phy()
450 if (vphy->phy_mask & (1 << phy)) in mpt3sas_get_vphy_by_phy()
451 return vphy; in mpt3sas_get_vphy_by_phy()
5951 struct virtual_phy *vphy, *vphy_next; in _scsih_update_vphys_after_reset() local
5961 list_for_each_entry_safe(vphy, vphy_next, in _scsih_update_vphys_after_reset()
5963 vphy->flags |= MPT_VPHY_FLAG_DIRTY_PHY; in _scsih_update_vphys_after_reset()
6038 list_for_each_entry_safe(vphy, vphy_next, in _scsih_update_vphys_after_reset()
6044 if (!(vphy->flags & MPT_VPHY_FLAG_DIRTY_PHY)) in _scsih_update_vphys_after_reset()
6052 if (vphy->sas_address != attached_sas_addr) in _scsih_update_vphys_after_reset()
6058 if (!(vphy->phy_mask & (1 << i))) in _scsih_update_vphys_after_reset()
6059 vphy->phy_mask = (1 << i); in _scsih_update_vphys_after_reset()
6094 list_move(&vphy->list, in _scsih_update_vphys_after_reset()
6118 vphy->flags &= ~MPT_VPHY_FLAG_DIRTY_PHY; in _scsih_update_vphys_after_reset()
6360 struct virtual_phy *vphy, *vphy_next; in _scsih_del_dirty_vphy() local
6366 list_for_each_entry_safe(vphy, vphy_next, in _scsih_del_dirty_vphy()
6368 if (vphy->flags & MPT_VPHY_FLAG_DIRTY_PHY) { in _scsih_del_dirty_vphy()
6371 vphy, port->port_id, in _scsih_del_dirty_vphy()
6372 vphy->phy_mask)); in _scsih_del_dirty_vphy()
6373 port->vphys_mask &= ~vphy->phy_mask; in _scsih_del_dirty_vphy()
6374 list_del(&vphy->list); in _scsih_del_dirty_vphy()
6375 kfree(vphy); in _scsih_del_dirty_vphy()
6525 struct virtual_phy *vphy; in _scsih_alloc_vphy() local
6532 vphy = mpt3sas_get_vphy_by_phy(ioc, port, phy_num); in _scsih_alloc_vphy()
6533 if (!vphy) { in _scsih_alloc_vphy()
6534 vphy = kzalloc(sizeof(struct virtual_phy), GFP_KERNEL); in _scsih_alloc_vphy()
6535 if (!vphy) in _scsih_alloc_vphy()
6546 vphy->phy_mask |= (1 << phy_num); in _scsih_alloc_vphy()
6548 list_add_tail(&vphy->list, &port->vphys_list); in _scsih_alloc_vphy()
6552 vphy, port->port_id, phy_num); in _scsih_alloc_vphy()
6554 return vphy; in _scsih_alloc_vphy()