Lines Matching refs:vfs

1881 	int vfs = rvu->vfs;  in rvu_mbox_intr_handler()  local
1896 if (vfs > 64) { in rvu_mbox_intr_handler()
1900 rvu_queue_work(&rvu->afvf_wq_info, 64, vfs, intr); in rvu_mbox_intr_handler()
1901 vfs -= 64; in rvu_mbox_intr_handler()
1909 rvu_queue_work(&rvu->afvf_wq_info, 0, vfs, intr); in rvu_mbox_intr_handler()
2070 if (rvu->vfs > 64) in rvu_flr_intr_handler()
2071 rvu_afvf_queue_flr_work(rvu, 64, rvu->vfs - 64); in rvu_flr_intr_handler()
2403 int vfs = rvu->vfs; in rvu_disable_afvf_intr() local
2405 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr()
2406 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr()
2407 rvupf_write64(rvu, RVU_PF_VFME_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr()
2408 if (vfs <= 64) in rvu_disable_afvf_intr()
2412 INTR_MASK(vfs - 64)); in rvu_disable_afvf_intr()
2413 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in rvu_disable_afvf_intr()
2414 rvupf_write64(rvu, RVU_PF_VFME_INT_ENA_W1CX(1), INTR_MASK(vfs - 64)); in rvu_disable_afvf_intr()
2419 int vfs = rvu->vfs; in rvu_enable_afvf_intr() local
2425 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INTX(0), INTR_MASK(vfs)); in rvu_enable_afvf_intr()
2426 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INT_ENA_W1SX(0), INTR_MASK(vfs)); in rvu_enable_afvf_intr()
2429 rvupf_write64(rvu, RVU_PF_VFFLR_INTX(0), INTR_MASK(vfs)); in rvu_enable_afvf_intr()
2430 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1SX(0), INTR_MASK(vfs)); in rvu_enable_afvf_intr()
2431 rvupf_write64(rvu, RVU_PF_VFME_INT_ENA_W1SX(0), INTR_MASK(vfs)); in rvu_enable_afvf_intr()
2434 if (vfs <= 64) in rvu_enable_afvf_intr()
2437 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INTX(1), INTR_MASK(vfs - 64)); in rvu_enable_afvf_intr()
2439 INTR_MASK(vfs - 64)); in rvu_enable_afvf_intr()
2441 rvupf_write64(rvu, RVU_PF_VFFLR_INTX(1), INTR_MASK(vfs - 64)); in rvu_enable_afvf_intr()
2442 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1SX(1), INTR_MASK(vfs - 64)); in rvu_enable_afvf_intr()
2443 rvupf_write64(rvu, RVU_PF_VFME_INT_ENA_W1SX(1), INTR_MASK(vfs - 64)); in rvu_enable_afvf_intr()
2475 int err, chans, vfs; in rvu_enable_sriov() local
2487 vfs = pci_sriov_get_totalvfs(pdev); in rvu_enable_sriov()
2490 if (vfs > chans) in rvu_enable_sriov()
2491 vfs = chans; in rvu_enable_sriov()
2493 if (!vfs) in rvu_enable_sriov()
2500 rvu->vfs = vfs; in rvu_enable_sriov()
2502 err = rvu_mbox_init(rvu, &rvu->afvf_wq_info, TYPE_AFVF, vfs, in rvu_enable_sriov()
2511 err = pci_enable_sriov(pdev, vfs); in rvu_enable_sriov()