• Home
  • Raw
  • Download

Lines Matching refs:num_vfs

169 	u32 num_vfs;  member
377 if (val > ctrl->num_vfs) in current_qm_write()
384 vfq_num = (qm->ctrl_qp_num - qm->qp_num) / ctrl->num_vfs; in current_qm_write()
385 if (val == ctrl->num_vfs) in current_qm_write()
387 qm->qp_num - (ctrl->num_vfs - 1) * vfq_num; in current_qm_write()
740 static int hisi_zip_vf_q_assign(struct hisi_zip *hisi_zip, int num_vfs) in hisi_zip_vf_q_assign() argument
748 if (!num_vfs) in hisi_zip_vf_q_assign()
752 if (remain_q_num < num_vfs) in hisi_zip_vf_q_assign()
755 q_num = remain_q_num / num_vfs; in hisi_zip_vf_q_assign()
756 for (i = 1; i <= num_vfs; i++) { in hisi_zip_vf_q_assign()
757 if (i == num_vfs) in hisi_zip_vf_q_assign()
758 q_num += remain_q_num % num_vfs; in hisi_zip_vf_q_assign()
772 u32 i, num_vfs = ctrl->num_vfs; in hisi_zip_clear_vft_config() local
775 for (i = 1; i <= num_vfs; i++) { in hisi_zip_clear_vft_config()
781 ctrl->num_vfs = 0; in hisi_zip_clear_vft_config()
789 int pre_existing_vfs, num_vfs, ret; in hisi_zip_sriov_enable() local
799 num_vfs = min_t(int, max_vfs, HZIP_VF_NUM); in hisi_zip_sriov_enable()
801 ret = hisi_zip_vf_q_assign(hisi_zip, num_vfs); in hisi_zip_sriov_enable()
807 hisi_zip->ctrl->num_vfs = num_vfs; in hisi_zip_sriov_enable()
809 ret = pci_enable_sriov(pdev, num_vfs); in hisi_zip_sriov_enable()
816 return num_vfs; in hisi_zip_sriov_enable()
835 static int hisi_zip_sriov_configure(struct pci_dev *pdev, int num_vfs) in hisi_zip_sriov_configure() argument
837 if (num_vfs == 0) in hisi_zip_sriov_configure()
840 return hisi_zip_sriov_enable(pdev, num_vfs); in hisi_zip_sriov_configure()
848 if (qm->fun_type == QM_HW_PF && hisi_zip->ctrl->num_vfs != 0) in hisi_zip_remove()