Lines Matching refs:vphy

1039 	struct leapraid_vphy *vphy;  in leapraid_get_vphy_by_phy()  local
1044 list_for_each_entry(vphy, &port->vphys_list, list) { in leapraid_get_vphy_by_phy()
1045 if (vphy->phy_mask & BIT(phy_seq_num)) in leapraid_get_vphy_by_phy()
1046 return vphy; in leapraid_get_vphy_by_phy()
3468 struct leapraid_vphy *vphy; in leapraid_alloc_vphy() local
3474 vphy = leapraid_get_vphy_by_phy(port, phy_num); in leapraid_alloc_vphy()
3475 if (vphy) in leapraid_alloc_vphy()
3476 return vphy; in leapraid_alloc_vphy()
3477 vphy = kzalloc_obj(*vphy); in leapraid_alloc_vphy()
3478 if (!vphy) in leapraid_alloc_vphy()
3485 vphy->phy_mask |= BIT(phy_num); in leapraid_alloc_vphy()
3486 list_add_tail(&vphy->list, &port->vphys_list); in leapraid_alloc_vphy()
3487 return vphy; in leapraid_alloc_vphy()
3543 card->card_phy[i].vphy = 1; in leapraid_add_card_phy()
3591 card->card_phy[i].vphy = 1; in leapraid_refresh_card_phy()
4642 struct leapraid_vphy *vphy, *vphy_next; in leapraid_del_dirty_vphy() local
4649 list_for_each_entry_safe(vphy, vphy_next, in leapraid_del_dirty_vphy()
4651 if (!(vphy->flg & LEAPRAID_VPHY_FLG_DIRTY)) in leapraid_del_dirty_vphy()
4654 card_port->vphys_mask &= ~vphy->phy_mask; in leapraid_del_dirty_vphy()
4655 list_del(&vphy->list); in leapraid_del_dirty_vphy()
4656 kfree(vphy); in leapraid_del_dirty_vphy()
6160 struct leapraid_vphy *vphy, in leapraid_update_vphy_binding() argument
6187 list_move(&vphy->list, &may_new_card_port->vphys_list); in leapraid_update_vphy_binding()
6203 vphy->flg &= ~LEAPRAID_VPHY_FLG_DIRTY; in leapraid_update_vphy_binding()
6212 struct leapraid_vphy *vphy, *vphy_next; in leapraid_update_vphys_after_reset() local
6225 list_for_each_entry_safe(vphy, vphy_next, in leapraid_update_vphys_after_reset()
6227 vphy->flg |= LEAPRAID_VPHY_FLG_DIRTY; in leapraid_update_vphys_after_reset()
6262 list_for_each_entry_safe(vphy, vphy_next, in leapraid_update_vphys_after_reset()
6265 if (!(vphy->flg & LEAPRAID_VPHY_FLG_DIRTY)) in leapraid_update_vphys_after_reset()
6268 if (vphy->sas_address != attached_sas_addr) in leapraid_update_vphys_after_reset()
6271 if (!(vphy->phy_mask & BIT(i))) in leapraid_update_vphys_after_reset()
6272 vphy->phy_mask = BIT(i); in leapraid_update_vphys_after_reset()
6278 vphy, in leapraid_update_vphys_after_reset()