Lines Matching refs:vf_info

11 	struct fm10k_vf_info *vf_info = (struct fm10k_vf_info *)mbx;  in fm10k_iov_msg_error()  local
16 **results & FM10K_TLV_ID_MASK, vf_info->vf_idx); in fm10k_iov_msg_error()
36 struct fm10k_vf_info *vf_info = (struct fm10k_vf_info *)mbx; in fm10k_iov_msg_queue_mac_vlan() local
46 if (!FM10K_VF_FLAG_ENABLED(vf_info)) in fm10k_iov_msg_queue_mac_vlan()
74 if (vf_info->pf_vid) in fm10k_iov_msg_queue_mac_vlan()
77 err = fm10k_iov_select_vid(vf_info, (u16)vid); in fm10k_iov_msg_queue_mac_vlan()
85 err = hw->mac.ops.update_vlan(hw, vid, vf_info->vsi, set); in fm10k_iov_msg_queue_mac_vlan()
97 if (is_valid_ether_addr(vf_info->mac) && in fm10k_iov_msg_queue_mac_vlan()
98 !ether_addr_equal(mac, vf_info->mac)) in fm10k_iov_msg_queue_mac_vlan()
104 err = fm10k_iov_select_vid(vf_info, vlan); in fm10k_iov_msg_queue_mac_vlan()
111 err = fm10k_queue_mac_request(interface, vf_info->glort, in fm10k_iov_msg_queue_mac_vlan()
124 if (!(vf_info->vf_flags & FM10K_VF_FLAG_MULTI_ENABLED)) in fm10k_iov_msg_queue_mac_vlan()
130 err = fm10k_iov_select_vid(vf_info, vlan); in fm10k_iov_msg_queue_mac_vlan()
137 err = fm10k_queue_mac_request(interface, vf_info->glort, in fm10k_iov_msg_queue_mac_vlan()
182 struct fm10k_vf_info *vf_info = &iov_data->vf_info[i]; in fm10k_iov_event() local
187 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_event()
188 vf_info->mbx.ops.connect(hw, &vf_info->mbx); in fm10k_iov_event()
227 struct fm10k_vf_info *vf_info = &iov_data->vf_info[i]; in fm10k_iov_mbx() local
228 struct fm10k_mbx_info *mbx = &vf_info->mbx; in fm10k_iov_mbx()
229 u16 glort = vf_info->glort; in fm10k_iov_mbx()
235 if (vf_info->vf_flags && !fm10k_glort_valid_pf(hw, glort)) { in fm10k_iov_mbx()
236 hw->iov.ops.reset_lport(hw, vf_info); in fm10k_iov_mbx()
242 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_mbx()
298 struct fm10k_vf_info *vf_info = &iov_data->vf_info[i]; in fm10k_iov_suspend() local
300 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_suspend()
301 hw->iov.ops.reset_lport(hw, vf_info); in fm10k_iov_suspend()
302 fm10k_clear_macvlan_queue(interface, vf_info->glort, false); in fm10k_iov_suspend()
363 struct fm10k_vf_info *vf_info = &iov_data->vf_info[i]; in fm10k_iov_resume() local
370 hw->iov.ops.set_lport(hw, vf_info, i, in fm10k_iov_resume()
374 hw->iov.ops.assign_default_mac_vlan(hw, vf_info); in fm10k_iov_resume()
377 vf_info->mbx.ops.connect(hw, &vf_info->mbx); in fm10k_iov_resume()
387 struct fm10k_vf_info *vf_info; in fm10k_iov_update_pvid() local
399 vf_info = &iov_data->vf_info[vf_idx]; in fm10k_iov_update_pvid()
400 if (vf_info->sw_vid != pvid) { in fm10k_iov_update_pvid()
401 vf_info->sw_vid = pvid; in fm10k_iov_update_pvid()
402 hw->iov.ops.assign_default_mac_vlan(hw, vf_info); in fm10k_iov_update_pvid()
444 size = offsetof(struct fm10k_iov_data, vf_info[num_vfs]); in fm10k_iov_alloc_data()
454 struct fm10k_vf_info *vf_info = &iov_data->vf_info[i]; in fm10k_iov_alloc_data() local
458 vf_info->vsi = i + 1; in fm10k_iov_alloc_data()
459 vf_info->vf_idx = i; in fm10k_iov_alloc_data()
462 err = fm10k_pfvf_mbx_init(hw, &vf_info->mbx, iov_mbx_data, i); in fm10k_iov_alloc_data()
541 hw->iov.ops.update_stats(hw, iov_data->vf_info[i].stats, i); in fm10k_iov_update_stats()
545 struct fm10k_vf_info *vf_info) in fm10k_reset_vf_info() argument
553 hw->iov.ops.reset_lport(hw, vf_info); in fm10k_reset_vf_info()
555 fm10k_clear_macvlan_queue(interface, vf_info->glort, false); in fm10k_reset_vf_info()
558 hw->iov.ops.assign_default_mac_vlan(hw, vf_info); in fm10k_reset_vf_info()
561 hw->iov.ops.set_lport(hw, vf_info, vf_info->vf_idx, in fm10k_reset_vf_info()
571 struct fm10k_vf_info *vf_info; in fm10k_ndo_set_vf_mac() local
582 vf_info = &iov_data->vf_info[vf_idx]; in fm10k_ndo_set_vf_mac()
583 ether_addr_copy(vf_info->mac, mac); in fm10k_ndo_set_vf_mac()
585 fm10k_reset_vf_info(interface, vf_info); in fm10k_ndo_set_vf_mac()
596 struct fm10k_vf_info *vf_info; in fm10k_ndo_set_vf_vlan() local
610 vf_info = &iov_data->vf_info[vf_idx]; in fm10k_ndo_set_vf_vlan()
613 if (vf_info->pf_vid == vid) in fm10k_ndo_set_vf_vlan()
617 vf_info->pf_vid = vid; in fm10k_ndo_set_vf_vlan()
620 hw->mac.ops.update_vlan(hw, FM10K_VLAN_ALL, vf_info->vsi, false); in fm10k_ndo_set_vf_vlan()
622 fm10k_reset_vf_info(interface, vf_info); in fm10k_ndo_set_vf_vlan()
644 iov_data->vf_info[vf_idx].rate = max_rate; in fm10k_ndo_set_vf_bw()
657 struct fm10k_vf_info *vf_info; in fm10k_ndo_get_vf_config() local
663 vf_info = &iov_data->vf_info[vf_idx]; in fm10k_ndo_get_vf_config()
666 ivi->max_tx_rate = vf_info->rate; in fm10k_ndo_get_vf_config()
668 ether_addr_copy(ivi->mac, vf_info->mac); in fm10k_ndo_get_vf_config()
669 ivi->vlan = vf_info->pf_vid; in fm10k_ndo_get_vf_config()
689 hw_stats = iov_data->vf_info[vf_idx].stats; in fm10k_ndo_get_vf_stats()