sriov_info 327 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c (oct->sriov_info.trs << CN23XX_PKT_MAC_CTL_RINFO_TRS_BIT_POS); sriov_info 329 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c temp = oct->sriov_info.rings_per_vf & 0xff; sriov_info 333 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c temp = oct->sriov_info.max_vfs & 0xff; sriov_info 352 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c srn = oct->sriov_info.pf_srn; sriov_info 353 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c ern = srn + oct->sriov_info.num_pf_rings; sriov_info 411 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c srn = oct->sriov_info.pf_srn; sriov_info 412 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c ern = srn + oct->sriov_info.num_pf_rings; sriov_info 426 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (q_no < oct->sriov_info.pf_srn) { sriov_info 427 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c vf_num = q_no / oct->sriov_info.rings_per_vf; sriov_info 483 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c srn = oct->sriov_info.pf_srn; sriov_info 484 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c ern = srn + oct->sriov_info.num_pf_rings; sriov_info 592 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c iq_no += oct->sriov_info.pf_srn; sriov_info 636 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oq_no += oct->sriov_info.pf_srn; sriov_info 691 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c for (i = 0; i < oct->sriov_info.num_vfs_alloced; i++) { sriov_info 692 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c q_no = i * oct->sriov_info.rings_per_vf; sriov_info 716 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (!oct->sriov_info.max_vfs) sriov_info 719 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c for (i = 0; i < oct->sriov_info.max_vfs; i++) { sriov_info 720 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c q_no = i * oct->sriov_info.rings_per_vf; sriov_info 777 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (!oct->sriov_info.max_vfs) sriov_info 780 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c for (i = 0; i < oct->sriov_info.max_vfs; i++) { sriov_info 781 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c q_no = i * oct->sriov_info.rings_per_vf; sriov_info 796 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c srn = oct->sriov_info.pf_srn; sriov_info 874 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c srn = oct->sriov_info.pf_srn; sriov_info 992 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c for (i = 0; i < oct->sriov_info.num_vfs_alloced; i++) { sriov_info 993 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c q_no = i * oct->sriov_info.rings_per_vf; sriov_info 1117 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c (oct->sriov_info.max_vfs > 0)) { sriov_info 1139 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c (oct->sriov_info.max_vfs > 0)) { sriov_info 1275 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (oct->sriov_info.num_pf_rings) sriov_info 1276 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c num_pf_rings = oct->sriov_info.num_pf_rings; sriov_info 1294 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.trs = total_rings; sriov_info 1295 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.max_vfs = max_vfs; sriov_info 1296 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.rings_per_vf = rings_per_vf; sriov_info 1297 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.pf_srn = pf_srn; sriov_info 1298 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.num_pf_rings = num_pf_rings; sriov_info 1300 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.trs, oct->sriov_info.max_vfs, sriov_info 1301 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.rings_per_vf, oct->sriov_info.pf_srn, sriov_info 1302 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.num_pf_rings); sriov_info 1304 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c oct->sriov_info.sriov_enabled = 0; sriov_info 1442 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vfidx)) { sriov_info 1455 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf; sriov_info 1478 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c if (!(oct->sriov_info.vf_drv_loaded_mask & (1ULL << vfidx))) sriov_info 1489 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.q_no = vfidx * oct->sriov_info.rings_per_vf; sriov_info 108 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c if (cn23xx_vf_reset_io_queues(oct, oct->sriov_info.rings_per_vf)) sriov_info 111 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c for (q_no = 0; q_no < (oct->sriov_info.rings_per_vf); q_no++) { sriov_info 156 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c for (q_no = 0; q_no < (oct->sriov_info.rings_per_vf); q_no++) { sriov_info 645 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c if (oct->sriov_info.rings_per_vf > rings_per_vf) { sriov_info 648 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c oct->sriov_info.rings_per_vf, rings_per_vf, sriov_info 650 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c oct->sriov_info.rings_per_vf = rings_per_vf; sriov_info 658 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c oct->sriov_info.rings_per_vf = sriov_info 661 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c oct->sriov_info.rings_per_vf = rings_per_vf; sriov_info 1063 drivers/net/ethernet/cavium/liquidio/lio_core.c oct->sriov_info.pf_srn + i; sriov_info 1066 drivers/net/ethernet/cavium/liquidio/lio_core.c oct->sriov_info.trs; sriov_info 1460 drivers/net/ethernet/cavium/liquidio/lio_core.c oct_dev->sriov_info.num_vfs_alloced) { sriov_info 513 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (oct->sriov_info.sriov_enabled) { sriov_info 622 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (oct->sriov_info.sriov_enabled) { sriov_info 1018 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if_cfg.s.num_iqueues = oct->sriov_info.num_pf_rings; sriov_info 1019 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if_cfg.s.num_oqueues = oct->sriov_info.num_pf_rings; sriov_info 1020 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if_cfg.s.base_queue = oct->sriov_info.pf_srn; sriov_info 1146 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if ((OCTEON_CN23XX_PF(oct)) && !oct->sriov_info.sriov_enabled) sriov_info 1165 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c !oct->sriov_info.sriov_enabled) { sriov_info 1166 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c oct->sriov_info.num_pf_rings = num_qs; sriov_info 1173 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c num_qs = oct->sriov_info.num_pf_rings; sriov_info 1193 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (OCTEON_CN23XX_PF(oct) && !oct->sriov_info.sriov_enabled) { sriov_info 1222 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (OCTEON_CN23XX_PF(oct) && !oct->sriov_info.sriov_enabled) { sriov_info 1248 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if (oct->sriov_info.sriov_enabled || OCTEON_CN23XX_VF(oct)) sriov_info 2252 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c q_no += oct->sriov_info.pf_srn; sriov_info 2330 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c q_no += oct->sriov_info.pf_srn; sriov_info 2767 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2774 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2781 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2788 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2795 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2802 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2809 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2816 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2822 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2829 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2836 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2843 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2850 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2857 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 2864 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c for (i = 0; i < (oct->sriov_info.rings_per_vf); i++) { sriov_info 184 drivers/net/ethernet/cavium/liquidio/lio_main.c int adjusted_q_no = q_no + oct->sriov_info.pf_srn; sriov_info 765 drivers/net/ethernet/cavium/liquidio/lio_main.c max_vfs = oct->sriov_info.max_vfs; sriov_info 833 drivers/net/ethernet/cavium/liquidio/lio_main.c vfs_mask1 = READ_ONCE(oct->sriov_info.vf_drv_loaded_mask); sriov_info 834 drivers/net/ethernet/cavium/liquidio/lio_main.c vfs_mask2 = READ_ONCE(other_oct->sriov_info.vf_drv_loaded_mask); sriov_info 1132 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.sriov_enabled) sriov_info 1406 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.max_vfs); sriov_info 2830 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) sriov_info 2851 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; sriov_info 2866 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) sriov_info 2890 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { sriov_info 2896 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.vf_spoofchk[vfidx]) sriov_info 2900 drivers/net/ethernet/cavium/liquidio/lio_main.c if (!oct->sriov_info.vf_spoofchk[vfidx]) sriov_info 2925 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_spoofchk[vfidx] = enable; sriov_info 2941 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) sriov_info 2955 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.vf_vlantci[vfidx] == vlantci) sriov_info 2979 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_vlantci[vfidx] = vlantci; sriov_info 2991 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) sriov_info 2997 drivers/net/ethernet/cavium/liquidio/lio_main.c macaddr = 2 + (u8 *)&oct->sriov_info.vf_macaddr[vfidx]; sriov_info 2999 drivers/net/ethernet/cavium/liquidio/lio_main.c ivi->vlan = oct->sriov_info.vf_vlantci[vfidx] & VLAN_VID_MASK; sriov_info 3000 drivers/net/ethernet/cavium/liquidio/lio_main.c ivi->qos = oct->sriov_info.vf_vlantci[vfidx] >> VLAN_PRIO_SHIFT; sriov_info 3001 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.trusted_vf.active && sriov_info 3002 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.trusted_vf.id == vfidx) sriov_info 3006 drivers/net/ethernet/cavium/liquidio/lio_main.c ivi->linkstate = oct->sriov_info.vf_linkstate[vfidx]; sriov_info 3007 drivers/net/ethernet/cavium/liquidio/lio_main.c ivi->spoofchk = oct->sriov_info.vf_spoofchk[vfidx]; sriov_info 3061 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) { sriov_info 3069 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.trusted_vf.active && sriov_info 3070 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.trusted_vf.id == vfidx) sriov_info 3073 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.trusted_vf.active) { sriov_info 3080 drivers/net/ethernet/cavium/liquidio/lio_main.c if (!oct->sriov_info.trusted_vf.active) sriov_info 3086 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.trusted_vf.id = vfidx; sriov_info 3087 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.trusted_vf.active = true; sriov_info 3089 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.trusted_vf.active = false; sriov_info 3110 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) sriov_info 3113 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.vf_linkstate[vfidx] == linkstate) sriov_info 3128 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_linkstate[vfidx] = linkstate; sriov_info 3213 drivers/net/ethernet/cavium/liquidio/lio_main.c if (vfidx < 0 || vfidx >= oct->sriov_info.num_vfs_alloced) sriov_info 3400 drivers/net/ethernet/cavium/liquidio/lio_main.c num_iqueues = octeon_dev->sriov_info.num_pf_rings; sriov_info 3401 drivers/net/ethernet/cavium/liquidio/lio_main.c num_oqueues = octeon_dev->sriov_info.num_pf_rings; sriov_info 3402 drivers/net/ethernet/cavium/liquidio/lio_main.c base_queue = octeon_dev->sriov_info.pf_srn; sriov_info 3631 drivers/net/ethernet/cavium/liquidio/lio_main.c for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { sriov_info 3805 drivers/net/ethernet/cavium/liquidio/lio_main.c unsigned int num_vfs_alloced = oct->sriov_info.num_vfs_alloced; sriov_info 3812 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.num_vfs_alloced); sriov_info 3817 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.num_vfs_alloced = 0; sriov_info 3820 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.sriov_enabled = 1; sriov_info 3831 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.dpiring_to_vfpcidev_lut[u] = sriov_info 3833 drivers/net/ethernet/cavium/liquidio/lio_main.c u += oct->sriov_info.rings_per_vf; sriov_info 3856 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.dpiring_to_vfpcidev_lut[u] = NULL; sriov_info 3857 drivers/net/ethernet/cavium/liquidio/lio_main.c u += oct->sriov_info.rings_per_vf; sriov_info 3860 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.num_vfs_alloced = 0; sriov_info 3872 drivers/net/ethernet/cavium/liquidio/lio_main.c if ((num_vfs == oct->sriov_info.num_vfs_alloced) && sriov_info 3873 drivers/net/ethernet/cavium/liquidio/lio_main.c (oct->sriov_info.sriov_enabled)) { sriov_info 3882 drivers/net/ethernet/cavium/liquidio/lio_main.c } else if (num_vfs > oct->sriov_info.max_vfs) { sriov_info 3885 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.max_vfs, num_vfs); sriov_info 3888 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.num_vfs_alloced = num_vfs; sriov_info 4022 drivers/net/ethernet/cavium/liquidio/lio_main.c if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) { sriov_info 4023 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx); sriov_info 4030 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) { sriov_info 4031 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx); sriov_info 4040 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->sriov_info.vf_macaddr[vf_idx] = data[1]; sriov_info 4203 drivers/net/ethernet/cavium/liquidio/lio_main.c octeon_dev->sriov_info.num_pf_rings)) { sriov_info 4230 drivers/net/ethernet/cavium/liquidio/lio_main.c octeon_dev->sriov_info.num_pf_rings)) sriov_info 1972 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if_cfg.s.num_iqueues = octeon_dev->sriov_info.rings_per_vf; sriov_info 1973 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if_cfg.s.num_oqueues = octeon_dev->sriov_info.rings_per_vf; sriov_info 2349 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (octeon_allocate_ioq_vector(oct, oct->sriov_info.rings_per_vf)) { sriov_info 2356 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c LIQUIDIO_VERSION, oct->sriov_info.rings_per_vf); sriov_info 2359 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (octeon_setup_interrupt(oct, oct->sriov_info.rings_per_vf)) sriov_info 499 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (!oct->sriov_info.sriov_enabled) sriov_info 502 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c num_vfs = oct->sriov_info.num_vfs_alloced; sriov_info 585 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (!oct->sriov_info.sriov_enabled) sriov_info 850 drivers/net/ethernet/cavium/liquidio/octeon_device.c ioq_vector->ioq_num = i + oct->sriov_info.pf_srn; sriov_info 959 drivers/net/ethernet/cavium/liquidio/octeon_device.c for (q_no = 0; q_no < oct->sriov_info.rings_per_vf; q_no++) { sriov_info 566 drivers/net/ethernet/cavium/liquidio/octeon_device.h struct octeon_sriov_info sriov_info; sriov_info 263 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c pcie_flr(oct->sriov_info.dpiring_to_vfpcidev_lut[mbox->q_no]);