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()
2828 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac()
2849 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac()
2864 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_mac()
2888 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { in liquidio_set_vf_spoofchk()
2894 if (oct->sriov_info.vf_spoofchk[vfidx]) in liquidio_set_vf_spoofchk()
2898 if (!oct->sriov_info.vf_spoofchk[vfidx]) in liquidio_set_vf_spoofchk()
2923 oct->sriov_info.vf_spoofchk[vfidx] = enable; in liquidio_set_vf_spoofchk()
2939 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_vlan()
2953 if (oct->sriov_info.vf_vlantci[vfidx] == vlantci) in liquidio_set_vf_vlan()
2977 oct->sriov_info.vf_vlantci[vfidx] = vlantci; in liquidio_set_vf_vlan()
2989 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_get_vf_config()
2995 macaddr = 2 + (u8 *)&oct->sriov_info.vf_macaddr[vfidx]; in liquidio_get_vf_config()
2997 ivi->vlan = oct->sriov_info.vf_vlantci[vfidx] & VLAN_VID_MASK; in liquidio_get_vf_config()
2998 ivi->qos = oct->sriov_info.vf_vlantci[vfidx] >> VLAN_PRIO_SHIFT; in liquidio_get_vf_config()
2999 if (oct->sriov_info.trusted_vf.active && in liquidio_get_vf_config()
3000 oct->sriov_info.trusted_vf.id == vfidx) in liquidio_get_vf_config()
3004 ivi->linkstate = oct->sriov_info.vf_linkstate[vfidx]; in liquidio_get_vf_config()
3005 ivi->spoofchk = oct->sriov_info.vf_spoofchk[vfidx]; in liquidio_get_vf_config()
3059 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { in liquidio_set_vf_trust()
3067 if (oct->sriov_info.trusted_vf.active && in liquidio_set_vf_trust()
3068 oct->sriov_info.trusted_vf.id == vfidx) in liquidio_set_vf_trust()
3071 if (oct->sriov_info.trusted_vf.active) { in liquidio_set_vf_trust()
3078 if (!oct->sriov_info.trusted_vf.active) in liquidio_set_vf_trust()
3084 oct->sriov_info.trusted_vf.id = vfidx; in liquidio_set_vf_trust()
3085 oct->sriov_info.trusted_vf.active = true; in liquidio_set_vf_trust()
3087 oct->sriov_info.trusted_vf.active = false; in liquidio_set_vf_trust()
3108 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_set_vf_link_state()
3111 if (oct->sriov_info.vf_linkstate[vfidx] == linkstate) in liquidio_set_vf_link_state()
3126 oct->sriov_info.vf_linkstate[vfidx] = linkstate; in liquidio_set_vf_link_state()
3211 if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) in liquidio_get_vf_stats()
3397 num_iqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
3398 num_oqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
3399 base_queue = octeon_dev->sriov_info.pf_srn; in setup_nic_devices()
3630 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices()
3802 unsigned int num_vfs_alloced = oct->sriov_info.num_vfs_alloced; in octeon_enable_sriov()
3809 oct->sriov_info.num_vfs_alloced); in octeon_enable_sriov()
3814 oct->sriov_info.num_vfs_alloced = 0; in octeon_enable_sriov()
3817 oct->sriov_info.sriov_enabled = 1; in octeon_enable_sriov()
3828 oct->sriov_info.dpiring_to_vfpcidev_lut[u] = in octeon_enable_sriov()
3830 u += oct->sriov_info.rings_per_vf; in octeon_enable_sriov()
3853 oct->sriov_info.dpiring_to_vfpcidev_lut[u] = NULL; in lio_pci_sriov_disable()
3854 u += oct->sriov_info.rings_per_vf; in lio_pci_sriov_disable()
3857 oct->sriov_info.num_vfs_alloced = 0; in lio_pci_sriov_disable()
3869 if ((num_vfs == oct->sriov_info.num_vfs_alloced) && in liquidio_enable_sriov()
3870 (oct->sriov_info.sriov_enabled)) { in liquidio_enable_sriov()
3879 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov()
3882 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
3885 oct->sriov_info.num_vfs_alloced = num_vfs; in liquidio_enable_sriov()
4020 if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { in octeon_recv_vf_drv_notice()
4021 oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4028 if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { in octeon_recv_vf_drv_notice()
4029 oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); in octeon_recv_vf_drv_notice()
4038 oct->sriov_info.vf_macaddr[vf_idx] = data[1]; in octeon_recv_vf_drv_notice()
4201 octeon_dev->sriov_info.num_pf_rings)) { in octeon_device_init()
4227 octeon_dev->sriov_info.num_pf_rings)) in octeon_device_init()