Lines Matching refs:sriov_info
178 int adjusted_q_no = q_no + oct->sriov_info.pf_srn; in octeon_droq_bh()
737 max_vfs = oct->sriov_info.max_vfs; in disable_all_vf_links()
805 vfs_mask1 = READ_ONCE(oct->sriov_info.vf_drv_loaded_mask); in liquidio_watchdog()
806 vfs_mask2 = READ_ONCE(other_oct->sriov_info.vf_drv_loaded_mask); in liquidio_watchdog()
1100 if (oct->sriov_info.sriov_enabled) in octeon_destroy_resources()
1374 oct->sriov_info.max_vfs); in octeon_chip_specific_setup()
2825 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac()
2846 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac()
2861 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_mac()
2885 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { in liquidio_set_vf_spoofchk()
2891 if (oct->sriov_info.vf_spoofchk[vfidx]) in liquidio_set_vf_spoofchk()
2895 if (!oct->sriov_info.vf_spoofchk[vfidx]) in liquidio_set_vf_spoofchk()
2920 oct->sriov_info.vf_spoofchk[vfidx] = enable; in liquidio_set_vf_spoofchk()
2936 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_vlan()
2950 if (oct->sriov_info.vf_vlantci[vfidx] == vlantci) in liquidio_set_vf_vlan()
2974 oct->sriov_info.vf_vlantci[vfidx] = vlantci; in liquidio_set_vf_vlan()
2986 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_get_vf_config()
2992 macaddr = 2 + (u8 *)&oct->sriov_info.vf_macaddr[vfidx]; in liquidio_get_vf_config()
2994 ivi->vlan = oct->sriov_info.vf_vlantci[vfidx] & VLAN_VID_MASK; in liquidio_get_vf_config()
2995 ivi->qos = oct->sriov_info.vf_vlantci[vfidx] >> VLAN_PRIO_SHIFT; in liquidio_get_vf_config()
2996 if (oct->sriov_info.trusted_vf.active && in liquidio_get_vf_config()
2997 oct->sriov_info.trusted_vf.id == vfidx) in liquidio_get_vf_config()
3001 ivi->linkstate = oct->sriov_info.vf_linkstate[vfidx]; in liquidio_get_vf_config()
3002 ivi->spoofchk = oct->sriov_info.vf_spoofchk[vfidx]; in liquidio_get_vf_config()
3056 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { in liquidio_set_vf_trust()
3064 if (oct->sriov_info.trusted_vf.active && in liquidio_set_vf_trust()
3065 oct->sriov_info.trusted_vf.id == vfidx) in liquidio_set_vf_trust()
3068 if (oct->sriov_info.trusted_vf.active) { in liquidio_set_vf_trust()
3075 if (!oct->sriov_info.trusted_vf.active) in liquidio_set_vf_trust()
3081 oct->sriov_info.trusted_vf.id = vfidx; in liquidio_set_vf_trust()
3082 oct->sriov_info.trusted_vf.active = true; in liquidio_set_vf_trust()
3084 oct->sriov_info.trusted_vf.active = false; in liquidio_set_vf_trust()
3105 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_link_state()
3108 if (oct->sriov_info.vf_linkstate[vfidx] == linkstate) in liquidio_set_vf_link_state()
3123 oct->sriov_info.vf_linkstate[vfidx] = linkstate; in liquidio_set_vf_link_state()
3208 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_get_vf_stats()
3394 num_iqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
3395 num_oqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
3396 base_queue = octeon_dev->sriov_info.pf_srn; in setup_nic_devices()
3627 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices()
3799 unsigned int num_vfs_alloced = oct->sriov_info.num_vfs_alloced; in octeon_enable_sriov()
3806 oct->sriov_info.num_vfs_alloced); in octeon_enable_sriov()
3811 oct->sriov_info.num_vfs_alloced = 0; in octeon_enable_sriov()
3814 oct->sriov_info.sriov_enabled = 1; in octeon_enable_sriov()
3825 oct->sriov_info.dpiring_to_vfpcidev_lut[u] = in octeon_enable_sriov()
3827 u += oct->sriov_info.rings_per_vf; in octeon_enable_sriov()
3850 oct->sriov_info.dpiring_to_vfpcidev_lut[u] = NULL; in lio_pci_sriov_disable()
3851 u += oct->sriov_info.rings_per_vf; in lio_pci_sriov_disable()
3854 oct->sriov_info.num_vfs_alloced = 0; in lio_pci_sriov_disable()
3866 if ((num_vfs == oct->sriov_info.num_vfs_alloced) && in liquidio_enable_sriov()
3867 (oct->sriov_info.sriov_enabled)) { in liquidio_enable_sriov()
3876 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov()
3879 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
3882 oct->sriov_info.num_vfs_alloced = num_vfs; in liquidio_enable_sriov()
4017 if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { in octeon_recv_vf_drv_notice()
4018 oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4025 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { in octeon_recv_vf_drv_notice()
4026 oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4035 oct->sriov_info.vf_macaddr[vf_idx] = data[1]; in octeon_recv_vf_drv_notice()
4198 octeon_dev->sriov_info.num_pf_rings)) { in octeon_device_init()
4224 octeon_dev->sriov_info.num_pf_rings)) in octeon_device_init()