Lines Matching refs:sriov_info
178 int adjusted_q_no = q_no + oct->sriov_info.pf_srn; in octeon_droq_bh()
736 max_vfs = oct->sriov_info.max_vfs; in disable_all_vf_links()
804 vfs_mask1 = READ_ONCE(oct->sriov_info.vf_drv_loaded_mask); in liquidio_watchdog()
805 vfs_mask2 = READ_ONCE(other_oct->sriov_info.vf_drv_loaded_mask); in liquidio_watchdog()
1098 if (oct->sriov_info.sriov_enabled) in octeon_destroy_resources()
1370 oct->sriov_info.max_vfs); in octeon_chip_specific_setup()
2822 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac()
2843 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac()
2858 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_mac()
2882 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { in liquidio_set_vf_spoofchk()
2888 if (oct->sriov_info.vf_spoofchk[vfidx]) in liquidio_set_vf_spoofchk()
2892 if (!oct->sriov_info.vf_spoofchk[vfidx]) in liquidio_set_vf_spoofchk()
2917 oct->sriov_info.vf_spoofchk[vfidx] = enable; in liquidio_set_vf_spoofchk()
2933 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_vlan()
2947 if (oct->sriov_info.vf_vlantci[vfidx] == vlantci) in liquidio_set_vf_vlan()
2971 oct->sriov_info.vf_vlantci[vfidx] = vlantci; in liquidio_set_vf_vlan()
2983 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_get_vf_config()
2989 macaddr = 2 + (u8 *)&oct->sriov_info.vf_macaddr[vfidx]; in liquidio_get_vf_config()
2991 ivi->vlan = oct->sriov_info.vf_vlantci[vfidx] & VLAN_VID_MASK; in liquidio_get_vf_config()
2992 ivi->qos = oct->sriov_info.vf_vlantci[vfidx] >> VLAN_PRIO_SHIFT; in liquidio_get_vf_config()
2993 if (oct->sriov_info.trusted_vf.active && in liquidio_get_vf_config()
2994 oct->sriov_info.trusted_vf.id == vfidx) in liquidio_get_vf_config()
2998 ivi->linkstate = oct->sriov_info.vf_linkstate[vfidx]; in liquidio_get_vf_config()
2999 ivi->spoofchk = oct->sriov_info.vf_spoofchk[vfidx]; in liquidio_get_vf_config()
3053 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { in liquidio_set_vf_trust()
3061 if (oct->sriov_info.trusted_vf.active && in liquidio_set_vf_trust()
3062 oct->sriov_info.trusted_vf.id == vfidx) in liquidio_set_vf_trust()
3065 if (oct->sriov_info.trusted_vf.active) { in liquidio_set_vf_trust()
3072 if (!oct->sriov_info.trusted_vf.active) in liquidio_set_vf_trust()
3078 oct->sriov_info.trusted_vf.id = vfidx; in liquidio_set_vf_trust()
3079 oct->sriov_info.trusted_vf.active = true; in liquidio_set_vf_trust()
3081 oct->sriov_info.trusted_vf.active = false; in liquidio_set_vf_trust()
3102 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_link_state()
3105 if (oct->sriov_info.vf_linkstate[vfidx] == linkstate) in liquidio_set_vf_link_state()
3120 oct->sriov_info.vf_linkstate[vfidx] = linkstate; in liquidio_set_vf_link_state()
3205 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_get_vf_stats()
3391 num_iqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
3392 num_oqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
3393 base_queue = octeon_dev->sriov_info.pf_srn; in setup_nic_devices()
3624 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices()
3796 unsigned int num_vfs_alloced = oct->sriov_info.num_vfs_alloced; in octeon_enable_sriov()
3803 oct->sriov_info.num_vfs_alloced); in octeon_enable_sriov()
3808 oct->sriov_info.num_vfs_alloced = 0; in octeon_enable_sriov()
3811 oct->sriov_info.sriov_enabled = 1; in octeon_enable_sriov()
3822 oct->sriov_info.dpiring_to_vfpcidev_lut[u] = in octeon_enable_sriov()
3824 u += oct->sriov_info.rings_per_vf; in octeon_enable_sriov()
3847 oct->sriov_info.dpiring_to_vfpcidev_lut[u] = NULL; in lio_pci_sriov_disable()
3848 u += oct->sriov_info.rings_per_vf; in lio_pci_sriov_disable()
3851 oct->sriov_info.num_vfs_alloced = 0; in lio_pci_sriov_disable()
3863 if ((num_vfs == oct->sriov_info.num_vfs_alloced) && in liquidio_enable_sriov()
3864 (oct->sriov_info.sriov_enabled)) { in liquidio_enable_sriov()
3873 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov()
3876 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
3879 oct->sriov_info.num_vfs_alloced = num_vfs; in liquidio_enable_sriov()
4014 if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { in octeon_recv_vf_drv_notice()
4015 oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4022 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { in octeon_recv_vf_drv_notice()
4023 oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4032 oct->sriov_info.vf_macaddr[vf_idx] = data[1]; in octeon_recv_vf_drv_notice()
4194 octeon_dev->sriov_info.num_pf_rings)) { in octeon_device_init()
4220 octeon_dev->sriov_info.num_pf_rings)) in octeon_device_init()