Lines Matching refs:vphy
443 struct virtual_phy *vphy, *vphy_next;
448 list_for_each_entry_safe(vphy, vphy_next, &port->vphys_list, list) {
449 if (vphy->phy_mask & (1 << phy))
450 return vphy;
5950 struct virtual_phy *vphy, *vphy_next;
5960 list_for_each_entry_safe(vphy, vphy_next,
5962 vphy->flags |= MPT_VPHY_FLAG_DIRTY_PHY;
6037 list_for_each_entry_safe(vphy, vphy_next,
6043 if (!(vphy->flags & MPT_VPHY_FLAG_DIRTY_PHY))
6051 if (vphy->sas_address != attached_sas_addr)
6057 if (!(vphy->phy_mask & (1 << i)))
6058 vphy->phy_mask = (1 << i);
6093 list_move(&vphy->list,
6117 vphy->flags &= ~MPT_VPHY_FLAG_DIRTY_PHY;
6359 struct virtual_phy *vphy, *vphy_next;
6365 list_for_each_entry_safe(vphy, vphy_next,
6367 if (vphy->flags & MPT_VPHY_FLAG_DIRTY_PHY) {
6369 "Deleting vphy %p entry from port id: %d\t, Phy_mask 0x%08x\n",
6370 vphy, port->port_id,
6371 vphy->phy_mask));
6372 port->vphys_mask &= ~vphy->phy_mask;
6373 list_del(&vphy->list);
6374 kfree(vphy);
6524 struct virtual_phy *vphy;
6531 vphy = mpt3sas_get_vphy_by_phy(ioc, port, phy_num);
6532 if (!vphy) {
6533 vphy = kzalloc(sizeof(struct virtual_phy), GFP_KERNEL);
6534 if (!vphy)
6545 vphy->phy_mask |= (1 << phy_num);
6547 list_add_tail(&vphy->list, &port->vphys_list);
6550 "vphy entry: %p, port id: %d, phy:%d is added to port's vphys_list\n",
6551 vphy, port->port_id, phy_num);
6553 return vphy;